* adjust for admin page.

This commit is contained in:
wangyidong
2018-04-23 16:37:10 +08:00
parent f276e7083c
commit e993f33007
13 changed files with 264 additions and 239 deletions

View File

@@ -6,7 +6,7 @@
.card > .media > h5 {position: absolute; display: block; color: #666; z-index: 100; font-size: 14px; left: 15px; top: 10px; transition: all 0.4s;}
.card:hover > .media {background: #F8FAFE}
.card:hover > .media > .icon {color: #ccc}
.card .card-content {padding: 20px}
.card .card-content {padding: 20px; border:1px solid #f1f1f1;}
.card-content > ul {padding-left: 20px;}
.card-content > ul > li {margin-bottom: 5px;}
.card a, .card:hover a {color: #444}

View File

@@ -11,15 +11,16 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<div class='container mw-500px'>
<div id='titlebar'>
<div class='heading'>
<div id='mainContent' class='main-content'>
<div class='center-block mw-500px'>
<div class='main-header'>
<h2>
<span class='prefix'><?php echo html::icon('cloud');?></span>
<strong><?php echo $lang->admin->bind->caption;?></strong>
<?php echo $lang->admin->bind->caption;?>
</h2>
</div>
</div>
<form class='form-condensed mw-400px' method="post" target="hiddenwin">
<table align='center' class='table table-form'>
<form class='mw-400px' method="post" target="hiddenwin">
<table class='table table-form'>
<tr>
<th class='w-100px'><?php echo $lang->user->account;?></th>
<?php
@@ -33,9 +34,16 @@
<td><?php echo html::password('password', '', "class='form-control'");?></td>
</tr>
<tr>
<th></th><td class="text-center"><?php echo html::submitButton() . html::hidden('sn', $sn) . html::hidden('site', common::getSysURL());?></td>
<th></th>
<td class="text-center">
<?php
echo html::submitButton('', '', 'btn btn-wide btn-primary');
echo html::hidden('sn', $sn) . html::hidden('site', common::getSysURL());
?>
</td>
</tr>
</table>
</form>
</div>
</div>
<?php include '../../common/view/footer.html.php';?>

View File

@@ -11,9 +11,10 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<div class='container mw-700px' id='checkEmail'>
<div id='titlebar'>
<div class='heading'><strong><?php echo $lang->admin->certifyEmail;?></strong></div>
<div id='mainContent' class='main-content'>
<div class='center-block mw-700px' id='checkEmail'>
<div class='main-header'>
<h2><?php echo $lang->admin->certifyEmail;?></h2>
</div>
<form method='post' target='hiddenwin'>
<table class='table table-form'>
@@ -33,6 +34,7 @@
</table>
</form>
</div>
</div>
<script>
$(function()
{
@@ -52,7 +54,7 @@ $(function()
}
else
{
bootbox.alert(response.message);
alert(response.message);
}
}, 'json')
return false;

View File

@@ -11,9 +11,10 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<div class='container mw-700px' id='checkMobile'>
<div id='titlebar'>
<div class='heading'><strong><?php echo $lang->admin->certifyMobile;?></strong></div>
<div id='mainContent' class='main-content'>
<div class='center-block mw-700px' id='checkMobile'>
<div class='main-header'>
<h2><?php echo $lang->admin->certifyMobile;?></h2>
</div>
<form method='post' target='hiddenwin'>
<table class='table table-form'>
@@ -33,6 +34,7 @@
</table>
</form>
</div>
</div>
<script>
$(function()
{

View File

@@ -11,13 +11,14 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<div id='featurebar'>
<ul class='nav'>
<li><?php common::printLink('admin', 'safe', '', $lang->admin->safe->set);?></li>
<li class='active'><?php common::printLink('admin', 'checkWeak', '', $lang->admin->safe->checkWeak);?></li>
</ul>
<div id='mainMenu' class='clearfix'>
<div class='btn-toolbar pull-left'>
<?php common::printLink('admin', 'safe', '', "<span class='text'>{$lang->admin->safe->set}</span>", '', "class='btn btn-link'");?>
<?php common::printLink('admin', 'checkWeak', '', "<span class='text'>{$lang->admin->safe->checkWeak}</span>", '', "class='btn btn-link btn-active-text'");?></li>
</div>
<div class='container mw-800px'>
</div>
<div id='mainContent' class='main-content'>
<div class='center-block mw-800px main-table pd-0'>
<table class='table table-condensed table-hover table-striped table-fixed'>
<thead>
<th class='w-id'><?php echo $lang->idAB;?></th>
@@ -39,10 +40,11 @@
<td><?php echo $user->mobile?></td>
<td><?php echo $user->birthday?></td>
<td><?php echo $lang->admin->safe->reasonList[$user->weakReason];?></td>
<td><?php common::printIcon('user', 'edit', "userID=$user->id", '', 'list');?></td>
<td class='c-actions'><?php common::printIcon('user', 'edit', "userID=$user->id", '', 'list');?></td>
</tr>
<?php endforeach;?>
</tbody>
</table>
</div>
</div>
<?php include '../../common/view/footer.html.php';?>

View File

@@ -11,6 +11,7 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<div id='mainContent' class='main-content'>
<?php if(!$bind and !$ignore and common::hasPriv('admin', 'register')):?>
<div id="notice" class='alert alert-success'>
<?php echo html::a(inlink('ignore'), '<i class="icon-remove"></i> ' . $lang->admin->notice->ignore, 'hiddenwin', 'class="close" data-dismiss="alert" style="font-size: 12px"');?>
@@ -18,14 +19,17 @@
</div>
<?php endif;?>
<div id='titlebar'>
<div class='main-header'>
<div class='heading'>
<strong>
<?php
echo sprintf($lang->admin->info->version, $config->version);
printf($lang->admin->info->version, $config->version);
if($bind) echo sprintf($lang->admin->info->account, '<span class="red">' . $account . '</span>');
echo $lang->admin->info->links;
?>
</strong>
</div>
</div>
<?php include '../../misc/view/links.html.php';?>
</div>
<?php include '../../common/view/footer.html.php';?>

View File

@@ -12,7 +12,8 @@
?>
<?php include $this->app->getModuleRoot() . 'webhook/view/header.html.php';?>
<?php include '../../common/view/form.html.php';?>
<div class='container mw-600px'>
<div id='mainContent' class='main-content'>
<div class='center-block mw-600px'>
<form id='logForm' method='post' class='ajaxForm'>
<table class='table table-form'>
<tr>
@@ -29,4 +30,5 @@
</table>
</form>
</div>
</div>
<?php include '../../common/view/footer.html.php';?>

View File

@@ -16,17 +16,16 @@
.input-group-btn .btn{border-left:0px}
.input-group:last-child .input-group-addon {border-right:0px;}
</style>
<div id='featurebar'>
<div class='heading'>
<span class='prefix'><?php echo html::icon('cloud');?></span>
<strong><?php echo $lang->admin->register->caption;?></strong>
<div id='mainMenu' class='clearfix'>
<div class='btn-toolbar pull-left'>
<span class='btn btn-link btn-active-text'><span class='text'><?php echo $lang->admin->register->caption;?></span></span>
</div>
</div>
<div class='row'>
<div id='mainContent' class='main-row'>
<div class='col-md-6'>
<div class='panel'>
<div class='panel-heading'><strong><?php echo $lang->admin->register->common?></strong></div>
<form class='form-condensed mw-600px' method="post" target="hiddenwin">
<form class='mw-600px' method="post" target="hiddenwin">
<table align='center' class='table table-form'>
<tr>
<th class='w-100px'><?php echo $lang->user->account;?></th>
@@ -78,11 +77,14 @@
</tr>
<tr>
<th><?php echo $lang->user->password2;?></th>
<td><?php echo html::password('password2', '', "class='form-control'") . '<span class="star">*</span>';?></td>
<td>
<div class="required required-wrapper"></div>
<?php echo html::password('password2', '', "class='form-control'");?>
</td>
</tr>
<tr>
<th></th>
<td colspan="2">
<td>
<?php echo html::submitButton($lang->admin->register->submit) . html::hidden('sn', $sn) . html::hidden('bindSite', common::getSysURL());?>
</td>
</tr>
@@ -93,7 +95,7 @@
<div class='col-md-6'>
<div class='panel'>
<div class='panel-heading'><strong><?php echo $lang->admin->register->bind?></strong></div>
<form class='form-condensed mw-400px' method="post" target="hiddenwin" action='<?php echo inlink('bind', "from=$from")?>'>
<form class='mw-400px' method="post" target="hiddenwin" action='<?php echo inlink('bind', "from=$from")?>'>
<table align='center' class='table table-form'>
<tr>
<th class='w-100px'><?php echo $lang->user->account;?></th>

View File

@@ -11,18 +11,19 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<div id='featurebar'>
<ul class='nav'>
<li class='active'><?php common::printLink('admin', 'safe', '', $lang->admin->safe->set);?></li>
<li><?php common::printLink('admin', 'checkWeak', '', $lang->admin->safe->checkWeak);?></li>
</ul>
<div id='mainMenu' class='clearfix'>
<div class='btn-toolbar pull-left'>
<?php common::printLink('admin', 'safe', '', "<span class='text'>{$lang->admin->safe->set}</span>", '', "class='btn btn-link btn-active-text'");?>
<?php common::printLink('admin', 'checkWeak', '', "<span class='text'>{$lang->admin->safe->checkWeak}</span>", '', "class='btn btn-link'");?></li>
</div>
<div class='container mw-800px'>
</div>
<div id='mainContent' class='main-content'>
<div class='center-block mw-800px'>
<form method='post' target='hiddenwin'>
<table class='table table-form'>
<tr>
<th class='w-130px'><?php echo $lang->admin->safe->password?></th>
<td><?php echo html::radio('mode', $lang->admin->safe->modeList, isset($config->safe->mode) ? $config->safe->mode : 0, "onclick=showModeRule(this.value)")?></td>
<th style='width:130px'><?php echo $lang->admin->safe->password?></th>
<td class='w-200px'><?php echo html::radio('mode', $lang->admin->safe->modeList, isset($config->safe->mode) ? $config->safe->mode : 0, "onclick=showModeRule(this.value)")?></td>
<td><?php echo $lang->admin->safe->noticeMode?></td>
</tr>
<tr id='mode1Rule' class='hidden'>
@@ -52,6 +53,7 @@
</table>
</form>
</div>
</div>
<script>
$(function()
{

View File

@@ -11,14 +11,14 @@
*/
?>
<?php include '../../common/view/header.html.php'; ?>
<div class='container mw-700px'>
<div id='titlebar'>
<div id='mainContent' class='main-content'>
<div class='center-block mw-700px'>
<div class='main-header'>
<div class='heading'>
<strong><?php echo $lang->admin->sso;?></strong>
<small class='text-muted'> <?php echo $lang->sso->settings;?> <?php echo html::icon('pencil');?></small>
<h2><?php echo $lang->admin->sso;?></h2>
</div>
</div>
<form class='form-condensed' method='post' id='dataform'>
<form method='post' id='dataform'>
<table class='table table-form'>
<tr>
<th class='rowhead w-120px'><?php echo $lang->sso->turnon; ?></th>
@@ -49,4 +49,5 @@
</form>
<div class='alert alert-info mg-0'><?php echo $lang->sso->help?></div>
</div>
</div>
<?php include '../../common/view/footer.html.php';?>

View File

@@ -11,9 +11,10 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<div class='container mw-500px'>
<div id='titlebar'>
<div class='heading'><strong><?php echo $lang->admin->ztCompany;?></strong></div>
<div id='mainContent' class='main-content'>
<div class='center-block mw-500px'>
<div class='main-header'>
<h2><?php echo $lang->admin->ztCompany;?></h2>
</div>
<form method='post' target='hiddenwin'>
<table class='table table-form'>
@@ -30,4 +31,5 @@
</table>
</form>
</div>
</div>
<?php include '../../common/view/footer.html.php';?>

View File

@@ -1,8 +1,6 @@
<div class='container mw-800px bd-0'>
<div class='cards'>
<?php
unset($lang->misc->zentao->version);
?>
<?php unset($lang->misc->zentao->version);?>
<?php foreach($lang->misc->zentao as $label => $groupItems):?>
<?php if(strpos(',labels,icons,version,', ",$label,") !== false) continue; ?>
<div class='col-sm-6'>

View File

@@ -11,18 +11,18 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<div id='featurebar'>
<ul class='nav'>
<div id='mainMenu' class='clearfix'>
<div class='btn-toolbar pull-left'>
<?php foreach($lang->message->typeList as $type => $typeName):?>
<?php if(isset($config->message->typeLink[$type])):?>
<?php list($moduleName, $methodName) = explode('|', $config->message->typeLink[$type]);?>
<?php if(!common::hasPriv($moduleName, $methodName)) continue;?>
<li id='<?php echo $type;?>Tab' <?php if($type == 'webhook') echo "class='active'"?>><?php echo html::a($this->createLink($moduleName, $methodName), $typeName)?></li>
<?php echo html::a($this->createLink($moduleName, $methodName), "<span class='text'>{$typeName}</span>", '', "class='btn btn-link " . ($type == 'webhook' ? 'btn-active-text' : '') . "' id='{$type}Tab'")?>
<?php endif;?>
<?php endforeach;?>
<li id='settingTab'><?php echo html::a($this->createLink('message', 'setting'), $lang->message->setting)?></li>
</ul>
<div class='actions'>
<?php echo html::a($this->createLink('message', 'setting'), "<span class='text'>{$lang->message->setting}</span>", '', "class='btn btn-link' id='settingTab'")?>
</div>
<div class='btn-toolbar pull-right'>
<div class='btn-group'>
<div class='btn-group' id='createActionMenu'>
<?php common::printIcon('webhook', 'create', '', '', 'button', '', '', 'btn-primary');?>