# register_globals ON
php_flag magic_quotes_gpc Off
php_flag register_globals Off
+# do not use SID in url
+php_flag session.use_trans_sid Off
#Sometimes neccessary to add those
#
<tr>
<td><div align="center">
<?php
- echo "<a href='$path_to_root/index.php?" . SID ."'><b>" . _("Click here to Login Again.") . "</b></a>";
+ echo "<a href='$path_to_root/index.php'><b>" . _("Click here to Login Again.") . "</b></a>";
?>
</div></td>
</tr>
function viewing_controls()
{
- start_form(false, true);
+ start_form();
start_table("class='tablestyle_noborder'");
page(_("Backup and Restore Database"), false, false, '', '', true);
//-------------------------------------------------------------------------------
-start_form(true, true);
+start_form(true);
$cmb = get_backup_file_combo();
$compr = get_compr_combo();
else
$n = count($db_connections);
- start_form(true, true);
+ start_form(true);
echo "
<script language='javascript'>
else
$n = count($installed_languages);
- start_form(true, true);
+ start_form(true);
echo "
<script language='javascript'>
else
$n = count($installed_modules);
- start_form(true, true);
+ start_form(true);
echo "
<script language='javascript'>
//----------------------------------------------------------------------------------------
-start_form(false, true);
+start_form(false);
viewing_controls();
handle_search();
end_form(2);
{
global $table_style2;
- start_form(false, true);
+ start_form();
start_table($table_style2);
//--------------------------------------------------------------------------------------
-start_form(false, true, $_SERVER['PHP_SELF'] ."?outstanding_only=" . $outstanding_only . SID);
+start_form(false, false, $_SERVER['PHP_SELF'] ."?outstanding_only=$outstanding_only");
start_table("class='tablestyle_noborder'");
start_row();
global $table_style2;
$home_currency = get_company_currency();
- start_form(false, true);
+ start_form();
start_table($table_style2, 5, 7);
echo "<tr><td valign=top>"; // outer table
}
//-----------------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
display_bank_header($_SESSION['pay_items']);
continue;
alt_table_row_color($k);
- $url = "<a href='$path_to_root/gl/inquiry/gl_account_inquiry.php?" . SID . "TransFromDate=" . $_POST["TransFromDate"] . "&TransToDate=" . $_POST["TransToDate"] . "&account=" . $account["account_code"] . "'>" . $account["account_code"] . "</a>";
+ $url = "<a href='$path_to_root/gl/inquiry/gl_account_inquiry.php?TransFromDate=" . $_POST["TransFromDate"] . "&TransToDate=" . $_POST["TransToDate"] . "&account=" . $account["account_code"] . "'>" . $account["account_code"] . "</a>";
label_cell($url);
label_cell($account["account_name"]);
//---------------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
if (!isset($_POST['curr_abrev']))
$_POST['curr_abrev'] = get_global_curr_code();
}
//-----------------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
display_order_header($_SESSION['adj_items']);
$Ajax->activate('cost_table');
//-----------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
if (!isset($_POST['stock_id']))
$_POST['stock_id'] = get_global_stock_item();
$_POST['stock_id'] = $_GET['stock_id'];
}
-start_form(false, true);
+start_form();
if (!isset($_POST['stock_id']))
$_POST['stock_id'] = get_global_stock_item();
check_db_has_stock_items(_("There are no items defined in the system."));
-start_form(false, true);
+start_form();
if (!isset($_POST['stock_id']))
$_POST['stock_id'] = get_global_stock_item();
//--------------------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
if (!isset($_POST['stock_id']))
$_POST['stock_id'] = get_global_stock_item();
//--------------------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
echo "<center>" . _("Select a sale kit:") . " ";
sales_kits_list('item_code', null, _('New kit'), true);
//---------------------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
if (!isset($_POST['stock_id']))
$_POST['stock_id'] = get_global_stock_item();
$Ajax->activate('price_table');
//--------------------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
if (!isset($_POST['stock_id']))
$_POST['stock_id'] = get_global_stock_item();
}
//------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
if (!isset($_POST['stock_id']))
$_POST['stock_id'] = get_global_stock_item();
}
//-----------------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
display_order_header($_SESSION['transfer_items']);
$_POST['stock_id'] = $_GET['stock_id'];
}
-start_form(false, true));
+start_form();
echo "<center> " . _("Item:") . " ";
stock_bom_items_list('stock_id', $_POST['stock_id'], false, true);
//--------------------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
echo "<center>" . _("Select a manufacturable item:") . " ";
stock_bom_items_list('stock_id', null, false, true);
start_form();
display_bom_items($selected_parent);
-//end_form();
//--------------------------------------------------------------------------------------
echo '<br>';
-// start_form(false, true);
start_table($table_style2);
//--------------------------------------------------------------------------------------
-start_form(false, false, $_SERVER['PHP_SELF'] ."?outstanding_only=" . $outstanding_only .SID);
+start_form(false, false, $_SERVER['PHP_SELF'] ."?outstanding_only=$outstanding_only");
start_table("class='tablestyle_noborder'");
start_row();
display_wo_details($_SESSION['issue_items']->order_id);
echo "<br>";
-start_form(false, true);
+start_form();
start_table("$table_style width=90%", 10);
echo "<tr><td>";
{
global $table_style;
- start_form(false, true);
+ start_form();
display_heading(_("Allocation of") . " " . systypes::name($_SESSION['alloc']->type) . " # " . $_SESSION['alloc']->trans_no);
//---------------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
start_table("class='tablestyle_noborder'");
start_row();
function edit_link($row)
{
return pager_link( _("Edit"),
- "/purchasing/po_entry_items.php?" . SID
- . "ModifyOrderNumber=" . $row["order_no"], ICON_EDIT);
+ "/purchasing/po_entry_items.php?ModifyOrderNumber=" . $row["order_no"], ICON_EDIT);
}
function prt_link($row)
function receive_link($row)
{
return pager_link( _("Receive"),
- "/purchasing/po_receive_items.php?" . SID
- . "PONumber=" . $row["order_no"], ICON_RECEIVE);
+ "/purchasing/po_receive_items.php?PONumber=" . $row["order_no"], ICON_RECEIVE);
}
function check_overdue($row)
}
//---------------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
start_table("class='tablestyle_noborder'");
start_row();
//------------------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
if (!isset($_POST['supplier_id']))
$_POST['supplier_id'] = get_global_supplier();
//------------------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
if (!isset($_POST['supplier_id']))
$_POST['supplier_id'] = get_global_supplier();
//---------------------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
display_po_header($_SESSION['PO']);
echo "<br>";
//--------------------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
display_grn_summary($_SESSION['PO'], true);
display_heading(_("Items to Receive"));
//--------------------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
invoice_header($_SESSION['supp_trans']);
if ($_POST['supplier_id']=='')
$Ajax->activate('inv_tot');
}
-start_form(false, true);
+start_form();
invoice_header($_SESSION['supp_trans']);
function display_controls()
{
global $table_style2;
- start_form(false, true);
+ start_form();
if (!isset($_POST['supplier_id']))
$_POST['supplier_id'] = get_global_supplier(false);
echo "<br>";
- start_form(false, true);
+ start_form();
div_start('alloc_tbl');
if (count($_SESSION['alloc']->allocs) > 0)
{
//-----------------------------------------------------------------------------
-start_form(false, true);
+start_form();
hidden('cart_id');
$customer_error = display_credit_header($_SESSION['Items']);
{
global $table_style, $table_style2;
- start_form(false, true);
+ start_form();
hidden('cart_id');
start_table("$table_style2 width=80%", 5);
$Ajax->activate('Items');
}
//------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
hidden('cart_id');
start_table("$table_style2 width=80%", 5);
$is_batch_invoice = count($_SESSION['Items']->src_docs) > 1;
$is_edition = $_SESSION['Items']->trans_type == 10 && $_SESSION['Items']->trans_no != 0;
-start_form(false, true);
+start_form();
hidden('cart_id');
start_table("$table_style2 width=80%", 5);
{
alt_table_row_color($k);
- label_cell("<a target='_blank' href='$path_to_root/inventory/inquiry/stock_status.php?" . SID . "stock_id=" . $line->stock_id . "'>$line->stock_id</a>");
+ label_cell("<a target='_blank' href='$path_to_root/inventory/inquiry/stock_status.php?stock_id=" . $line->stock_id . "'>$line->stock_id</a>");
label_cell($line->item_description, "nowrap");
qty_cell($line->qty_dispatched, false, get_qty_dec($line->stock_id));
label_cell($line->units);
if (!isset($_POST['customer_id']))
$_POST['customer_id'] = get_global_customer();
-start_form(false, true);
+start_form();
start_table("class='tablestyle_noborder'");
start_row();
//-----------------------------------------------------------------------------------
-start_form(false, false, $_SERVER['PHP_SELF'] ."?OutstandingOnly=" . $_POST['OutstandingOnly'] .SID);
+start_form(false, false, $_SERVER['PHP_SELF'] ."?OutstandingOnly=".$_POST['OutstandingOnly']);
start_table("class='tablestyle_noborder'");
start_row();
function edit_link($row)
{
return pager_link( _("Edit"),
- "/sales/sales_order_entry.php?" . SID . "ModifyOrderNumber=" . $row['order_no'], ICON_EDIT);
+ "/sales/sales_order_entry.php?ModifyOrderNumber=" . $row['order_no'], ICON_EDIT);
}
function dispatch_link($row)
{
return pager_link( _("Dispatch"),
- "/sales/customer_delivery.php?" . SID . "OrderNumber=" .$row['order_no'], ICON_DOC);
+ "/sales/customer_delivery.php?OrderNumber=" .$row['order_no'], ICON_DOC);
}
function invoice_link($row)
{
return pager_link( _("Invoice"),
- "/sales/sales_order_entry.php?" . SID . "NewInvoice=" .$row["order_no"], ICON_DOC);
+ "/sales/sales_order_entry.php?NewInvoice=" .$row["order_no"], ICON_DOC);
}
function delivery_link($row)
{
return pager_link( _("Delivery"),
- "/sales/sales_order_entry.php?" . SID . "NewDelivery=" .$row['order_no'], ICON_DOC);
+ "/sales/sales_order_entry.php?NewDelivery=" .$row['order_no'], ICON_DOC);
}
function tmpl_checkbox($row)
$Ajax->activate('orders_tbl');
}
-start_form(false, false, $_SERVER['PHP_SELF'] .SID);
+start_form();
start_table("class='tablestyle_noborder'");
start_row();