 <br/>
   <div class="content">
    <div class="page-index">
     <?php
        if ($result) {
            foreach ($result as $row) {
            $state= $race->get_state($row['start_time'],$row['end_time'],$row['sign_start_time'],$row['sign_end_time']);
            ?>
            <br/>
   <div class="card facebook-card">
      <div class="card-header no-border">
        <div class="facebook-name"><?php echo $row['race_title']?></div>
        <div class="facebook-date"><?php echo cut_str($row['start_time'],10)?></div>
      </div>
      <div class="card-content">
         <a href="index.php?c=race&action=race_msg&id=<?php echo $row['id']?>">
        <img src="<?php echo $race->getimg($row['id'])?>" width="100%">
    </a>
    </div>
     <div class="card-footer no-border"><?php echo $state?>
    </div>
    </div>
            <?php
        }
    }
     ?>
     <div class="content-block"> 
        <br/>
        <center>
      <p class="buttons-row">
    <a href="index.php?c=race&action=race_q_list&page=<?php echo $prv_page?>" class="button color-blue" style="color: white"><< 上一页</a>
    <a href="index.php?c=race&action=race_q_list&page=<?php echo $next_page?>" class="button color-blue" style="color: white">更多 >></a>

</p>
</center>
</div>
    </div>
    </div>
</div>

<style type="text/css">
    .time{background-color: orangered; color: white; font-size: 15pt;width: 40%; float: right; padding: 4px;}
</style>