
<?php
$special_orders='no';
$temp_table_name = $_SESSION['db_prefix']."_mix_design_lines_temp";
include('../include/store_item_select_header_mix_design.php');

$table_name = $_SESSION['db_prefix']."_packaging_design";
$position_query = "SELECT design_no, packaging_design FROM $table_name ORDER BY packaging_design ASC";
$arrId0 = array ();
$arrName0 = array ();
$position_result = $con->query($position_query);
if ($position_result!="") {
	$position_num = mysqli_num_rows($position_result);
	$b = 0;
while ($b < $position_num) {
		$row = mysqli_fetch_assoc($position_result);
		$arrId0[$b] = $row['design_no'];
		$arrName0[$b] = $row['packaging_design'];
		$b++;
	}
	}

?>
 
</head>
<?php include('../include/wait.php') ?>


<body onLoad="initCS(); MM_showHideLayers('wait','','hide')" onFocus="MM_showHideLayers('wait','','hide');"  onBlur="MM_showHideLayers('wait','','hide');">
<div class="page_middle_frame">
<form id="form1" name="form1" method="get" action="new_mix_designWizbase.php" >
<?php
$line_num=0;
include('../include/store_item_select_table_mix_design.php');
?>
<div class="wizard_frame">
Estimated number of items to be produced with this mix design:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <input name="number_text" id="number_text" type="text" onKeyPress="return numbersonly(this, event)" class='text60'; value="<?php echo $_SESSION['number'] ?>"><br>
<br>
<!--Packing design to be used:&nbsp;&nbsp;
<select name="packaging_select" class="selectbox160" >
  <option value="<?php echo $_SESSION['packaging_name'] ?>"><?php echo $_SESSION['packaging_name'] ?></option>
  <option value="  "> </option>
  <?php
        	for ($i = 0; $i < count($arrId0); $i++) {
    		echo "<option value=".$arrId0[$i].">".$arrName0[$i]."</option>";
		}	
?>
</select>-->
</div>
  <table width="590" height="50" align="left" id="table_button_bar">
          <tr>
            <td width="117"><input type="button" name="lastprev_button" class="imagebutton" value="Prev" onClick="needToConfirm = false;MM_showHideLayers('wait','','show');MM_goToURL('parent','new_mix_designWizbase.php?s=&amp;p=1');return document.MM_returnValue" /></td>
            <td width="82"><input name="error" type="hidden" id="error" value="0" />
              <input name="p" type="hidden" id="p" value="2" />
              <input name="s" type="hidden" id="s" value="2" /></td>
            <td width="132">&nbsp;</td>
            <td width="125" align="left"><input name="cancelbutton" type="button" class="imagebutton" id="cancelbutton" onClick="needToConfirm = false; cancel_confirmation(1, '../production/production_main.php?date=0&subCatSelect=Tiles');" value="Cancel" /></td>
            <td width="110" align="left"><input type="submit" name="next_button" id="next_button" class="imagebutton" value="Next" onClick="needToConfirm = false; MM_showHideLayers('wait','','show'); validate();  " tabindex="5" /></td>
          </tr>
        </table>
</form>

<!--form validation-->
  <script language="JavaScript" type="text/javascript" xml:space="preserve">
  var frmvalidator  = new Validator("form1");
  frmvalidator.EnableMsgsTogether();
     
  for (i = 0; i < 50; i++) {
	frmvalidator.addValidation("store_item_text"+i,"req","- store item on line "+(i+1)+".");
	frmvalidator.addValidation("quantity_text"+i,"req","- quantity  on line "+(i+1)+".");
	frmvalidator.addValidation("number_text","req","- estimated number.");
	//frmvalidator.addValidation("packaging_select","req","- packaging design.");	
	
 }
    
  </script>

</div>

</body>