* adjust for branch manage page.

This commit is contained in:
wangyidong
2018-04-18 13:14:07 +08:00
parent d3e861e212
commit f1db15d15b
3 changed files with 57 additions and 40 deletions
+41 -39
View File
@@ -11,45 +11,47 @@
*/
?>
<?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 id='mainContent' class='main-content'>
<div class="center-block mw-700px">
<div class="main-header">
<h2><?php printf($lang->branch->manageTitle, $this->lang->product->branchName[$this->session->currentProductType])?></h2>
</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-trash'></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-trash'></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>
<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-trash'></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-trash'></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';?>
+1 -1
View File
@@ -16,7 +16,7 @@
<span class='btn btn-link btn-active-text'><span class='text'><?php echo $lang->product->project;?></span></span>
</div>
</div>
<div id="mainContent">
<div id="mainContent" class='main-content'>
<table class="main-table table has-sort-head table-fixed table-project">
<thead>
<tr>
+15
View File
@@ -67,3 +67,18 @@ body.body-modal #mainMenu{margin-top:5px;}
.modal.with-titlebar .modal-header .modal-body, .modal-dialog.hide-header .modal-header .modal-body {z-index: 990}
.modal.with-titlebar .modal-header .modal-title, .modal-dialog.hide-header .modal-header .modal-title {display: none}
.modal.with-titlebar .modal-header .close, .modal-dialog.hide-header .modal-header .close {position: absolute; right: 15px; top: 15px}
.fixedTfootAction {background-color: #f5f5f5; position: fixed; bottom: 40px; box-shadow: 0 -3px 4px rgba(0,0,0,0.05);}
.ranzhiFixedTfootAction .fixedTfootAction {bottom: 0px;}
.table > .fixedTfootAction > tr > td {border-bottom: none}
.table > .fixedTfootAction.scrolled > tr > td {background: #2e6dad; border: none; color: #fff}
.fixedTfootAction.scrolled .btn {border: 1px solid #fff; border-color: rgba(255,255,255,.5); background-color: #2e6dad!important; text-shadow: none; color: #e5e5e5!important;}
.fixedTfootAction.scrolled .btn:hover {background-color: #2e6dad!important;}
.fixedTfootAction.scrolled .pager,
.fixedTfootAction.scrolled .pager > a,
.fixedTfootAction.scrolled .pager > .dropdown > a,
.fixedTfootAction.scrolled .table-actions > .text {color: #e5e5e5}
.fixedTfootAction.scrolled .pager strong,
.fixedTfootAction.scrolled .table-actions > .text strong {color: #fff;}
.fixedTfootAction.scrolled .pager .dropdown > a:hover,
.fixedTfootAction.scrolled .pager > a:hover {background-color: #2e6dad}