<!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&do=list2'">
                    <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 $row['filename'];?></h1>
				
                <div class="nav-btn nav-bt" id="nav-right" onClick="javascript:window.location='index.php?ac=<?php echo $ac;?>&fileurl=plugin&id=<?php echo $row['id'];?>&keys=4&do=views2'">
					<?php if($row[type]=='3'){?>
                    <div class="ub-img icon-ok umw2 umh4"></div>
					<?php }?>
                </div>
				
       </div>
	  <div id="error" style="display:none;">档案借阅信息操作成功！</div>
</div>
		<!-- /header -->
  <div data-role="content" id="content" style="padding-bottom:20px;">
				<?php if($row[type]=='1'){?>
				<div data-role="navbar">
				<ul>
				
				<li><a href="#" onClick="javascript:window.location='index.php?ac=<?php echo $ac;?>&fileurl=plugin&id=<?php echo $row['id'];?>&keys=3&do=views2'">批准</a></li>
				<li><a href="#" onClick="javascript:window.location='index.php?ac=<?php echo $ac;?>&fileurl=plugin&id=<?php echo $row['id'];?>&keys=2&do=views2'">拒绝</a></li>
				
					
				</ul>
			</div>
			<?php }?>
				<div class="ub ub-ver">
					<div class="uinn-a6 sc-text  ulev-app1">
						档案信息
					</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 trim($row['filenumber']);?>
								</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($row['appperson']);?>
								</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($row['examperson']);?>
								</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 trim($row['appdate']);?>
								</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 trim($row['examdate']);?>
								</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
									if($row['type']=='1'){
										echo '待审';
									}elseif($row['type']=='2'){
										echo '未通过';
									}elseif($row['type']=='3'){
										echo '借阅中';
									}elseif($row['type']=='4'){
										echo '己还';
									}
									?>
								</li>
							</ul>
							
						</div>
					</div>		
			</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($fromture!=''){?>
		$("#error").fadeIn("slow");
		$("#content").hide();
		window.setTimeout(display,3000);
		<?php }?>
    }
	function display(){
		$("#error").hide();
		window.location='index.php?ac=<?php echo $ac;?>&fileurl=plugin&do=list2';
	}
</script> 
</body>
</html>
