<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");
 $jobcard_no=$_POST['in_jobcard_no_media'];
 $media_particular=$_POST['media_particular'];
	$sql_user="select sum(qty) as qty from  jobcard_sublist where jobcard_no='$jobcard_no' and particulars='$media_particular'";
		$rs_user=mysql_query($sql_user);
			while($rsdata_user=mysql_fetch_object($rs_user))
			{ 
			$qty=$rsdata_user->qty;
			}
			
			$sql_user="select sum(plan_qty) as media_qty from  media_sub_list where jobcard_no='$jobcard_no' and media_particular='$media_particular'";
		$rs_user=mysql_query($sql_user);
			while($rsdata_user=mysql_fetch_object($rs_user))
			{ 
			$media_qty=$rsdata_user->media_qty;
			}
			$balance = $qty-$media_qty;
			?>
<input type="text" name="order_qty" id="order_qty" readonly="readonly" onKeyUp="media_sub_clear_validation(this.id)" onkeypress="enterevent(event,'media_qty','media_qty')" tabindex="5"  class="types_class1 text style4 style5" style="width:100%; height:28px;" value="<?php echo $balance;?>" /><input type="hidden" name="order_qty_hid" id="order_qty_hid" value="<?php   echo $qty; ?>">