conn,$cfg_theme,$cfg_currency_symbol,$lang);
//checks if user is logged in.
if(!$sec->isLoggedIn())
{
header ("location: ../login.php");
exit ();
}
$display->displayTitle("$lang->updateItem");
if(isset($_GET['item_id']) and isset($_GET['sale_id']) and isset($_GET['row_id']))
{
$item_id=$_GET['item_id'];
$sale_id=$_GET['sale_id'];
$row_id=$_GET['row_id'];
$tablename = "$cfg_tableprefix".'sales_items';
$result = mysql_query("SELECT * FROM $tablename WHERE id=\"$row_id\"",$dbf->conn);
$row = mysql_fetch_assoc($result);
$quantity_purchased_value=$row['quantity_purchased'];
$item_unit_price_value=$row['item_unit_price'];
$item_tax_percent_value=$row['item_tax_percent'];
}
//creates a form object
$f1=new form('process_update_item.php','POST','sale item','335',$cfg_theme,$lang);
//creates form parts.
echo "