<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="yes" />
<title><?=$da['pagetitle']?></title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="webmain/css/cssm.css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/js.js"></script>
<script type="text/javascript" src="<?=$da['p']?>/task/mode/modeview.js"></script>
<script type="text/javascript" src="web/res/js/jquery-imgview.js"></script>
<script>
var mid = '<?=$da['arr']['mid']?>',modenum='<?=$da['arr']['modenum']?>',ismobile=1;
js.changeuser=function(na,lx){
	$('body').chnageuser({
		'changetype':lx,
		'titlebool':get('header_title'),
		'idobj':get(na+'_id'),
		'nameobj':get(na)
	});
}
</script>
<style>
.stitle{padding:10px;border-bottom:1px #dddddd solid;font-size:16px;}
.ydullist{display:inline-block;width:100%;}
.ydullist li{float:left;width:16.6%;text-align:center;padding:5px 0px;font-size:12px;display:block;line-height:25px;padding-top:10px}
.ydullist li:active{ background-color:#eeeeee}
.ydullist li img,.faces{height:30px;width:30px;border-radius:15px}
.ydullist li span{font-size:12px;color:#888888;}

.pinglun td{padding:10px 0px}
.pinglun .dt,.pinglun .act{font-size:12px;color:#888888;padding-top:5px}
.pinglun .name{color:#555555}
.pinglun tr{border-bottom: 1px solid #eeeeee;}
.pinglun .sm{padding-top:8px;font-size:14px}
.faces{margin-right:10px}
.createtable{width:98%}
.status{position: absolute;left:5px;top:5px;display:}
td.tdys1{border:1px #e5e5e5 solid;text-align:center;padding:0px 5px}
.divinput{padding:0px}
.datesss{background:url(mode/icons/date.png) no-repeat right;cursor:pointer;}
.btn{width:auto;height:30px;line-height:10px;}
.statustext{position: absolute;right:5px;top:5px;width:80px;height:80px;overflow:hidden; border:3px red solid;border-radius:50%;font-size:20px;text-align:center;line-height:80px;color:red;transform:rotate(-45deg);-o-transform:rotate(-45deg);-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);}
</style>

</head>
<body style="background-color:#fefefe;">


<?php
$cheikbo = false;
if($isheader==1)echo '<div class="header" id="header_title"><span onclick="js.back()" class="header-back"></span>'.$da['title'].'</div><div style="height:46px;overflow:hidden"></div>';
?>
<div class="padding10" style="position:relative">
	<?php
	if($da['arr']['isflow']==1){
		echo '<div class="statustext" style="color:'.$da['arr']['statuscolor'].';border-color:'.$da['arr']['statuscolor'].'">'.$da['arr']['statustext'].'</div>';
	}
	echo $da['arr']['contview']
	?>
</div>

<div class="padding10">
	
	<?php 
	if($da['arr']['isflow']==1){
		$flowinfor = $da['arr']['flowinfor'];
	?>

	<div>
	
		<div align="center">
		<form name="myform">
		<table border="0" width="100%" class="tabled1" style="border-collapse:collapse;" cellspacing="0" cellpadding="0">
		<tr height="40" bgcolor="#E1F4F0">
			<td class="tdys1"><div align="right" style="color:#555555">状态：</div></td>
			<td class="tdys1"><div align="left"><?=$flowinfor['nstatustext']?></div></td>
		</tr>
		<tr height="40">
			<td class="tdys1" nowrap><div align="right" style="color:#555555">处理流程：</div></td>
			<td class="tdys1"><div align="left" style="padding:5px 0px"><?=$flowinfor['flowcoursestr']?></div></td>
		</tr>
		<?php
		//判断是否可撤回
		if($da['arr']['ischehui']>0){
		?>
		<tr height="40">
			<td class="tdys1"><div align="right" style="color:#555555">撤回：</div></td>
			<td class="tdys1" style="padding:5px"><div align="left"><input class="webbtn" onclick="c.chehui(this)"  value="撤回上步处理" type="button"></div></td>
		</tr>
		<?php 
		}
		if($flowinfor['ischeck']==1){
			$cheikbo = true;
		?>
		<tr height="40">
			<td class="tdys1"><div align="right" style="color:#555555"><font color=red>*</font>处理人：</div></td>
			<td class="tdys1"><div align="left"><?=$flowinfor['nowcourse']['name']?>(<?=$flowinfor['nowcourse']['nowcheckname']?>)</div></td>
		</tr>
		
		<tr height="40">
			<td class="tdys1" nowrap><div align="right" style="color:#555555"><font color=red>*</font>处理动作：</div></td>
			<td class="tdys1"><div align="left">
			<?php
			$s = '';
			foreach($flowinfor['courseact'] as $k=>$act){
				if($k>0)$s.='<label><input name="check_status"  type="radio" value="'.$k.'">'.$act[0].'</label> &nbsp; ';
			}
			echo $s;
			?>
			</div></td>
		</tr>
		
		<?php
		foreach($flowinfor['checkfields'] as $chef=>$chefv){
		if($chefv['showinpus']==1){
		?>
		<tr>
			<td class="tdys1"><div align="right" style="color:#555555"><font color=red>*</font><span fieidscheck="<?=$chef?>"><?=$chefv['name']?></span>：</div></td>
			<td class="tdys1" style="padding:5px;" ><div align="left"><?=$chefv['inputstr']?></div></td>
		</tr>
		<?php
		}else if($chefv['showinpus']==2){
			echo '<tr style="display:none"><td><span fieidscheck="'.$chef.'">'.$chefv['name'].'</span></td></tr>';
		}}
		//是否可转办显示
		if($flowinfor['iszhuanban']==1){
		?>
		
		<tr>
			<td class="tdys1"><div  align="right" style="color:#555555">转给：</div></td>
			<td class="tdys1" style="padding:5px"><div align="left">
			<table width="98%" cellpadding="0" border="0"><tr><td width="100%"><input placeholder="" class="inputs" style="width:98%" id="zhuanbanname" readonly type="text" name="zhuanbanname"><input name="zhuanbannameid" id="zhuanbanname_id" type="hidden"></td><td nowrap><a href="javascript:;" style="border-right:1px #0AA888 solid" onclick="js.changeclear('zhuanbanname')" class="webbtn">×</a><a href="javascript:;" onclick="js.changeuser('zhuanbanname','changeuser')" class="webbtn">选择</a></td></tr></table>
			</div></td>
		</tr>
		
		<?php
		}
		if($flowinfor['ischange']==1){
		?>
		<tr>
			<td class="tdys1"><div  align="right" style="color:#555555"><font color=red>*</font>下一步处理人：</div></td>
			<td class="tdys1" style="padding:5px"><div align="left">
			<table width="98%" cellpadding="0" border="0"><tr><td width="100%"><input placeholder="选择下一步[<?=$flowinfor['nextcourse']['name']?>]处理人" class="inputs" style="width:98%" id="nextname" readonly type="text" name="nextname"><input name="nextnameid" id="nextname_id" type="hidden"></td><td nowrap><a href="javascript:;" style="border-right:1px #0AA888 solid" onclick="js.changeclear('nextname')" class="webbtn">×</a><a href="javascript:;" onclick="js.changeuser('nextname','changeusercheck')" class="webbtn">选择</a></td></tr></table>
			</div></td>
		</tr>
		<?php }?>
		
		<tr>
			<td class="tdys1"><div  align="right" style="color:#555555">说明：</div></td>
			<td class="tdys1" style="padding:5px"><div align="left"><textarea class="inputb" name="check_explain" style="width:95%;height:60px;"></textarea></div></td>
		</tr>
		
		<tr>
			<td class="tdys1">&nbsp;</td>
			<td class="tdys1" style="padding:5px"><div align="left"><input class="webbtn" onclick="check(this)"  value="提交处理" type="button">&nbsp;<span id="msgview"></span></div></td>
		</tr>
		
		<?php }?>
		</table>
		</form>
		</div>
		<div class="blank10"></div>
	</div>
	




	<?php
	}
	$logarr = $da['arr']['logarr'];
	if($logarr && $da['arr']['isgbjl']==0){
	?>
	<div onclick="c.changeshow(0)" class="stitle zhu">处理记录(<?=count($logarr)?>) <img align="absmiddle" height="16" width="16" src="images/xiangyou1.png"> </div>
	<div id="showrecord0" class="pinglun" style="display:none">
	<table width="100%">
	<?php 
	foreach($logarr as $k=>$rs){
		$s = '<tr valign="top">';
		$s.= '<td align="center" width="45"><img src="'.$rs['face'].'" class="faces"></td>';
		$s.= '<td>';
		$s.= '<div class="name">'.$rs['name'].'<span class="act">['.$rs['actname'].']</span><font color="'.$rs['color'].'">'.$rs['statusname'].'</font></div>';
		$s.= '<div class="dt">'.$rs['optdt'].'</div>';
		$s.= '<div class="sm">'.$rs['explain'].'</div>';
		$s.= '</td>';
		$s.= '</tr>';
		echo $s;
	}
	?>
	</table>
	</div>
	<div class="blank10"></div>
	<?php 
	}
	
	//是否关闭查阅记录
	if($da['arr']['isgbcy']==0){
	
	?>
	<div onclick="location.reload()"  class="stitle zhu aui-border-b">查阅记录</div>
	<div><ul class="ydullist"><?php
		foreach($da['arr']['readarr'] as $k=>$rs){
			echo '<li onclick="showchayue(\''.$rs['optdt'].'\',\''.$rs['stotal'].'\')"><img src="'.$rs['face'].'" align="absmiddle"><br><span>'.$rs['name'].'</span></li>';
		}
	?></ul></div>
	<?php 
	}
	//显示其他页面
	if($da['spagepath']!=''){
		include_once($da['spagepath']);
	}
	?>	
</div>
<?php
if($cheikbo){
?>
<script type="text/javascript" src="web/res/js/jquery-changeuser.js"></script>
<link rel="stylesheet" type="text/css" href="mode/plugin/css/jquery-rockdatepicker.css"/>
<script type="text/javascript" src="mode/plugin/jquery-rockdatepicker.js"></script>
<script type="text/javascript" src="web/res/js/jquery-rockupload.js"></script>
<?php }?>
</body>
</html>