<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link rel="stylesheet" type="text/css" href="template/default/content/css/style.css">
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<script src="template/default/tree/js/admincp.js?SES" type="text/javascript"></script>
<script charset="utf-8" src="eweb/kindeditor.js"></script>

<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body class="bodycolor">
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="0" class="small">
  <tr>
    <td class="Big"><img src="template/default/content/images/notify_new.gif" align="absmiddle"><span class="big3"> 办公用品入库</span>&nbsp;&nbsp;&nbsp;&nbsp;
	<span style="font-size:12px; float:right;margin-right:20px;">
	
	<a href="admin.php?ac=goods_stock&fileurl=<?php echo $fileurl?>" style="font-size:12px;"><<返回列表页</a></span>
    </td>
  </tr>
</table>
<form name="save" method="post" action="?ac=goods_stock_add&do=save&fileurl=goods">
	<input type="hidden" name="savetype" value="add" />
<table class="TableBlock" border="0" width="90%" align="center" style="border-bottom:#4686c6 solid 0px;">
    
	<tr>
	  <td nowrap class="TableContent">类型</td>
	  <td class="TableData"><input name="type" type="radio" value="1" checked="checked" />初始建账
	  <input name="type" type="radio" value="3" />盘点</td>
	  </tr>
	<tr>
      <td width="15%" nowrap class="TableContent"> 备注：</td>
      <td class="TableData">
        <textarea name="content" cols="60" rows="4" class="BigInput" id="content"></textarea></td>
    </tr>
	
	<tr>
      <td nowrap class="TableHeader" colspan="2"><b>&nbsp;物品设置</b></td>
    </tr>
	<tr>
      <td nowrap class="TableContent"> 入库物品：</td>
      <td class="TableData"><div style="float:left; width:100%; background-color:#FFFFFF; border:1px solid #999999; height:260px;overflow:hidden;overflow-y:scroll;">
	  
	  <table width="95%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="6%" height="30" align="center" bgcolor="#CCCCCC">ID</td>
          <td width="39%" height="30" align="center" bgcolor="#CCCCCC">名称</td>
          <td width="21%" height="30" align="center" bgcolor="#CCCCCC">规格</td>
          <td width="11%" height="30" align="center" bgcolor="#CCCCCC">单位</td>
		  <td width="10%" height="30" align="center" bgcolor="#CCCCCC">入库数量</td>
          <td width="13%" height="30" align="center" bgcolor="#CCCCCC">单价</td>
        </tr>
		<?foreach ($result as $row) {?>
        <tr>
          <td height="20" align="center">
		  <input type="hidden" name="id[]" value="<?php echo $row['id']?>" />
		  <input type="hidden" name="goods_type[]" value="<?php echo $row['goods_type']?>" />
		  <input type="hidden" name="number[]" value="<?php echo $row['number']?>" />
		  <?php echo $row['id']?></td>
          <td height="20"><input name="title[]" type="text" class="BigInput" style="width: 220px;" value="<?php echo $row['title']?>" /></td>
          <td height="20"><input name="specification[]" type="text" class="BigInput" style="width: 120px;" value="<?php echo $row['specification']?>" /></td>
          <td height="20"><input name="unit[]" type="text" class="BigInput" style="width: 60px;" value="<?php echo $row['unit']?>" /></td>
		  <td height="20"><input name="purchase[]" type="text" class="BigInput" style="width: 40px;" value="1" onKeyUp="value=value.replace(/[^0-9]/g,'');" /></td>
          <td height="20"><input name="price[]" type="text" class="BigInput" style="width: 40px;" value="<?php echo $row['price']?>" onKeyUp="value=value.replace(/[^0-9^.]/g,'');" />RMB</td>
        </tr>
		<?}?>
        <tr>
          <td height="30" colspan="6"><?php echo showpage($num,$pagesize,$page,$url)?></td>
          </tr>
      </table>
	  </div></td>
    </tr>
	
	
   
 
    <tr align="center" class="TableControl">
      <td colspan="2" nowrap height="35">

		<input type="submit" name="Submit" value="保存信息" class="BigButton">      </td>
    </tr>
  </table>
</form>
</body>
</html>
