<?php
echo "
<table border='0'  align='center' valign='top' width=100% class='tablecontent'>
   <tr bgcolor='#F7F7F7'><td valign='top' align='left' colspan='10'>";	

echo"<input type='hidden' name='delivery_export' value='$delivery_export' size='10'>";
   
print <<<HERE

		<table border="0" style='table-layout:fixed' width='100%'>
		  <col width=90>
		  <col width=70>
		  <col width=120>
		  <col width=90>
		  <col width=60>
		  <col width=70>
		  <col width=70>
		  <col width=80>
		  <col width=120>
		 
		  <col width=120>
		
		<tr bgcolor="#F7F7F7" height='25'> 
          <td valign="center" align='left' ><span class="style1">Reference&nbsp;<span class="style16">*</span></span></td>
		  <td><font face='Verdana' size='2'><b>&nbsp;$txtRef</b></font><input type='hidden' name='txtSaCountDetail' value='$txtSaCountDetail' ><input type='hidden' name='txtSaId' value='$txtSaId' size='10'><input type="hidden" name="txtRef" value="$txtRef" size='10' readonly></td>
<td colspan=2><span class="style1">Id&nbsp;&nbsp;</span><input type='text name='Ex' style='width:100px;'></td>	 
		 <td align="right"><span class="style1"> BOL</span></td>	
		  <td><input type='text' name='bol'></td>
			  
		  </td>

HERE;

		echo"   <tr bgcolor='#F7F7F7' height='25'>";
		echo "<td><span class='style1'>type</span></td>";
		echo "<td colspan=2><input type='text' name='type'></td>";
		echo "<td><span class='style1'>Date</span></td>";
		echo "<td><input type='text' name='type'></td>";
		echo "</tr>";

echo"   <tr bgcolor='#F7F7F7' height='25'>
		  <td align='left' ><span class='style1'>Client&nbsp;<span class='style16'>*</span></span></td>";
echo"     <td colspan='6' ><span class='style1'>";
echo"     <label>

           <input type='text'   name='txtClientCode' id='txtClientCode' value='$txtClientCode' onblur='SetMaturityDate($Module_Delivery);'  style='width:95px;' maxlength='10'  onkeydown='return kdClient(0,event);'    />           
		   <input type='text'   name='txtClientName' id='txtClientName' value='$txtClientName' style='width:285px;'   onkeydown='return kdClient(1,event);'   />
		   <label><span class='style1'><img src='img/btnopen.jpg' title=' Select Client ' id='lstClientCodeH' width='15' height='20' border='0' onMouseOver=\"style.cursor='hand'\"  onClick='showlistClient(1); ' /> </span></label>
		   <label><img src='img/btnopen.jpg' title='Select Client' id='lstClientNameH' width='15' height='20' border='0' onMouseOver=\"style.cursor='hand'\"  onClick='showlistClientName(1);' style='display:none;' /></label>
		   <input type='hidden' name='txtClientVat' id='txtClientVat' value='$txtClientVat' />
          </label>
          </span>
          </td>";
		 /* echo "<td><span class='style1'>forwarder</span></td><td>
			<select name='forward'>
				<option value='yes'>Yes</option>
				<option value='no'>No</option>
			</select></td>";*/
		 

echo"   </tr>";
/*
echo"   <tr bgcolor='#F7F7F7'>
		  <td align='left' ><span class='style1'>M/V&nbsp;<span class='style16'></span></span></td>";
echo"     <td colspan='6' ><span class='style1'>";
echo"     <label>

           <input type='text'   name='txtClientCode' id='txtClientCode' value='$txtClientCode' onblur='SetMaturityDate($Module_Delivery);'  style='width:250px;' maxlength='10'  onkeydown='return kdClient(0,event);'    />           
		      </label>
          </span>
          </td>";
		   print <<<HERE
		  <td align="left" ><span class="style1">Date&nbsp;<span class="style16">*</span></span></td>
		  <td colspan='1'><input type='text' name='txtDate' id='txtDate' value='$txtDate'  onBlur=checkDateFormat(this,$strt,$end)   onchange='SetMaturityDate($Module_Delivery);' maxlength='10'  style='width:90px;'>
		                   <A HREF="#" onClick="displayCalendar(document.sales.txtDate,'dd/mm/yyyy',this);  return false; " NAME="anchor1" ID="anchor1"><img src='./img/cal.gif' border=0 align=center></A></td>

HERE;
		  echo "<td align='right'><span class='style1'>Transhipment</span></td><td>
			<select name='transhipment'>
				<option value='yes'>Yes</option>
				<option value='no'>No</option>
			</select></td>";
		 
echo"   </tr>";
*/
	/*echo "<tr>";
echo "<td><span class='style1'>SHIPPER</span></td>";
echo "<td colspan='6'><textarea rows=4 cols=29  name='shipper'></textarea></td>";
echo "<td><span class='style1'>board</span></td>";
echo "<td colspan='3'><input type='text' name='board' style='width:200px;'></td>";
echo "</tr>";
echo "<tr>";
echo "<td><span class='style1'>CONSIGNEE</span></td>";
echo "<td colspan='6'><textarea rows=4 cols=29  name='consignee'></textarea></td>";
echo "<td><span class='style1'>place of delivery</span></td>";
echo "<td colspan='3'><input type='text' name='deliveryplace' style='width:200px;'></td>";
echo "</tr>";
echo "<tr>";
echo "<td><span class='style1'>NOTIFY</span></td>";
echo "<td colspan='6'><textarea rows=4 cols=29  name='notify'></textarea></td>";
echo "<td><span class='style1'>terms of carriage</span></td>";
echo "<td colspan='3'><input type='text' name='carriage' style='width:200px;'></td>";
echo "</tr>";
echo "<tr>";
echo "<td><span class='style1'>Ex Quel M/V </span></td>";
echo "<td colspan='6'><input type='text name='Ex' style='width:250px;'></td>";
 echo "<td><span class='style1'>P/C</span></td><td>
			<select name='transhipment'>
				<option value='prepaid'>Prepaid</option>
				<option value='collect'>Collect</option>
			</select></td>";
echo "</tr>";*/
echo "<tr height='25'>";
echo "<td colspan=3><span class='style1'>SHIPPER</span></td>";
echo "<td colspan=4><span class='style1'>CONSIGNEE</span></td>";
echo "<td colspan=3 ><span class='style1'>NOTIFY</span></td>";

echo "</tr>";


echo "<tr height='80'>";
echo "<td colspan=3><textarea rows=4 cols=29  name='shipper'></textarea></td>";
echo "<td colspan=4><textarea rows=4 cols=29  name='notify'></textarea></td>";
echo "<td colspan=3 ><textarea rows=4 cols=29  name='notify'></textarea></td>";

echo "</tr>";
echo "<tr height='25'>";
echo "<td ><span class='style1'>Weight &nbsp; &nbsp; &nbsp;</span></td>";
 echo "<td><input type='text'   name='txtClientCode' id='txtClientCode' value='$txtClientCode' onblur='SetMaturityDate($Module_Delivery);'  style='width:80px;' maxlength='10'  onkeydown='return kdClient(0,event);'    /> </td> ";         
		  
echo "<td align='right'><span class='style1' >Fdem &nbsp; &nbsp; &nbsp;</span></td>";
 echo "<td><input type='text'   name='txtClientCode' id='txtClientCode' value='$txtClientCode' onblur='SetMaturityDate($Module_Delivery);'  style='width:80px;' maxlength='10'  onkeydown='return kdClient(0,event);'    /> </td> ";         
		  


echo "</tr>";
echo"   <tr bgcolor='#F7F7F7' height='25'>
		  <td align='left' ><span class='style1'>Client&nbsp;<span class='style16'>*</span></span></td>";
echo"     <td colspan='6' ><span class='style1'>";
echo"     <label>

           <input type='text'   name='txtClientCode' id='txtClientCode' value='$txtClientCode' onblur='SetMaturityDate($Module_Delivery);'  style='width:95px;' maxlength='10'  onkeydown='return kdClient(0,event);'    />           
		   <input type='text'   name='txtClientName' id='txtClientName' value='$txtClientName' style='width:285px;'   onkeydown='return kdClient(1,event);'   />
		   <label><span class='style1'><img src='img/btnopen.jpg' title=' Select Client ' id='lstClientCodeH' width='15' height='20' border='0' onMouseOver=\"style.cursor='hand'\"  onClick='showlistClient(1); ' /> </span></label>
		   <label><img src='img/btnopen.jpg' title='Select Client' id='lstClientNameH' width='15' height='20' border='0' onMouseOver=\"style.cursor='hand'\"  onClick='showlistClientName(1);' style='display:none;' /></label>
		   <input type='hidden' name='txtClientVat' id='txtClientVat' value='$txtClientVat' />
          </label>
          </span>
          </td>";
		 /* echo "<td><span class='style1'>forwarder</span></td><td>
			<select name='forward'>
				<option value='yes'>Yes</option>
				<option value='no'>No</option>
			</select></td>";*/
		 

echo"   </tr>";

echo"   <tr bgcolor='#F7F7F7' height='25'>
		  <td align='left' ><span class='style1'>Agent&nbsp;<span class='style16'>*</span></span></td>";
echo"     <td colspan='6' ><span class='style1'>";
echo"     <label>

           <input type='text'   name='txtClientCode' id='txtClientCode' value='$txtClientCode' onblur='SetMaturityDate($Module_Delivery);'  style='width:95px;' maxlength='10'  onkeydown='return kdClient(0,event);'    />           
		   <input type='text'   name='txtClientName' id='txtClientName' value='$txtClientName' style='width:285px;'   onkeydown='return kdClient(1,event);'   />
		   <label><span class='style1'><img src='img/btnopen.jpg' title=' Select Client ' id='lstClientCodeH' width='15' height='20' border='0' onMouseOver=\"style.cursor='hand'\"  onClick='showlistClient(1); ' /> </span></label>
		   <label><img src='img/btnopen.jpg' title='Select Client' id='lstClientNameH' width='15' height='20' border='0' onMouseOver=\"style.cursor='hand'\"  onClick='showlistClientName(1);' style='display:none;' /></label>
		   <input type='hidden' name='txtClientVat' id='txtClientVat' value='$txtClientVat' />
          </label>
          </span>
          </td>";

		 

echo"   </tr>";
echo "<tr height='25'>";
echo "<td><span class='style1'>Depart</span></td>";
echo "<td colspan='2'><input type='text' name='deliveryplace' style='width:180px;'></td>";

echo "<td><span class='style1' colspan=2>place of delivery</span></td>";
echo "<td colspan='3'><input type='text' name='deliveryplace' style='width:200px;'></td>";
echo "</tr>";






		




echo"   <tr bgcolor='#ffffff'><td colspan='11' valign='top'>";
echo"	<div id='datagrid' class='grid' style='width:1090px;' >";




//Show Items Grid
//ShowDeliveryDtGrid($connection,'DI',$txtSaId,$_SESSION['gdl_parameters'],$_SESSION['gdl_arrayaccess'],'DeliveryDt.DeliveryDt_ID');

echo"	  </div>"; 
echo"   </td></tr>"; 
echo"   </table></td></tr>"; 
						//echo "</td>
					//</tr>";	
					?>