<div class="content">
  <div class="page-index">
    <div class="card">
     <div id="content1">
        <ul class="row">
            <li>  <a href="?c=race&action=race_cert_search&race_id=<?php echo $_GET['id']?>" >   <i class="fa fa-plus fa-4x"></i> <br/><br/><span>发布活动</span> </a></li>
            <li> <a href="?c=race&action=race_cert_search&race_id=<?php echo  $_GET['id']?>">  <i class="fa fa-book fa-4x"></i> <br/> <br/><span>管理活动</span> </a> </li>
            <li onclick="location.href='<?php echo $result[0]['photo_link']?>'"> <a href="#.">  <i class="fa fa-user fa-4x"></i> <br/> <br/> <span>我的报名</span> </a> </li>
            <li onclick="location.href='<?php echo $result[0]['photo_link']?>'"> <a href="#.">  <i class="fa fa-fire fa-4x"></i> <br/> <br/> <span>热门</span> </a> </li>
        </ul>
      </div>
    </div>
                 <?php
                                $sql_index_race = "select * from race where display = '1' order by id desc limit 0,4 ";
                                $result_index_race = $home->get_data($sql_index_race);
                                foreach ($result_index_race as $row)
                                {
                                    ?>
                  <div class="card">
                      <div valign="bottom" class="card-header color-white no-border"><?php echo $row['race_title']?></div>
                      <div class="card-content">
                          <div class="card-content-inner">
                              <p class="color-gray">发表于 <?php echo $row['add_time']?></p>
                            <a href="index.php?c=race&action=race_msg&id=<?php echo $row['id']?>"><img src="<?php echo $home->getimg($row['id'])?>" width="100%">
                              <p><?php echo $row['contant']?></p>
                            </a>
                          </div>
                      </div>
                      <div class="card-footer">
                          <!--<a href="#" class="link">赞</a>-->
                          <a href="index.php?c=race&action=race_msg&id=<?php echo $row['id']?>" class="link">更多</a>
                      </div>
                  </div>
              <?php } ?>
                 
              </div>
          </div>
      </div>
  </div>