<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="author" content="GeeksLabs">
  <link rel="shortcut icon" href="img/favicon.png">

  <title>waychar<?php echo $option_setting['ver']?></title>

  <!-- Bootstrap CSS -->    
  <link href="themes/admin/css/bootstrap.min.css" rel="stylesheet">
  <!-- bootstrap theme -->
  <link href="themes/admin/css/bootstrap-theme.css" rel="stylesheet">
  <!--external css-->
  <!-- font icon -->
  <link href="themes/admin/css/elegant-icons-style.css" rel="stylesheet" />
  <link href="themes/admin/css/font-awesome.min.css" rel="stylesheet" />    
  <!-- full calendar css-->
  <link href="themes/admin/assets/fullcalendar/fullcalendar/bootstrap-fullcalendar.css" rel="stylesheet" />
  <link href="themes/admin/assets/fullcalendar/fullcalendar/fullcalendar.css" rel="stylesheet" />
  <!-- easy pie chart-->
  <link href="themes/admin/assets/jquery-easy-pie-chart/jquery.easy-pie-chart.css" rel="stylesheet" type="text/css" media="screen"/>
  <!-- owl carousel -->
  <link rel="stylesheet" href="themes/admin/css/owl.carousel.css" type="text/css">
  <link href="themes/admin/css/jquery-jvectormap-1.2.2.css" rel="stylesheet">
  <!-- Custom styles -->
  <link rel="stylesheet" href="themes/admin/css/fullcalendar.css">
  <link href="themes/admin/css/widgets.css" rel="stylesheet">
  <link href="themes/admin/css/style.css" rel="stylesheet">
  <link href="themes/admin/css/style-responsive.css" rel="stylesheet" />
  <link href="themes/admin/css/xcharts.min.css" rel=" stylesheet"> 
  <link href="themes/admin/css/jquery-ui-1.10.4.min.css" rel="stylesheet">
  <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.4.0/jquery.js"></script>
  <script type="text/javascript" src="js/main.js"></script>
  </head>

  <body>
  <!--mobi -->
  <!--mobi -->
<?php if(check_mobi() == true){?>
<link type="text/css" href="css/mobi.css" rel="stylesheet"/>
<style type="text/css">
    .mobi_top{margin-top: 70px;}
</style>
  <div class="page-group">
      <!-- 你的html代码 -->
      <div class="page">
          <header class="bar bar-nav">
            <div class="nav_back">
               <?php if($back_url){?>
                  <a class="button button-link button-nav pull-left" href="<?php echo $back_url?>"><span class="icon icon-left"></span><返回</a>
              <?php } 
              ?>
            </div>
            <div class="nav_title">
<div class="title">  <center>
              <?php
              if($title)
              {
                echo $title;
              }else
              {
                ?>
            <img src="images/logo.png">
              <?php
              }
              ?>
            </center>
        </div>
            </div>
            <div class="nav_button">
              <?php if($other_button)
              {
                echo $other_button;
               }
            else
              {?>
                  <button  onclick="location.href='index.php?c=race&action=add'" style="float:right; padding: 10px; ">发布</button>
              <?php } ?>
            </div>
          </header>

          <?php if($action!='race_msg'){ ?>
          <nav class="bar bar-tab">
                          <a href="index.php?c=home" style="color: #1d83c2">
                  <i class="fa fa-plus fa-2x"></i><br/>
                  <span class="tab-label">首页</span>
              </a>

              <a href="index.php?c=race&action=add">
                  <i class="fa fa-plus fa-2x"></i><br/>
                  <span class="tab-label">发布</span>
              </a>

              <a  href="index.php?c=race&action=race_q_list">
                  <i class="fa fa-star fa-2x"></i><br/>
                  <span class="tab-label">活动</span>
              </a>
              <a href="index.php?c=home&action=index">
                  <i class="fa fa-user fa-2x"></i><br/>
                  <span class="tab-label">我</span>
              </a>
          </nav>
        <?php }
        }else{ ?>
      
  <!--desktop-->
    <section id="container" class="">
      <header class="header dark-bg">
        <div class="toggle-nav">
          <div class="icon-reorder tooltips" data-original-title="Toggle Navigation" data-placement="bottom"><a href="index.php" target="_blank"><i class="fa fa-home"></i></a>  <a href="index.php?c=home&action=admin_login_out"><i class="fa fa-sign-out"></i></a> </div>
        </div>
        <a href="index.php?c=home" class="logo">waychar System <font size="-2"><?php echo $option_setting['ver']?></font></a> 
      </header>     
      <aside>
        <div id="sidebar"  class="nav-collapse ">
          <!-- sidebar menu start-->
          <ul class="sidebar-menu">                
            <li class="active">
              <a class="" href="index.php?c=race">
                <i class="icon_house_alt"></i>
                <span>管理首页</span>
              </a>
            </li>
            <li>
              <a class="" href="index.php?c=race&action=race_list">
                <i class="icon_table"></i>
                <span>赛事</span>
              </a>
            </li>
            <li>
              <a class="" href="index.php?c=user&action=list">
                <i class="icon_profile"></i>
                <span>会员</span>
              </a>
            </li>
            <li>
              <a class="" href="index.php?c=article&action=admin">
                <i class="icon_documents_alt"></i>
                <span>资讯</span>
              </a>
            </li>

            <li>
              <a href="index.php?c=home&action=admin_login_out">
                <i class="icon_key_alt"></i>
                <span>退出</span>
              </a>
            </li>
                  </ul>
                </div>
              </aside>
    <section id="main-content">
      <section class="wrapper"> 
        <?php } ?>