<style>
.style1 {border-top: solid 1px;border-top-color: #CCCCCC;}
.style21 {border-bottom: solid 1px;border-bottom-color: #CCCCCC;}
.style5 {border-left: solid 1px;border-left-color: #CCCCCC;}
.style3{ border-right: solid 1px;border-right-color: #CCCCCC; }
.style4 {border-bottom: solid 1px;border-bottom-color: #CCCCCC;}
.text{ font-family: Verdana; font-size:13px;}
#tot_amt::-webkit-input-placeholder { color:#666; }
</style>
<?php error_reporting(0);
/***************************** PREVIOUS NEXT CODING ****************************************/
 include("../../include/db.php");
 function get_total_qty($jobcard_no)
 {
	 	$sql_user="select sum(qty) as qty from  jobcard_sublist where jobcard_no='$jobcard_no'";
	$rs_user=mysql_query($sql_user);
	while($rsdata_user=mysql_fetch_object($rs_user))
	{ 
	$qty=$rsdata_user->qty;
	}
	return $qty;

 }
 $jobcard_no=$_POST['jobcard_no'];
	$sql_user="select * from  jobcard_main where jobcard_no='$jobcard_no'";
		$rs_user=mysql_query($sql_user);
			while($rsdata_user=mysql_fetch_object($rs_user))
			{ 
			$cust_name=$rsdata_user->cust_name;
			$created_by=$rsdata_user->created_by;
			$style_no=$rsdata_user->style_no;
			$style_name=$rsdata_user->style_name;
			$cust_po_no=$rsdata_user->cust_po_no;
			$job_type=$rsdata_user->job_type;
			$fabric_type=$rsdata_user->fabric_type;
			$combo=$rsdata_user->combo;
			$overall_value=$rsdata_user->overall_value;
			}
		$total_qty=get_total_qty($jobcard_no);
  ?>
  <table width="100%" cellpadding="0" cellspacing="0">
  <tr height="25px">
  <td width="12%" height="33" class="heading text">Customer Name &nbsp;</td>
  <td width="21%" class="heading text"><strong><?php echo $cust_name;?></strong><input type="hidden" class="types_class1" name="cust_name" id="cust_name" style="width:85%; height:100%;" readonly value="<?php echo $cust_name;?>"/></td>
  <td width="13%" class="heading text">Job Created by&nbsp;</td>
  <td width="21%" class="heading text"><strong><?php echo $created_by;?></strong><input type="hidden" class="types_class1" name="job_created" id="job_created" style="width:85%; height:100%;" readonly value="<?php echo $created_by;?>"/></td>
  <td width="16%" class="heading text">Customer PO No&nbsp;</td>
  <td width="17%" class="heading text"><strong><?php echo $cust_po_no;?></strong><input type="hidden" class="types_class1" name="cust_po" id="cust_po" style="width:85%; height:100%;" readonly value="<?php echo $cust_po_no;?>"/></td>
  </tr>
    <tr height="25px">
  <td height="36" class="heading text">Style No &nbsp;</td>
  <td class="heading text"><strong><?php echo $style_no;?></strong><input type="hidden" class="types_class1" name="style_no" id="style_no" style="width:85%; height:100%;" readonly value="<?php echo $style_no;?>"/></td>
  <td class="heading text">Style Name&nbsp;</td>
  <td class="heading text"><strong><?php echo $style_name;?></strong><input type="hidden" class="types_class1" name="style_name" id="style_name" style="width:85%; height:100%;" readonly value="<?php echo $style_name;?>"/></td>
  <td class="heading text">Combo&nbsp;</td>
  <td class="heading text"><strong><?php echo $combo;?></strong><input type="hidden" class="types_class1" name="combo" id="combo" style="width:85%; height:100%;" readonly value="<?php echo $combo;?>"/></td>
  </tr>
  <tr height="25px">
    <td height="36" class="heading text">Job Type &nbsp;</td>
    <td class="heading text"><strong><?php echo $job_type;?></strong></td>
  <td height="33"><span class="heading text">Fabric Type &nbsp;</span></td>
  <td height="33"><strong><?php echo $fabric_type;?></strong></td>
  <td class="heading text">Printed Qty<strong>&nbsp;</strong></td>
  <td class="heading text"><strong><?php echo $total_qty;?></strong><input type="hidden" class="types_class1" name="printed_qty" id="printed_qty" style="width:85%; height:100%;" readonly value="<?php echo $total_qty;?>"/></td>
  </tr>

  </table>
