<?php
if($_GET['race_id'])
{
	$menu_id = $_GET['race_id'];
}
else
{
	$menu_id = $_GET['id'];
}
?>
<div id="race_top">
    <?php
    if ($id || $race_id) {
        ?>
<div class="panel-body">
  <div class="btn-group btn-group-justified">
    <a href="index.php?c=race&action=dashboard&id=<?php echo $menu_id?>" class="btn btn-info"> 
      <i class="fa fa-book"></i><br/>概况</a>
        <a href="index.php?c=race&action=edit&id=<?php echo $menu_id?>" class="btn btn-info"> 
        <i class="fa fa-file"></i><br/>
      基本信息</a>
    <a href="index.php?c=race&action=input_list&race_id=<?php echo $menu_id; ?>" class="btn btn-info"> 
    <i class="fa fa-table"></i><br/>
  表单</a>
    <a href="index.php?c=race&action=race_reg_member_list&race_id=<?php echo $menu_id; ?>" class="btn btn-info">
    <i class="fa fa-user"></i><br/>
  名单</a>
    <a href="index.php?c=race&action=race_group_edit&id=<?php echo $menu_id; ?>" class="btn btn-info">
    <i class="fa fa-group"></i><br/>
  组别</a>
      <a href="index.php?c=race&action=race_team&id=<?php echo $menu_id; ?>" class="btn btn-info">
    <i class="fa fa-sitemap"></i><br/>
  团队</a>
    <a href="index.php?c=update&action=update&race_id=<?php echo $menu_id; ?>" class="btn btn-info"> 
    <i class="fa fa-photo"></i><br/>
  照片</a>
    <a href="index.php?c=race&action=race_financial&race_id=<?php echo $menu_id; ?>" class="btn btn-info">  <i class="fa fa-money"></i><br/>收入</a>
    <a href="index.php?c=race&action=race_check&race_id=<?php echo $menu_id; ?>" target="_blank" class="btn btn-info">
    <i class="fa fa-pencil"></i><br/>
  打卡地址</a>
    <a href="index.php?c=race_admin&action=race_check_list&race_id=<?php echo $menu_id; ?>" target="_blank" class="btn btn-info">
    <i class="fa fa-book"></i><br/>
  打卡列表</a>
    <a href="index.php?c=race&action=race_msg&id=<?php echo $menu_id; ?>" target="_blank" class="btn btn-info">
    <i class="fa fa-eye"></i><br/>
  预览</a>
    <a href='index.php?c=race&action=del&id=<?php echo $menu_id; ?>' class="btn btn-danger">
    <i class="fa fa-trash-o"></i><br/>
  删除</a>
  </div>
</div> 
        <?php
    }
    ?>
</div>
<br/>
<style>
	#race_top_nav{width:100%; margin-left:auto;margin-right:auto;line-height:50px; clear:both; height:50px; margin-top:20px;background:#F3F3F3; border :1px solid #f0f0f0;}
  #race_top_nav a{text-decoration: none;}
	#race_top_nav li {float:left;  font-size:12pt;list-style-type:none;margin-left:10px; margin-right:10px; padding:3px;}
  #race_top_nav li:hover{background: #0093dd;}
</style>