<!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" 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&type=<?php echo $type?>&do=views&id=<?php echo $dutyid?>'">
                    <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">
				<?php if($row['user']==$_USER->id){?>
                    <div class="ub-img icon-edit umw2 umh4"  onClick="javascript:window.location='index.php?ac=<?php echo $ac;?>&fileurl=plugin&do=log&dutyid=<?php echo $dutyid;?>&type=<?php echo $type;?>'"></div>
				<?php }?>
                </div>
				
       </div>
	  
</div>
		<!-- /header -->
  <div data-role="content" id="content">
		
				<div class="ub ub-ver">
					<div class="uinn-a6 sc-text  ulev-app1">
						查看[<?php echo get_realname($row['user'])?>]任务进度
					</div>
					<div class="ub ub-ver uinn-a1 ub-f1">
						<div class="uba bc-border c-wh">
							<ul class="ubb ub bc-border bc-text ub-ac uinn-a9">
								<li class="uw-infor ut-s sc-text  umar-r-infor ulev-app1">
									任务周期
								</li>
								<li class="ub-f1 ulev-app1">
									<?php echo $row['startdate'];?>到<?php echo $row['enddate'];?>
								</li>
							</ul>
							<ul class="ubb ub bc-border bc-text ub-ac uinn-a9">
								<li class="uw-infor ut-s sc-text  umar-r-infor ulev-app1">
									附件文档
								</li>
								<li class="ub-f1 ulev-app1">
									<? if($row['appendix']!=''){?>
									有附件
									<? }else{?>
									无附件
									<? }?>
								</li>
							</ul>
							
							<ul class=" ub bc-text ub-ac uinn-a9">
								<li class="uw-infor ut-s sc-text  umar-r-infor ulev-app1">
									备注
								</li>
								<li class="ub-f1 ulev-app1">
									<?php echo $row['note'];?>
								</li>
							</ul>
							
						</div>
					</div>
			<div class="ui-body ui-body-a ui-corner-all" style="margin-left:9px; margin-right:9px;">
	          <p><?php echo $row['content'];?></p>
	      </div>
					
			</div>
		<div class="ub ub-ver">
		<?php
		$sql = "SELECT * FROM ".DB_TABLEPRE."duty_log WHERE dutyid='".$dutyid."' and duid='".$row['id']."' order by id desc";
		$resulta = $db->fetch_all($sql);
		foreach ($resulta as $rows) {
		?>
		
					<div class="uinn-a6 sc-text  ulev-app1">
						进度信息(<?php echo $rows['date'];?>)
					</div>
					<div class="ub ub-ver uinn-a1 ub-f1">
						<div class="uba bc-border c-wh">
							<ul class="ubb ub bc-border bc-text ub-ac uinn-a9">
								<li class="uw-infor ut-s sc-text  umar-r-infor ulev-app1">
									完成进度
								</li>
								<li class="ub-f1 ulev-app1">
									<input type="range" name="slider-2" id="slider-2" value="<?php echo $rows['progress'];?>" min="0" max="100" data-highlight="true">
								</li>
							</ul>
							<ul class="ubb ub bc-border bc-text ub-ac uinn-a9">
								<li class="uw-infor ut-s sc-text  umar-r-infor ulev-app1">
									发布人
								</li>
								<li class="ub-f1 ulev-app1">
									<?php echo get_realname($rows['uid'])?>
								</li>
							</ul>
							<ul class="ubb ub bc-border bc-text ub-ac uinn-a9">
								<li class="uw-infor ut-s sc-text  umar-r-infor ulev-app1">
									发布时间
								</li>
								<li class="ub-f1 ulev-app1">
									<?php echo $rows['date'];?>
								</li>
							</ul>
							<ul class="ubb ub bc-border bc-text ub-ac uinn-a9">
								<li class="uw-infor ut-s sc-text  umar-r-infor ulev-app1">
									附件
								</li>
								<li class="ub-f1 ulev-app1">
									<? if($rows['appendix']!=''){?>
									有附件
									<? }else{?>
									无附件
									<? }?>
								</li>
							</ul>
							<ul class="ubb ub bc-border bc-text ub-ac uinn-a9">
								<li class="uw-infor ut-s sc-text  umar-r-infor ulev-app1">
									备注
								</li>
								<li class="ub-f1 ulev-app1">
									<?php echo $rows['note'];?>
								</li>
							</ul>
							<ul class=" ub bc-text ub-ac uinn-a9">
								<li class="uw-infor ut-s sc-text  umar-r-infor ulev-app1">
									完成内容
								</li>
								<li class="ub-f1 ulev-app1">
									<?php echo $rows['content'];?>
								</li>
							</ul>
							
						</div>
					</div>
			</div>

		
		<?php } ?>
		</div>
</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;";
    }
</script> 
</body>
</html>
