Example #1
0
<?php 
session_start();
include "header.php";
include "class.invoice.dao.php";
include "class.customer.dao.php";
$daoCustomer = new DAOcustomer();
$customer_detail = $daoCustomer->getCustomers($_SESSION['uid']);
?>
<center>
	<h3>Add Invoice</h3>
<form name = "frmInvoice" method="POST" action="save.invoice.php"  onsubmit = "return validateInvoice();">
	<table cellspacing="5" cellpadding="5">
		<?php 
if (isset($_GET["id"])) {
    $dao = new DAOinvoice();
    $vo = $dao->get($_GET["id"]);
    ?>
			<tr>
				<td> Customer Name </td>
				<td><select name = "customer" style="width:198px" value = "<?php 
    echo $vo->customer;
    ?>
">
					<option selected value="<?php 
    echo $vo->customer;
    ?>
"><?php 
    echo $vo->customer;
    ?>
</option>
                    <?php