edithost.html.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * The edit view of tree module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(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 Chunsheng Wang <chunsheng@cnezsoft.com>
  8. * @package tree
  9. * @version $Id: edit.html.php 4795 2013-06-04 05:59:58Z zhujinyonging@gmail.com $
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php
  14. $webRoot = $this->app->getWebRoot();
  15. $jsRoot = $webRoot . "js/";
  16. ?>
  17. <?php include $app->getModuleRoot() . 'common/view/chosen.html.php';?>
  18. <div class='modal-dialog w-500px'>
  19. <div class="modal-header">
  20. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  21. <h4 class="modal-title"><strong><?php echo $lang->tree->editHost;?></strong></h4>
  22. </div>
  23. <div class='modal-body'>
  24. <form action="<?php echo inlink('editHost', 'moduleID=' . $module->id);?>" target='hiddenwin' method='post' class='mt-10px' id='dataform'>
  25. <table class='table table-form'>
  26. <tr>
  27. <th class='w-80px'><?php echo $lang->tree->parentGroup;?></th>
  28. <td><?php echo html::select('parent', $optionMenu, $module->parent, "class='form-control'");?></td>
  29. </tr>
  30. <tr>
  31. <th class='w-80px'><?php echo $lang->tree->groupName;?></th>
  32. <td><?php echo html::input('name', $module->name, "class='form-control' autocomplete='off'");?></td>
  33. </tr>
  34. <tr>
  35. <th><?php echo $lang->tree->short;?></th>
  36. <td><?php echo html::input('short', $module->short, "class='form-control' autocomplete='off'");?></td>
  37. </tr>
  38. <tr>
  39. <td colspan='2' class='text-center form-actions'>
  40. <?php echo html::submitButton();?>
  41. </td>
  42. </tr>
  43. </table>
  44. </form>
  45. </div>
  46. </div>
  47. <script>
  48. $(function(){$('#parent').chosen();})
  49. </script>