manager.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. /**
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. * @copyright Copyright (c) 2016 FecShop Software LLC
  7. * @license http://www.fecshop.com/license/
  8. */
  9. use yii\helpers\Html;
  10. use fec\helpers\CRequest;
  11. ?><style type="text/css">
  12. ul.rightTools {float:right; display:block;}
  13. ul.rightTools li{float:left; display:block; margin-left:5px}
  14. </style>
  15. <form id="pagerForm" method="post" action="<?= \fec\helpers\CUrl::getCurrentUrl(); ?>">
  16. <?= CRequest::getCsrfInputHtml(); ?>
  17. </form>
  18. <div class="pageContent" style="padding:5px">
  19. <div class="panel" defH="40">
  20. <h1>菜单基本信息</h1>
  21. <div>
  22. <ul class="leftTools">
  23. <li>
  24. <a class="button" target="dialog"
  25. rel="<?= $createMenuUrl; ?>"
  26. href="<?= $createMenuUrl; ?>"
  27. mask="true">
  28. <span>创建菜单</span>
  29. </a>
  30. </li>
  31. <li>
  32. <a class="button deleteMenu"
  33. rel="<?= $deleteMenuUrl; ?>"
  34. href="javascript:"
  35. mask="true">
  36. <span>删除菜单</span>
  37. </a>
  38. <a class="btnDel btnDelMenu" style="display:none;" href="<?= $deleteMenuUrl; ?>" target="ajaxTodo" title="删除后,菜单对应的所有子菜单都会被删除,确定操作吗?">删除</a>
  39. </li>
  40. </ul>
  41. </div>
  42. </div>
  43. <script>
  44. $(".deleteMenu").click(function(){
  45. current_id = $(".current_parent_id").val();
  46. if(current_id){
  47. href = $(this).attr("rel");
  48. $(".btnDelMenu").attr("href",href+"?id="+current_id).click();
  49. }else{
  50. alert("you must chose a category to delete");
  51. }
  52. });
  53. </script>
  54. <div class="divider"></div>
  55. <div class="tabs">
  56. <div>
  57. <div layoutH="146" style="float:left; display:block; overflow:auto; width:240px; border:solid 1px #CCC; line-height:21px; background:#fff">
  58. <ul class="tree treeFolder">
  59. <?= $menTreeHtml; ?>
  60. </ul>
  61. </div>
  62. <form method="post" action="<?= $editMenuUrl ?>" onsubmit="return validateCallback(this,navTabAjaxDone)" rel="pagerForm">
  63. <?= CRequest::getCsrfInputHtml(); ?>
  64. <div layoutH="146" id="jbsxBox" class="unitBox pageFormContent" style="margin-left:241px;display:block; overflow:auto; width:auto; border:solid 1px #CCC; line-height:21px; background:#fff">
  65. </div>
  66. </form>
  67. </div>
  68. </div>
  69. </div>