<!DOCTYPE html>
<html>
	<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="themes/jquery/css/themes/default/jquery.mobile-1.4.5.min.css">
	<link rel="stylesheet" href="themes/home/css/fonts/font-awesome.min.css">
    <link rel="stylesheet" href="themes/home/css/ui-box.css">
    <link rel="stylesheet" href="themes/home/css/ui-base.css">
    <link rel="stylesheet" href="themes/home/css/ui-color.css">
    <link rel="stylesheet" href="themes/home/css/icon.css">
    <link rel="stylesheet" href="themes/home/css/control.css">
    <link rel="stylesheet" href="themes/home/css/main.css">
	<script src="themes/jquery/js/jquery.js"></script>
	<script src="themes/jquery/js/jquery.mobile-1.4.5.min.js"></script>
</head>
<body class="um-vp c-wh " ontouchstart>
	<div data-role="page" id="showpage" data-quicklinks="true" class="ub ub-ver " >
      <div data-role="header" id="header" data-position="fixed" data-fullscreen="true" data-tap-toggle="false" >
	  <div class="uh bc-text-head ub bc-head">
                <div class="nav-btn" id="nav-left" onClick="javascript:window.location='index.php?ac=<?php echo $ac;?>&fileurl=plugin'">
                    <div class="fa fa-angle-left fa-2x"></div>
                </div>
                <h1 class="ut ub-f1 ulev-3 ut-s tx-c" tabindex="0">用品领用</h1>
				
                <div class="nav-btn nav-bt" id="nav-right" onClick="form_add();">
					<div class="ub-img icon-ok umw2 umh4"></div>
                </div>
				
       </div>
	   <div id="error" style="display:none;">你的信息处理成功！</div>
	  
</div>
		<!-- /header -->
  <div data-role="content" id="content">
		<form action="index.php?ac=<?php echo $ac;?>&fileurl=plugin&do=add" method="post" name="formadd" style="margin-bottom:20px;">
	    <input type="hidden" name="id" value="<?php echo $row['id'];?>">
		<input type="hidden" name="view" value="add">
		<input type="hidden" name="goods_type" value="<?php echo $row['goods_type']?>" />
		<input type="hidden" name="number" value="<?php echo $row['number']?>" />
		<input type="hidden" name="title" value="<?php echo $row['title']?>" />
		<input type="hidden" name="specification" value="<?php echo $row['specification']?>" />
		<input type="hidden" name="unit" value="<?php echo $row['unit']?>" />
		<input type="hidden" name="price" value="<?php echo $row['price']?>" />
		<input type="hidden" name="department" value="<?php echo get_depauseridname($_USER->id,1);?>" />
		<div class="ub ub-ver">
			<div class="uinn-a6 sc-text  ulev-app1">
				领用数量
				<input id="recordnum" name="recordnum" value="" type="text" placeholder="领用数量" onKeyUp="value=value.replace(/[^0-9]/g,'');">
			</div>
			<div class="uinn-a6 sc-text  ulev-app1" id="users">
				备注
			   <textarea id="content" cols="40" rows="8" style="height:50px;" name="content" placeholder="备注"></textarea>
			</div>
			
		</div>
	  </form>
  </div>


	</div><!-- /page -->
 <script type="text/javascript"> 
    window.onload = function(){ 
        var heg=document.getElementById("header").offsetHeight;
		var content=document.getElementById("content"); 
		content.style.cssText="margin-top:"+heg+"px;";
		<?php if($formlist!=''){?>
		$("#error").fadeIn("slow");
		$("#nav-right").hide();
		$("#content").hide();
		window.setTimeout(display,4000);
		<?php }?>
    }
	function display(){
		$("#error").hide();
		window.location='index.php?ac=<?php echo $ac;?>&fileurl=plugin&do=goods_view';
	}
	function form_add(){
		if($("#recordnum").val()==""){
			alert("领用数量不能为空！");
			return (false);
		}
		document.formadd.submit();
	}
</script>   
</body>
</html>
