Added cancel edition hotkey
[fa-stable.git] / sales / manage / customers.php
index 415aa584a9f5224d70864b2d49bd6de170a562f4..87389b605caa638847ab7c4ddc7e835ceb99a188 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 /**********************************************************************
     Copyright (C) FrontAccounting, LLC.
-       Released under the terms of the GNU Affero General Public License,
-       AGPL, as published by the Free Software Foundation, either version 
-       of the License, or (at your option) any later version.
+       Released under the terms of the GNU General Public License, GPL, 
+       as published by the Free Software Foundation, either version 3 
+       of the License, or (at your option) any later version.
     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
-    See the License here <http://www.gnu.org/licenses/agpl-3.0.html>.
+    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
 $page_security = 3;
 $path_to_root="../..";
@@ -198,11 +198,9 @@ else
        hidden('customer_id');
 }
 
-br();
-start_table($table_style2, 5);
-echo "<tr valign=top><td>"; // outer table     
+start_outer_table($table_style2, 5);
 
-echo "<table>";
+table_section(1);
 
 if ($new_customer) 
 {
@@ -245,11 +243,10 @@ table_section_title(_("Name and Address"));
 text_row(_("Customer Name:"), 'CustName', $_POST['CustName'], 40, 40);
 textarea_row(_("Address:"), 'address', $_POST['address'], 35, 5);
 
-text_row("<a href='Mailto:".$_POST['email']."'>" . _("E-mail:") . "</a>", 'email', null, 40, 40);
+email_row(_("E-mail:"), 'email', null, 40, 40);
 text_row(_("GSTNo:"), 'tax_id', null, 40, 40);
 
 
-// Sherifoz 23.09.03 currency can't be changed if editing
 if ($new_customer) 
 {
        currencies_list_row(_("Customer's Currency:"), 'curr_code', $_POST['curr_code']);
@@ -259,11 +256,8 @@ else
        label_row(_("Customer's Currency:"), $_POST['curr_code']);
        hidden('curr_code', $_POST['curr_code']);                               
 }      
-end_table();
 
-echo "</td><td class='tableseparator'>"; // outer table
-
-echo"<table>";
+table_section(2);
 
 table_section_title(_("Sales"));
 
@@ -292,19 +286,19 @@ if (!$new_customer)  {
                "debtor_no=".$_POST['customer_id']);
        end_row();
 }
-end_table();
 
-end_table(1); // outer table   
+end_outer_table(1);
+
 div_start('controls');
 if ($new_customer)
 {
-       submit_center('submit', _("Add New Customer"), true, '', true);
+       submit_center('submit', _("Add New Customer"), true, '', 'default');
 } 
 else 
 {
        submit_center_first('submit', _("Update Customer"), 
          _('Update customer data'), true);
-       submit_return('select', _("Return"), _("Select this customer and return to document entry."), true);
+       submit_return('select', _("Return"), _("Select this customer and return to document entry."), 'default');
        submit_center_last('delete', _("Delete Customer"), 
          _('Delete customer data if have been never used'), true);
 }