<?php /*a:3:{s:69:"/data/web/mall.valimart.net/app/admin/view/consulting/consulting.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_consulting')); ?></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> <div class="fixed-empty"></div> <form method="get" name="formSearch"> <div class="ds-search-form"> <dl> <dt><?php echo htmlentities(lang('consulting_index_sender')); ?></dt> <dd><input class="txt" type="text" name="member_name" id="member_name" value="<?php if(isset($member_name)): ?><?php echo htmlentities($member_name); ?><?php endif; ?>" /></dd> </dl> <dl> <dt><?php echo htmlentities(lang('consulting_index_content')); ?></dt> <dd><input class="txt" type="text" name="consult_content" id="consult_content" value="<?php if(isset($consult_content)): ?><?php echo htmlentities($consult_content); ?><?php endif; ?>" /></dd> </dl> <dl> <dt><?php echo htmlentities(lang('consulting_index_type')); ?></dt> <dd> <select name="ctid"> <option value="0"><?php echo htmlentities(lang('ds_all')); ?></option> <?php if(!(empty($consult_type) || (($consult_type instanceof \think\Collection || $consult_type instanceof \think\Paginator ) && $consult_type->isEmpty()))): if(is_array($consult_type) || $consult_type instanceof \think\Collection || $consult_type instanceof \think\Paginator): if( count($consult_type)==0 ) : echo "" ;else: foreach($consult_type as $key=>$val): ?> <option <?php if(app('request')->get('ctid') == $val['consulttype_id']): ?>selected="selected"<?php endif; ?> value="<?php echo htmlentities($val['consulttype_id']); ?>"><?php echo htmlentities($val['consulttype_name']); ?></option> <?php endforeach; endif; else: echo "" ;endif; ?> <?php endif; ?> </select> </dd> </dl> <dl> <dt></dt> <dd></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> <?php if($filtered): ?> <a href="<?php echo url('Consulting/consulting'); ?>" class="btn btn-default" title="<?php echo htmlentities(lang('ds_cancel')); ?>"><?php echo htmlentities(lang('ds_cancel')); ?></a> <?php endif; ?> </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('consulting_index_help1')); ?></li> </ul> </div> <table class="ds-default-table"> <tbody> <?php if(!(empty($consult_list) || (($consult_list instanceof \think\Collection || $consult_list instanceof \think\Paginator ) && $consult_list->isEmpty()))): if(is_array($consult_list) || $consult_list instanceof \think\Collection || $consult_list instanceof \think\Paginator): if( count($consult_list)==0 ) : echo "" ;else: foreach($consult_list as $key=>$consult): ?> <tr class="space"> <th class="w24"><input type="checkbox" class="checkitem" name="consult_id[]" value="<?php echo htmlentities($consult['consult_id']); ?>" /></th> <th> <strong><?php echo htmlentities(lang('consulting_index_object')); ?>: </strong> <span><a target="_blank" href="<?php echo url('home/Goods/index',['goods_id'=>$consult['goods_id'],'id'=>$consult['store_id']]); ?>"><?php echo htmlentities($consult['goods_name']); ?></a></span> </th> <th><strong><?php echo htmlentities(lang('ds_store_name')); ?>:</strong> <a target="_blank" href="<?php echo url('home/Store/index',['store_id'=>$consult['store_id']]); ?>" class="normal"><?php echo htmlentities($consult['store_name']); ?></a> </th> <th><strong class="fl"><?php echo htmlentities(lang('ds_handle')); ?>:</strong> <a href="javascript:dsLayerConfirm('<?php echo url('Consulting/delete',['consult_id'=>$consult['consult_id']]); ?>','<?php echo htmlentities(lang('ds_ensure_del')); ?>')" class="dsui-btn-del"><i class="iconfont"></i><?php echo htmlentities(lang('ds_del')); ?></a> </th> </tr> <tr> <td colspan="12"> <fieldset style="border: 1px dashed #E7E7E7;padding: 0.5em;"> <legend> <span><strong><?php echo htmlentities(lang('consulting_index_sender')); ?>:</strong> <?php if(empty($consult['member_id']) || (($consult['member_id'] instanceof \think\Collection || $consult['member_id'] instanceof \think\Paginator ) && $consult['member_id']->isEmpty())): ?> <?php echo htmlentities(lang('consulting_index_guest')); else: ?> <?php echo htmlentities($consult['member_name']); ?> <?php endif; ?> </span> <span><strong><?php echo htmlentities(lang('consulting_index_time')); ?>:</strong> <?php echo htmlentities(date("Y-m-d H:i:s",!is_numeric($consult['consult_addtime'])? strtotime($consult['consult_addtime']) : $consult['consult_addtime'])); ?></span> </legend> <div class="formelement" id="hutia_<?php echo htmlentities($key); ?>"><?php echo htmlentities($consult['consult_content']); ?></div> </fieldset> <fieldset style="background: none repeat scroll 0 0 #FFFAE3;padding: 0.5em;border: 1px dashed #F1E38B;"> <legend><strong><?php echo htmlentities(lang('consulting_index_reply')); ?>:</strong></legend> <div class="formelement" id="hutia2_<?php echo htmlentities($key); ?>"> <?php if(!(empty($consult['consult_reply']) || (($consult['consult_reply'] instanceof \think\Collection || $consult['consult_reply'] instanceof \think\Paginator ) && $consult['consult_reply']->isEmpty()))): ?> <?php echo htmlentities($consult['consult_reply']); else: ?> <?php echo htmlentities(lang('consulting_index_no_reply')); ?> <?php endif; ?> </div> </fieldset> </td> </tr> <?php endforeach; endif; else: echo "" ;endif; else: ?> <tr class="no_data"> <td colspan="20"><?php echo htmlentities(lang('ds_no_record')); ?></td> </tr> <?php endif; ?> </tbody> <tfoot> <?php if(!(empty($consult_list) || (($consult_list instanceof \think\Collection || $consult_list instanceof \think\Paginator ) && $consult_list->isEmpty()))): ?> <tr class="tfoot"> <td><input type="checkbox" class="checkall" id="checkallBottom"></td> <td colspan="16"><label for="checkallBottom"><?php echo htmlentities(lang('ds_select_all')); ?></label> <a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span><?php echo htmlentities(lang('ds_del')); ?></span></a> </td> </tr> <?php endif; ?> </tfoot> </table> <?php echo $show_page; ?> </div> <script type="text/javascript"> function submit_delete(ids_str) { _uri = ADMINSITEURL + "/Consulting/delete.html?consult_id=" + ids_str; dsLayerConfirm(_uri, '<?php echo htmlentities(lang('ds_ensure_del')); ?>'); } </script>