rendered paste body<?php
echo $javascript->link('lib/jquery');
echo $javascript->link('jquery.validate');
print $javascript->link('StyleFunction');
print $javascript->link('user.validation');
?>
<?php print $javascript->link('invoiceValidation'); ?>
<?php echo $form->create("Account",array("method"=>"POST","id"=>"searchAcc","action"=>"accounts/viewPayable"));?>
<div class="bottom-cases">
<div class="title-form">
<h1 class="profile"><?php echo __('SEARCH', true); ?></h1>
</div>
<table width="100%" cellpadding="2" cellspacing="2" border="0">
<tr>
<td width="25%" align="right"><b><?php __("Select Vendor");?>:<b></td>
<td width="25%" align="left">
<?php
echo
$form->select('Payable.vendor_id',$vendIdArray,null,array("class"=>"","Style"
=>"width:250px"),"--Select Vendor--");
?>
</td>
<td width="25%" align="right"><b><?php __("Purchase Order");?>:</b></td>
<td width="25%" align="left">
<?php echo $form->input('Payable.purorder',array('maxlength'=>'20','size'=>'15','type'=>'text','label'=>false));?></
td>
</tr>
<tr>
<td width="15%" align="right"><b><?php __("DUE_DATE_FROM");?>:<b></td>
<td width="25%" align="left">
<?php
if(isset($inDate))
$issue_date=$inDate;
else
$issue_date="";
?>
<input name="data[Payable][fromdate]" size="15" id="PayableFromdate" type="text" readonly=true value="<?php echo
$issue_date; ?>" onfocus="displayCalendar(document.getElementById('PayableFromdate'),'yyyy-mm-dd',this); return false;">
</td>
<td width="15%" align="right"><b><?php __("DUE_DATE_TO");?>:</b></td>
<td width="25%" align="left">
<?php
if(isset($inDate))
$issue_date=$inDate;
else
$issue_date="";
?>
<input name="data[Payable][todate]" size="15" id="PayableTodate" type="text" readonly=true value="<?php echo $iss
ue_date; ?>" onfocus="displayCalendar(document.getElementById('PayableTodate'),'yyyy-mm-dd',this); return false;">
</td>
</tr>
<tr>
<td width="25%" align="right"><b><?php __("Select Office");?>:<b></td>
<td width="25%" align="left">
<?php
echo
$form->select('Payable.office_id',$officeIdArray,null,array("class"=>"","Style"
=>"width:120px"),"--Select Office--");
?>
</td>
</tr>
<tr>
<td align="right" width="50%" colspan="2">
<?php
echo $ajax->submit('Submit', array("class"=>"submt-btn", 'div' => false,'label'=>false,'url'=> array('control
ler'=>'accounts', 'action'=>'viewPayable'), 'update' => 'divUpdate','indicator' => 'loaderID'));
?>
</td>
<td align="left" width="50%" colspan="2">
<?php
echo $form->button('Reset', array('class' => 'reset-btn', 'type' => 'reset', 'label'=>false, 'div' => false))
;
?>
</td>
</tr>
</table>
</div>
<?php echo $form->end();?>
<div class="left-content" id='divUpdate'>
<?php echo $this->renderElement("accounts/list_payableelement");?>
</div>