{extend name="layout:home" /}
{block name="container"}
<div class="layui-tab layui-tab-card">
    {include file="layout/admin_items" /}
    <div class="layui-tab-content page-tab-content">
        <form action="" method="post" enctype="multipart/form-data" >
            <div class="layui-form-item">
                <div class="layui-inline">
                    <input type="text" name="kefu_keywords"  placeholder="输入客服名" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-inline">
                    <select name="record_readok" lay-verify="" class="layui-select layui-unselect layui-form-select">
                        <option value="">请选择客服组</option>
                        {volist name="gskefz" id="v"}
                            <option value="{$v.group_id}">{$v.group_name}</option>
                        {/volist}
                    </select>
                </div>
                <div class="layui-inline">
                    <button type="submit" class="layui-btn search-subBtn">搜索</button>
                </div>
                <div class="layui-inline right-per" style="float: right;">
                    <div class="button-group">
                        <input type="button" class="layui-btn laydate-day-next" onclick="location.href = '{:url('Glservice/export_step1')}'" value="{$Think.lang.ds_export}"/>
                    </div>
                </div>

            </div>
        </form>
        <table class="layui-table lay-even">
            <colgroup>
                <col width="150">
                <col>
            </colgroup>
            <thead>
                <tr>
                    <th>客服名</th>
                    <th>所属组</th>
                    <th>满意率(百分比)</th>
                    <th>转化率(百分比)</th>
                    <th>挽留率(百分比)</th>
                </tr>
            </thead>
            <tbody>
            {if $kefulist}
            {volist name="kefulist" id="record" key="k"}
            <tr>
                <td>{$record.service_name}</td>
                <td>{$sqxz[$k-1]['group_name']}</td>
                <td><?php echo round($kfrate[$k-1],2); ?>%</td>
                <td><?php echo round($zhrate[$k-1],2); ?>%</td>
                <td><?php echo round($wlrate[$k-1],2); ?>%</td>
            </tr>
            {/volist}
            {else}
            <td>无数据</td>
            {/if}
        </tbody>
        </table>
        {$show_page}
    </div>
</div>
<script type="text/javascript" src="{$Think.HOME_SITE_ROOT}/js/jquery.edit.js"></script>
<script>
    layui.use('form', function () {
        var form = layui.form;
    });
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        laydate.render({
            elem: '#kstime'
        });
    });
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        laydate.render({
            elem: '#endtime'
        });
    });
</script>

{/block}