<?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
+ 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>.
+***********************************************************************/
$page_security =10;
$path_to_root="..";
include($path_to_root . "/includes/session.inc");
text_row_ex(_("Telephone Number:"), 'phone', 25, 55);
text_row_ex(_("Facsimile Number:"), 'fax', 25);
-text_row_ex(_("Email Address:"), 'email', 25, 55);
+text_row_ex("<a href='Mailto:".$_POST['email']."'>" . _("E-mail Address:") . "</a>", 'email', 25, 55);
label_row(_("Company Logo:"), $_POST['coy_logo']);
label_row(_("New Company Logo (.jpg)") . ":", "<input type='file' id='pic' name='pic'>");
label_cell($myrow["user_id"]);
label_cell($myrow["real_name"]);
label_cell($myrow["phone"]);
- label_cell($myrow["email"]);
+ label_cell("<a href=mailto:" . $myrow["email"]. ">" . $myrow["email"]. "</a>");
label_cell($last_visit_date, "nowrap");
label_cell($security_headings[$myrow["full_access"]]);
edit_button_cell("Edit".$myrow["user_id"], _("Edit"));
start_form();
start_table($table_style2);
+
+$_POST['email'] = "";
if ($selected_id != '')
{
if ($Mode == 'Edit') {
text_row_ex(_("Telephone No.:"), 'phone', 30);
-text_row_ex(_("Email Address:"), 'email', 50);
+text_row_ex("<a href='Mailto:".$_POST['email']."'>" . _("Email Address:") . "</a>", 'email', 50);
security_headings_list_row(_("Access Level:"), 'Access', null);
<?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
+ 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>.
+***********************************************************************/
$page_security = 11;
$path_to_root="../..";
include($path_to_root . "/includes/session.inc");
label_cell($myrow[0]);
label_cell($myrow[1]);
edit_button_cell("Edit".$myrow[0], _("Edit"));
- edit_button_cell("Delete".$myrow[0], _("Delete"));
+ delete_button_cell("Delete".$myrow[0], _("Delete"));
end_row();
}
//END WHILE LIST LOOP
start_table($table_style2);
+$_POST['email'] = "";
if ($selected_id != -1)
{
//editing an existing Location
text_row_ex(_("Telephone No:"), 'phone', 30, 30);
text_row_ex(_("Facsimile No:"), 'fax', 30, 30);
-text_row_ex(_("Email:"), 'email', 30, 30);
+text_row_ex("<a href='Mailto:".$_POST['email']."'>" . _("E-mail:") . "</a>", 'email', 30);
end_table(1);
submit_add_or_update_center($selected_id == -1, '', true);
<?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
+ 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>.
+***********************************************************************/
$page_security=5;
$path_to_root="../..";
include($path_to_root . "/includes/session.inc");
hidden('supplier_id', get_post('supplier_id'));
}
-//start_table("class='tablestyle2'", 0, 3);
-start_table("class='tablestyle'", 3);
+br();
+start_table("$table_style2 width=65%", 5);
+echo "<tr valign=top><td>"; // outer table
-table_section_title(_("Supplier"));
+echo "<table>";
if (!$new_supplier)
{
$_POST['payment_discount_account'] = $company_record['pyt_discount_act'];
}
+table_section_title(_("Name and Contact"));
+
text_row(_("Supplier Name:"), 'supp_name', null, 42, 40);
-textarea_row(_("Postal ddress:"), 'address', null, 35, 5);
+text_row(_("Contact:"), 'contact', null, 42, 40);
+
+text_row(_("Phone Number:"), 'phone', null, 42, 40);
+text_row(_("Fax Number:"), 'fax', null, 42, 40);
+
+text_row("<a href='Mailto:".$_POST['email']."'>" . _("E-mail:") . "</a>", 'email', null, 35, 55);
+
+table_section_title(_("Addresses"));
+textarea_row(_("Mailing Address:"), 'address', null, 35, 5);
textarea_row(_("Physical Address:"), 'supp_address', null, 35, 5);
-text_row(_("Phone:"), 'phone', null, 42, 40);
-text_row(_("Fax:"), 'fax', null, 42, 40);
+
+echo "</table>";
+
+echo "</td><td class='tableseparator'>"; // outer table
+
+echo"<table>";
+
+table_section_title(_("Purchasing"));
text_row(_("GSTNo:"), 'gst_no', null, 42, 40);
-text_row(_("Email:"), 'email', null, 42, 40);
-text_row(_("Contact:"), 'contact', null, 42, 40);
text_row(_("Bank Name/Account:"), 'bank_account', null, 42, 40);
amount_row(_("Credit Limit:"), 'credit_limit', null);
-// Sherifoz 23.09.03 currency can't be changed if editing
if (!$new_supplier)
{
label_row(_("Supplier's Currency:"), $_POST['curr_code']);
if ($dim < 2)
hidden('dimension2_id', 0);
+end_table();
+
end_table(1);
+
div_start('controls');
if (!$new_supplier)
{
<?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
+ 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>.
+***********************************************************************/
$page_security = 3;
$path_to_root="../..";
include($path_to_root . "/includes/session.inc");
if (count($_SESSION['Context']))
edit_button_cell("Select".$myrow["branch_code"], _("Select"));
edit_button_cell("Edit".$myrow["branch_code"], _("Edit"));
- edit_button_cell("Delete".$myrow["branch_code"], _("Delete"));
+ delete_button_cell("Delete".$myrow["branch_code"], _("Delete"));
end_row();
}
end_table();
display_note(_("The selected customer does not have any branches. Please create at least one branch."));
echo "<br>";
-start_table("$table_style2 width=60%", 5);
+start_table("$table_style2 width=70%", 5);
echo "<tr valign=top><td>"; // outer table
echo "<table>";
+$_POST['email'] = "";
if ($selected_id != -1)
{
if ($Mode == 'Edit') {
text_row(_("Phone Number:"), 'phone', null, 20, 20);
text_row(_("Fax Number:"), 'fax', null, 20, 20);
-text_row("<a href='Mailto:'>" . _("E-mail:") . "</a>", 'email', null, 35, 55);
+text_row("<a href='Mailto:".$_POST['email']."'>" . _("E-mail:") . "</a>", 'email', null, 35, 55);
table_section_title(_("Sales"));
<?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
+ 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>.
+***********************************************************************/
$page_security = 3;
$path_to_root="../..";
hidden('customer_id');
}
-start_table($table_style2, 7, 6);
+br();
+start_table($table_style2, 5);
echo "<tr valign=top><td>"; // outer table
-
-start_table("class='tablestyle_noborder'");
+echo "<table>";
if ($new_customer)
{
$_POST['credit_limit'] = price_format($myrow["credit_limit"]);
}
+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(_("Email:"), 'email', null, 40, 40);
+text_row("<a href='Mailto:".$_POST['email']."'>" . _("E-mail:") . "</a>", 'email', null, 40, 40);
text_row(_("GSTNo:"), 'tax_id', null, 40, 40);
echo "</td><td class='tableseparator'>"; // outer table
-start_table("class='tablestyle_noborder'");
+echo"<table>";
+
+table_section_title(_("Sales"));
sales_types_list_row(_("Sales Type/Price List:"), 'sales_type', $_POST['sales_type']);
+percent_row(_("Discount Percent:"), 'discount', $_POST['discount']);
+percent_row(_("Prompt Payment Discount Percent:"), 'pymt_discount', $_POST['pymt_discount']);
+amount_row(_("Credit Limit:"), 'credit_limit', $_POST['credit_limit']);
+
+payment_terms_list_row(_("Payment Terms:"), 'payment_terms', $_POST['payment_terms']);
+credit_status_list_row(_("Credit Status:"), 'credit_status', $_POST['credit_status']);
$dim = get_company_pref('use_dimension');
if ($dim >= 1)
dimensions_list_row(_("Dimension")." 1:", 'dimension_id', $_POST['dimension_id'], true, " ", false, 1);
if ($dim < 2)
hidden('dimension2_id', 0);
-percent_row(_("Discount Percent:"), 'discount', $_POST['discount']);
-percent_row(_("Prompt Payment Discount Percent:"), 'pymt_discount', $_POST['pymt_discount']);
-amount_row(_("Credit Limit:"), 'credit_limit', $_POST['credit_limit']);
-
-payment_terms_list_row(_("Payment Terms:"), 'payment_terms', $_POST['payment_terms']);
-credit_status_list_row(_("Credit Status:"), 'credit_status', $_POST['credit_status']);
if (!$new_customer) {
start_row();
echo '<td>'._('Customer branches').':</td>';
<?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
+ 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>.
+***********************************************************************/
$page_security = 3;
$path_to_root="../..";
include($path_to_root . "/includes/session.inc");
label_cell($myrow["salesman_name"]);
label_cell($myrow["salesman_phone"]);
label_cell($myrow["salesman_fax"]);
- label_cell($myrow["salesman_email"]);
+ label_cell("<a href=mailto:" . $myrow["salesman_email"]. ">" . $myrow["salesman_email"]. "</a>");
label_cell(percent_format($myrow["provision"])." %", "nowrap align=right");
amount_cell($myrow["break_pt"]);
label_cell(percent_format($myrow["provision2"])." %", "nowrap align=right");
edit_button_cell("Edit".$myrow["salesman_code"], _("Edit"));
- edit_button_cell("Delete".$myrow["salesman_code"], _("Delete"));
+ delete_button_cell("Delete".$myrow["salesman_code"], _("Delete"));
end_row();
} //END WHILE LIST LOOP
start_form();
+
+$_POST['salesman_email'] = "";
if ($selected_id != -1)
{
if ($Mode == 'Edit') {
text_row_ex(_("Sales person name:"), 'salesman_name', 30);
text_row_ex(_("Telephone number:"), 'salesman_phone', 20);
text_row_ex(_("Fax number:"), 'salesman_fax', 20);
-text_row_ex(_("Email:"), 'salesman_email', 40);
+text_row_ex("<a href='Mailto:".$_POST['salesman_email']."'>" . _("E-mail:") . "</a>", 'salesman_email', 40);
percent_row(_("Provision").':', 'provision');
amount_row(_("Break Pt.:"), 'break_pt');
percent_row(_("Provision")." 2:", 'provision2');