Files
EasySoft-ZenTaoPMS/module/branch/view/manage.html.php
2016-11-21 17:02:44 +08:00

56 lines
2.3 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 printf($lang->branch->manageTitle, $this->lang->product->branchName[$this->session->currentProductType])?></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' data-id='<?php echo $branchID?>'>
<?php echo html::input("branch[$branchID]", $branch, "class='form-control'")?>
<?php if(common::hasPriv('branch', 'sort')):?>
<span class='input-group-addon sort-handler'><a><i class='icon icon-move'></i></a></span>
<?php endif;?>
<?php if(common::hasPriv('branch', 'delete')):?>
<span class='input-group-addon'><?php echo html::a(inlink('delete', "branchID=$branchID"), "<i class='icon icon-remove'></i>", 'hiddenwin')?></span>
<?php endif;?>
</div>
<?php endforeach;?>
</div>
<div id='newbranches'>
<?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(this)'><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';?>