<div class="div_c mobi_top">

    <div class="title"><h2>资讯<?php
     if($_GET['menu']){echo "|".$news_type[$_GET['menu']];}?></h2></div>
    <?php if ($id || $race_id) { ?>
        <div class="panel-body">
            <div class="btn-group btn-group-justified">
                <a href="/index.php?c=race&action=race_msg&id=<?php echo $id?>" class="btn btn-info"> 
                    <i class="fa fa-book"></i><br/>详细信息</a>
            
                    <a href="index.php?c=article&action=list&menu=1&race_id=<?php echo $id?>" class="btn btn-info"> 
                        <i class="fa fa-table"></i><br/>
                    公告</a>
                    <a href="index.php?c=race&action=action=list&menu=2&race_id=<?php echo $id?>" class="btn btn-info">
                        <i class="fa fa-newspaper-o"></i><br/>
                    新闻</a>
                    <?php if($result[0]['photo_link']){?>
                    <a href="<?php echo $result[0]['photo_link']?>" target="_blank" class="btn btn-info">
                        <i class="fa fa-photo"></i><br/>
                    图片</a>
                <?php }?>
                    <?php if($result[0]['video_link']){?>
                    <a href="<?php echo $result[0]['video_link']?>" target="_blank" class="btn btn-info">
                        <i class="fa fa-video-camera"></i><br/>
                    视频</a> <?php }?>
                    <a href="/index.php?c=race&action=race_cert_search&race_id=<?php echo $id?>" class="btn btn-info">
                        <i class="fa fa-trophy"></i><br/>
                    证书</a>
                </div>
            </div> 
            <?php
        }
        ?>
    <div class=container><div class=row>
    <?php
    if ($result) {
        $cc = 0;
        foreach ($result as $row) {
            $cc = $cc+1;
        ?>
            <div class="col-md-4" >
                <div class="news_list">
                    <a href="index.php?c=article&action=article_msg&id=<?php echo $row['id'] ?>"> <h4><?php echo mb_substr(strip_tags($row['title']),0,34) ?></h4> <span style="font-size: 8pt"> <?php echo $row['add_time'] ?></span><br/>
                    <div style="clear: both">
                        <center>
                    <img src="<?php echo $row['img_url'] ?>" style="height: 100px; clear: both; ">
                </center><br/>
                   <font color="#778899"> <?php echo mb_substr(strip_tags($row['contant']),0,42)?>..</font></a>
                    </div>
                </div>
            </div>
        <?php
            if(!($cc%3) && $cc)
            {
                echo "</div></div><div class=container><div class=row>";
            }
        }
    }
    ?>  
    </div></div>    
</div>
<style type="text/css">
    .news_list{
    margin: 1%;
    background: #efefef;
    padding: 7%;
    border-radius: 3px;
    height: 400px;
    float: left;
    width: 100%; 
    border-radius: 5px;
}
    .news_list h4{color: #333333}
</style>