50 lines
2.1 KiB
PHP
50 lines
2.1 KiB
PHP
<?php
|
|
/**
|
|
* The manage view file of branch module of ZenTaoPMS.
|
|
*
|
|
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
|
|
* @license ZPL (http://zpl.pub/page/zplv12.html)
|
|
* @author Yidong Wang <yidong@cnezsoft.com>
|
|
* @package branch
|
|
* @version $Id$
|
|
* @link http://www.zentao.net
|
|
*/
|
|
?>
|
|
<?php include '../../common/view/header.html.php';?>
|
|
<div class="container mw-700px">
|
|
<div id="titlebar">
|
|
<div class="heading"><strong><?php echo $lang->branch->manage?></strong></div>
|
|
</div>
|
|
<form method='post' target='hiddenwin'>
|
|
<table class="table table-form">
|
|
<tr>
|
|
<td class='w-50px'></td>
|
|
<td class="w-300px">
|
|
<div id='branches'>
|
|
<?php foreach($branches as $branchID => $branch):?>
|
|
<div class='input-group'>
|
|
<?php echo html::input("branch[$branchID]", $branch, "class='form-control'")?>
|
|
<span class='input-group-addon'><a href='javascript:;' onclick='addItem()'><i class='icon icon-plus'></i></a></span>
|
|
<span class='input-group-addon'><a href='<?php echo common::hasPriv('branch', 'delete') ? inlink('delete', "branch=$branchID") : '###';?>' class='<?php if(!common::hasPriv('branch', 'delete')) echo 'disabled'?>' target='hiddenwin'><i class='icon icon-remove'></i></a></span>
|
|
</div>
|
|
<?php endforeach;?>
|
|
<?php for($i = 0; $i < 2; $i++):?>
|
|
<div class='input-group'>
|
|
<?php echo html::input("newbranch[]", '', "class='form-control'")?>
|
|
<span class='input-group-addon'><a href='javascript:;' onclick='addItem()'><i class='icon icon-plus'></i></a></span>
|
|
<span class='input-group-addon'><a href='javascript:;' onclick='deleteItem(this)'><i class='icon icon-remove'></i></a></span>
|
|
</div>
|
|
<?php endfor;?>
|
|
</div>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td><?php echo html::submitButton();?> </td><td></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
<?php include '../../common/view/footer.html.php';?>
|