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 "

$lang->updateRowID $row_id
"; $f1->createInputField("$lang->quantityPurchased:",'text','quantity_purchased',"$quantity_purchased_value",'24','160'); $f1->createInputField("$lang->unitPrice: ",'text','item_unit_price',"$item_unit_price_value",'24','160'); $f1->createInputField("$lang->tax %: ",'text','item_tax_percent',"$item_tax_percent_value",'24','160'); echo " "; $f1->endForm(); $dbf->closeDBlink(); ?>