* Refact browse page of dept.

This commit is contained in:
liugang
2018-04-20 15:24:55 +08:00
parent 70b7113429
commit 48d7755bbf
5 changed files with 42 additions and 68 deletions
+21 -29
View File
@@ -15,32 +15,24 @@ $webRoot = $this->app->getWebRoot();
$jsRoot = $webRoot . "js/";
?>
<?php include '../../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><small class='text-muted'><?php echo html::icon($lang->icons['edit']);?></small> <?php echo $lang->dept->edit;?></strong></h4>
</div>
<div class='modal-body'>
<form action="<?php echo inlink('edit', 'deptID=' . $dept->id);?>" target='hiddenwin' class='form-condensed' method='post' class='mt-10px' id='dataform'>
<table class='table table-form' style='width:100%'>
<tr>
<th class='w-80px'><?php echo $lang->dept->parent;?></th>
<td><?php echo html::select('parent', $optionMenu, $dept->parent, "class='form-control chosen'");?></td>
</tr>
<tr>
<th class='w-80px'><?php echo $lang->dept->name;?></th>
<td><?php echo html::input('name', $dept->name, "class='form-control' autocomplete='off'");?></td>
</tr>
<tr>
<th class='w-80px'><?php echo $lang->dept->manager;?></th>
<td><?php echo html::select('manager', $users, $dept->manager, "class='form-control chosen'", true);?></td>
</tr>
<tr>
<td colspan='2' class='text-center'>
<?php echo html::submitButton();?>
</td>
</tr>
</table>
</form>
</div>
</div>
<form action="<?php echo inlink('edit', 'deptID=' . $dept->id);?>" target='hiddenwin' method='post' class='mt-10px' id='dataform'>
<table class='table table-form' style='width:100%'>
<tr>
<th class='w-80px'><?php echo $lang->dept->parent;?></th>
<td><?php echo html::select('parent', $optionMenu, $dept->parent, "class='form-control chosen'");?></td>
</tr>
<tr>
<th class='w-80px'><?php echo $lang->dept->name;?></th>
<td><?php echo html::input('name', $dept->name, "class='form-control' autocomplete='off'");?></td>
</tr>
<tr>
<th class='w-80px'><?php echo $lang->dept->manager;?></th>
<td><?php echo html::select('manager', $users, $dept->manager, "class='form-control chosen'", true);?></td>
</tr>
<tr>
<td colspan='2' class='text-center'>
<?php echo html::submitButton('', '', 'btn btn-wide btn-primary');?>
</td>
</tr>
</table>
</form>