<!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.0.min.css">
	<link rel="stylesheet" href="themes/css/ui-tab.css">
    <link rel="stylesheet" href="themes/css/ui-color.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>
	<title><?php echo news_type($type);?></title>
</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 ub uh-app4">
                <div class="ubb2 ub-fv ub-fh ub">
                    <div class="ub pos_re ub-fv ub-fh ub-f1">
                        <div class="ub ub-ac ub-fv ub-f1">
                            <div class="ub-f1 ub ub-ver ub-pc pos_re ub-fv" onClick="javascript:window.location='news.php?type=3'">
                                <div class="ulev-3 <?php if($type==3){?>t-blu<?php }else{?>t-gra8<?php }?> tx-c t-tit">
                                    公告
                                </div>
                                <div class="ub-img uwh-icon3 uabs-r-icon1 t-cur"></div>
                            </div>
                            <div class="ub-f1 ub ub-ver ub-pc pos_re ub-fv" onClick="javascript:window.location='news.php?type=4'">
                                <div class="ulev-3 <?php if($type==4){?>t-blu<?php }else{?>t-gra8<?php }?> tx-c t-tit">
                                    通知
                                </div>
                                <div class="ub-img t-cur uwh-icon3 uabs-r-icon1"></div>
                            </div>
                            <div class="ub-f1 ub ub-ver ub-pc pos_re ub-fv" onClick="javascript:window.location='news.php?type=5'">
                                <div class="ulev-3 <?php if($type==5){?>t-blu<?php }else{?>t-gra8<?php }?> tx-c t-tit">
                                    大事记
                                </div>
                                <div class="ub-img uwh-icon3 uabs-r-icon1 t-cur"></div>
                            </div>
                            <div class="ub-f1 ub ub-ver ub-pc pos_re ub-fv" onClick="javascript:window.location='news.php?type=1'">
                                <div class="ulev-3 <?php if($type==1){?>t-blu<?php }else{?>t-gra8<?php }?> tx-c t-tit">
                                    新闻
                                </div>
                                <div class="ub-img uwh-icon3 uabs-r-icon1 t-cur"></div>
                            </div>
                            
                        </div>
                        
                    </div>
                    
                </div>
            </div>
	    </div>
		<!-- /header -->

	    <div data-role="content" id="content">

 			<div style="padding-left:5px; padding-right:5px;">
					<?php 
					if(news_list($type,$_USER->id)=='暂无内容'){
						echo '<div id="error-bg"></div>';
					}else{
						echo '<ul data-role="listview" data-inset="true">';
						echo news_list($type,$_USER->id);
						echo '</ul>';
					}
					?>
				
			</div>
 
	    </div><!-- /content -->

	    <div data-role="footer"  data-position="fixed" data-tap-toggle="false">
				 <div class="ub c-bla c-m12 tab-b t-wh">
				 	
				 	<div class="ub-f1 ub ub-ver" onClick="javascript:window.location='index.php'">
						<div class="ub-f1 ub-img5 tp-homeon"></div>
						<div class="uinn ulev-2 tx-c">桌面</div>
					</div>
					
					<div class="ub-f1 ub ub-ver tab-act"  onClick="javascript:window.location='news.php'">
						<div class="ub-f1 ub-img5 tp-menu"></div>
						<div class="uinn ulev-2 tx-c">通知</div>
					</div>
					<div class="ub-f1 ub ub-ver" onClick="javascript:window.location='sms.php'">
						<div class="ub-f1 ub-img5 tp-talk"></div>
						<div class="uinn ulev-2 tx-c">微消息</div>
					</div>
					<div class="ub-f1 ub ub-ver" onClick="javascript:window.location='index.php?ac=list&fileurl=user'">
						<div class="ub-f1 ub-img5 tp-info"></div>
						<div class="uinn ulev-2 tx-c">我</div>
					</div>
				 </div>
	    </div><!-- /footer -->
	</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>
