129819e476815e161acad9f8e21b6f0a.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?php /*a:3:{s:66:"/data/web/mall.valimart.net/app/admin/view/inform/inform_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;}*/ ?>
  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_inform')); ?></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 id="search_form" method="get" name="formSearch">
  48. <div class="ds-search-form">
  49. <dl>
  50. <dt><?php echo htmlentities(lang('ds_goods_name')); ?></dt>
  51. <dd><input class="txt" type="text" name="input_inform_goods_name" id="input_inform_goods_name" value="<?php echo htmlentities(app('request')->get('input_inform_goods_name')); ?>"></dd>
  52. </dl>
  53. <dl>
  54. <dt><?php echo htmlentities(lang('inform_type')); ?></dt>
  55. <dd>
  56. <input class="txt" type="text" name="input_inform_type" id="input_inform_type" value="<?php echo htmlentities(app('request')->get('input_inform_type')); ?>" style=" width:100px;">
  57. <?php echo htmlentities(lang('inform_member_name')); ?>
  58. <input class="txt" type="text" name="input_inform_member_name" id="input_inform_member_name" value="<?php echo htmlentities(app('request')->get('input_inform_member_name')); ?>" style=" width:100px;">
  59. </dd>
  60. </dl>
  61. <dl>
  62. <dt><?php echo htmlentities(lang('inform_subject')); ?></dt>
  63. <dd><input class="txt" type="text" name="input_inform_subject" id="input_inform_subject" value="<?php echo htmlentities(app('request')->get('input_inform_subject')); ?>"></dd>
  64. </dl>
  65. <dl>
  66. <dt><?php echo htmlentities(lang('inform_datetime')); ?></dt>
  67. <dd><input id="time_from" class="txt date" type="text" name="input_inform_datetime_start" value="<?php echo htmlentities(app('request')->get('input_inform_datetime_start')); ?>">
  68. ~
  69. <input id="time_to" class="txt date" type="text" name="input_inform_datetime_end" value="<?php echo htmlentities(app('request')->get('input_inform_datetime_end')); ?>">
  70. </dd>
  71. </dl>
  72. <div class="btn_group">
  73. <a href="javascript:document.formSearch.submit();" class="btn " title="<?php echo htmlentities(lang('ds_query')); ?>"><?php echo htmlentities(lang('ds_query')); ?></a>
  74. <a href="<?php echo url('Inform/inform_list'); ?>" class="btn btn-small" title="<?php echo htmlentities(lang('ds_cancel_search')); ?>"><span><?php echo htmlentities(lang('ds_cancel_search')); ?></span></a>
  75. </div>
  76. </div>
  77. </form>
  78. <div class="explanation" id="explanation">
  79. <div class="title" id="checkZoom">
  80. <h4 title="<?php echo htmlentities(lang('ds_explanation_tip')); ?>"><?php echo htmlentities(lang('ds_explanation')); ?></h4>
  81. <span id="explanationZoom" title="<?php echo htmlentities(lang('ds_explanation_close')); ?>" class="arrow"></span>
  82. </div>
  83. <ul>
  84. <li><?php echo htmlentities(lang('inform_help1')); ?></li>
  85. <li><?php echo htmlentities(lang('inform_help2')); ?></li>
  86. </ul>
  87. </div>
  88. <table class="ds-default-table">
  89. <thead>
  90. <tr>
  91. <th><?php echo htmlentities(lang('ds_goods_name')); ?></th>
  92. <th><?php echo htmlentities(lang('inform_member_name')); ?></th>
  93. <th><?php echo htmlentities(lang('inform_type')); ?></th>
  94. <th><?php echo htmlentities(lang('inform_subject')); ?></th>
  95. <th><?php echo htmlentities(lang('inform_pic')); ?></th>
  96. <th><?php echo htmlentities(lang('inform_datetime')); ?></th>
  97. <th><?php echo htmlentities(lang('ds_handle')); ?></th>
  98. </tr>
  99. </thead>
  100. <tbody>
  101. <?php if(!(empty($inform_list) || (($inform_list instanceof \think\Collection || $inform_list instanceof \think\Paginator ) && $inform_list->isEmpty()))): if(is_array($inform_list) || $inform_list instanceof \think\Collection || $inform_list instanceof \think\Paginator): if( count($inform_list)==0 ) : echo "" ;else: foreach($inform_list as $key=>$v): ?>
  102. <tr class="line">
  103. <td><a href="<?php echo url('home/Goods/index',['goods_id'=>$v['inform_goods_id']]); ?>" target="_blank"><?php echo htmlentities($v['inform_goods_name']); ?></a></td>
  104. <td><span><?php echo htmlentities($v['inform_member_name']); ?></span></td>
  105. <td><span><?php echo htmlentities($v['informsubject_type_name']); ?></span></td>
  106. <td><span><?php echo htmlentities($v['informsubject_content']); ?></span></td>
  107. <td>
  108. <?php if(empty($v['inform_pic1']) && empty($v['inform_pic2']) && empty($v['inform_pic3'])): ?>
  109. <?php echo htmlentities(lang('inform_pic_none')); else: if(!(empty($v['inform_pic1']) || (($v['inform_pic1'] instanceof \think\Collection || $v['inform_pic1'] instanceof \think\Paginator ) && $v['inform_pic1']->isEmpty()))): ?>
  110. <a href="<?php echo ds_get_pic(ATTACH_PATH.'/inform',$v['inform_pic1']); ?>" target="_blank" data-lightbox="lightbox-image"><img class="show_image" src="<?php echo ds_get_pic(ATTACH_PATH.'/inform',$v['inform_pic1']); ?>" width="50"></a>
  111. <?php endif; if(!(empty($v['inform_pic2']) || (($v['inform_pic2'] instanceof \think\Collection || $v['inform_pic2'] instanceof \think\Paginator ) && $v['inform_pic2']->isEmpty()))): ?>
  112. <a href="<?php echo ds_get_pic(ATTACH_PATH.'/inform',$v['inform_pic2']); ?>" target="_blank" data-lightbox="lightbox-image"><img class="show_image" src="<?php echo ds_get_pic(ATTACH_PATH.'/inform',$v['inform_pic2']); ?>" width="50"></a>
  113. <?php endif; if(!(empty($v['inform_pic3']) || (($v['inform_pic3'] instanceof \think\Collection || $v['inform_pic3'] instanceof \think\Paginator ) && $v['inform_pic3']->isEmpty()))): ?>
  114. <a href="<?php echo ds_get_pic(ATTACH_PATH.'/inform',$v['inform_pic3']); ?>" target="_blank" data-lightbox="lightbox-image"><img class="show_image" src="<?php echo ds_get_pic(ATTACH_PATH.'/inform',$v['inform_pic3']); ?>" width="50"></a>
  115. <?php endif; ?>
  116. <?php endif; ?>
  117. </td>
  118. <td><span><?php echo htmlentities(date("Y-m-d",!is_numeric($v['inform_datetime'])? strtotime($v['inform_datetime']) : $v['inform_datetime'])); ?></span></td>
  119. <td>
  120. <a href="JavaScript:void(0);" class="dsui-btn-view show_detail"><i class="iconfont"></i><?php echo htmlentities(lang('ds_detail')); ?></a>
  121. <a href="javascript:dsLayerOpen('<?php echo url('Inform/show_handle_page',['inform_id'=>$v['inform_id'],'inform_goods_name'=>$v['inform_goods_name']]); ?>','<?php echo htmlentities(lang('inform_text_handle')); ?>')" class="dsui-btn-edit"><i class="iconfont"></i><?php echo htmlentities(lang('inform_text_handle')); ?></a>
  122. </td>
  123. </tr>
  124. <tr class="inform_detail">
  125. <td colspan="15"><div class="shadow2">
  126. <div class="content">
  127. <dl>
  128. <dt><?php echo htmlentities(lang('inform_content')); ?></dt>
  129. <dd><?php echo htmlentities($v['inform_content']); ?></dd>
  130. </dl>
  131. <div class="close_detail"><a href="JavaScript:void(0);" title="<?php echo htmlentities(lang('ds_close')); ?>"><?php echo htmlentities(lang('ds_close')); ?></a></div>
  132. </div>
  133. </div></td>
  134. </tr>
  135. <?php endforeach; endif; else: echo "" ;endif; else: ?>
  136. <tr class="no_data">
  137. <td colspan="7"><?php echo htmlentities(lang('ds_no_record')); ?></td>
  138. </tr>
  139. <?php endif; ?>
  140. </tbody>
  141. </table>
  142. <?php if(!(empty($inform_list) || (($inform_list instanceof \think\Collection || $inform_list instanceof \think\Paginator ) && $inform_list->isEmpty()))): ?>
  143. <?php echo $show_page; ?>
  144. <?php endif; ?>
  145. </div>
  146. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery.lightbox/css/lightbox.min.css">
  147. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery.lightbox/js/lightbox.min.js"></script>
  148. <script type="text/javascript">
  149. $(document).ready(function(){
  150. //表格移动变色
  151. $(".inform_detail").hide();
  152. $(".show_detail").click(function(){
  153. $(".inform_detail").hide();
  154. $(this).parents("tr").next(".inform_detail").show();
  155. });
  156. $(".close_detail").click(function(){
  157. $(this).parents(".inform_detail").hide();
  158. });
  159. $("tbody .line").hover(
  160. function()
  161. {
  162. $(this).addClass("inform_highlight");
  163. },
  164. function()
  165. {
  166. $(this).removeClass("inform_highlight");
  167. });
  168. $('#time_from').datepicker({dateFormat: 'yy-mm-dd',onSelect:function(dateText,inst){
  169. var year2 = dateText.split('-') ;
  170. $('#time_to').datepicker( "option", "minDate", new Date(parseInt(year2[0]),parseInt(year2[1])-1,parseInt(year2[2])) );
  171. }});
  172. $('#time_to').datepicker({dateFormat: 'yy-mm-dd',onSelect:function(dateText,inst){
  173. var year1 = dateText.split('-') ;
  174. $('#time_from').datepicker( "option", "maxDate", new Date(parseInt(year1[0]),parseInt(year1[1])-1,parseInt(year1[2])) );
  175. }});
  176. });
  177. </script>