createpriv.html.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * The createpriv 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 Mengyi Liu <liumengyi@easycorp.ltd>
  8. * @package group
  9. * @version $Id: createpriv.html.php 4769 2023-03-07 10:09:21Z liumengyi $
  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->createPriv;?></h2>
  19. </div>
  20. <form method='post' class='form-ajax' id='createpriv'>
  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', '', "class='form-control'");?></td>
  26. <td></td>
  27. </tr>
  28. <tr>
  29. <th><?php echo $lang->group->privModuleName;?></th>
  30. <td class='required'><?php echo html::input('moduleName', '', "class='form-control'");?></td>
  31. </tr>
  32. <tr>
  33. <th><?php echo $lang->group->privMethodName;?></th>
  34. <td class='required'><?php echo html::input('methodName', '', "class='form-control'");?></td>
  35. </tr>
  36. <tr>
  37. <th><?php echo $lang->group->privView;?></th>
  38. <td class='required'><?php echo html::select('view', $views, '', "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, '', "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, '', "class='form-control picker-select' onchange='changeViewAndModule(this.value)'");?></td>
  47. </tr>
  48. <tr>
  49. <th><?php echo $lang->group->privDesc;?></th>
  50. <td colspan='2'><?php echo html::textarea('desc', '', "rows=5 class=form-control");?></td>
  51. </tr>
  52. <tr>
  53. <td colspan='3' class='text-center'><?php echo html::submitButton();?></td>
  54. </tr>
  55. </tbody>
  56. </table>
  57. </form>
  58. </div>
  59. <?php include '../../common/view/footer.html.php';?>