<?php include_once(mvc::$cfg['PATH_TPL'] . 'public/headBase.php'); ?>
<form class="layui-form" action="" method="get">
        <div class="layui-inline">
            <label class="layui-form-label">意向等级</label>
            <div class="layui-input-block">
                <select name="ccr_cla_id" id="">
                    <option value="">请选择</option>
                    <?php foreach ($rankArr as $key => $val) {?>
                        <option value="<?=$key?>" <?=$Params['ccr_cla_id']==$key?'selected':''?>><?=$val?></option>
                    <?php } ?>
                </select>
            </div>
        </div>
        <div class="layui-inline">

            <button class="layui-btn act-btn" type="submit">
                <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
            </button>
        </div>
    </form>
    <table class="layui-table">
        <thead>
            <tr>
                <th width="50px">操作</th>
                <th width="200px">客户名称</th>
                <th width="100px">业务员</th>
                <th width="50px">意向等级</th>
                <th>最后跟进</th>
            </tr>
        </thead>
        <tbody>
            <?php if(empty($listArr)){?>
                <tr>
                    <td colspan="5" style="text-align: center;">暂无数据</td>
                </tr>
            <?php }else{?>
                <?php foreach ($listArr as $key => $val) {?>
                    <tr>
                        <td>
                            <a href="javascript:;" class="a_blue" onclick="yixiang('<?=$val['ctr_id']?>')">意向</a>
                        </td>
                        <td> <a class="a_blue" lay-href="<?=mvc::$cfg['SELF_URI']?>customer/detail?ctrId=<?=$val['ctr_id']?>"><?=$val['ctr_comname']?></a>  </td>
                        <td>
                            <?=$val['au_name']?>
                        </td>
                        <td>
                            <?php if($val['cla_name'] == 'A级'){?>
                                <span class="layui-badge layui-bg-orange"><?=$val['cla_name']?></span>        
                            <?php }?>
                            <?php if($val['cla_name'] == 'B级'){?>
                                <span class="layui-badge layui-bg-green"><?=$val['cla_name']?></span>        
                            <?php }?>
                            <?php if($val['cla_name'] == 'C级'){?>
                                <span class="layui-badge layui-bg-cyan"><?=$val['cla_name']?></span>        
                            <?php }?>
                            <?php if($val['cla_name'] == 'D级'){?>
                                <span class="layui-badge layui-bg-gray"><?=$val['cla_name']?></span>        
                            <?php }?>
                        </td>
                        <td>
                            <?=$val['lfollow']['cfo_au_name'].' '.($val['lfollow']['cfo_atime']?date('Y-m-d H:i:s',$val['lfollow']['cfo_atime']):'')?>
                        </td>
                    </tr>
                <?php }?>
            <?php }?>
        </tbody>
    </table> 
    <?=$pageMsg?>
<?php include_once(mvc::$cfg['PATH_TPL'] . 'public/footBase.php'); ?>