<html>
<head>
<link rel="stylesheet" href="../../css/font.css" type="text/css" />

<link href="../../css/pop_up style.css" rel="stylesheet" type="text/css">
<script src="../../js/jquery/jquery.js"         type="text/javascript"></script>
<script src="../../js/shortcut.js"  type="text/javascript"></script>
<script src="../../js/local_delivery_conform_ajax.js" type="text/javascript"></script>
<script src="../../js/enter_event_ajax.js"       type="text/javascript"></script>


</head>
<?php
error_reporting(0);
$edit_id=$_GET['edit_id'];
include("../../include/db.php");
if($_GET['edit_id']!='')
{
$measurement_table_display_style='style="display:inline;"';
} 
else
{
$measurement_table_display_styles='style="display:none;"';
}
 
        function get_consignee_name($booking_no)
		{
		 	$sql="select to_party_name from transport_delivery_sublist where 	booking_no='$booking_no'  ";
			$rs=mysql_query($sql);
			$rscount=mysql_num_rows($rs);
			while($rsdata=mysql_fetch_object($rs))
		    {
		   	$to_party_name=$rsdata->to_party_name;
		    }
		  	return $to_party_name;
		} 
		
		function get_party_remarks($booking_no,$deliv_no,$load_no)
		{
		 echo "asasas".	$sql="select cust_remarks from delivery_conform_sublist where booking_no='$booking_no' and delivery_no='$deliv_no' and loading_no='$load_no'";
			$rs=mysql_query($sql);
			$rscount=mysql_num_rows($rs);
			while($rsdata=mysql_fetch_object($rs))
		    {
		   	$cust_remarks=$rsdata->cust_remarks;
		    }
		  	return $cust_remarks;
		} 
 
 $booking_no=$_GET['booking_no'];
 $deliv_no=$_GET['deliv_no'];
 $load_no=$_GET['load_no'];
 
 $booking_consignee_name=get_consignee_name($booking_no);
 $consignee_remarks=get_party_remarks($booking_no,$deliv_no,$load_no);
 
  $id=$_GET['edit_id'];
  $sql="select * from store_creation where id='$_GET[edit_id]'";
  $rs=mysql_query($sql);
  $rscount=mysql_num_rows($rs);
 
  while($rsdata=mysql_fetch_array($rs))
  {
	  $store_name=$rsdata['store_name'];
	  $branch_name_id=$rsdata['branch_id'];
	  $description=$rsdata['description'];
	
  }
?>

<style type="text/css">

.style2 {color: #FF0000}
.style7{font-family: Tahoma, Arial, Helvetica, sans-serif;font-size: 13px;}
.headings{ font-family:verdana; font-size:10px;}
.txt{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size:13px;}

.types_class { 
    height: 25px; 
    width: 200px; 
    background-color: transparent;  
    border-style: solid;  
    border-width: 0px 0px 1px 0px;  
    border-color:#CCC; 
    outline:0;
	font-size:14px;
  } 
  
</style>
 
 
<style> 
.textboxs {
    height: 25px;
    width: 275px;
    border: solid 1px #E5E5E5;
    outline: 0;
    font: normal 13px/100% Verdana, Tahoma, sans-serif;
    background: #FFFFFF url('bg_form.png') left top repeat-x;
    background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF));
    background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);
    box-shadow: rgba(0, 0, 0, 0.1) 0 0 8px;
    -moz-box-shadow: rgba(0, 0, 0, 0.1) 0 0 8px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.1) 0 0 8px;
}

.textbox:focus {
    border-color: #C9C9C9;
    -webkit-box-shadow: rgba(0, 0, 0, 0.15) 0 0 8px;
}   
</style> 

<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
input:focus {  border-color:#87BB07; }
select:focus {  border-color:#87BB07; } 
textarea:focus {  border-color:#87BB07; } 
</style>
    <table width="100%" >
  <tr>
    <td height="26" colspan="6" class="txt" style="font-size:14px;"><strong>Delivery Party Remarks</strong></td>
  </tr>
 
  <tr>
    <td width="106" height="30" align="left" class="field"></td>
    <td width="494" align="left" class="txt"><span class="style1"><strong>D</strong></span>elivery No&nbsp;<span class="style2 style1">*</span></td>
    <td width="344" class="style7 txt"><?php echo $_GET['deliv_no']; ?>&nbsp;</td>
    <td width="344" class="style7">&nbsp;</td>
  </tr>
  <tr>
    <td height="37" align="left" class="txt"></td>
    <td align="left" class="txt"><strong>C</strong>onsignee Name<span class="style2 style1">*</span>&nbsp;</td>
    <td class="style7"><?php echo $booking_consignee_name; ?>&nbsp;</td>
    <td class="style7">&nbsp;</td>
  </tr>
  <tr>
    <td height="34" valign="top" class="style7">&nbsp;</td>
    <td valign="top"  class="style7"><span class="txt"><strong>R</strong>emarks</span></td>
    <td>
    <textarea name="party_remarks" id="party_remarks" cols="45" rows="5" class="types_class" tabindex="3"  style="width:200px; height:50px;" ><?php if($consignee_remarks!='') { echo $consignee_remarks; }  ?></textarea>
    </td>
    <td  >&nbsp;</td>
  </tr>
  <tr>
  <td height="34" valign="top" class="style7">&nbsp;</td>
  <td valign="top" class="style7">&nbsp;</td>
  <td valign="top"  >&nbsp;</td>
  <td  >&nbsp;</td>
  </tr>
    <tr>
    <td colspan="6">
    <span style="color:#F00" class="headings">&nbsp;&nbsp;&nbsp;</span></td>
  </tr>
        <tr>  
    <td colspan="8" class="style7" align="center"><input type="button" name="action"  id="action"  value="<?php echo "ADD";  ?>" class="add_button" onClick="add_consignee_remarks('<?php echo $_GET['deliv_no']; ?>','<?php echo $booking_consignee_name; ?>','<?php echo $_GET['load_no']; ?>','<?php echo $_GET['booking_no']; ?>',party_remarks.value,'<?php echo $_GET['deliv_status']; ?>','<?php ?>',this.value)" style="
    background-color: #87BB07; color: #fff;border: 0px;      
    padding: 9px 15px 9px;
">&nbsp;&nbsp;</td>
            </tr>
  </table>   
</html>