<?php /*a:3:{s:70:"/data/web/mall.valimart.net/app/admin/view/complain/complain_list.html";i:1657785096;s:61:"/data/web/mall.valimart.net/app/admin/view/public/header.html";i:1657785098;s:66:"/data/web/mall.valimart.net/app/admin/view/public/admin_items.html";i:1657785098;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title><?php echo htmlentities((isset($html_title) && ($html_title !== '')?$html_title:config('ds_config.site_name'))); ?><?php echo htmlentities(lang('system_backend')); ?></title>
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
        <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
        <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
        <script type="text/javascript">
            var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
            var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
            var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
            var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
            var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
        </script>
    </head>
    <body>
        <div id="append_parent"></div>
        <div id="ajaxwaitid"></div>








<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3><?php echo htmlentities(lang('ds_complain')); ?></h3>
                <h5></h5>
            </div>
            <?php if($admin_item): ?>
<ul class="tab-base ds-row">
    <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): ?>
    <li><a href="<?php echo htmlentities($item['url']); ?>" <?php if($item['name'] == $curitem): ?>class="current"<?php endif; ?>><span><?php echo htmlentities($item['text']); ?></span></a></li>
    <?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
<?php endif; ?>
        </div>
    </div>

    <form id="search_form" method="get" name="formSearch">
        <div class="ds-search-form">
            <dl>
                <dt><?php echo htmlentities(lang('complain_accuser')); ?></dt>
                <dd><input class="txt" type="text" name="input_complain_accuser" id="input_complain_accuser" value="<?php echo htmlentities(app('request')->get('input_complain_accuser')); ?>"></dd>
            </dl>
            <dl>
                <dt><?php echo htmlentities(lang('complain_subject_content')); ?></dt>
                <dd><input class="txt2" type="text" name="input_complain_subject_content" id="input_complain_subject_content" value="<?php echo htmlentities(app('request')->get('input_complain_subject_content')); ?>"></dd>
            </dl>
            <dl>
                <dt><?php echo htmlentities(lang('complain_accused')); ?></dt>
                <dd><input class="txt" type="text" name="input_complain_accused" id="input_complain_accused" value="<?php echo htmlentities(app('request')->get('input_complain_accused')); ?>"></dd>
            </dl>
            <dl>
                <dt><?php echo htmlentities(lang('complain_datetime')); ?></dt>
                <dd>
                    <input id="time_from" class="txt date" type="text" name="input_complain_datetime_start" value="<?php echo htmlentities(app('request')->get('input_complain_datetime_start')); ?>">
                    ~
                    <input id="time_to" class="txt date" type="text" name="input_complain_datetime_end" value="<?php echo htmlentities(app('request')->get('input_complain_datetime_end')); ?>">
                </dd>
            </dl>
            <div class="btn_group">
                <a href="javascript:document.formSearch.submit();" class="btn " title="<?php echo htmlentities(lang('ds_query')); ?>"><?php echo htmlentities(lang('ds_query')); ?></a>
                <a href="<?php echo url(''); ?>" class="btn btn-default" title="<?php echo htmlentities(lang('ds_cancel')); ?>"><?php echo htmlentities(lang('ds_cancel')); ?></a>
            </div>
        </div>
    </form>
    
    <div class="explanation" id="explanation">
        <div class="title" id="checkZoom">
            <h4 title="<?php echo htmlentities(lang('ds_explanation_tip')); ?>"><?php echo htmlentities(lang('ds_explanation')); ?></h4>
            <span id="explanationZoom" title="<?php echo htmlentities(lang('ds_explanation_close')); ?>" class="arrow"></span>
        </div>
        <ul>
            <li><?php echo htmlentities(lang('complain_help1')); ?></li>
            <li><?php echo htmlentities(lang('complain_help2')); ?></li>
            <li><?php echo htmlentities(lang('complain_help3')); ?></li>
        </ul>
    </div>
    
        <table class="ds-default-table">
            <thead>
            <tr class="thead">
                <th class="w12">&nbsp;</th>
                <th><?php echo htmlentities(lang('complain_accuser')); ?></th>
                <th><?php echo htmlentities(lang('complain_accused')); ?></th>
                <th><?php echo htmlentities(lang('complain_subject_content')); ?></th>
                <th class="align-center"><?php echo htmlentities(lang('complain_datetime')); ?></th>
                <th class="align-center"><?php echo htmlentities(lang('ds_handle')); ?></th>
            </tr>
            </thead>
            <tbody>
            <?php if(!(empty($complain_list) || (($complain_list instanceof \think\Collection || $complain_list instanceof \think\Paginator ) && $complain_list->isEmpty()))): if(is_array($complain_list) || $complain_list instanceof \think\Collection || $complain_list instanceof \think\Paginator): if( count($complain_list)==0 ) : echo "" ;else: foreach($complain_list as $key=>$v): ?>
            <tr class="hover">
                <td>&nbsp;</td>
                <td><?php echo htmlentities($v['accuser_name']); ?></td>
                <td><?php echo htmlentities($v['accused_name']); ?></td>
                <td><?php echo htmlentities($v['complain_subject_content']); ?></td>
                <td class="nowarp align-center"><?php echo htmlentities(date("Y-m-d H:i:s",!is_numeric($v['complain_datetime'])? strtotime($v['complain_datetime']) : $v['complain_datetime'])); ?></td>
                <td class="align-center"><a href="<?php echo url('Complain/complain_progress',['complain_id'=>$v['complain_id']]); ?>" class="dsui-btn-edit"><i class="iconfont"></i><?php echo htmlentities(lang('ds_detail')); ?></a></td>
            </tr>
            <?php endforeach; endif; else: echo "" ;endif; else: ?>
            <tr class="no_data">
                <td colspan="15"><?php echo htmlentities(lang('ds_no_record')); ?></td>
            </tr>
            <?php endif; ?>
            </tbody>

        </table>
        <?php if(!(empty($complain_list) || (($complain_list instanceof \think\Collection || $complain_list instanceof \think\Paginator ) && $complain_list->isEmpty()))): ?>
        <?php echo $show_page; ?>
        <?php endif; ?>

</div>

<script type="text/javascript">
    $(document).ready(function(){
        //表格移动变色
        $("tbody .line").hover(
            function()
            {
                $(this).addClass("complain_highlight");
            },
            function()
            {
                $(this).removeClass("complain_highlight");
            });
        $('#time_from').datepicker({dateFormat: 'yy-mm-dd',onSelect:function(dateText,inst){
            var year2 = dateText.split('-') ;
            $('#time_to').datepicker( "option", "minDate", new Date(parseInt(year2[0]),parseInt(year2[1])-1,parseInt(year2[2])) );
        }});
        $('#time_to').datepicker({dateFormat: 'yy-mm-dd',onSelect:function(dateText,inst){
            var year1 = dateText.split('-') ;
            $('#time_from').datepicker( "option", "maxDate", new Date(parseInt(year1[0]),parseInt(year1[1])-1,parseInt(year1[2])) );
        }});

    });
</script>