<div class="dash_k">
    <table width="100%">
        <tr>
            <td class="num">1.</td>
            <td><center>活动未开始报名阶段，请完善您的信息并进行预热</center></td>
        </tr>
        <tr>
            <td width="50" class="dash_title">活动筹备</td>
            <td class="dash_content">
                <div class="dash_btn">
                    <center>
                        <a href="index.php?c=article&action=add&race_id=<?php echo $id?>" target="_blank"><i class="fa fa-book"></i><br/>
                        添加资讯
                        <br/>
                        <p>赛前动员</p>
                    </a>
                    </center>
                </div>

                <div class="dash_btn">
                    <center>
                        <a href="index.php?c=race&action=edit&id=<?php echo $id?>" target="_blank"><i class="fa fa-file"></i><br/>
                        填写基本资料</a>
                    </center>
                </div>

                        <div class="dash_btn">
                    <center>
                        <a href="index.php?c=race&action=race_group_edit&id=<?php echo $id?>">
                        <i class="fa fa-users"></i><br/>
                        修改组别
                    </a>
                    </center>
                </div>

                        <div class="dash_btn">
                    <center>
                         <a href="index.php?c=race&action=input_list&race_id=<?php echo $id?>">
                        <i class="fa fa-th-list"></i><br/>
                        修改表单
                    </a>
                    </center>
                </div>

                            <div class="dash_btn">
                    <center>
                         <a href="index.php?c=update&action=update&race_id=<?php echo $id?>">
                        <i class="fa fa-photo"></i><br/>
                        修改封面图
                    </a>
                    </center>
                </div>

            </td>
            <td>
                <b>资讯</b>
                <br/>
                <?php 
                if($article_list)
                {
                    foreach ($article_list as $row) {
                        ?>
                        <a href="index.php?c=article&action=edit&id=<?php echo $row['id']?>"><?php echo $row['title']?> <i class="fa fa-pencil"></i></a> <br/>
                        <?php
                    }
                }
                ?>
            </td>
        </tr>
    </table>
</div>
<center><i class="fa fa-arrow-down"></i></center>

<div class="dash_k <?php if(get_now()<$race_msg['sign_start_time']){echo 'da_red';}?>">
    <table width="100%">
        <tr>
            <td class="num">2.</td>
            <td><center>报名时间：[<?php echo $race_msg['sign_start_time']?>-><?php echo $race_msg['sign_end_time']?>],可以适当调整报名人数及其他</center></td>
        </tr>
        <tr>
            <td width="50" class="dash_title">活动报名</td>
            <td class="dash_content">
                <div class="dash_btn">
                    <center>
                        <a href="index.php?c=article&action=add&race_id=<?php echo $id?>" target="_blank"><i class="fa fa-book"></i><br/>
                        添加资讯
                    </a>
                    </center>
                </div>


                <div class="dash_btn">
                    <center>
                         <a href="index.php?c=race&action=race_group_edit&id=<?php echo $id?>">
                        <i class="fa fa-users"></i><br/>
                        修改组别
                    </a>
                    </center>
                </div>

                <div class="dash_btn">
                    <center>
                         <a href="index.php?c=race&action=race_reg_member_list&race_id=<?php echo $id?>">
                        <i class="fa fa-list"></i><br/>
                        名单
                    </a>
                    </center>
                </div>

            </td>
            <td>
                <b>报名情况</b>
                <br/>
                报名总人数：<span id="reg1">loading..</span><br/>
                成功人数：<span id="reg4">loading..</span><br/>
                未付款人数：<span id="reg3">loading..</span><br/>
                未审核人数：<span id="reg2">loading..</span><br/>
            </td>
        </tr>
    </table>
</div>
<center><i class="fa fa-arrow-down"></i></center>


<div class="dash_k <?php if(get_now()>$race_msg['sign_start_time'] && get_now()<$race_msg['start_time']){echo '';}else{echo 'da_red';}?>">
    <table width="100%">
        <tr>
            <td class="num">3.</td>
            <td><center>您可以查看您的收入、名单及添加资讯</center></td>
        </tr>
        <tr>
            <td width="50" class="dash_title">报名结束</td>
            <td class="dash_content">
                <div class="dash_btn">
                    <center>
                        <a href="index.php?c=article&action=add&race_id=<?php echo $id?>" target="_blank"><i class="fa fa-book"></i><br/>
                        添加资讯
                    </a>
                    </center>
                </div>


                <div class="dash_btn">
                    <center>
                         <a href="index.php?c=race&action=race_reg_member_list&race_id=<?php echo $id?>">
                        <i class="fa fa-list"></i><br/>
                        名单
                    </a>
                    </center>
                </div>

                <div class="dash_btn">
                    <center>
                         <a href="index.php?c=race&action=race_financial&race_id=<?php echo $id?>">
                        <i class="fa fa-credit-card"></i><br/>
                        收入
                    </a>
                    </center>
                </div>

            </td>
            <td><!--
                <b>收入情况</b>
                <br/>
                总收入：<br/>
                成功人数：<br/>-->
            </td>
        </tr>
    </table>
</div>
<center><i class="fa fa-arrow-down"></i></center>

<div class="dash_k <?php if(get_now()>$race_msg['start_time'] && get_now()<$race_msg['end_times']){echo '';}else{echo 'da_red';}?>">
    <table width="100%">
        <tr>
            <td class="num">4.</td>
            <td><center>用户在进行的时候可以进行打卡签到，用手机展示您当前活动的打卡二维码，由系统记录会员的成绩</center></td>
        </tr>
        <tr>
            <td width="50" class="dash_title">活动进行中。。</td>
            <td class="dash_content">




                         <div class="dash_btn">
                    <center>
                        <a href="index.php?c=race&action=race_check&race_id=<?php echo $id?>" target="_blank"><i class="fa fa-qrcode"></i><br/>
                        签到地址
                    </a>
                    </center>
                </div>


                <div class="dash_btn">
                    <center>
                          <a href="index.php?c=race_admin&action=race_check_list&race_id=<?php echo $id?>" >
                        <i class="fa fa-file-text"></i><br/>
                        打卡列表
                    </a>
                    </center>
                </div>
            </td>
            <td>
                <!--
                <b>打卡情况</b>
                <br/>
                参与人数：<br/>
                打卡总人数：<br/>
                打卡次数：<br/>-->
            </td>
        </tr>
    </table>
</div>
<center><i class="fa fa-arrow-down"></i></center>


<div class="dash_k <?php if(get_now()>$race_msg['end_times'] ){echo '';}else{echo 'da_red';}?>">
    <table width="100%">
        <tr>
            <td class="num">5.</td>
            <td><center>活动结束了，用户可以在官网打印电子版的证书，查询成绩，我们可以做赛事总结。</center></td>
        </tr>
        <tr>
            <td width="50" class="dash_title">活动结束</td>
            <td class="dash_content">
       
                <div class="dash_btn">
                    <center>
                        <a href="index.php?c=race&action=race_cert_search" target="_blank"><i class="fa fa-qrcode"></i><br/>
                        成绩及证书
                    </a>
                    </center>
                </div>

  <div class="dash_btn">
                    <center>
                        <a href="index.php?c=article&action=add&race_id=<?php echo $id?>" target="_blank"><i class="fa fa-book"></i><br/>
                        添加资讯
                    </a>
                    </center>
                </div>
            </td>
            <td><!--
                <b>收入情况</b>
                <br/>
                总收入：<br/>
                成功人数：<br/>-->
            </td>
        </tr>
    </table>
</div>


<style type="text/css">
    .dash_k{width: 90%; margin:20px; margin-left: auto; margin-right: auto;border: 1px solid #f0f0f0; padding:10px; border-radius: 10px;}
    .dash_title{font-size: 1.3em; color: #191919; font-weight: 100}
    .dash_btn{float: left; width: 100px; font-weight: 100;}
    .dash_btn p{color: #888888;font-size: 0.9em; background: #f9f9f9}
    .num{font-size: 2em; color: orange; font-weight: bold;}
    .da_red{background: #ffe0e0}
</style>
<script type="text/javascript">
    function reg(types)
    {
        url = "index.php?c=ajax&action=dashboard&race_id=<?php echo $id?>&get_type="+types;
        $.get(url,function(data)
        {
            $('#reg'+types).html(data);
        });
    }

    reg(1);
    reg(4);
    reg(3);
    reg(2);
</script>