<?php 
session_name('CAKEPHP'); session_start();
$PageSecurity = 1;
include('config.php');
include('includes/ConnectDB.inc');
include('includes/function_lib.php');
include('includes/LanguageSetup.php');
include('includes/DateFunctions.inc');
?>
<style>	
/* CSS Document */
body{ margin:0px; padding:0px; background-color:#CCC; font-size:10px; font-family: Arial, Helvetica, sans-serif; color:#000; font-weight:normal;}
h1,h2,h3,h4,h5,p{ margin:0px; padding:0px;}
p{ text-align:left;}
.wrapper{
	width: 865px;
	/* [disabled]height:1220px; */
	background-color: #FFF;
	border: 1px solid #000;
	margin: auto;
	padding: 15px 90px 5px 70px;
}
.main{
	width: 860px;
	/* [disabled]height:1200px; */
	border: 1px solid #000;
	border-radius: 10px;
	padding-bottom:10px;
}
.div_first{
	width: 860px;
	/* [disabled]height:90px; */
	margin: auto;
	border-bottom: #000000 1px solid;
}
h2{
	font-size: 20px;
	font-weight:normal;
	font-family:Arial, Helvetica, sans-serif !important;
	
}
.div_second{ width:850px; border-bottom: #000000 1px solid; padding:5px;}
.div_third{width:860px; margin:auto; border-bottom: #000000 1px solid;}
.div_third .left{width:430px; float:left;}
.div_third .right{width:430px; float:left;}
.div_forth{
	width: 860px;
	margin: auto;

}


.div_fifth {}
.f12{ font-family:Arial, Helvetica, sans-serif; font-weight: bold; color:#000; font-size:12px;}
.f11{ font-family:Arial, Helvetica, sans-serif; color:#000; font-size:11px; line-height:20px;}
.f14{ font-family:Arial, Helvetica, sans-serif; color:#000; font-size:18px;}
.border_top{border-top:#000 1px solid;}
.border_bottom{border-bottom:#000 1px solid;}
</style>
<title>Monitoring Result</title>
<div class="wrapper">
<div class="main">

<div class="div_first">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
  <tbody>
  <tr>  
    <td valign="top" align="center"><h2>Item Bar Code Slip</h2></td>
  </tr>
  
  
  </tbody>
</table>
</div>


 

<div class="div_forth">
<table width="100%" cellpadding="5" cellspacing="3" border="0">
  
   
<?php
     $resultBar=DB_query("select mst_itemid,bar_from,bar_to from purchorderdetails where parantId='".$_REQUEST['id']."'",$db);
     while($rowBar=DB_fetch_array($resultBar))
     {
      echo "<tr>";
   $item_code=$s->GetFieldValue('item_master',"id='".$rowBar['mst_itemid']."'",'StockID');
 $i=1;
  $bar_from=$rowBar['bar_from'];
  $bar_to=$rowBar['bar_to'];
    while($bar_from <= $bar_to)
    { ?>
   <td><iframe src="Barcode.php?mm=<?php echo $item_code.'/'.str_pad($bar_from, 4,0,STR_PAD_LEFT); ?>" style="width:100%;"></iframe></td>
  <?php 
      
       if($i % 3==0)
       { ?>
       </tr><tr>
       <?php }
     
     $bar_from++;
    $i++; }
    echo " </tr>";
     }//while($rowBar=DB_fetch_array($resultBar))
 ?>
 
</table>
<div style="clear:both;"></div>
</div>
</div>
<script type="text/javascript" language="javascript">
  function toggle_visibility(id) 
  {
  
       var e = document.getElementById("print");
     //  var e1=document.getElementById("save")
      // e1.style.display='none';
         e.style.display = 'none';
           //alert(e.style.display);
         window.print();
    }
</script>