{extend name="base" /}
{block name="js"}
<script src="__ADMIN__/informs/informs.js?v={$v}" type="text/javascript"></script>
{/block}
{block name="main"}
<div id="wst-tabs" style="width:100%; height:99%;overflow: hidden;" class="liger-tab">
   <div id="wst-tab-1" tabId="wst-tab-1"  title="举报详情" class='wst-tab'  style="height: 100%"> 
   <div style="margin:10px">
    <!-- 投诉信息 -->
    <div class='order-box'>
      <table class='wst-form wst-table-1'>
         <tr>
           <td class='head-ititle'>举报信息</td>
         </tr>
         <tr>
           <th>举报人:</th>
           <td>{$data['userName']}</td>
         </tr>
         <tr>
            <th>举报类型:</th>
            <td>
              {php}$reason = WSTDatas('INFORMS_TYPE',$data['informType']);{/php}
              {$reason['dataName']}
            </td>
         </tr>
        
         <tr>
            <th>举报内容:</th>
            <td class='line-break'>{$data['informContent']}</td>
         </tr>
         <tr>
            <th>附件:</th>
               <td id="photos-inform">
              {if !empty($data['informAnnex'])}
              {volist name="$data['informAnnex']" id="annex"}
                <a href="javascript:void(0)">
                <img  layer-src="__IMGURL__/{$annex}" width="100" height="100" src="__IMGURL__/{$annex}" />
                </a>
              {/volist}
              {/if}
             </td>
         </tr>

         <tr>
            <th>投诉时间:</th>
            <td>{$data['informTime']}</td>
         </tr>
      </table>
</div>
      <table border='0' class='wst-form wst-table-1' style='margin-top:15px;'>
           <tr>
              <td colspan='2' class='head'>举报结果</td>
           </tr>
           <tr>
              <th width='80'>举报结果:</th>
              <td>
              {if condition="$data['informStatus'] eq 0"}
                                          等待处理
              {elseif condition="$data['informStatus'] eq 1"/}
                                          无效举报
              {elseif condition="$data['informStatus'] eq 2 "/}
                                          有效举报
              {elseif condition="$data['informStatus'] eq 3 "/}
                                          恶意举报
              {/if}
              </td>
           </tr>
           {if condition="$data['informStatus'] eq 1 OR $data['informStatus'] eq 2 OR $data['informStatus'] eq 3"}
           <tr>
              <th valign='top'>处理信息:</th>
              <td class='line-break'>
               {$data['respondContent']}
              </td>
           </tr>
           {/if}
           {if condition="$data['informStatus'] eq 1 OR $data['informStatus'] eq 2 OR $data['informStatus'] eq 3"}
           <tr>
              <th>处理时间:</th>
              <td>{$data['finalHandleTime']}&nbsp;</td>
           </tr>
           {/if}
      <tr>
         <td colspan='2' align='center'>
          <button type="button" class="btn" onclick='javascript:history.go(-1)'><i class="fa fa-angle-double-left"></i>返&nbsp;回</button>
         </td>
      </tr>
       </table>
   </div>
</div>
</div>

<script>
$(function(){
  parent.showImg({photos: $('#photos-inform')});
});
</script>
{/block}