<!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='javascript:window.location='index.php?ac=<?php echo $ac;?>&fileurl=plugin&type=<?php echo $type;?>&do=user_views&dutyid=<?php echo $dutyid;?>&id=<?php echo $row['id'];?>'">
                    <div class="fa fa-angle-left fa-2x"></div>
                </div>
                <h1 class="ut ub-f1 ulev-3 ut-s tx-c" tabindex="0">[<?php echo get_realname($row['user'])?>]进度录入</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&type=<?php echo $type;?>&do=log" method="post" name="formadd">
		<input type="hidden" name="view" value="add">
		<input type="hidden" name="did" value="<?php echo $dutyid;?>" />
		<input type="hidden" name="duid" value="<?php echo $row['id'];?>" />
		<div class="ub ub-ver">
			<div class="uinn-a6 sc-text  ulev-app1">
				完成进度
				<input type="range" name="progress" id="slider-2" value="10" min="0" max="100" data-highlight="true">
			</div>
			<div class="uinn-a6 sc-text  ulev-app1" id="users">
				备注
			   <textarea id="note" cols="40" rows="8" style="height:50px;" name="note" placeholder="备注"></textarea>
			</div>
			<div class="uinn-a6 sc-text  ulev-app1" id="users">
				完成内容
			   <textarea id="contents" 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&type=<?php echo $type;?>&do=user_views&dutyid=<?php echo $dutyid;?>&id=<?php echo $row['id'];?>';
	}
	
	function form_add(){
		if($("#contents").val()==""){
			alert("内容不能为空！");
			return (false);
		}
		document.formadd.submit();
	}
</script>   
</body>
</html>
