<!DOCTYPE html>
<html>
	<head>
	<title><?php echo $type_name;?></title>
	<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'">
                    <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=<?php echo $ac;?>&fileurl=plugin'" class="uinn-a15 ub-f1 rdi ulev-4 c-wh sc-text-active">
                            图书管理
                        </div>
                        <input type="radio" name="rdi1" class="uhide" value="">
                        <div onClick="javascript:window.location='index.php?ac=<?php echo $ac;?>&fileurl=plugin&do=list1'" class="uinn-a15 ub-f1 rdi ulev-4 t-wh">
                            己借阅
                        </div>
                        <input type="radio" name="rdi1" class="uhide" value="">
                        <div onClick="javascript:window.location='index.php?ac=<?php echo $ac;?>&fileurl=plugin&do=list2'" class="uinn-a15 ub-f1 rdi ulev-4 t-wh">
                          借阅审批
                        </div>
                    </div>
                </div>
				
                <div class="nav-btn nav-bt" id="nav-right">
                    <!--<div class="ub-img icon-edit umw2 umh4"></div> -->
                </div>
				
       </div>
	  
</div>
		<!-- /header -->
  <div data-role="content" id="content">
		<div style="padding-left:5px; padding-right:5px;">
				<?php 
				if(!$result){
					echo '<div id="error-bg"></div>';
				}
				?>
				<ul data-role="listview" data-inset="true">
					<?php
					foreach ($result as $row) {
						echo '<li onClick=javascript:window.location="index.php?ac='.$ac.'&fileurl=plugin&do=views&id='.$row['id'].'" class="ui-icon-arrow-r ui-btn-icon-right">'.$row['bookname'].'<span class="ui-li-count">';
						if($row[type]!='1' && $row[type]!='3'){
							echo '可借阅';
						}else{
							echo "己借出";
						}
						echo '</span></li>';
					}
					?>
				</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;";
    }
</script> 
</body>
</html>
