Task: "Save as quote" feature

SQL Changes:
CREATE TABLE xcart_quotes (
  quoteid int(11) NOT NULL auto_increment,
  login varchar(32) NOT NULL default '',
  membership varchar(32) NOT NULL default '',
  total decimal(12,2) NOT NULL default '0.00',
  subtotal decimal(12,2) NOT NULL default '0.00',
  discount decimal(12,2) NOT NULL default '0.00',
  shipping_cost decimal(12,2) NOT NULL default '0.00',
  tax decimal(12,2) NOT NULL default '0.00',
  tax_gst decimal(12,2) NOT NULL default '0.00',
  tax_pst decimal(12,2) NOT NULL default '0.00',
  total_vat decimal(12,2) NOT NULL default '0.00',
  date int(11) NOT NULL default '0',
  notes text NOT NULL,
  PRIMARY KEY  (quoteid),
  KEY order_date (date),
  KEY login (login)
) TYPE=MyISAM;
CREATE TABLE xcart_quote_details (
  id int(11) NOT NULL auto_increment,
  quoteid int(11) NOT NULL default '0',
  productid int(11) NOT NULL default '0',
  price decimal(12,2) NOT NULL default '0.00',
  amount int(11) NOT NULL default '0',
  provider varchar(32) NOT NULL default '',
  product_options text NOT NULL,
  extra_data text NOT NULL,
  PRIMARY KEY (id),
  KEY quoteid (quoteid),
  KEY productid (productid),
  KEY provider (provider)
) TYPE=MyISAM;
CREATE TABLE xcart_quote_messages (
  id int(11) NOT NULL auto_increment,
  quoteid int(11) NOT NULL default '0',
  date int(11) NOT NULL default '0',
  login varchar(32) NOT NULL default '',
  type char(1) NOT NULL default 'C',
  message text NOT NULL default '',
  PRIMARY KEY (id),
  KEY quoteid (quoteid),
  KEY date (date)
);

SQL Constants:
INSERT INTO xcart_modules VALUES ('666','Quote','Allows customers to quote orders','Y');
INSERT INTO xcart_languages VALUES ('US','Quote','lbl_quote','Quote','Labels');
INSERT INTO xcart_languages VALUES ('US','Quote order','lbl_quote_order','Quote order','Labels');
INSERT INTO xcart_languages VALUES ('US','Quote placed','lbl_quote_placed','Quote placed','Labels');
INSERT INTO xcart_languages VALUES ('US','Quote placed text','txt_quote_placed','Quote placed message goes here','Text');
INSERT INTO xcart_languages VALUES ('US','Thank you for quote text','eml_thankyou_for_quote','Thank you for the quote','Email');
INSERT INTO xcart_languages VALUES ('US','Quote invoice','lbl_quote_invoice','Quote summary','Labels');
INSERT INTO xcart_languages VALUES ('US','Search quotes header','txt_search_quotes_header','You can search your quotes here','Text');
INSERT INTO xcart_languages VALUES ('US','Search quotes','lbl_search_quotes','Search quotes','Labels');
INSERT INTO xcart_languages VALUES ('US','Quote date from','lbl_quote_date_from','Quote date from','Labels');
INSERT INTO xcart_languages VALUES ('US','Quote date through','lbl_quote_date_through','Quote date through','Labels');
INSERT INTO xcart_languages VALUES ('US','quotes found','lbl_quotes_found','quotes found','Labels');
INSERT INTO xcart_languages VALUES ('US','Quotes history','lbl_quotes_history','Quotes history','Labels');
INSERT INTO xcart_languages VALUES ('US','Accept','lbl_accept','Accept','Labels');
INSERT INTO xcart_languages VALUES ('US','Estimated values','txt_estimated_values','The values are estimated and will be finalized while checkout','Text');

New Files:
admin/quotes.php
admin/quote.php
include/quotes.php
include/history_quote.php
customer/quote.php
customer/quotes.php
skin1/mail/quote_customer_subj.tpl
skin1/mail/quote_notification_subj.tpl
skin1/mail/quote_customer.tpl
skin1/mail/quote_invoice.tpl
skin1/mail/quote_notification_admin.tpl
skin1/mail/quote_message_subj.tpl
skin1/mail/quote_message.tpl
skin1/mail/html/quote_customer.tpl
skin1/mail/html/quote_invoice.tpl 
skin1/mail/html/quote_notification_admin.tpl
skin1/mail/html/quote_message.tpl
skin1/main/quotes.tpl
skin1/main/history_quote.tpl
skin1/main/quote_messages.tpl
skin1/admin/main/quote.tpl
skin1/customer/main/quote.tpl

Changed Files:
config.php - adding the new tables to the $sql_tbl array
include/func.php - changing function func_delete_profile - adding lines 575-583
				 - changing function func_products_from_scratch - adding lines 1910-1914
				 - adding new functions - adding lines 4134-4169
customer/cart.php - changing line 496
skin1/single/home.tpl - adding line 296-301
skin1/admin/menu.tpl - adding line 7
skin1/customer/home_main.tpl - adding lines 67-72
skin1/customer/menu_cart.tpl - adding line 20
skin1/customer/main/checkout.tpl - adding lines 88-110
