You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.5 KiB

  1. @extends('admin.layouts.app')
  2. @section('title', '微信公众号自定义菜单列表')
  3. @section('content')
  4. <h2 class="sub-header">微信自定义菜单</h2>[ <a href="/fladmin/weixinmenu/add">增加顶级菜单</a> ] [ <a onclick="createmenu_confirm('/fladmin/weixinmenu/createmenu')" href="javascript:;">生成菜单</a> ]<br><br>
  5. <form name="listarc"><div class="table-responsive">
  6. <table class="table table-striped table-hover">
  7. <thead><tr><th>ID</th><th>名称</th><th>菜单动作类型</th><th>是否显示</th><th>更新时间</th><th>操作</th></tr></thead>
  8. <tbody id="cat-list">
  9. <?php if($catlist){foreach($catlist as $row){ ?>
  10. <tr id="cat-<?php echo $row["id"]; ?>">
  11. <td><?php echo $row["id"]; ?></td>
  12. <td><?php if($row["pid"]!=0){echo "";}echo $row["name"]; ?></td><td><?php echo $row["type"]; ?></td><td><?php if($row["is_show"]==0){echo '是';}else{echo '<font color="red">否</font>';} ?></td><td><?php echo date('Y-m-d',$row["addtime"]); ?></td>
  13. <td><?php if($row["pid"]==0){ ?><a href="/fladmin/weixinmenu/add?reid=<?php echo $row["id"]; ?>">增加子类</a> | <?php } ?><a href="/fladmin/weixinmenu/edit?id=<?php echo $row["id"]; ?>">更改</a> | <a onclick="delconfirm('/fladmin/weixinmenu/del?id=<?php echo $row["id"]; ?>')" href="javascript:;">删除</a></td>
  14. </tr><?php }} ?>
  15. </tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->
  16. <script>
  17. function createmenu_confirm(url)
  18. {
  19. if(confirm("确定要重新生成微信自定义菜单吗?"))
  20. {
  21. location.href= url;
  22. }
  23. else
  24. {
  25. }
  26. }
  27. </script>
  28. @endsection