8f9d2f25ed407ec2203dcecf7d47dddd.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <?php /*a:3:{s:65:"/data/web/mall.valimart.net/app/admin/view/mallconsult/index.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_mall_consult')); ?></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. <form method="get" name="formSearch">
  48. <div class="ds-search-form">
  49. <dl>
  50. <dt><?php echo htmlentities(lang('ds_member_name')); ?></dt>
  51. <dd><input class="txt" type="text" name="member_name" id="member_name" value="<?php echo htmlentities(app('request')->get('member_name')); ?>" /></dd>
  52. </dl>
  53. <dl>
  54. <dt><?php echo htmlentities(lang('mallconsulttype_id')); ?></dt>
  55. <dd>
  56. <select name="mctid">
  57. <option value="0"><?php echo htmlentities(lang('ds_all')); ?></option>
  58. <?php if(!(empty($type_list) || (($type_list instanceof \think\Collection || $type_list instanceof \think\Paginator ) && $type_list->isEmpty()))): if(is_array($type_list) || $type_list instanceof \think\Collection || $type_list instanceof \think\Paginator): if( count($type_list)==0 ) : echo "" ;else: foreach($type_list as $key=>$val): ?>
  59. <option <?php if(isset($mctid)): if($mctid == $val['mallconsulttype_id']): ?>selected="selected"<?php endif; ?> <?php endif; ?>value="<?php echo htmlentities($val['mallconsulttype_id']); ?>"><?php echo htmlentities($val['mallconsulttype_name']); ?></option>
  60. <?php endforeach; endif; else: echo "" ;endif; ?>
  61. <?php endif; ?>
  62. </select>
  63. </dd>
  64. </dl>
  65. <div class="btn_group">
  66. <a href="javascript:document.formSearch.submit();" class="btn " title="<?php echo htmlentities(lang('ds_query')); ?>"><?php echo htmlentities(lang('ds_query')); ?></a>
  67. <a href="<?php echo url('Mallconsult/index'); ?>" class="btn btn-default" title="<?php echo htmlentities(lang('ds_cancel')); ?>"><?php echo htmlentities(lang('ds_cancel')); ?></a>
  68. </div>
  69. </div>
  70. </form>
  71. <table class="ds-default-table">
  72. <thead>
  73. <tr class="thead">
  74. <th class="w24"></th>
  75. <th class="align-center"><?php echo htmlentities(lang('mallconsult_content')); ?></th>
  76. <th class="w96 align-center"><?php echo htmlentities(lang('ds_member_name')); ?></th>
  77. <th class="w156 align-center"><?php echo htmlentities(lang('mallconsult_addtime')); ?></th>
  78. <th class="w96 align-center"><?php echo htmlentities(lang('mallconsult_isreply')); ?></th>
  79. <th class="w120 align-center"><?php echo htmlentities(lang('ds_handle')); ?> </th>
  80. </tr>
  81. </thead>
  82. <tbody>
  83. <?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=>$val): ?>
  84. <tr class="space">
  85. <td class="w24"><input type="checkbox" class="checkitem" name="id[]" value="<?php echo htmlentities($val['mallconsult_id']); ?>" /></td>
  86. <td><?php echo htmlentities($val['mallconsult_content']); ?></td>
  87. <td class="align-center"><?php echo htmlentities($val['member_name']); ?></td>
  88. <td class="align-center"><?php echo htmlentities(date("Y-m-d H:i:s",!is_numeric($val['mallconsult_addtime'])? strtotime($val['mallconsult_addtime']) : $val['mallconsult_addtime'])); ?></td>
  89. <td class="align-center"><?php echo htmlentities($state[$val['mallconsult_isreply']]); ?></td>
  90. <td>
  91. <a href="javascript:dsLayerOpen('<?php echo url('Mallconsult/consult_reply',['id'=>$val['mallconsult_id']]); ?>','<?php echo htmlentities(lang('ds_handle')); ?>')" class="dsui-btn-edit"><i class="iconfont"></i><?php if($val['mallconsult_isreply'] == 0): ?><?php echo htmlentities(lang('ds_reply')); else: ?><?php echo htmlentities(lang('ds_edit')); ?><?php endif; ?></a>
  92. <a href="javascript:void(0)" onclick="submit_delete(<?php echo htmlentities($val['mallconsult_id']); ?>)" class="dsui-btn-del"><i class="iconfont"></i><?php echo htmlentities(lang('ds_del')); ?></a>
  93. </td>
  94. </tr>
  95. <?php endforeach; endif; else: echo "" ;endif; else: ?>
  96. <tr class="no_data">
  97. <td colspan="20"><?php echo htmlentities(lang('ds_no_record')); ?></td>
  98. </tr>
  99. <?php endif; ?>
  100. </tbody>
  101. <tfoot>
  102. <?php if(!(empty($consult_list) || (($consult_list instanceof \think\Collection || $consult_list instanceof \think\Paginator ) && $consult_list->isEmpty()))): ?>
  103. <tr class="tfoot">
  104. <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
  105. <td colspan="16"><label for="checkallBottom"><?php echo htmlentities(lang('ds_select_all')); ?></label>
  106. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span><?php echo htmlentities(lang('ds_del')); ?></span></a>
  107. </td>
  108. </tr>
  109. <?php endif; ?>
  110. </tfoot>
  111. </table>
  112. <?php echo $show_page; ?>
  113. </div>
  114. <script type="text/javascript">
  115. function checkForm(){
  116. flag = false;
  117. $.each($("input[name='consult_id[]']"),function(i,n){
  118. if($(n).prop('checked')){
  119. flag = true;
  120. return false;
  121. }
  122. });
  123. if(!flag)layer.alert('<?php echo htmlentities(lang('consulting_del_choose')); ?>');
  124. return flag;
  125. }
  126. function submit_delete(ids_str){
  127. _uri = ADMINSITEURL+"/Mallconsult/del_consult.html?mallconsult_id=" + ids_str;
  128. dsLayerConfirm(_uri,'<?php echo htmlentities(lang('ds_ensure_del')); ?>');
  129. }
  130. </script>
  131. <script>
  132. (function(){
  133. $('.w').each(function(i){
  134. var o = document.getElementById("hutia_"+i);
  135. var s = o.innerHTML;
  136. var p = document.createElement("span");
  137. var n = document.createElement("a");
  138. p.innerHTML = s.substring(0,50);
  139. n.innerHTML = s.length > 50 ? "<?php echo htmlentities(lang('consulting_index_unfold')); ?>" : "";
  140. n.href = "###";
  141. n.onclick = function(){
  142. if (n.innerHTML == "<?php echo htmlentities(lang('consulting_index_unfold')); ?>"){
  143. n.innerHTML = "<?php echo htmlentities(lang('consulting_index_retract')); ?>";
  144. p.innerHTML = s;
  145. }else{
  146. n.innerHTML = "<?php echo htmlentities(lang('consulting_index_unfold')); ?>";
  147. p.innerHTML = s.substring(0,50);
  148. }
  149. }
  150. o.innerHTML = "";
  151. o.appendChild(p);
  152. o.appendChild(n);
  153. });
  154. })();
  155. (function(){
  156. $('.d').each(function(i){
  157. var o = document.getElementById("hutia2_"+i);
  158. var s = o.innerHTML;
  159. var p = document.createElement("span");
  160. var n = document.createElement("a");
  161. p.innerHTML = s.substring(0,50);
  162. n.innerHTML = s.length > 50 ? "<?php echo htmlentities(lang('consulting_index_unfold')); ?>" : "";
  163. n.href = "###";
  164. n.onclick = function(){
  165. if (n.innerHTML == "<?php echo htmlentities(lang('consulting_index_unfold')); ?>"){
  166. n.innerHTML = "<?php echo htmlentities(lang('consulting_index_retract')); ?>";
  167. p.innerHTML = s;
  168. }else{
  169. n.innerHTML = "<?php echo htmlentities(lang('consulting_index_unfold')); ?>";
  170. p.innerHTML = s.substring(0,50);
  171. }
  172. }
  173. o.innerHTML = "";
  174. o.appendChild(p);
  175. o.appendChild(n);
  176. });
  177. })();
  178. </script>