<!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=apps&fileurl=plugin'">
                    <div class="fa fa-angle-left fa-2x"></div>
                </div>
                <div class="ub-f1 ub-ac ub-pc uinn">
                    <div class="ub uc-a1  b-wh uba1 tx-c">
                        <input type="radio" name="rdi1" class="uhide" value="">
                        <div onClick="javascript:window.location='index.php?ac=appsread&fileurl=plugin'" class="uinn-a15 ub-f1 rdi ulev-4 <?php if($tpltype==''){?>c-wh sc-text-active<?php }else{?>t-wh<?php }?>">
                            全部
                        </div>
                        <input type="radio" name="rdi1" class="uhide" value="">
                        <div onClick="javascript:window.location='index.php?ac=appsread&fileurl=plugin&tpltype=1'" class="uinn-a15 ub-f1 rdi ulev-4 <?php if($tpltype==1){?>c-wh sc-text-active<?php }else{?>t-wh<?php }?>">
                            己阅
                        </div>
                        <input type="radio" name="rdi1" class="uhide" value="">
                        <div onClick="javascript:window.location='index.php?ac=appsread&fileurl=plugin&tpltype=2'" class="uinn-a15 ub-f1 rdi ulev-4 <?php if($tpltype==2){?>c-wh sc-text-active<?php }else{?>t-wh<?php }?>">
                          未阅
                        </div>
                    </div>
                </div>
				
                <div class="nav-btn nav-bt" id="nav-right">
                    <!--<div class="ub-img icon-edit umw2 umh4"></div>  -->
                </div>
				
       </div>
	  <div id="error" style="display:none; ">流程信息审批成功！</div>
</div>
		<!-- /header -->
  <div data-role="content" id="content">
  		<?php 
		if(!$result){
			echo '<div id="error-bg"></div>';
		}
		?>
		<div style="padding-left:5px; padding-right:5px;">
				<ul>
				<?php
				foreach ($result as $row) {
				if($row['readdate']!=''){
					$readtype=1;
				}else{
					$readtype=2;
				}
				?>
				<li class="ubb ub bc-border t-bla ub-ac lis" data-index="0"  onClick="javascript:window.location='index.php?ac=appsread&fileurl=plugin&do=views&appsid=<?php echo $row['appid'];?>&tpltype=<?php echo $row['tpltype'];?>&type=4&rid=<?php echo $row['rid'];?>&readtype=<?php echo $readtype;?>'">
					<ul class="ub-f1 ub ub-pj ub-ac">
						<ul class="ub-f1 ub ub-ver marg-l">
							<li class="bc-text ub ub-ver ut-m line1"><?php echo $row['title']?></li>
						</ul>
						<li class="fa fa-angle-right ulev2"></li>
					</ul>
				</li>
				<?php } ?>
				
				</ul>
		</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;";
		<?php if($_GET['error']!=''){?>
		$("#error").fadeIn("slow");
		window.setTimeout('$("#error").hide();',2000);
		<?php }?>
    }
</script> 
</body>
</html>
