<?php
	//Start session
	session_start();
	error_reporting(E_ALL ^ E_NOTICE ^E_WARNING);
	//Check whether the session variable SESS_MEMBER_ID is present or not
	if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) == '')) {
		header("location: ".$_SESSION['SESS_ROOTPATH']."index.php");
		exit();
	}
	/*if($_SESSION['SESS_BOOKING']==0) {
		header("location: logout.php");
		exit();
	}*/

?>


<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

  <head>
    <title>Barcode</title>
    <meta name="description" content=""/>
    <meta name="keywords" content=""/>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <script type="text/javascript" src="../javascript/jquery.js"></script>
    <script type="text/javascript" src="../javascript/jquery-barcode.js"></script>
    <script type="text/javascript" src="../javascript/barcode.js"></script>
    <script type="text/javascript" src="../javascript/jquery.autocomplete.js"></script>
    <script type="text/javascript" src="../javascript/jquery.sticktableheader.js"></script>
    <script type="text/javascript" src="../javascript/jquery.php_excel.js"></script>
    <script type="text/javascript" src="../javascript/picnet.table.filter.min.js"></script>
    <link rel="stylesheet" href="../css/jquery.autocomplete.css" type="text/css" ></link>
    <link rel="stylesheet" href="../css/style.css"  type="text/css"></link>
    <style>
      * {
          color:#000000;
          font-family:Arial,sans-serif;
          font-size:12px;
          font-weight:normal;
      }    
      #config{
          overflow: auto;
          margin-bottom: 10px;
      }
      .config{
          float: left;
          width: 200px;
          height: 250px;
          border: 1px solid #000;
          margin-left: 10px;
      }
      .config .title{
          font-weight: bold;
          text-align: center;
      }
      .config .barcode2D,
      #miscCanvas{
        display: none;
      }
      #submit{
          clear: both;
      }
      #barcodeTarget,
      #canvasTarget{
        margin-top: 20px;
      }  
	    .barcodeinp{
		  margin: 12px 23px;
		  }      
    </style>
  </head>
  <body>
  <div id="excel_interstep"  style=" display:none"></div>
  <div class="page">
    <?php include '../header.php';?>
    <div class="gap"></div>
  </div>
  <div class="left-panel">
    <?php include '../side_menu.php';?>
    <div class="gap"></div>
  </div>
  <div id="generator1">
    <div id="config"> 
      <table width="100%" border="0" align="center">
        <tr>
          <td  align="left">Width</td>
          <td ><input type="text" id="widthbr" name="widthbr" value="120"  /></td>
          <td align="left">Height <input type="text" id="heightbr" name="heightbr" value="70" /></td>
          <td >&nbsp;</td>
          <td  align="left">NoofCopy <input type="text" id="noofcopybr" name="noofcopybr" value="2" /></td>
          <td>&nbsp; </td>
          <td >&nbsp;</td>
          <td >&nbsp; </td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp; </td>
        </tr>
        <tr>
          <td align="left">From</td>
            <td>
              <select name="fromtype" style="width:100%" id="fromtype">
                <option value="" >--select--</option>
                <option value="Productreg" selected="selected">Product Reg.</option>
                <option value="order"  >Order Reg.</option>
                <option value="Packinglist" >Packing List</option>
                <option value="Invoice" >Invoice</option>
              </select>
            </td>
          <td><input type="text" id="valueid" name="valueid"/></td>
          <td colspan="3">
          <input type="button" id="search" class="button search" value="View" /> 
          <input type="button" id="searchpt" class="button searchpt" value="View PT" />
          <input type="button" onClick="generateBarcode();" id="generateBarcode" class="button generateBarcode" value="Gen. Barcode" /> 
          <input type="button" class="button excel" id="ex_excel"  value="Excel" />  <input type="button" class="button printpdf" id="printpdf"  value="PDF Print" /> <input type="button" id="addnew" value="Add Row" class="button" /></td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table>
    </div>
  </div>
  <div ></div> 
  <div class="right-panel">
    <div id="barcode">
      <div id="demo">
        <div id="form_bookdetails" ></div>
      </div>
    <div id="div_page" style="width:100%"></div>
    <!--<table width="50%" border="0">
      <thead>
          <tr>
            <td>Product Code</td>
            <td>Category</td>
            <td>Quantity</td>
            <td>BarCode/Sku</td>
            <td>Size</td>
            <td>Sku</td>
            <td>MRP</td>
          </tr>
      </thead>
      <tbody>
        <tr>
          <td><input type="text" name="productcode[]" class="barcodeinp productcode" placeholder="Product code"   /></td>
          <td><input type="text" name="category[]" class="category productcode" placeholder="Category"   /></td>
          <td><input type="text" name="qty[]"  class="qty" placeholder="Quantity"   /></td>
          <td><input type="text" name="barcodevalue[]" class="barcodeinp barcodevalue" placeholder="Barcode/ Sku"   />  </td>
          <td><input type="text" name="Size[]" class="Size" placeholder="Size"  /> </td>
          <td><input type="text" name="sku[]" class="sku" placeholder="SKU"  /></td>
          <td><input type="text" name="MRP[]" class="barcodeinp MRP" placeholder="MRP"   /></td>
        </tr>
      </tbody>
    </table>-->
  </div>
    <div id="generator" style="display:none">
      <div id="config">
        <div class="config">
          <div class="title">Type</div>
            <input type="radio" name="btype" id="ean8" value="ean8" ><label for="ean8">EAN 8</label><br />
            <input type="radio" name="btype" id="ean13" value="ean13"><label for="ean13">EAN 13</label><br />
            <input type="radio" name="btype" id="upc" value="upc"><label for="upc">UPC</label><br />
            <input type="radio" name="btype" id="std25" value="std25"><label for="std25">standard 2 of 5 (industrial)</label><br />
            <input type="radio" name="btype" id="int25" value="int25"><label for="int25">interleaved 2 of 5</label><br />
            <input type="radio" name="btype" id="code11" value="code11"><label for="code11">code 11</label><br />
            <input type="radio" name="btype" id="code39" value="code39"><label for="code39">code 39</label><br />
            <input type="radio" name="btype" id="code93" value="code93"><label for="code93">code 93</label><br />
            <input type="radio" name="btype" id="code128" value="code128" checked="checked"><label for="code128">code 128</label><br />
            <input type="radio" name="btype" id="codabar" value="codabar"><label for="codabar">codabar</label><br />
            <input type="radio" name="btype" id="msi" value="msi"><label for="msi">MSI</label><br />
            <input type="radio" name="btype" id="datamatrix" value="datamatrix"><label for="datamatrix">Data Matrix</label><br /><br />
        </div>   

        <div class="config">
          <div class="title">Misc</div>
            Background : <input type="text" id="bgColor" value="#FFFFFF" size="7"><br />
            "1" Bars : <input type="text" id="color" value="#000000" size="7"><br />
          <div class="barcode1D">
            bar width: <input type="text" id="barWidth" value="1" size="3"><br />
            bar height: <input type="text" id="barHeight" value="50" size="3"><br />
          </div>
          <div class="barcode2D">
            Module Size: <input type="text" id="moduleSize" value="5" size="3"><br />
            Quiet Zone Modules: <input type="text" id="quietZoneSize" value="1" size="3"><br />
            Form: <input type="checkbox" name="rectangular" id="rectangular"><label for="rectangular">Rectangular</label><br />
          </div>
          <div id="miscCanvas">
            x : <input type="text" id="posX" value="10" size="3"><br />
            y : <input type="text" id="posY" value="20" size="3"><br />
          </div>
        </div>
    
        <div class="config">
            <div class="title">Format</div>
            <input type="radio" id="css" name="renderer" value="css" checked="checked"><label for="css">CSS</label><br />
            <input type="radio" id="bmp" name="renderer" value="bmp"><label for="bmp">BMP (not usable in IE)</label><br />
            <input type="radio" id="svg" name="renderer" value="svg"><label for="svg">SVG (not usable in IE)</label><br />
            <input type="radio" id="canvas" name="renderer" value="canvas"><label for="canvas">Canvas (not usable in IE)</label><br />
          </div>
          
      </div>
    </div>
  
  </body>
</html>