<center> <h2>Estimation Sheet</h2>
</center>

<fieldset><legend style="font-size:13px;"><strong>General Details</strong></legend>
<table width="100%" align="center" border="1" cellpadding="2" cellspacing="1">
  <tr>
    <th width="13%"><strong>Branch</strong></th>
    <td width="20%"><select name="site" id="site" style="width:130px;">
    <option value="0">All Branches</option>
     <?php 
		$site_sql = "Select * from locations where CompanyId='".$_SESSION['ACGCompanyId']."' and loccode in('".$_SESSION['AssignedBranch']."')";
		$site_result = DB_query($site_sql,$db);
		while($site_row = DB_fetch_array($site_result))
		{
		?>
         <option value="<?php echo $site_row['loccode']; ?>" ><?php echo $site_row['locationname']; ?></option>
            <?php } ?>
    </select></td>
    <th width="13%"><strong>Sheet No.</strong></th>
    <td width="20%"><input name="sheet_no" id="sheet_no" type="text" class="" style="width:100%;" value="Auto Generated" readonly="true" /></td>
    <th><strong>Date</strong></th>
    <td width="20%"><input name="sheet_date" id="sheet_date" type="text" class="cap datepicker" style="width:100%;" readonly="true" /></td>
  </tr>
  <tr>
  	<th><strong>Party </strong></th>
    <td><input name="" id="" type="text" class="" style="width:100%;" /></td>
	<th><strong>Against</strong></th>
    <td><select style="width:100%;" name="select" id="branch">
      <option>--Select--</option>
      <option>- Select -</option>
    </select></td>
	<th><strong>Ref. No.</strong></th>
    <td><select style="width:100%;" name="select" id="branch">
      <option>--Select--</option>
      <option>- Select -</option>
    </select></td>
  </tr>
  <tr>
  	<th><strong>Ref Date</strong></th>
    <td><input name="sheet_no" id="sheet_no" type="text" class="" style="width:100%;" value="Auto Generated" readonly="true" /></td>
    <th><strong>Type </strong></th>
    <td><select style="width:100%;" name="select" id="branch">
      <option>--Select--</option>
      <option>- Select -</option>
    </select></td>
    <th><strong>Material Group</strong></th>
    <td><select style="width:100%;" name="select" id="branch">
      <option>--Select--</option>
      <option>- Select -</option>
    </select></td>
  </tr>
</table>
</fieldset>
<br />

<fieldset><legend style="font-size:13px;"><strong>Product Details</strong></legend>
<table width="100%" align="center" border="1" cellpadding="2" cellspacing="1">
  <tr>
    <th>Item Code</th>
    <th width="17%">Item Name</th>
    <th width="17%">Size</th>
    <th width="8%">Unit</th>
    <th width="8%">Qty</th>
    <th width="8%">Area</th>
    <th width="8%">Total Area</th>
    <th width="8%">Rate</th>
    <th width="8%">Amount</th>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>



</fieldset>
<br />

<fieldset><legend style="font-size:13px;"><strong>Assembly Details</strong></legend>
<table width="100%" align="center" border="1" cellpadding="2" cellspacing="1">
  <tr>
    <th>Item Code</th>
    <th width="17%">Item Name</th>
    <th width="17%">Size</th>
    <th width="8%">Unit</th>
    <th width="8%">Qty</th>
    <th width="8%">Area</th>
    <th width="8%">Total Area</th>
    <th width="8%">Rate</th>
    <th width="8%">Amount</th>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>



</fieldset>
<br />

<table width="50%" align="center" border="1" cellpadding="2" cellspacing="1">
  <tr>
    <th width="33%">Primary Qty.</th>
    <th width="33%">Secondary Qty.</th>
    <th>Gross Amount</th>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<br />
<table width="100%" align="center" border="1" cellpadding="2" cellspacing="1">
<tr>
    <th>Remarks</th>
    <td colspan="5">
	<textarea rows="3" style="width:100%"></textarea>
	</td>
  </tr>
  <tr>
    <th width="13%"><strong>Prepared By </strong></th>
    <td width="20%"><select style="width:100%;" name="branch" id="branch">
      <option>--Select--</option>
      <option>- Select -</option>
    </select>    </td>
    <th width="13%"><strong>Checked By </strong></th>
    <td width="20%"><input name="" id="" type="text" class="" style="width:100%;" />    </td>
    <th><strong>Authorized By</strong></th>
    <td width="20%"><input type="text" name="" value=""  style="width:100%;"/></td>
  </tr>
  
</table>
