} if ($allowupdate) { echo "<input name=\"qty{$i}\" size=\"3\" value=\"{$qty}\" /><br />\n"; } else { echo "{$qty}<br />\n"; } echo "<input type=\"hidden\" name=\"sku{$i}\" value=\"{$sku}\" />\n"; echo "<input type=\"hidden\" name=\"csku{$i}\" value=\"{$csku}\" />\n"; ?> </td><td class="showcartcell" align="right" valign="top" bgcolor="#FFFFFF"> <?php // figure options modified product price, accumulate $prodsetttot // sets various globals $prodprice = prod_price($sku); if (!$prodprice) { $prodprice = $webfree; } printf("%s%.2f<br>", $csym, $prodprice); if ($prodsetup) { // for one time product setup regardless of qty, comment the line below $prodsetupext = $prodsetup * $qty; printf("%s %s%.2f<br />", fc_text('setuptotal'), $csym, $prodsetup); $prodsettot = rnd($prodsettot + $prodsetupext); } ?> </td><td class="showcartcell" align="right" valign="top" bgcolor="#FFFFFF"> <?php
for ($i = 0; $i < $count; $i++) { /* General output */ $row[] = $aRow[$i]; if ($i == $count - 1) { $row[] = '<input type="checkbox" name="check_' . $aRow[$hidden] . '" class="check" value="' . $aRow[$hidden] . '" />'; } } $data['aaData'][] = $row; } break; case 'disable': $trans_id = $_REQUEST['id']; $transaction_id = transaction($trans_id); $quantity = GettransQuantity($trans_id); $prod_id = production_id($trans_id); $price = prod_price($trans_id); $sum_price = $quantity * $price; DisableProduct($trans_id); update_transact_sumprice($sum_price, $transaction_id); SaleunDone($prod_id, $quantity); break; case 'count_change': $detail_id = $_REQUEST['detail_id']; $old_quantity = $_REQUEST['old_quantity']; $new_quantity = $_REQUEST['new_quantity']; $production_id = $_REQUEST['production_id']; $cost = $_REQUEST['cost']; $transaction_id = $_REQUEST['transaction_id']; $corect_quantity = $old_quantity - $new_quantity; $sum_price = $corect_quantity * $cost; update_transact_count($new_quantity, $detail_id);