
<head>



<!--jscript-->
<script language="JavaScript" src="../jscript/numbers_only.js"  type="text/javascript"></script>  


<?php

$table_name = $_SESSION['db_prefix']."_store_items";
$mitek_query = "SELECT store_item_id, item_name, unit, price FROM $table_name WHERE subCategory='Mitek' AND class='' ORDER BY item_name";
$mitek_result = mySQL_query($mitek_query);
$mitek_num = mysql_num_rows($mitek_result);

?>

</head>

<?php include('../include/wait.php') ?>
<body onLoad="MM_showHideLayers('wait','','hide')" onFocus="MM_showHideLayers('wait','','hide');"  onBlur="MM_showHideLayers('wait','','hide');">

<div class="page_middle_frame">
<form action="captureJobWizbase.php?p=5&s=4" method="post">
<table id="tableMain" width="595">
    <!--begin of tableMain-->
    <tr>
      <td><!--center of tableMain-->

        <div class="scroll_frame_medium" style="height:340px; width:640px;">
          <table width="599">
               <tr>
               <td colspan="4"><label class="label_std" style="font-size:14px;">eCoProducts:</label></td>
             </tr>
             <?php 
				  $i=0;
				  $_SESSION['list_3'] = $mitek_num;
				  while ($i<$mitek_num) { 
					    $_SESSION['item_id'.$i] = mysql_result($mitek_result, $i, "store_item_id");
						$item_name = mysql_result($mitek_result, $i, "item_name"); 
						$unit = mysql_result($mitek_result, $i, "unit"); 
						$_SESSION['mitek_price'.$i] = mysql_result($mitek_result, $i, "price");		
				 ?>
             <tr>
               <td colspan="2"><label class="label_std" ><?php echo $item_name ?>
                 <input type="hidden" name="item_id_<?php echo $i?>" id="item_id_<?php echo $i?>" value="<?php echo $_SESSION['item_id'.$i] ?>">
               </label></td>
               <td width="148"><label for="textfield"></label>
               <input name="quantity_text_<?php echo $i?>" type="text" class="text60" id="quantity_text_<?php echo $i?>" style="text-align:right" onKeyPress="return numbersonly(this, event)"  value="<?php echo $_SESSION['quantity_'.$i] ?>" autocomplete="off" onBlur="<?php if ($i==$mitek_num-1) { ?> document.getElementById('next_button').focus();<?php } ?>" autofocus >
               &nbsp;&nbsp;<?php echo $unit ?></td>
               <td width="180">&nbsp;</td>
             </tr>
             <?php
			  $i++;
             }
             ?>
           </table>
         </div>
      </td>
      </tr>
      <tr>
      <td><table width="590" height="50" align="center" 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','captureJobWizbase.php?s=&amp;p=3');return document.MM_returnValue" /></td>
          <td width="115">&nbsp;</td>
          <td width="99"><input name="p" type="hidden" id="p" value="4" />
            <input name="s" type="hidden" id="s" value="4" />
            </span></td>
          <td width="125" align="right"><input name="cancelbutton" type="button" class="imagebutton" id="cancelbutton" onClick="needToConfirm = false; cancel_confirmation(1, '../production/production_main.php');" value="Cancel" /></td>
          <td width="110" align="right"><input type="submit" name="next_button" id="next_button" class="imagebutton" value="Next" tabindex="0" onClick="needToConfirm = false;  MM_showHideLayers('wait','','show');" /></td>
        </tr>
      </table></td>
      </tr>
      </table>
</form>
</div>
</body>      