<div id="sbg-customer-entry" style="width:710px;margin: 5px 5px 5px 5px;">
	<div id="customer-tabs">
		<ul style="font-size: 0.8em;">
			<li><a href="#customer-general">General</a></li>
			<li><a href="#customer-address">Address</a></li>
			<li><a href="#customer-contact">Contact</a></li>
			<span class="sbg-tab-title">Customers</span>
		</ul>
		<div id="customer-general" style="height:200px;">
			<table>
				<tr>
					<td style="text-align:right;width:140px;"><span>ID : </span></td>
					<td style="width:480px"><input type="text" maxlength="10" size="10" id="txtCustomerId" value="Auto" disabled="disabled" /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Code : </span></td>
					<td><input type="text" maxlength="15" size="15" id="txtCustomerCode"  /><span id="customer_err_desc" style="color:red;display:none;padding-left:5px">*</span></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Name : </span></td>
					<td><input type="text" maxlength="255" size="40" id="txtCustomerName"  /><span id="customer_err_name" style="color:red;display:none;padding-left:5px">*</span></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Web : </span></td>
					<td><input type="text" maxlength="255" size="40" id="txtCustomerWeb"  /></td>
				</tr>
				<tr style="display:none">
					<td style="text-align:right;"><span>Email : </span></td>
					<td><input type="text" maxlength="255" size="40" id="txtCustomerEmail"  /></td>
				</tr>
			</table>
		</div>
		<div id="customer-address" style="height:200px;">
			<table>
				<tr>
					<td style="text-align:right;"><span>Line 1 : </span></td>
					<td><input type="text" maxlength="255" size="40" id="txtCustomerAddressLine1"   /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Line 2 : </span></td>
					<td><input type="text" maxlength="255" size="40" id="txtCustomerAddressLine2"   /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Line 3 : </span></td>
					<td><input type="text" maxlength="255" size="40" id="txtCustomerAddressLine3"   /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Line 4 : </span></td>
					<td><input type="text" maxlength="255" size="40" id="txtCustomerAddressLine4"   /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Line 5 : </span></td>
					<td><input type="text" maxlength="255" size="40" id="txtCustomerAddressLine5"   /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Telephone : </span></td>
					<td><input type="text" maxlength="255" size="40" id="txtCustomerTelephone"   /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Fax : </span></td>
					<td><input type="text" maxlength="255" size="40" id="txtCustomerFax"   /></td>
				</tr>
			</table>
		</div>
		<div id="customer-contact" style="height:200px;">
			<table>
				<tr>
					<td style="width:30px"></td>
					<td style="width:50px;text-align: right">Name</td>
                    <td style="width:200px"><input type="text" maxlength="255" size="20" id="txtCustomerContactName" /></td>
					<td style="width:50px;text-align: right">Email</td>
                    <td style="width:200px"><input type="text" maxlength="255" size="20" id="txtCustomerContactEmail" /></td>
                    <td style="width:40px;text-align:center" rowspan="2"><a href="javascript:" onclick="addCustomerContact()"><img src="image/add.png" title="Add Limit" style="width:24px;height:24px"></img></a></td>
				</tr>
                <tr>
					<td style="width:30px"></td>
					<td style="width:50px;text-align: right">Telephone</td>
                    <td style="width:200px"><input type="text" maxlength="255" size="20" id="txtCustomerContactTelephone" /></td>
					<td style="width:50px;text-align: right">Fax</td>
                    <td style="width:200px"><input type="text" maxlength="255" size="20" id="txtCustomerContactFax" /></td>
                    
                </tr>
			</table>
			<div class="ui-widget-content ui-corner-all" style="overflow: auto;height:150px;">
                <table style="width:100%">
                    <tr class="ui-widget-header">
                        <th style="width: 120px">Name</th>
                        <th style="width: 120px">Email</th>
                        <th style="width: 120px">Telephone</th>
                        <th style="width: 120px">Fax</th>
                        <th style="width: 40px"></th>
                    </tr>
				</table>
				<table id="tblCustomerContact" class="sbg-table-list" cellspacing="0">
					
				</table>
			</div>
            
        </div>
	<div class="ui-widget-content ui-corner-all" style="height:40px;margin-top:2px;">
		<div class="sbg-entry-error" style="width:300px;">
			<span id="customer_err_mesg" class="sbg-error"></span>
		</div>
		<div class="sbg-entry-command">
			<input id="btnCustomerAdd" type="button" value="Add"></input>
			<input id="btnCustomerClear" type="button" value="Clear"></input>
			<input id="btnCustomerUpdate" type="button" value="Update"></input>
			<input id="btnCustomerPrint" type="button" value="Print"></input>
		</div>
	</div>
</div>

<div>
	<div class="sbg-table">
		<div class="ui-widget-header">
			<table id="sbg-customer-header" class="header" cellspacing="0" cellpadding="5">
                <tr class="ui-widget-header">
                <td style="width: 50px;">ID</td>
                <td style="width: 200px;">Code</td>
                <td style="width: 300px;">Name</td>
				<td style="width: 25px;"></td>
				<td style="width: 25px;"></td>
                </tr>
			</table>
		</div>
        <div id="sbg-customer-data" style="overflow: auto;">
            <table id="sbg-customer-table" cellspacing="0" cellpadding="5" class="data">
			<tr><td style="width:50px;height:1px"></td><td style="width:200px"></td><td style="width:300px"></td><td style="width:25px"></td><td style="width:25px"></td></tr>
			<?php echo $this->getList() ; ?>
            </table>
        </div>
	</div>
</div> 
<script type="text/javascript">
var customer_url = "<?php echo Util::convertLink("Customer") ; ?>" ;
<?php include (PATH_CODE . "js/activity/customer.js") ; ?>
</script>