<?php
require_once('../common.php');
require_once('head.php');
if ($userrow['xm']=="" or $userrow['xb']=="" or $userrow['xh']=="" or $userrow['ch']=="" or $userrow['sr']=="" or $userrow['zz']=="" or $userrow['phone']=="" or $userrow['mail']=="" or $userrow['xz']=="" or $userrow['ah']=="" or $userrow['tc']=="") {
  exit("<script language='javascript'>alert('请先完善资料！');window.location.href='xgzl.php';</script>");
}
?>
<!DOCTYPE html>
<title>班级中心-<?=C('webname')?> </title>
<body>
<!--main content start-->
  <section id="container" class="">
      <section id="main-content">
          <section class="wrapper">
              <!--state overview start-->
              <div class="inbox-head">
              <center>
                          <h3>班级中心</h3>
                      </div><br>
              <div class="col-lg-12">
                      <section class="panel">
                          <header class="panel-heading">
                             快捷导航
                          </header>
                          <div class="panel-body"> 
                             <center>
                               <a href="gg.php" class="btn btn-danger">班级公告</a>           
                               <a href="grzl.php" class="btn btn-default">个人资料</a>
                              <a href="xgmm.php" class="btn btn-primary">修改密码</a>
                               <a href="xgzl.php" class="btn btn-success">修改资料</a>
                               <a href="txl.php" class="btn btn-info">同学录</a>
                               <a href="bjxc.php" class="btn btn-warning">班级相册</a>
                               <a href="lyb.php" class="btn btn-danger">留言板</a>
                               <?php 
                               if ($userrow['active']==9) {
                                 echo '<a href="/admin" class="btn btn-warning">后台中心</a>';
                               }
                               ?>
                 
                 </center> 
                          </div>         
                                     
              </div>
               </section>
              </div>
              
              <!--state overview end-->
                      
                          <div class="col-lg-6">
                              <!--widget start-->
                              <section class="panel">
                                  <div class="twt-feed blue-bg">
                                      <h1><?=$userrow['xm']?></h1>
                                      <p><?=$userrow['mail']?></p>
                                      <a href="#">
                                          <img src="http://q1.qlogo.cn/g?b=qq&nk=<?=$userrow['qq']?>&s=160" alt="">
                                      </a>
                                  </div>
                                  <div class="weather-category twt-category">
                                      <ul>
                                          <li>
                                              <h5><?=$userrow['user']?></h5>
                                              用户名
                                          </li>
                                          <li>
                                              <h5>
                                              <?=$userrow['xm']?>
                                              </h5>
                                              姓名
                                          </li>
                                          <li>
                                              <h5><?php
                                              if ($userrow['xb']==1) {
                                    echo "男";
                                  }
                                  elseif ($userrow['xb']==2) {
                                    echo "女";
                                  }
                                  else{
                                    echo "人妖";
                                  }
                                               ?></h5>
                                             性别
                                          </li>
                                      </ul>
                                  </div>
                                  </section>
                                   </div>
                         
                          <div class="col-lg-6">
                      <section class="panel">
                          <header class="panel-heading">
                             班级公告
                          </header>
                          <div class="panel-body"> 
                                      <p><?=C('bjgg')?></p> 
                                      <hr>
                                    <a href="gg.php" class="btn btn-danger">想查看更多公告请点这里</a>  
              </div>
               </section>
              </div>
                                  
                         

                              <!--widget end-->
                         
<?php
require_once('foot.php');
?>
  </body>
</html>
