<div class="content_wrapper">

    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-12">
                <aside>
                    <header><i class="fa fa-fw fa-file"></i>任务配置</header>
                    <section>
                        <div class="container-fluid">
                            <div class="row">
                                <div class="col-sm-12">
                                    <div class="table-responsive">
                                        <table id="example" class="table table-striped table-bordered table-hover" cellspacing="0" width="100%">
                                            <thead>
                                            <tr>
                                                <th>任务ID</th>
                                                <th>中文名称</th>
                                                <th>泰文</th>
                                                <th>排序</th>
                                                <th>图片</th>
                                                <th>操作</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <?php
                                            if(is_array($list)){
                                                foreach ($list as $key => $val) {
                                                    ?>
                                                    <tr>
                                                        <td><?php echo $val['id'];?></td>
                                                        <td class="cname_<?php echo $val['id'];?>"><?php echo $val['zh_name'];?></td>
                                                        <td class="ename_<?php echo $val['id'];?>"><?php echo $val['name'];?></td>
                                                        <td class="type_<?php echo $val['id'];?>"><?php echo $val['sort'];?></td>
                                                        <td><img class="img_<?php echo $val['id'];?>" src="<?php echo $baseUrl.'/mission/'.$val['image'];?>" /></td>
                                                        <td>
                                                            <a href="<?php echo base_url('/#task/edit/'.$val['id']);?>" class="btn btn-primary active" role="button">编辑</a>
                                                        </td>
                                                    </tr>
                                                <?php } } else{?>
                                                <tr>
                                                    <td colspan="10">暂无数据</td>
                                                </tr>
                                            <?php } ?>
                                            </tbody>
                                        </table>
                                    </div>
                                    <nav>
                                        <ul class="pagination">
                                            <li class="disabled"><a href="#">共<span class="pagetotal"><?php echo $total;?></span>条</a></li>
                                        </ul>
                                    </nav>
                                </div>
                            </div>
                        </div>
                    </section>
                </aside>
            </div>
        </div>
    </div>

</div>