Нет описания
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. {include file="public/layout" /}
  2. <body class="bodystyle" style="overflow-y: scroll; cursor: default; -moz-user-select: inherit;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. <div class="page">
  6. {include file="form/bar" /}
  7. <div class="flexigrid">
  8. <div class="mDiv pt0">
  9. <div class="ftitle">
  10. {if condition="$main_lang == $admin_lang || !empty($global['language_split'])"}
  11. {eq name="'Form@field_add'|is_check_access" value="1"}
  12. <div class="fbutton">
  13. <a href="javascript:void(0);" data-href="{:url('Form/field_add')}" onclick="openFullframe(this, '新增表单', '400px', '250px');">
  14. <div class="add">
  15. <span><i class="layui-icon layui-icon-addition"></i>新增表单</span>
  16. </div>
  17. </a>
  18. </div>
  19. {/eq}
  20. {/if}
  21. </div>
  22. </div>
  23. <div class="hDiv">
  24. <div class="hDivBox">
  25. <table cellspacing="0" cellpadding="0" style="width: 100%">
  26. <thead>
  27. <tr>
  28. <th abbr="article_title" axis="col3" class="w40">
  29. <div class="tc">ID</div>
  30. </th>
  31. <th abbr="ac_id" axis="col4">
  32. <div class="text-l10">表单名称</div>
  33. </th>
  34. <th abbr="ac_id" axis="col4" class="w80">
  35. <div class="tc">留言总数</div>
  36. </th>
  37. <th abbr="ac_id" axis="col4" class="w80">
  38. <div class="tc">启用</div>
  39. </th>
  40. <th abbr="ac_id" axis="col4" class="w150">
  41. <div class="tc">创建时间</div>
  42. </th>
  43. <th axis="col1" class="w250">
  44. <div class="tc">操作</div>
  45. </th>
  46. </tr>
  47. </thead>
  48. </table>
  49. </div>
  50. </div>
  51. <div class="bDiv" style="height: auto;">
  52. <form id="PostForm">
  53. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  54. <table style="width: 100%">
  55. <tbody id="Template">
  56. {empty name="list"}
  57. <tr id="null-data">
  58. <td class="no-data" align="center" axis="col0" colspan="50">
  59. <div class="no_row">
  60. <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
  61. </div>
  62. </td>
  63. </tr>
  64. {else/}
  65. {foreach name="list" item="vo" key="k" }
  66. <tr class="tr">
  67. <td class="sort">
  68. <div class="w40 tc">
  69. <input type="hidden" name="id[]" value="{$vo.form_id}">
  70. {eq name='$main_lang' value='$admin_lang'}
  71. {$vo.form_id}
  72. {else /}
  73. {$main_form_list[$vo['form_id']]['form_id']|default=$vo['form_id']}
  74. {/eq}
  75. </div>
  76. </td>
  77. <td style="width: 100%">
  78. <div class="text-l10">
  79. {$vo.form_name}
  80. </div>
  81. </td>
  82. <td>
  83. <div class="w80 tc">
  84. <a href="javascript:void(0);" data-href="{:url('Form/index', ['typeid'=>$vo['form_id'],'iframe'=>1])}" onclick="openFullframe(this, '查看表单数据', '100%', '100%');" class="btn blue">{$form_list_count[$vo['form_id']]['count']|default='0'}</a>
  85. </div>
  86. </td>
  87. <td>
  88. <div class="w80 tc">
  89. {if condition='$vo.status == 1'}
  90. <span class="yes" {eq name="$Think.const.CONTROLLER_NAME.'@field_save'|is_check_access" value="1"}onClick="changeTableVal('form','form_id','{$vo.form_id}','status',this);"{/eq}><i class="fa fa-check-circle"></i>是</span>
  91. {else /}
  92. <span class="no" {eq name="$Think.const.CONTROLLER_NAME.'@field_save'|is_check_access" value="1"}onClick="changeTableVal('form','form_id','{$vo.form_id}','status',this);"{/eq}><i class="fa fa-ban"></i>否</span>
  93. {/if}
  94. </div>
  95. </td>
  96. <td>
  97. <div class="w150 tc">
  98. {$vo.add_time|MyDate='Y-m-d H:i:s',###}
  99. </div>
  100. </td>
  101. <td class="operation">
  102. <div class="w250 tc">
  103. {eq name="'Form@field_edit'|is_check_access" value="1"}
  104. <a href="javascript:void(0);" data-href="{:url('Form/field_edit',array('id'=>$vo['form_id']))}" class="btn blue" onclick="openFullframe(this, '编辑表单', '400px', '250px');">编辑</a>
  105. <i></i>
  106. {/eq}
  107. {eq name="'Form@attribute_index'|is_check_access" value="1"}
  108. <a href="javascript:void(0);" data-href="{:url('Form/attribute_index', ['typeid'=>$vo['form_id']])}" onclick="openFullframe(this, '字段列表', '100%', '100%');" class="btn blue">字段列表</a>
  109. <i></i>
  110. {/eq}
  111. {notempty name="$vo.attr_auto"}
  112. <a href="javascript:void(0);" data-url="{:url('Form/label_call', ['form_id'=>$vo['form_id']])}" onclick="LabelCall(this);" class="btn blue">标签调用</a>
  113. {else /}
  114. <a href="javascript:void(0);" data-href="https://www.eyoucms.com/plus/view.php?aid=29138&origin_eycms=1" onclick="openFullframe(this,'查看 form 手动表单标签');" class="btn blue">标签调用</a>
  115. {/notempty}
  116. <i></i>
  117. {if condition="$main_lang == $admin_lang || !empty($global['language_split'])"}
  118. {eq name="'Form@field_del'|is_check_access" value="1"}
  119. <a class="btn red" href="javascript:void(0);" data-url="{:url('Form/field_del', ['_ajax'=>1])}" data-title="{$vo.form_name}" data-id="{$vo.form_id}" onClick="delForm(this);">删除</a>
  120. {/eq}
  121. {else /}
  122. {eq name="'Form@field_del'|is_check_access" value="1"}
  123. <a class="btn grey" href="javascript:void(0);" title="请切换到主语言删除">删除</a>
  124. {/eq}
  125. {/if}
  126. </div>
  127. </td>
  128. </tr>
  129. {/foreach}
  130. {/empty}
  131. </tbody>
  132. </table>
  133. </div>
  134. </form>
  135. <div class="iDiv" style="display: none;"></div>
  136. </div>
  137. {notempty name="list"}
  138. <div class="tDiv">
  139. <div class="tDiv2">
  140. {include file="public/page" /}
  141. </div>
  142. <div style="clear:both"></div>
  143. </div>
  144. {/notempty}
  145. </div>
  146. </div>
  147. <script>
  148. $(document).ready(function(){
  149. // 表格行点击选中切换
  150. $('#flexigrid > table>tbody >tr').click(function(){
  151. $(this).toggleClass('trSelected');
  152. });
  153. // 点击刷新数据
  154. $('.fa-refresh').click(function(){
  155. location.href = location.href;
  156. });
  157. $('input[name*=ids]').click(function(){
  158. if ($('input[name*=ids]').length == $('input[name*=ids]:checked').length) {
  159. $('.checkAll').prop('checked','checked');
  160. } else {
  161. $('.checkAll').prop('checked', false);
  162. }
  163. });
  164. $('input[type=checkbox].checkAll').click(function(){
  165. $('input[type=checkbox]').prop('checked',this.checked);
  166. });
  167. });
  168. // 删除
  169. function delForm(obj){
  170. layer.confirm('确认彻底删除?该表单的数据将一起清空。', {
  171. shade: layer_shade,
  172. area: ['480px', '190px'],
  173. move: false,
  174. title: '提示',
  175. btnAlign:'r',
  176. closeBtn: 3,
  177. btn: ['确定', '取消'] ,//按钮
  178. success: function () {
  179. $(".layui-layer-content").css('text-align', 'left');
  180. }
  181. }, function(){
  182. layer_loading('正在处理');
  183. // 确定
  184. $.ajax({
  185. type : 'post',
  186. url : $(obj).attr('data-url'),
  187. data : {del_id:$(obj).attr('data-id'),_ajax:1},
  188. dataType : 'json',
  189. success : function(res){
  190. layer.closeAll();
  191. if(res.code == 1){
  192. showSuccessMsg(res.msg);
  193. window.location.reload();
  194. }else{
  195. showErrorAlert(res.msg);
  196. }
  197. }
  198. })
  199. }, function(index){
  200. layer.close(index);
  201. });
  202. return false;
  203. }
  204. //标签调用
  205. function LabelCall(obj) {
  206. //iframe窗
  207. layer.open({
  208. type: 2,
  209. title: '查看 form 自动标签',
  210. fixed: true, //不固定
  211. shadeClose: false,
  212. shade: layer_shade,
  213. content: $(obj).data('url'),
  214. area: ['780px', '430px']
  215. });
  216. }
  217. </script>
  218. {include file="public/footer" /}