{extend name="common/common2" /}
{block name="main"}
<style>
    .custom-table th,td{
        padding: 10px;
    }
    .custom-table th{
        width: 120px;
        text-align: left;
    }

</style>
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <!--<div class="ibox-title">-->
                <!--<h5>详情</h5>-->
                <!--<div class="ibox-tools">-->
                    <!--<a class="toback" href="{:url('index')}">-->
                        <!--返回上一页-->
                    <!--</a>-->
                <!--</div>-->
            <!--</div>-->

            <div class="ibox-content">
                <table class="table custom-table table-bordered">
                    <tbody>
                    <tr>
                        <th>投诉人</th><td>{$info['realName']}</td>
                    </tr>
                    <tr>
                        <th>时间</th><td>{$info['create_time']}</td>
                    </tr>
                    <tr>
                        <th>部门</th><td>{$info['depName']}</td>
                    </tr>
                    <tr>
                        <th>内容</th><td>{$info['content']}</td>
                    </tr>
                    <tr>
                        <th>处理意见</th><td>{$info['note']}</td>
                    </tr>
                    {if !empty($info['voices'])}
                    <tr>
                        <th>语音</th><td><audio src="{$info['voices']}" controls></audio></td>
                    </tr>
                    {/if}
                    {if !empty($info['images'])}
                    <tr>
                        <th>图片</th>
                        <td>
                            <p>
                                {foreach $info['images'] as $key=>$val}
                                <img onclick="open_img(this)" src="{$val}"  width="60" height="60">
                                {/foreach}
                            </p>
                        </td>
                    </tr>
                    {/if}

                    {if !empty($info['videos'])}
                    <tr>
                        <th>视频</th>
                        <td  style="width: 200px!important;height: 200px;!important;">

                            <video style="width: 200px!important;height: 200px;!important;" src="{$info['videos']}" controls="controls">
                            </video>
                        </td>
                    </tr>
                    {/if}
                    <tr>
                        <th>状态</th><td>{$info['statusTxt']}</td>
                    </tr>
                    {if $info['name']}
                    <tr>
                        <th>联系人</th><td>{$info['name']}</td>
                    </tr>
                    {/if}
                    {if $info['phone']}
                    <tr>
                        <th>电话</th><td>{$info['phone']}</td>
                    </tr>
                    {/if}
                    {if $info['status']==2}
                    <tr>
                        <th>评价</th>
                        <td>
                            <link rel="stylesheet" href="/static/bootstrap-star-rating/css/star-rating.css">
                            <script src="/static/bootstrap-star-rating/js/star-rating.js"></script>
                            <div class="atar_show">
                                <input id="input-id" type="hidden" class="rating" value="{$info['comment']['score']}" disabled data-size="xs" >
                            </div>
                            <script>
                                $("#input-id").rating({
                                    showclear:false,
                                    showcaption: false,
                                });
                            </script>
                            <div>
                                {$info['comment']['content']}
                            </div>
                        </td>
                    </tr>
                    {/if}
                    <th>操作</th>
                    <td>
                        {if $info.status==0}
                            <a url="{:url('edit',[],'')}/id/{$info.id}" href="javascript:;" data-title="直接处理" onclick="layer_open(this,1)"><span class="label label-primary" title="直接处理">直接处理</span></a>
                            <a url="{:url('send',[],'')}/id/{$info.id}" href="javascript:;" data-title="转任务" onclick="layer_open(this,1)"><span class="label label-primary" title="转任务">转任务</span></a>
                            <a url="{:url('ts_send',[],'')}/id/{$info.id}" href="javascript:;" data-title="转单" onclick="layer_open(this,1)"><span class="label label-primary" title="转单">转单</span></a>
                        {/if}

                        {if $info.order_id > 0 && $info.status==1}
                         {if $info.to_from==0}
                         <a url="{:url('Orders/zg_detail',['id'=>$info['order_id']])}" href="javascript:;" data-title="订单详情" onclick="layer_open(this,1)"><span class="label label-primary" title="订单详情">订单详情</span></a>
                            {else}
                           <a url="{:url('Hiddendanger/yhDetail',['id'=>$info['order_id']])}" href="javascript:;" data-title="隐患详情" onclick="layer_open(this,1)"><span class="label label-primary" title="隐患详情">隐患详情</span></a>
                            {/if}
                        {/if}

                        {if ($info['status'] == 1 && $info['order_id'] == 0) || ($info.status == 1 && $info.order_mode == 3 || $info.order_mode == 5 || $info.order_mode == 6)}
                        <a url="{:url('summary',[],'')}/id/{$info.id}" href="javascript:;" data-title="总结" onclick="layer_open(this,1)"><span class="label label-primary" title="总结">总结</span></a>
                        {/if}
                    </td>

                    </tbody>
                </table>

            </div>
        </div>
    </div>
</div>
{/block}
{block name="script"}

{/block}