<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript" src="../jscript/chainedselects.js"></script>
<script language="javascript" src="../jscript/jquery.1.4.2.js"></script>
<script language="JavaScript" src="../jscript/gen_validatorv4_2.js"  type="text/javascript" xml:space="preserve"></script>
<script language="JavaScript" src="../jscript/alert_message.js"  type="text/javascript"></script>


<?php
include('../include/session.php');

?>


<style>
input.imagebutton{
	background-color:#E1E1E1;
	width: 100px;
	height: 24px;
	border:solid;
	border-width:1px;
	border-color:#0047D4;
	cursor:pointer;
	color:#000000;
	font:bold 12px Arial;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	-moz-box-shadow:0px 0px 0px #CCC;
	-webkit-box-shadow:0px 0px 0px #CCC;
	box-shadow:0px 0px 0px #CCC;
	
}

input.imagebutton:hover{
	background-color:#E4E4E4;
	width: 100px;
	height: 24px;
	border:solid;
	border-width:2px;
	border-color:#0047D4;
	cursor:pointer;
	color:#000000;
	font:bold 12px Arial;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	-moz-box-shadow:5px 5px 5px #666;
	-webkit-box-shadow:5px 5px 5px #666;
	box-shadow:5px 5px 5px #666;
}

input.text100{
    background:#FFF;
    border: 1px solid #E6E6E6;
    padding: 2px;
    width:100px;
	height:20px;
	color:#000;
}
input.text100:focus{
     border-color:#39A751;
}

select.select120{
    background:#FFF;
    border: 1px solid #E6E6E6;
    padding: 2px;
    width:120px;
	height:24px;
	color:#000;
}
select.select120:focus{
     border-color:#39A751;
}
label.label_std{
	margin-left:5px;
    line-height:20px;
	padding-top:6px;
    color:#000;
    text-shadow:1px 1px 1px #fff;
    font:bold 12px Arial;
}
</style>

<script type="text/javascript">
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
</script>

<?php
include('../include/store_item_select_header.php');

$receive_id = $_GET['receive_id'];
?>

</head>

<body onLoad="initCS();">
    
    <form action='receive_edit_add_line_save.php' method="get" name="form1" target="_top" id="form1">
    <table width="430" border="0" align="left" cellpadding="0" cellspacing="0" class="list2" id="select_table">
      <tr>
        <td width="111">
          <div >
            <select name="category0" id="category0"  class="select160"  >
            </select>
            <input type="hidden" name="index" id="index" />
          </div></td>
        <td width="252"><select name="store_item_id_select0" id="store_item_id_select0" class="select250" onchange="document.getElementById('qty_text').disabled = false"
              >
        </select>
        <input name="store_item_id" id="store_item_id" type="hidden" value="" /></td>
        <td width="57"><input type="text" name="qty_text" id="qty_text" style="width:50px;"  disabled="disabled"/></td>
       </tr>
    
    <tr>
      <td height="45" colspan="3" align="center">
        <input type="hidden" name="receive_id" id="receive_id"  value="<?php echo $receive_id ?>"/>
        <input name="add_button" id='add_button' type="submit" value="Add product" class="imagebutton" />
        <input name="button2" type="button" id="button2" class="imagebutton" onclick="MM_goToURL('parent','../store/edit_receive_note.php?receive_id=<?php echo $receive_id ?>'); return document.MM_returnValue" value="Cancel" /></td>
    </tr>
  </table>
</form>
<script language="JavaScript" type="text/javascript" xml:space="preserve">
  var frmvalidator  = new Validator("form1");
  frmvalidator.EnableMsgsTogether();
  frmvalidator.addValidation("qty_text","req","Please enter quantity."); 
</script>
</body>
</html>