a695fdea7410a5c8a7d0e495c533e891.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <?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;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <title><?php echo htmlentities((isset($html_title) && ($html_title !== '')?$html_title:config('ds_config.site_name'))); ?><?php echo htmlentities(lang('system_backend')); ?></title>
  8. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  9. <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
  10. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
  11. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
  12. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
  13. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
  14. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
  15. <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
  16. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
  17. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
  18. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
  19. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
  20. <script type="text/javascript">
  21. var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
  22. var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
  23. var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
  24. var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
  25. var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
  26. </script>
  27. </head>
  28. <body>
  29. <div id="append_parent"></div>
  30. <div id="ajaxwaitid"></div>
  31. <div class="page">
  32. <div class="fixed-bar">
  33. <div class="item-title">
  34. <div class="subject">
  35. <h3><?php echo htmlentities(lang('ds_consulting')); ?></h3>
  36. <h5></h5>
  37. </div>
  38. <?php if($admin_item): ?>
  39. <ul class="tab-base ds-row">
  40. <?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): ?>
  41. <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>
  42. <?php endforeach; endif; else: echo "" ;endif; ?>
  43. </ul>
  44. <?php endif; ?>
  45. </div>
  46. </div>
  47. <div class="fixed-empty"></div>
  48. <form method="get" name="formSearch">
  49. <div class="ds-search-form">
  50. <dl>
  51. <dt><?php echo htmlentities(lang('consulting_index_sender')); ?></dt>
  52. <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>
  53. </dl>
  54. <dl>
  55. <dt><?php echo htmlentities(lang('consulting_index_content')); ?></dt>
  56. <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>
  57. </dl>
  58. <dl>
  59. <dt><?php echo htmlentities(lang('consulting_index_type')); ?></dt>
  60. <dd>
  61. <select name="ctid">
  62. <option value="0"><?php echo htmlentities(lang('ds_all')); ?></option>
  63. <?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): ?>
  64. <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>
  65. <?php endforeach; endif; else: echo "" ;endif; ?>
  66. <?php endif; ?>
  67. </select>
  68. </dd>
  69. </dl>
  70. <dl>
  71. <dt></dt>
  72. <dd></dd>
  73. </dl>
  74. <div class="btn_group">
  75. <a href="javascript:document.formSearch.submit();" class="btn " title="<?php echo htmlentities(lang('ds_query')); ?>"><?php echo htmlentities(lang('ds_query')); ?></a>
  76. <?php if($filtered): ?>
  77. <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>
  78. <?php endif; ?>
  79. </div>
  80. </div>
  81. </form>
  82. <div class="explanation" id="explanation">
  83. <div class="title" id="checkZoom">
  84. <h4 title="<?php echo htmlentities(lang('ds_explanation_tip')); ?>"><?php echo htmlentities(lang('ds_explanation')); ?></h4>
  85. <span id="explanationZoom" title="<?php echo htmlentities(lang('ds_explanation_close')); ?>" class="arrow"></span>
  86. </div>
  87. <ul>
  88. <li><?php echo htmlentities(lang('consulting_index_help1')); ?></li>
  89. </ul>
  90. </div>
  91. <table class="ds-default-table">
  92. <tbody>
  93. <?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): ?>
  94. <tr class="space">
  95. <th class="w24"><input type="checkbox" class="checkitem" name="consult_id[]" value="<?php echo htmlentities($consult['consult_id']); ?>" /></th>
  96. <th>
  97. <strong><?php echo htmlentities(lang('consulting_index_object')); ?>:&nbsp;</strong>
  98. <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>
  99. </th>
  100. <th><strong><?php echo htmlentities(lang('ds_store_name')); ?>:</strong>&nbsp;<a target="_blank" href="<?php echo url('home/Store/index',['store_id'=>$consult['store_id']]); ?>" class="normal"><?php echo htmlentities($consult['store_name']); ?></a>
  101. </th>
  102. <th><strong class="fl"><?php echo htmlentities(lang('ds_handle')); ?>:</strong>&nbsp;
  103. <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>
  104. </th>
  105. </tr>
  106. <tr>
  107. <td colspan="12">
  108. <fieldset style="border: 1px dashed #E7E7E7;padding: 0.5em;">
  109. <legend>
  110. <span><strong><?php echo htmlentities(lang('consulting_index_sender')); ?>:</strong>&nbsp;
  111. <?php if(empty($consult['member_id']) || (($consult['member_id'] instanceof \think\Collection || $consult['member_id'] instanceof \think\Paginator ) && $consult['member_id']->isEmpty())): ?>
  112. <?php echo htmlentities(lang('consulting_index_guest')); else: ?>
  113. <?php echo htmlentities($consult['member_name']); ?>
  114. <?php endif; ?>
  115. </span>
  116. &nbsp;&nbsp;&nbsp;&nbsp;
  117. <span><strong><?php echo htmlentities(lang('consulting_index_time')); ?>:</strong>&nbsp;<?php echo htmlentities(date("Y-m-d H:i:s",!is_numeric($consult['consult_addtime'])? strtotime($consult['consult_addtime']) : $consult['consult_addtime'])); ?></span>
  118. </legend>
  119. <div class="formelement" id="hutia_<?php echo htmlentities($key); ?>"><?php echo htmlentities($consult['consult_content']); ?></div>
  120. </fieldset>
  121. <fieldset style="background: none repeat scroll 0 0 #FFFAE3;padding: 0.5em;border: 1px dashed #F1E38B;">
  122. <legend><strong><?php echo htmlentities(lang('consulting_index_reply')); ?>:</strong></legend>
  123. <div class="formelement" id="hutia2_<?php echo htmlentities($key); ?>">
  124. <?php if(!(empty($consult['consult_reply']) || (($consult['consult_reply'] instanceof \think\Collection || $consult['consult_reply'] instanceof \think\Paginator ) && $consult['consult_reply']->isEmpty()))): ?>
  125. <?php echo htmlentities($consult['consult_reply']); else: ?>
  126. <?php echo htmlentities(lang('consulting_index_no_reply')); ?>
  127. <?php endif; ?>
  128. </div>
  129. </fieldset>
  130. </td>
  131. </tr>
  132. <?php endforeach; endif; else: echo "" ;endif; else: ?>
  133. <tr class="no_data">
  134. <td colspan="20"><?php echo htmlentities(lang('ds_no_record')); ?></td>
  135. </tr>
  136. <?php endif; ?>
  137. </tbody>
  138. <tfoot>
  139. <?php if(!(empty($consult_list) || (($consult_list instanceof \think\Collection || $consult_list instanceof \think\Paginator ) && $consult_list->isEmpty()))): ?>
  140. <tr class="tfoot">
  141. <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
  142. <td colspan="16"><label for="checkallBottom"><?php echo htmlentities(lang('ds_select_all')); ?></label>
  143. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span><?php echo htmlentities(lang('ds_del')); ?></span></a>
  144. </td>
  145. </tr>
  146. <?php endif; ?>
  147. </tfoot>
  148. </table>
  149. <?php echo $show_page; ?>
  150. </div>
  151. <script type="text/javascript">
  152. function submit_delete(ids_str) {
  153. _uri = ADMINSITEURL + "/Consulting/delete.html?consult_id=" + ids_str;
  154. dsLayerConfirm(_uri, '<?php echo htmlentities(lang('ds_ensure_del')); ?>');
  155. }
  156. </script>