人人商城

permission.html 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. {template 'common/header'}
  2. <ol class="breadcrumb" style="padding:5px 0;">
  3. <li><a href="{url 'home/welcome/ext'}"><i class="fa fa-cogs"></i> &nbsp; 扩展功能</a></li>
  4. <li><a href="{url 'home/welcome/ext' array('m' => $modulename)}">{$module_types[$module['type']]['title']}模块 - {$module['title']}</a></li>
  5. <li class="active">设置操作权限</li>
  6. </ol>
  7. <ul class="nav nav-tabs">
  8. <li class="active"><a>设置操作权限</a></li>
  9. </ul>
  10. <form action="" method="post">
  11. <div class="panel panel-default">
  12. <div class="panel-body table-responsive">
  13. <table class="table">
  14. <tr>
  15. <td width="100">用户名</td>
  16. <td>{$username}</td>
  17. </tr>
  18. </table>
  19. </div>
  20. </div>
  21. {if $shuju['cover']}
  22. <div class="panel panel-default">
  23. <div class="panel-heading">入口设置权限</div>
  24. <div class="panel-body table-responsivee">
  25. <table class="table">
  26. <thead>
  27. <tr>
  28. <th width="100">选择</th>
  29. <th width="400">导航标题</th>
  30. <th>链接地址</th>
  31. </tr>
  32. </thead>
  33. {loop $shuju['cover'] $index $cover}
  34. <tr>
  35. <input type="hidden" name="title[{$index}]" value="{$cover['title']}">
  36. <input type="hidden" name="do[{$index}]" value="{$cover['do']}">
  37. <input type="hidden" name="state[{$index}]" value="{$cover['state']}">
  38. <input type="hidden" name="eid[{$index}]" value="{$cover['eid']}">
  39. <td width="100"><input type="checkbox" name="enable[{$index}]" value="1" {if $cover['dostate'] == $usdata[$cover['do'] . $cover['state']]}checked{/if}></td>
  40. <td>{$cover['title']}</td>
  41. <td><a href="{$cover['url']}" target="_blank">{$cover['url']}</a></td>
  42. </tr>
  43. {/loop}
  44. </table>
  45. </div>
  46. </div>
  47. {/if}
  48. {if $shuju['menu']}
  49. <div class="panel panel-default">
  50. <div class="panel-heading">菜单操作权限</div>
  51. <div class="panel-body table-responsivee">
  52. <table class="table">
  53. <thead>
  54. <tr>
  55. <th width="100">选择</th>
  56. <th width="400">导航标题</th>
  57. <th>链接地址</th>
  58. </tr>
  59. </thead>
  60. {loop $shuju['menu'] $index $menu}
  61. <tr>
  62. <input type="hidden" name="title[{$index}]" value="{$menu['title']}">
  63. <input type="hidden" name="do[{$index}]" value="{$menu['do']}">
  64. <input type="hidden" name="state[{$index}]" value="{$menu['state']}">
  65. <input type="hidden" name="eid[{$index}]" value="{$menu['eid']}">
  66. <td width="100"><input type="checkbox" name="enable[{$index}]" value="1" {if $menu['dostate'] == $usdata[$menu['do'] . $menu['state']]}checked{/if}></td>
  67. <td>{$menu['title']}</td>
  68. <td><a href="{$menu['url']}" target="_blank">{$menu['url']}</a></td>
  69. </tr>
  70. {/loop}
  71. </table>
  72. </div>
  73. </div>
  74. {/if}
  75. {if $shuju['rule']}
  76. <div class="panel panel-default">
  77. <div class="panel-heading">规则设置权限</div>
  78. <div class="panel-body table-responsivee">
  79. <table class="table">
  80. <thead>
  81. <tr>
  82. <th width="100">选择</th>
  83. <th width="400">导航标题</th>
  84. <th>链接地址</th>
  85. </tr>
  86. </thead>
  87. {loop $shuju['rule'] $index $rule}
  88. <tr>
  89. <input type="hidden" name="title[{$index}]" value="{$rule['title']}">
  90. <input type="hidden" name="do[{$index}]" value="{$rule['do']}">
  91. <input type="hidden" name="state[{$index}]" value="{$rule['state']}">
  92. <input type="hidden" name="eid[{$index}]" value="{$rule['eid']}">
  93. <td width="100"><input type="checkbox" name="enable[{$index}]" value="1" {if $rule['dostate'] == $usdata[$rule['do'] . $rule['state']]}checked{/if}></td>
  94. <td>{$rule['title']}</td>
  95. <td><a href="{$rule['url']}" target="_blank">{$rule['url']}</a></td>
  96. </tr>
  97. {/loop}
  98. </table>
  99. </div>
  100. </div>
  101. {/if}
  102. {if $shuju['function']}
  103. <div class="panel panel-default">
  104. <div class="panel-heading">独立功能权限</div>
  105. <div class="panel-body table-responsivee">
  106. <table class="table">
  107. <thead>
  108. <tr>
  109. <th width="100">选择</th>
  110. <th width="400">导航标题</th>
  111. <th>链接地址</th>
  112. </tr>
  113. </thead>
  114. {loop $shuju['function'] $index $rule}
  115. <tr>
  116. <input type="hidden" name="title[{$index}]" value="{$rule['title']}">
  117. <input type="hidden" name="do[{$index}]" value="{$rule['do']}">
  118. <input type="hidden" name="state[{$index}]" value="{$rule['state']}">
  119. <input type="hidden" name="eid[{$index}]" value="{$rule['eid']}">
  120. <td width="100"><input type="checkbox" name="enable[{$index}]" value="1" {if $rule['dostate'] == $usdata[$rule['do'] . $rule['state']]}checked{/if}></td>
  121. <td>{$rule['title']}</td>
  122. <td><a href="{$rule['url']}" target="_blank">{$rule['url']}</a></td>
  123. </tr>
  124. {/loop}
  125. </table>
  126. </div>
  127. </div>
  128. {/if}
  129. <div class="form-group">
  130. <div class="col-sm-12">
  131. <input name="token" type="hidden" value="{$_W['token']}" />
  132. <input type="submit" class="btn btn-primary col-lg-1" name="submit" value="提交" />
  133. </div>
  134. </div>
  135. </form>
  136. {template 'common/footer'}