editpriv.html.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. /**
  3. * The createPrivPackage view file of group module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Ethan wang <wangxuepeng@easycorp.ltd>
  8. * @package group
  9. * @version $Id: editPriv.html.php 4769 2023-03-0 10:09:21Z ethan.wang $
  10. * @link https://www.zentao.net
  11. */
  12. ?>
  13. <?php include '../../common/view/header.html.php';?>
  14. <?php js::set('moduleViewPairs', $moduleViewPairs);?>
  15. <?php js::set('packageModulePairs', $packageModulePairs);?>
  16. <div id='mainContent' class='main-content'>
  17. <div class='main-header'>
  18. <h2><?php echo $lang->group->editPriv;?></h2>
  19. </div>
  20. <form method='post' class='form-ajax' id='editPriv'>
  21. <table align='center' class='table table-form'>
  22. <tbody>
  23. <tr>
  24. <th class='c-name'><?php echo $lang->group->privName;?></th>
  25. <td class='required'><?php echo html::input('name', $priv->name, "class='form-control'");?></td>
  26. </tr>
  27. <?php $isSystem = !empty($priv->system);?>
  28. <tr>
  29. <th><?php echo $lang->group->privModuleName;?></th>
  30. <td class='<?php echo !$isSystem ? 'required' : '';?>'><?php echo !$isSystem ? html::input('moduleName', $priv->module, "class='form-control'") : $priv->module;?></td>
  31. </tr>
  32. <tr>
  33. <th><?php echo $lang->group->privMethodName;?></th>
  34. <td class='<?php echo !$isSystem ? 'required' : '';?>'><?php echo !$isSystem ? html::input('methodName', $priv->method, "class='form-control'") : $priv->method;?></td>
  35. </tr>
  36. <tr>
  37. <th><?php echo $lang->group->privView;?></th>
  38. <td class='required'><?php echo html::select('view', $views, $priv->privView, "class='form-control chosen' onchange='loadModuleAndPackage(this.value)' data-drop_direction='down'");?></td>
  39. </tr>
  40. <tr>
  41. <th><?php echo $lang->group->privModule;?></th>
  42. <td class='required'><?php echo html::select('module', $modules, $priv->privModule, "class='form-control picker-select' onchange='loadPackages(this.value, \"module\")'");?></td>
  43. </tr>
  44. <tr>
  45. <th><?php echo $lang->privpackage->belong;?></th>
  46. <td><?php echo html::select('package', $packages, $priv->package, "class='form-control picker-select'");?></td>
  47. </tr>
  48. <tr>
  49. <th><?php echo $lang->group->privDesc;?></th>
  50. <td><?php echo html::textarea('desc', $priv->desc, "rows=5 class=form-control");?></td>
  51. </tr>
  52. <tr>
  53. <td colspan='2' class='text-center'><?php echo html::submitButton();?></td>
  54. </tr>
  55. </tbody>
  56. </table>
  57. </form>
  58. <hr class='small' />
  59. <div class='main'><?php include '../../common/view/action.html.php';?></div>
  60. </div>
  61. <?php include '../../common/view/footer.html.php';?>