zentaopms/extension/max/tree/ext/view/edithost.html.php
2023-05-16 10:50:42 +08:00

50 lines
1.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* The edit view of tree module of ZenTaoPMS.
*
* @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
* @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
* @package tree
* @version $Id: edit.html.php 4795 2013-06-04 05:59:58Z zhujinyonging@gmail.com $
* @link http://www.zentao.net
*/
?>
<?php
$webRoot = $this->app->getWebRoot();
$jsRoot = $webRoot . "js/";
?>
<?php include $app->getModuleRoot() . 'common/view/chosen.html.php';?>
<div class='modal-dialog w-500px'>
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title"><strong><?php echo $lang->tree->editHost;?></strong></h4>
</div>
<div class='modal-body'>
<form action="<?php echo inlink('editHost', 'moduleID=' . $module->id);?>" target='hiddenwin' method='post' class='mt-10px' id='dataform'>
<table class='table table-form'>
<tr>
<th class='w-80px'><?php echo $lang->tree->parentGroup;?></th>
<td><?php echo html::select('parent', $optionMenu, $module->parent, "class='form-control'");?></td>
</tr>
<tr>
<th class='w-80px'><?php echo $lang->tree->groupName;?></th>
<td><?php echo html::input('name', $module->name, "class='form-control' autocomplete='off'");?></td>
</tr>
<tr>
<th><?php echo $lang->tree->short;?></th>
<td><?php echo html::input('short', $module->short, "class='form-control' autocomplete='off'");?></td>
</tr>
<tr>
<td colspan='2' class='text-center form-actions'>
<?php echo html::submitButton();?>
</td>
</tr>
</table>
</form>
</div>
</div>
<script>
$(function(){$('#parent').chosen();})
</script>