Esempio n. 1
0
                if (empty($price) || !is_numeric($price)) {
                    $error_msg .= gettext("Amount inserted is invalid, it must be a number. Check the format.");
                }
                if (!empty($error_msg)) {
                    break;
                }
                $DBHandle = DbConnect();
                $instance_sub_table = new Table("cc_receipt_item", "*");
                $instance_sub_table->Update_table($DBHandle, "date='{$date}',description='{$description}',price='{$price}'", "id = {$idc}");
                Header("Location: A2B_receipt_edit.php?" . "id=" . $id);
            }
            break;
    }
}
$receipt = new Receipt($id);
$items = $receipt->loadItems();
$smarty->display('main.tpl');
?>
<table class="invoice_table" >
    <tr class="form_invoice_head">
        <td width="75%" colspan="2"><font color="#FFFFFF"><?php 
echo gettext("RECEIPT: ");
?>
</font><font color="#FFFFFF"><b><?php 
echo $receipt->getTitle();
?>
</b></font></td>
    </tr>
    <tr>
        <td>
        &nbsp;