Merge branch 'master' of https://github.com/easysoft/zentaopms
This commit is contained in:
@@ -11,57 +11,59 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<div class='container mw-700px'>
|
||||
<div id='titlebar'>
|
||||
<div class='heading'>
|
||||
<strong><?php echo $lang->cron->common?></strong>
|
||||
<small class'text-muted'> <?php echo $lang->cron->create?></small>
|
||||
<div id='mainContent' class='main-content'>
|
||||
<div class='center-block mw-700px'>
|
||||
<div class='main-header'>
|
||||
<h2>
|
||||
<?php echo $lang->cron->common?>
|
||||
<small class'text-muted'> <?php echo $lang->cron->create?></small>
|
||||
</h2>
|
||||
</div>
|
||||
<form method='post' id='dataform' target='hiddenwin'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='rowhead w-80px'><?php echo $lang->cron->m;?></th>
|
||||
<td class='w-p20'><?php echo html::input('m', '', "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->m;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->h;?></th>
|
||||
<td><?php echo html::input('h', '', "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->h;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->dom;?></th>
|
||||
<td><?php echo html::input('dom', '', "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->dom;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->mon;?></th>
|
||||
<td><?php echo html::input('mon', '', "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->mon;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->dow;?></th>
|
||||
<td><?php echo html::input('dow', '', "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->dow;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->command;?></th>
|
||||
<td colspan='2'><?php echo html::input('command', '', "class='form-control' autocomplete='off'")?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->remark;?></th>
|
||||
<td colspan='2'><?php echo html::input('remark', '', "class='form-control' autocomplete='off'")?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->type;?></th>
|
||||
<td><?php echo html::select('type', $lang->cron->typeList, 'system', "class='form-control'")?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th>
|
||||
<td><?php echo html::submitButton()?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<form class='form-condensed' method='post' id='dataform' target='hiddenwin'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='rowhead w-80px'><?php echo $lang->cron->m;?></th>
|
||||
<td class='w-p20'><?php echo html::input('m', '', "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->m;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->h;?></th>
|
||||
<td><?php echo html::input('h', '', "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->h;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->dom;?></th>
|
||||
<td><?php echo html::input('dom', '', "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->dom;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->mon;?></th>
|
||||
<td><?php echo html::input('mon', '', "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->mon;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->dow;?></th>
|
||||
<td><?php echo html::input('dow', '', "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->dow;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->command;?></th>
|
||||
<td colspan='2'><?php echo html::input('command', '', "class='form-control' autocomplete='off'")?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->remark;?></th>
|
||||
<td colspan='2'><?php echo html::input('remark', '', "class='form-control' autocomplete='off'")?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->type;?></th>
|
||||
<td><?php echo html::select('type', $lang->cron->typeList, 'system', "class='form-control'")?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th>
|
||||
<td><?php echo html::submitButton()?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -11,57 +11,59 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<div class='container mw-700px'>
|
||||
<div id='titlebar'>
|
||||
<div class='heading'>
|
||||
<strong><?php echo $lang->cron->common?></strong>
|
||||
<small class'text-muted'> <?php echo $lang->cron->edit?></small>
|
||||
<div id='mainContent' class='main-content'>
|
||||
<div class='center-block mw-700px'>
|
||||
<div class='main-header'>
|
||||
<h2>
|
||||
<?php echo $lang->cron->common?>
|
||||
<small class'text-muted'> <?php echo $lang->cron->edit?></small>
|
||||
<h2>
|
||||
</div>
|
||||
<form method='post' id='dataform' target='hiddenwin'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='rowhead w-80px'><?php echo $lang->cron->m;?></th>
|
||||
<td class='w-p20'><?php echo html::input('m', $cron->m, "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->m;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->h;?></th>
|
||||
<td><?php echo html::input('h', $cron->h, "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->h;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->dom;?></th>
|
||||
<td><?php echo html::input('dom', $cron->dom, "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->dom;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->mon;?></th>
|
||||
<td><?php echo html::input('mon', $cron->mon, "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->mon;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->dow;?></th>
|
||||
<td><?php echo html::input('dow', $cron->dow, "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->dow;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->command;?></th>
|
||||
<td colspan='2'><?php echo html::input('command', str_replace("'", "'", $cron->command), "class='form-control' autocomplete='off'")?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->remark;?></th>
|
||||
<td colspan='2'><?php echo html::input('remark', $cron->remark, "class='form-control' autocomplete='off'")?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->type;?></th>
|
||||
<td><?php echo html::select('type', $lang->cron->typeList, $cron->type, "class='form-control'")?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th>
|
||||
<td><?php echo html::submitButton()?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<form class='form-condensed' method='post' id='dataform' target='hiddenwin'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='rowhead w-80px'><?php echo $lang->cron->m;?></th>
|
||||
<td class='w-p20'><?php echo html::input('m', $cron->m, "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->m;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->h;?></th>
|
||||
<td><?php echo html::input('h', $cron->h, "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->h;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->dom;?></th>
|
||||
<td><?php echo html::input('dom', $cron->dom, "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->dom;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->mon;?></th>
|
||||
<td><?php echo html::input('mon', $cron->mon, "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->mon;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->dow;?></th>
|
||||
<td><?php echo html::input('dow', $cron->dow, "class='form-control' autocomplete='off'")?></td>
|
||||
<td><?php echo $lang->cron->notice->dow;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->command;?></th>
|
||||
<td colspan='2'><?php echo html::input('command', str_replace("'", "'", $cron->command), "class='form-control' autocomplete='off'")?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->remark;?></th>
|
||||
<td colspan='2'><?php echo html::input('remark', $cron->remark, "class='form-control' autocomplete='off'")?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->cron->type;?></th>
|
||||
<td><?php echo html::select('type', $lang->cron->typeList, $cron->type, "class='form-control'")?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th>
|
||||
<td><?php echo html::submitButton()?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -20,54 +20,52 @@
|
||||
<?php if(common::hasPriv('cron', 'turnon') and !empty($config->global->cron)) echo html::a(inlink('turnon'), $lang->cron->turnonList[0], 'hiddenwin', "class='btn'");?>
|
||||
</div>
|
||||
</div>
|
||||
<div id='mainContent'>
|
||||
<div id='mainContent' class='main-content'>
|
||||
<?php if(!empty($config->global->cron)):?>
|
||||
<div class='panel'>
|
||||
<div class='panel-heading'>
|
||||
<strong><?php echo $lang->cron->list?></strong>
|
||||
<div class='panel-actions pull-right'>
|
||||
<?php if(common::hasPriv('cron', 'create')) echo html::a(inlink('create'), $lang->cron->create, '', "class='btn btn-primary'")?>
|
||||
</div>
|
||||
<div class='main-header'>
|
||||
<h2><?php echo $lang->cron->list?></h2>
|
||||
<div class='btn-toolbar pull-right'>
|
||||
<?php if(common::hasPriv('cron', 'create')) echo html::a(inlink('create'), $lang->cron->create, '', "class='btn btn-primary'")?>
|
||||
</div>
|
||||
<table class='table table-condensed table-bordered table-fixed main-table'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class='w-50px'><?php echo $lang->cron->m?></th>
|
||||
<th class='w-50px'><?php echo $lang->cron->h?></th>
|
||||
<th class='w-50px'><?php echo $lang->cron->dom?></th>
|
||||
<th class='w-50px'><?php echo $lang->cron->mon?></th>
|
||||
<th class='w-50px'><?php echo $lang->cron->dow?></th>
|
||||
<th><?php echo $lang->cron->command?></th>
|
||||
<th class='w-160px'><?php echo $lang->cron->remark?></th>
|
||||
<th class='w-120px'><?php echo $lang->cron->lastTime?></th>
|
||||
<th class='w-60px'><?php echo $lang->cron->status?></th>
|
||||
<th class='w-100px'><?php echo $lang->actions;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class='text-center'>
|
||||
<?php foreach($crons as $cron):?>
|
||||
<tr>
|
||||
<td><?php echo $cron->m;?></td>
|
||||
<td><?php echo $cron->h;?></td>
|
||||
<td><?php echo $cron->dom;?></td>
|
||||
<td><?php echo $cron->mon;?></td>
|
||||
<td><?php echo $cron->dow;?></td>
|
||||
<td class='text-left' title='<?php echo $cron->command?>'><?php echo $cron->command;?></td>
|
||||
<td class='text-left' title='<?php echo $cron->remark?>'><?php echo $cron->remark;?></td>
|
||||
<td><?php echo substr($cron->lastTime, 2);?></td>
|
||||
<td><?php echo zget($lang->cron->statusList, $cron->status, '');?></td>
|
||||
<td class='text-center'>
|
||||
<?php
|
||||
if(common::hasPriv('cron', 'toggle') and !empty($cron->command)) echo html::a(inlink('toggle', "id=$cron->id&status=" . ($cron->status == 'stop' ? 'normal' : 'stop')), $cron->status == 'stop' ? $lang->cron->toggleList['start'] : $lang->cron->toggleList['stop'], 'hiddenwin');
|
||||
if(!empty($cron->command) and common::hasPriv('cron', 'edit')) echo html::a(inlink('edit', "id=$cron->id"), $lang->edit);
|
||||
if($cron->buildin == 0 and common::hasPriv('cron', 'delete')) echo html::a(inlink('delete', "id=$cron->id"), $lang->delete, 'hiddenwin');
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<table class='table table-condensed table-bordered table-fixed main-table'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class='w-50px'><?php echo $lang->cron->m?></th>
|
||||
<th class='w-50px'><?php echo $lang->cron->h?></th>
|
||||
<th class='w-50px'><?php echo $lang->cron->dom?></th>
|
||||
<th class='w-50px'><?php echo $lang->cron->mon?></th>
|
||||
<th class='w-50px'><?php echo $lang->cron->dow?></th>
|
||||
<th><?php echo $lang->cron->command?></th>
|
||||
<th class='w-160px'><?php echo $lang->cron->remark?></th>
|
||||
<th class='w-120px'><?php echo $lang->cron->lastTime?></th>
|
||||
<th class='w-60px'><?php echo $lang->cron->status?></th>
|
||||
<th class='w-100px'><?php echo $lang->actions;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class='text-center'>
|
||||
<?php foreach($crons as $cron):?>
|
||||
<tr>
|
||||
<td><?php echo $cron->m;?></td>
|
||||
<td><?php echo $cron->h;?></td>
|
||||
<td><?php echo $cron->dom;?></td>
|
||||
<td><?php echo $cron->mon;?></td>
|
||||
<td><?php echo $cron->dow;?></td>
|
||||
<td class='text-left' title='<?php echo $cron->command?>'><?php echo $cron->command;?></td>
|
||||
<td class='text-left' title='<?php echo $cron->remark?>'><?php echo $cron->remark;?></td>
|
||||
<td><?php echo substr($cron->lastTime, 2);?></td>
|
||||
<td><?php echo zget($lang->cron->statusList, $cron->status, '');?></td>
|
||||
<td class='text-center'>
|
||||
<?php
|
||||
if(common::hasPriv('cron', 'toggle') and !empty($cron->command)) echo html::a(inlink('toggle', "id=$cron->id&status=" . ($cron->status == 'stop' ? 'normal' : 'stop')), $cron->status == 'stop' ? $lang->cron->toggleList['start'] : $lang->cron->toggleList['stop'], 'hiddenwin');
|
||||
if(!empty($cron->command) and common::hasPriv('cron', 'edit')) echo html::a(inlink('edit', "id=$cron->id"), $lang->edit);
|
||||
if($cron->buildin == 0 and common::hasPriv('cron', 'delete')) echo html::a(inlink('delete', "id=$cron->id"), $lang->delete, 'hiddenwin');
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class='alert alert-info'><?php echo $lang->cron->notice->help?></div>
|
||||
<?php else:?>
|
||||
<div class='container mw-700px'>
|
||||
@@ -81,4 +79,3 @@
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
|
||||
@@ -11,32 +11,35 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<div class='container mw-800px'>
|
||||
<div id='titlebar'>
|
||||
<div class='heading'>
|
||||
<i class='icon icon-cog'></i> <strong><?php echo $lang->customMenu ?></strong> <i class='icon icon-spin icon-spinner' id='loadingIcon'></i>
|
||||
<div id='mainContent' class='main-content'>
|
||||
<div class='center-block mw-800px'>
|
||||
<div class='main-header'>
|
||||
<h2>
|
||||
<?php echo $lang->customMenu ?>
|
||||
<i class='icon icon-spin icon-spinner' id='loadingIcon'></i>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div id='menuEditor'>
|
||||
<div class='panel'>
|
||||
<nav id='mainmenu'>
|
||||
<ul></ul>
|
||||
</nav>
|
||||
<nav id='modulemenu'>
|
||||
<ul></ul>
|
||||
</nav>
|
||||
<?php if($this->config->global->flow != 'onlyTest'):?>
|
||||
<nav id='featurebar'>
|
||||
<ul></ul>
|
||||
</nav>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<div class='text-left'>
|
||||
<?php if(common::hasPriv('custom', 'setPublic')) echo html::checkbox('setPublic', array(1 => $lang->custom->setPublic));?>
|
||||
<button id='saveMenuBtn' type='button' class='btn btn-primary'><?php echo $lang->save ?></button>
|
||||
<button id='closeModalBtn' type='button' class='btn'><?php echo $lang->close ?></button>
|
||||
<button id='resetMenuBtn' type='button' class='btn'><?php echo $lang->custom->restore ?></button>
|
||||
<span class='text-danger'> <i class="icon icon-info-sign"></i> <?php echo $lang->custom->menuTip ?></span>
|
||||
<div id='menuEditor'>
|
||||
<div class='panel'>
|
||||
<nav id='mainmenu'>
|
||||
<ul></ul>
|
||||
</nav>
|
||||
<nav id='modulemenu'>
|
||||
<ul></ul>
|
||||
</nav>
|
||||
<?php if($this->config->global->flow != 'onlyTest'):?>
|
||||
<nav id='featurebar'>
|
||||
<ul></ul>
|
||||
</nav>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<div class='text-left'>
|
||||
<?php if(common::hasPriv('custom', 'setPublic')) echo html::checkbox('setPublic', array(1 => $lang->custom->setPublic));?>
|
||||
<button id='saveMenuBtn' type='button' class='btn btn-primary'><?php echo $lang->save ?></button>
|
||||
<button id='closeModalBtn' type='button' class='btn'><?php echo $lang->close ?></button>
|
||||
<button id='resetMenuBtn' type='button' class='btn'><?php echo $lang->custom->restore ?></button>
|
||||
<span class='text-danger'> <i class="icon icon-info-sign"></i> <?php echo $lang->custom->menuTip ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -11,31 +11,33 @@
|
||||
*/
|
||||
?>
|
||||
<?php include 'header.html.php';?>
|
||||
<div class='main'>
|
||||
<form method='post' class='form-condensed' target='hiddenwin'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='w-150px text-top'><?php echo $lang->custom->select;?></th>
|
||||
<?php $checkedKey = isset($config->custom->productProject) ? $config->custom->productProject : '0_0' ?>
|
||||
<td>
|
||||
<?php foreach($lang->custom->productProject->relation as $key => $value):?>
|
||||
<p><label class="radio-inline"><input type="radio" name="productProject" value="<?php echo $key?>"<?php echo $key == $checkedKey ? " checked='checked'" : ''?> id="productProject<?php echo $key;?>"><?php echo $value;?></label></p>
|
||||
<?php endforeach;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td></td><td><?php echo html::submitButton()?></td></tr>
|
||||
<tr>
|
||||
<td colspan='2' class='pd-0'>
|
||||
<div class='alert alert-info alert-block'><strong><?php echo $lang->custom->productProject->notice?></strong></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<div id='mainContent' class='main-content'>
|
||||
<div class='center-block'>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='w-150px text-top'><?php echo $lang->custom->select;?></th>
|
||||
<?php $checkedKey = isset($config->custom->productProject) ? $config->custom->productProject : '0_0' ?>
|
||||
<td>
|
||||
<?php foreach($lang->custom->productProject->relation as $key => $value):?>
|
||||
<p><label class="radio-inline"><input type="radio" name="productProject" value="<?php echo $key?>"<?php echo $key == $checkedKey ? " checked='checked'" : ''?> id="productProject<?php echo $key;?>"><?php echo $value;?></label></p>
|
||||
<?php endforeach;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td></td><td><?php echo html::submitButton()?></td></tr>
|
||||
<tr>
|
||||
<td colspan='2' class='pd-0'>
|
||||
<div class='alert alert-info alert-block'><strong><?php echo $lang->custom->productProject->notice?></strong></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(function()
|
||||
{
|
||||
$('#featurebar #flowTab').addClass('active');
|
||||
$('#mainMenu #flowTab').addClass('btn-active-text');
|
||||
})
|
||||
</script>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -11,22 +11,26 @@
|
||||
*/
|
||||
?>
|
||||
<?php include 'header.html.php';?>
|
||||
<div class='side'>
|
||||
<div class='list-group'>
|
||||
<?php
|
||||
foreach($config->custom->requiredModules as $requiredModule)
|
||||
{
|
||||
$requiredModuleName = zget($lang->custom->moduleName, $requiredModule, $lang->$requiredModule->common);
|
||||
echo "<li class='list-group-item' id='{$requiredModule}Tab'>" . html::a(inlink('required', "module=$requiredModule"), $requiredModuleName) . "</li>";
|
||||
}
|
||||
?>
|
||||
<div id='mainContent' class='main-row'>
|
||||
<div class='side-col' id='sidebar'>
|
||||
<div class='cell'>
|
||||
<div class='list-group'>
|
||||
<?php
|
||||
foreach($config->custom->requiredModules as $requiredModule)
|
||||
{
|
||||
$requiredModuleName = zget($lang->custom->moduleName, $requiredModule, $lang->$requiredModule->common);
|
||||
echo html::a(inlink('required', "module=$requiredModule"), $requiredModuleName, '', "id='{$requiredModule}Tab'");
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='main'>
|
||||
<form method='post' class='form-condensed' target='hiddenwin'>
|
||||
<div class='panel panel-sm'>
|
||||
<div class='panel-heading'>
|
||||
<strong><?php echo $lang->$moduleName->common?></strong>
|
||||
<div class='main-col main-content'>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<div class='main-header'>
|
||||
<div class='heading'>
|
||||
<strong><?php echo $lang->$moduleName->common?></strong>
|
||||
</div>
|
||||
</div>
|
||||
<table class='table table-form mw-800px'>
|
||||
<?php foreach($requiredFields as $method => $requiredField):?>
|
||||
@@ -34,7 +38,7 @@
|
||||
<th class='w-100px'>
|
||||
<?php
|
||||
$fields = $this->custom->getFormFields($moduleName, $method);
|
||||
|
||||
|
||||
if($moduleName == 'testsuite' and $method == 'createlib') $method = 'createLib';
|
||||
if($moduleName == 'testsuite' and $method == 'createcase')
|
||||
{
|
||||
@@ -59,14 +63,14 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(function()
|
||||
{
|
||||
$('#featurebar #requiredTab').addClass('active');
|
||||
$('.side #<?php echo $moduleName?>Tab').addClass('active');
|
||||
$('#mainMenu #requiredTab').addClass('btn-active-text');
|
||||
$('#sidebar #<?php echo $moduleName?>Tab').addClass('active');
|
||||
})
|
||||
</script>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -10,28 +10,29 @@
|
||||
*/
|
||||
?>
|
||||
<?php include 'header.html.php';?>
|
||||
<div class='main'>
|
||||
<form method='post' class='form-condensed' target='hiddenwin'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='w-100px text-top'><?php echo $lang->custom->score;?></th>
|
||||
<td><?php echo html::radio('score', $lang->custom->scoreStatus, isset($config->global->scoreStatus) ? $config->global->scoreStatus : 0, '', 'block');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<?php echo html::submitButton();?>
|
||||
<?php common::printLink('score', 'reset', '', "<i class='icon-refresh'></i> " . $lang->custom->scoreReset, '', ' id="scoreRefresh" class="btn iframe" data-width="480"', true, true);?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<div id='mainContent' class='main-content'>
|
||||
<div class='center-block'>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='w-100px text-top'><?php echo $lang->custom->score;?></th>
|
||||
<td><?php echo html::radio('score', $lang->custom->scoreStatus, isset($config->global->scoreStatus) ? $config->global->scoreStatus : 0, '', 'block');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<?php echo html::submitButton();?>
|
||||
<?php common::printLink('score', 'reset', '', "<i class='icon-refresh'></i> " . $lang->custom->scoreReset, '', ' id="scoreRefresh" class="btn iframe" data-width="480"', true, true);?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(function()
|
||||
{
|
||||
$('#featurebar #scoreTab').addClass('active');
|
||||
$('.side #<?php echo $moduleName;?>Tab').addClass('active');
|
||||
$('#mainMenu #scoreTab').addClass('btn-active-text');
|
||||
})
|
||||
</script>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -31,21 +31,25 @@ EOT;
|
||||
<?php js::set('itemRow', $itemRow)?>
|
||||
<?php js::set('module', $module)?>
|
||||
<?php js::set('field', $field)?>
|
||||
<div class='side'>
|
||||
<div class='list-group'>
|
||||
<?php
|
||||
foreach($lang->custom->{$module}->fields as $key => $value)
|
||||
{
|
||||
echo "<li class='list-group-item' id='{$key}Tab'>" . html::a(inlink('set', "module=$module&field=$key"), $value) . "</li>";
|
||||
}
|
||||
?>
|
||||
<div id='mainContent' class='main-row'>
|
||||
<div class='side-col' id='sidebar'>
|
||||
<div class='cell'>
|
||||
<div class='list-group'>
|
||||
<?php
|
||||
foreach($lang->custom->{$module}->fields as $key => $value)
|
||||
{
|
||||
echo html::a(inlink('set', "module=$module&field=$key"), $value, '', " id='{$key}Tab'");
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='main'>
|
||||
<form method='post' class='form-condensed' target='hiddenwin'>
|
||||
<div class='panel panel-sm'>
|
||||
<div class='panel-heading'>
|
||||
<strong><?php echo $lang->custom->object[$module] . $lang->arrow . $lang->custom->$module->fields[$field]?></strong>
|
||||
<div class='main-col main-content'>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<div class='main-header'>
|
||||
<div class='heading'>
|
||||
<strong><?php echo $lang->custom->object[$module] . $lang->arrow . $lang->custom->$module->fields[$field]?></strong>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(($module == 'story' or $module == 'testcase') and $field == 'review'):?>
|
||||
<table class='table table-form mw-800px'>
|
||||
@@ -160,8 +164,8 @@ EOT;
|
||||
<div class='alert alert-warning alert-block'><?php echo $lang->custom->notice->canNotAdd;?></div>
|
||||
<?php endif;?>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?php if($module == 'testcase' and $field == 'review'):?>
|
||||
<script>
|
||||
|
||||
@@ -11,21 +11,23 @@
|
||||
*/
|
||||
?>
|
||||
<?php include 'header.html.php';?>
|
||||
<div class='main'>
|
||||
<form method='post' class='form-condensed' target='hiddenwin'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='w-100px text-top'><?php echo $lang->custom->working;?></th>
|
||||
<td><?php echo html::radio('flow', $lang->custom->workingList, isset($config->global->flow) ? $config->global->flow : 'full', '', 'block');?></td>
|
||||
</tr>
|
||||
<tr><td></td><td><?php echo html::submitButton()?></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<div id='mainContent' class='main-content'>
|
||||
<div class='center-block'>
|
||||
<form method='post' class='form-condensed' target='hiddenwin'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='w-100px text-top'><?php echo $lang->custom->working;?></th>
|
||||
<td><?php echo html::radio('flow', $lang->custom->workingList, isset($config->global->flow) ? $config->global->flow : 'full', '', 'block');?></td>
|
||||
</tr>
|
||||
<tr><td></td><td><?php echo html::submitButton()?></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(function()
|
||||
{
|
||||
$('#workingTab').addClass('btn-active-text');
|
||||
$('#mainMenu #workingTab').addClass('btn-active-text');
|
||||
})
|
||||
</script>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
#api { margin-bottom: 10px;}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
.side .modulegroup {font-weight:bold; padding-top:8px; border-top:1px solid #ddd;}
|
||||
.side .active {font-weight:bold;}
|
||||
#sidebar .modulegroup {font-weight:bold; padding-top:8px; border-top:1px solid #ddd;}
|
||||
#sidebar .active {background-color: #e9f2fb; color: #006af1;}
|
||||
|
||||
@@ -1,23 +1,26 @@
|
||||
<?php include 'header.html.php';?>
|
||||
<div class='side'>
|
||||
<div class="panel panel-sm with-list">
|
||||
<div class='panel-heading'><i class='icon-list'></i> <strong><?php echo $lang->dev->moduleList?></strong></div>
|
||||
<?php foreach($lang->dev->groupList as $group => $groupName):?>
|
||||
<div class='modulegroup'><?php echo $groupName?></div>
|
||||
<?php foreach($modules[$group] as $module):?>
|
||||
<?php
|
||||
$active = ($module == $selectedModule) ? 'active' : '';
|
||||
$moduleName = zget($lang->dev->tableList, $module, $module);
|
||||
?>
|
||||
<?php echo html::a(inlink('api', "module=$module"), $moduleName, '', "class='$active'");?>
|
||||
<?php endforeach;?>
|
||||
<?php endforeach;?>
|
||||
<div id='mainContent' class='main-row'>
|
||||
<div class='side-col' id='sidebar'>
|
||||
<div class='cell'>
|
||||
<div class="panel panel-sm with-list">
|
||||
<div class='panel-heading'><i class='icon-list'></i> <strong><?php echo $lang->dev->moduleList?></strong></div>
|
||||
<?php foreach($lang->dev->groupList as $group => $groupName):?>
|
||||
<div class='modulegroup'><?php echo $groupName?></div>
|
||||
<?php foreach($modules[$group] as $module):?>
|
||||
<?php
|
||||
$active = ($module == $selectedModule) ? 'active' : '';
|
||||
$moduleName = zget($lang->dev->tableList, $module, $module);
|
||||
?>
|
||||
<?php echo html::a(inlink('api', "module=$module"), $moduleName, '', "class='$active'");?>
|
||||
<?php endforeach;?>
|
||||
<?php endforeach;?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='main'>
|
||||
<?php if($selectedModule):?>
|
||||
<div class='main-col main-content'>
|
||||
<?php if($selectedModule):?>
|
||||
<?php foreach($apis as $api):?>
|
||||
<table class='table table-condensed table-striped table-bordered tablesorter table-fixed active-disabled' id="api">
|
||||
<div class='detail'>
|
||||
<?php
|
||||
$params = array();
|
||||
if(isset($api['param']))
|
||||
@@ -26,33 +29,36 @@
|
||||
}
|
||||
$params = implode('&', $params);
|
||||
?>
|
||||
<tr>
|
||||
<th colspan="3">
|
||||
<div class='detail-title'>
|
||||
<?php
|
||||
echo $api['post'] ? 'GET/POST' : 'GET';
|
||||
echo ' ' . $this->createLink($selectedModule, $api['name'], $params, 'json');
|
||||
?>
|
||||
</th>
|
||||
</tr>
|
||||
<tr><td colspan="3"><?php echo $api['desc'];?></td></tr>
|
||||
<tr>
|
||||
<td><?php echo $lang->dev->params?></td>
|
||||
<td><?php echo $lang->dev->type?></td>
|
||||
<td><?php echo $lang->dev->desc?></td>
|
||||
</tr>
|
||||
<?php if(isset($api['param'])):?>
|
||||
<?php foreach($api['param'] as $param):?>
|
||||
<tr>
|
||||
<td><?php echo $param['var']?></td>
|
||||
<td><?php echo $param['type']?></td>
|
||||
<td><?php echo $param['desc']?></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
<?php else:?>
|
||||
<tr><td colspan="3"><?php echo $lang->dev->noParams?></td></tr>
|
||||
<?php endif;?>
|
||||
</table>
|
||||
</div>
|
||||
<div class='detail-content'>
|
||||
<?php echo $api['desc'];?>
|
||||
<table class='table table-fixed table-bordered params'>
|
||||
<tr>
|
||||
<td><?php echo $lang->dev->params?></td>
|
||||
<td><?php echo $lang->dev->type?></td>
|
||||
<td><?php echo $lang->dev->desc?></td>
|
||||
</tr>
|
||||
<?php if(isset($api['param'])):?>
|
||||
<?php foreach($api['param'] as $param):?>
|
||||
<tr>
|
||||
<td><?php echo $param['var']?></td>
|
||||
<td><?php echo $param['type']?></td>
|
||||
<td><?php echo $param['desc']?></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
<?php else:?>
|
||||
<tr><td colspan="3"><?php echo $lang->dev->noParams?></td></tr>
|
||||
<?php endif;?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach;?>
|
||||
<?php endif;?>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
+51
-45
@@ -1,49 +1,55 @@
|
||||
<?php include 'header.html.php';?>
|
||||
<div class='side'>
|
||||
<div class="panel panel-sm with-list">
|
||||
<div class='panel-heading'><i class='icon-list'></i> <strong><?php echo $lang->dev->dbList?></strong></div>
|
||||
<?php foreach($lang->dev->groupList as $group => $groupName):?>
|
||||
<div class='modulegroup'><?php echo $groupName?></div>
|
||||
<?php foreach($tables[$group] as $subTable => $table):?>
|
||||
<?php
|
||||
$active = ($table == $selectedTable) ? 'active' : '';
|
||||
$tableName = zget($lang->dev->tableList, $subTable, $table);
|
||||
?>
|
||||
<?php echo html::a(inlink('db', "table=$table"), $tableName, '', "class='$active'");?>
|
||||
<?php endforeach;?>
|
||||
<?php endforeach;?>
|
||||
<div id='mainContent' class='main-row'>
|
||||
<div class='side-col' id='sidebar'>
|
||||
<div class='cell'>
|
||||
<div class="panel panel-sm with-list">
|
||||
<div class='panel-heading'><i class='icon-list'></i> <strong><?php echo $lang->dev->dbList?></strong></div>
|
||||
<?php foreach($lang->dev->groupList as $group => $groupName):?>
|
||||
<div class='modulegroup'><?php echo $groupName?></div>
|
||||
<?php foreach($tables[$group] as $subTable => $table):?>
|
||||
<?php
|
||||
$active = ($table == $selectedTable) ? 'active' : '';
|
||||
$tableName = zget($lang->dev->tableList, $subTable, $table);
|
||||
?>
|
||||
<?php echo html::a(inlink('db', "table=$table"), $tableName, '', "class='$active'");?>
|
||||
<?php endforeach;?>
|
||||
<?php endforeach;?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='main-col main-content'>
|
||||
<?php if($selectedTable):?>
|
||||
<div class='detail'>
|
||||
<div class='detail-title'><?php echo $selectedTable?></div>
|
||||
<div class='detail-content'>
|
||||
<table class="table table-condensed table-bordered table-fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class='w-id'><?php echo $lang->dev->fields['id']?></th>
|
||||
<th><?php echo $lang->dev->fields['name']?></th>
|
||||
<th><?php echo $lang->dev->fields['desc']?></th>
|
||||
<th><?php echo $lang->dev->fields['type']?></th>
|
||||
<th><?php echo $lang->dev->fields['length']?></th>
|
||||
<th><?php echo $lang->dev->fields['null']?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;?>
|
||||
<?php foreach($fields as $key => $field):?>
|
||||
<tr>
|
||||
<td><?php echo $i;?></td>
|
||||
<td><?php echo $key;?></td>
|
||||
<td><?php echo $field['name'];?></td>
|
||||
<td><?php echo $field['type'];?></td>
|
||||
<td><?php echo isset($field['options']['max']) ? $field['options']['max'] : '';?></td>
|
||||
<td><?php echo $field['null'];?></td>
|
||||
</tr>
|
||||
<?php $i++; endforeach?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
<div class='main'>
|
||||
<?php if($selectedTable):?>
|
||||
<table class="table table-condensed table-striped table-bordered tablesorter table-fixed active-disabled">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class='text-left' colspan='6'><?php echo $selectedTable?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='w-id'><?php echo $lang->dev->fields['id']?></th>
|
||||
<th><?php echo $lang->dev->fields['name']?></th>
|
||||
<th><?php echo $lang->dev->fields['desc']?></th>
|
||||
<th><?php echo $lang->dev->fields['type']?></th>
|
||||
<th><?php echo $lang->dev->fields['length']?></th>
|
||||
<th><?php echo $lang->dev->fields['null']?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;?>
|
||||
<?php foreach($fields as $key => $field):?>
|
||||
<tr>
|
||||
<td><?php echo $i;?></td>
|
||||
<td><?php echo $key;?></td>
|
||||
<td><?php echo $field['name'];?></td>
|
||||
<td><?php echo $field['type'];?></td>
|
||||
<td><?php echo isset($field['options']['max']) ? $field['options']['max'] : '';?></td>
|
||||
<td><?php echo $field['null'];?></td>
|
||||
</tr>
|
||||
<?php $i++; endforeach?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<div id='featurebar'>
|
||||
<ul class='nav'>
|
||||
<?php
|
||||
echo '<li id="api">'; common::printLink('dev', 'api', "", $lang->dev->api); echo '</li>';
|
||||
echo '<li id="db">'; common::printLink('dev', 'db', "", $lang->dev->db); echo '</li>';
|
||||
echo "<li id='editor'>"; common::printLink('editor', 'index', 'type=editor', $lang->dev->editor); echo '</li>';
|
||||
?>
|
||||
</ul>
|
||||
<div id='mainMenu' class='clearfix'>
|
||||
<div class='btn-toolbar pull-left'>
|
||||
<?php
|
||||
common::printLink('dev', 'api', "", "<span class='text'>{$lang->dev->api}</span>", '', "id='api' class='btn btn-link'");
|
||||
common::printLink('dev', 'db', "", "<span class='text'>{$lang->dev->db}</span>", '', "id='db' class='btn btn-link'");
|
||||
common::printLink('editor', 'index', 'type=editor', "<span class='text'>{$lang->dev->editor}</span>", '', "id='editor' class='btn btn-link'");
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<script>$('#<?php echo $tab;?>').addClass('active')</script>
|
||||
<script>$('#mainMenu #<?php echo $tab;?>').addClass('btn-active-text')</script>
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
.form-condensed textarea.form-control {min-height: 500px; height: auto;}
|
||||
body{padding-bottom:0px;background-color:#fff;}
|
||||
.main-content textarea.form-control {min-height: 450px; height: auto;}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
body{padding-bottom:0px;background-color:#fff;}
|
||||
.expandable > ul {display: none!important}
|
||||
.collapsable > ul {display: block!important}
|
||||
.tree li:before {margin-right: 4px;}
|
||||
.tree li>a{display:inline;}
|
||||
|
||||
@@ -3,3 +3,4 @@ table tr > td:first-child {padding-left: 0;}
|
||||
table tr > td:last-child {padding-right: 0;}
|
||||
.modulegroup {font-weight:bold; padding-top:8px; border-top:1px solid #ddd;}
|
||||
td.w-200px a:hover {font-weight:bold;}
|
||||
.w-350px{width:350px;}
|
||||
|
||||
@@ -1,4 +1 @@
|
||||
$(function()
|
||||
{
|
||||
|
||||
})
|
||||
$(function(){ })
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
$(function()
|
||||
{
|
||||
var showHeight = $('.outer').height() - $('#featurebar').height() - 40;
|
||||
var showHeight = $('#main').height() - $('#mainMenu').height() - 40;
|
||||
$('#editWin').height(showHeight);
|
||||
$('#extendWin').height(showHeight);
|
||||
|
||||
$('.panel a.list-group-item').click(function(){$('.panel a.list-group-item.active').removeClass('active'); $(this).addClass('active')});
|
||||
$('.side-col a').click(function()
|
||||
{
|
||||
$('.side-col a.active').removeClass('active');
|
||||
$(this).addClass('active');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -11,17 +11,17 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<form class='form-condensed' method='post' target='hiddenwin' action='<?php echo inlink('save', "filePath=$safeFilePath&action=$action")?>'>
|
||||
<div class='panel panel-sm'>
|
||||
<div class='panel-heading'><i class='icon-edit'></i>
|
||||
<?php if($filePath):?>
|
||||
<strong>
|
||||
<?php echo $lang->editor->filePath;?>
|
||||
</strong>
|
||||
<code><?php echo $filePath?></code>
|
||||
<?php endif?>
|
||||
<div class='main-header'>
|
||||
<div class='heading'>
|
||||
<i class='icon-edit'></i>
|
||||
<?php if($filePath):?>
|
||||
<strong><?php echo $lang->editor->filePath;?></strong>
|
||||
<code><?php echo $filePath?></code>
|
||||
<?php endif?>
|
||||
</div>
|
||||
<div class='panel-body'>
|
||||
</div>
|
||||
<form method='post' target='hiddenwin' action='<?php echo inlink('save', "filePath=$safeFilePath&action=$action")?>'>
|
||||
<div class='main-content'>
|
||||
<table class='table table-form'>
|
||||
<?php if(!empty($showContent)):?>
|
||||
<tr>
|
||||
@@ -36,7 +36,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php if($action and $action != 'edit' and $action != 'newPage' and $action != 'override' and $action != 'extendControl'):?>
|
||||
<?php if($action and $action != 'edit' and $action != 'newPage' and $action != 'override' and $action != 'extendControl'):?>
|
||||
<div class='form-group'>
|
||||
<div class='input-group'>
|
||||
<span class='input-group-addon'><?php echo $lang->editor->fileName;?></span>
|
||||
@@ -63,15 +63,17 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php if($action and $action != 'edit' and $action != 'newPage'):?>
|
||||
<span class='strong'><input type='checkbox' name='override' id='override' /> <?php echo $lang->editor->isOverride?></span>
|
||||
<?php endif;?>
|
||||
<?php endif;?>
|
||||
<?php if($action and $action != 'edit' and $action != 'newPage'):?>
|
||||
<div class='checkbox-primary'>
|
||||
<input type='checkbox' name='override' id='override' />
|
||||
<label for='override'><?php echo $lang->editor->isOverride?></span>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align='center'><?php echo html::submitButton()?></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<?php include '../../common/view/footer.lite.html.php';?>
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<div class='panel panel-sm'>
|
||||
<div class='panel-heading'><i class='icon-list-ul'></i> <strong><?php echo isset($lang->editor->modules[$module])? $lang->editor->modules[$module] : $module;?></strong></div>
|
||||
<div class='panel-body'>
|
||||
<div class='main-header'>
|
||||
<div class='heading'><i class='icon-list-ul'></i> <strong><?php echo isset($lang->editor->modules[$module])? $lang->editor->modules[$module] : $module;?></strong></div>
|
||||
</div>
|
||||
<div class='main-content'>
|
||||
<?php echo $tree?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(function()
|
||||
|
||||
@@ -11,23 +11,28 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../dev/view/header.html.php';?>
|
||||
<table class='w-p100'>
|
||||
<tr>
|
||||
<td class='w-200px'>
|
||||
<div class='panel panel-sm with-list'>
|
||||
<div class='panel-heading'><i class='icon-list'></i> <strong><?php echo $lang->editor->moduleList?></strong></div>
|
||||
<?php foreach($lang->dev->groupList as $group => $groupName):?>
|
||||
<div class='modulegroup'><?php echo $groupName?></div>
|
||||
<?php foreach($modules[$group] as $module):?>
|
||||
<?php $moduleName = zget($lang->dev->tableList, $module, $module);?>
|
||||
<?php echo html::a(inlink('extend', "moduleDir=$module"), $moduleName, 'extendWin');?>
|
||||
<?php endforeach;?>
|
||||
<?php endforeach;?>
|
||||
</div>
|
||||
</td>
|
||||
<td class='w-300px'><iframe frameborder='0' name='extendWin' id='extendWin' width='100%'></iframe></td>
|
||||
<td><iframe frameborder='0' name='editWin' id='editWin' width='100%'></iframe></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id='mainContent' class='main-row'>
|
||||
<div class='side-col' id='sidebar'>
|
||||
<div class='cell'>
|
||||
<div class='panel panel-sm with-list'>
|
||||
<div class='panel-heading'><i class='icon-list'></i> <strong><?php echo $lang->editor->moduleList?></strong></div>
|
||||
<?php foreach($lang->dev->groupList as $group => $groupName):?>
|
||||
<div class='modulegroup'><?php echo $groupName?></div>
|
||||
<?php foreach($modules[$group] as $module):?>
|
||||
<?php $moduleName = zget($lang->dev->tableList, $module, $module);?>
|
||||
<?php echo html::a(inlink('extend', "moduleDir=$module"), $moduleName, 'extendWin');?>
|
||||
<?php endforeach;?>
|
||||
<?php endforeach;?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='side-col w-350px'>
|
||||
<div class='cell'>
|
||||
<iframe frameborder='0' name='extendWin' id='extendWin' width='100%'></iframe>
|
||||
</div>
|
||||
</div>
|
||||
<div class='main-col main-content'>
|
||||
<iframe frameborder='0' name='editWin' id='editWin' width='100%'></iframe>
|
||||
</div>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -11,10 +11,12 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<form class='form-condensed' method='post' target='hiddenwin'>
|
||||
<div class='panel panel-sm'>
|
||||
<div class='panel-heading'><i class='icon-plus'></i> <strong><?php echo $lang->editor->newPage?></strong></div>
|
||||
<div class='panel-body'>
|
||||
<style>body{padding-bottom:0px;background-color:#fff;}</style>
|
||||
<div class='main-header'>
|
||||
<div class='heading'><i class='icon-plus'></i> <strong><?php echo $lang->editor->newPage?></strong></div>
|
||||
</div>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<div class='main-content'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='w-80px'><?php echo $lang->editor->filePath?></th>
|
||||
@@ -23,17 +25,13 @@
|
||||
<tr>
|
||||
<th><?php echo $lang->editor->pageName?></th>
|
||||
<td>
|
||||
<?php
|
||||
echo html::input('fileName', '', "class='form-control' autocomplete='off'");
|
||||
echo "<div class='help-block'>" . $lang->editor->examplePHP . "</div>";
|
||||
?>
|
||||
<?php
|
||||
echo html::input('fileName', '', "class='form-control' autocomplete='off' placeholder='{$lang->editor->examplePHP}'");
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan='2' align='center'><?php echo html::submitButton()?></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
<?php include '../../common/view/footer.lite.html.php';?>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
?>
|
||||
<?php if(isset($error)):?>
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<style>body{background:#fff;}</style>
|
||||
<div class='alert alert-warning with-icon'><i class='icon-frown'></i><div class='content'><?php echo join('', $error);?></div></div>
|
||||
<?php include '../../common/view/footer.lite.html.php';?>
|
||||
<?php else:?>
|
||||
|
||||
@@ -768,7 +768,7 @@ class project extends control
|
||||
$this->view->projectName = $this->projects[$projectID];
|
||||
$this->view->pager = $pager;
|
||||
$this->view->orderBy = $orderBy;
|
||||
$this->view->tasks = $this->testtask->getProjectTasks($projectID);
|
||||
$this->view->tasks = $this->testtask->getProjectTasks($projectID, $orderBy, $pager);
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noclosed|noletter');
|
||||
$this->view->products = $this->loadModel('product')->getPairs();
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
|
||||
#dept_chosen .chosen-single{width: 220px;}
|
||||
#project_chosen .chosen-single{width: 220px;}
|
||||
.radio-inline {line-height:normal;}
|
||||
|
||||
.outer .main .table tr > td:first-child {padding-left: 10px;}
|
||||
.outer .main .table tr > td:last-child {padding-right: 10px;}
|
||||
#teamForm .table tr > td:first-child {padding-left: 10px;}
|
||||
#teamForm .table tr > td:last-child {padding-right: 10px;}
|
||||
|
||||
@@ -119,15 +119,9 @@
|
||||
<?php $i ++; $memberCount ++;?>
|
||||
<?php endfor;?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<?php js::set('i', $i);?>
|
||||
<tr id='submit'>
|
||||
<td colspan='6' class='text-center'>
|
||||
<?php echo html::submitButton() ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<div class='table-footer text-center'><?php echo html::submitButton() . ' ' . html::backButton(); ?></div>
|
||||
<?php js::set('i', $i);?>
|
||||
</form>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
@@ -40,8 +40,8 @@
|
||||
<th><?php echo $lang->team->days;?></th>
|
||||
<th><?php echo $lang->team->hours;?></th>
|
||||
<th><?php echo $lang->team->totalHours;?></th>
|
||||
<th><?php echo $lang->team->limited;?></th>
|
||||
<th><?php echo $lang->actions;?></th>
|
||||
<th class='w-80px'><?php echo $lang->team->limited;?></th>
|
||||
<th class='w-50px'><?php echo $lang->actions;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -73,13 +73,9 @@
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan='8'>
|
||||
<div class='clearfix'><div class='text'><?php echo $lang->team->totalHours . ':' . "<strong>$totalHours{$lang->project->workHour}</strong>";?></div></div>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<div class='table-footer'>
|
||||
<div class='text'><?php echo $lang->team->totalHours . ':' . "<strong>$totalHours{$lang->project->workHour}</strong>";?></div>
|
||||
</tfoot>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -11,51 +11,52 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/tablesorter.html.php';?>
|
||||
<?php js::set('confirmDelete', $lang->testtask->confirmDelete)?>
|
||||
<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->testtask->browse;?></span></span>
|
||||
<span class='btn btn-link btn-active-text'><span class='text'><?php echo $lang->testtask->browse;?></span></span>
|
||||
</div>
|
||||
<div class="btn-toolbar pull-right">
|
||||
<?php
|
||||
common::printIcon('testreport', 'browse', "objectID=$projectID&objectType=project", '', 'button','flag');
|
||||
common::printIcon('testtask', 'create', "product=0&project=$projectID");
|
||||
common::printLink('testtask', 'create', "product=0&project=$projectID", "<i class='icon icon-plus'> </i>" . $lang->testtask->create, '', "class='btn btn-primary'");
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="mainContent">
|
||||
<form class="main-table table-testtask" data-ride="table" method="post" target='hiddenwin' id='testtaskForm'>
|
||||
<table class="table has-sort-head tablesorter" id='taskList'>
|
||||
<table class="table has-sort-head" id='taskList'>
|
||||
<thead>
|
||||
<?php $vars = "projectID=$projectID&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";?>
|
||||
<?php $canTestReport = common::hasPriv('testreport', 'browse');?>
|
||||
<tr>
|
||||
<th class="w-100px">
|
||||
<?php if($tasks):?>
|
||||
<th class="c-id">
|
||||
<?php if($canTestReport):?>
|
||||
<div class="checkbox-primary check-all" title="<?php echo $lang->selectAll?>">
|
||||
<label></label>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php echo $lang->idAB;?>
|
||||
<?php common::printOrderLink('id', $orderBy, $vars, $lang->idAB);?>
|
||||
</th>
|
||||
<th class='w-150px'><?php echo $lang->testtask->product;?></th>
|
||||
<th><?php echo $lang->testtask->name;?></th>
|
||||
<th><?php echo $lang->testtask->build;?></th>
|
||||
<th class='w-user'><?php echo $lang->testtask->owner;?></th>
|
||||
<th class='w-100px'><?php echo $lang->testtask->begin;?></th>
|
||||
<th class='w-100px'><?php echo $lang->testtask->end;?></th>
|
||||
<th class='w-80px'><?php echo $lang->statusAB;?></th>
|
||||
<th class='w-200px {sorter:false}'><?php echo $lang->actions;?></th>
|
||||
<th class='w-150px'><?php common::printOrderLink('id', $orderBy, $vars, $lang->testtask->product);?></th>
|
||||
<th><?php common::printOrderLink('name', $orderBy, $vars, $lang->testtask->name);?></th>
|
||||
<th><?php common::printOrderLink('build', $orderBy, $vars, $lang->testtask->build);?></th>
|
||||
<th class='w-user'><?php common::printOrderLink('owner', $orderBy, $vars, $lang->testtask->owner);?></th>
|
||||
<th class='w-100px'><?php common::printOrderLink('begin', $orderBy, $vars, $lang->testtask->begin);?></th>
|
||||
<th class='w-100px'><?php common::printOrderLink('end', $orderBy, $vars, $lang->testtask->end);?></th>
|
||||
<th class='w-80px'><?php common::printOrderLink('status', $orderBy, $vars, $lang->statusAB);?></th>
|
||||
<th class='c-actions-3'><?php echo $lang->actions;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($tasks as $task):?>
|
||||
<tr>
|
||||
<td class="c-id">
|
||||
<div class="checkbox-primary">
|
||||
<input type='checkbox' name='taskIdList[]' value='<?php echo $task->id;?>' />
|
||||
<label></label>
|
||||
<?php printf('%03d', $task->id);?>
|
||||
</div>
|
||||
<td class="cell-id">
|
||||
<?php if($canTestReport):?>
|
||||
<?php echo html::checkbox('taskIdList', array($task->id => sprintf('%03d', $task->id)));?>
|
||||
<?php else:?>
|
||||
<?php printf('%03d', $task->id);?>
|
||||
<?php endif;?>
|
||||
</td>
|
||||
<td title="<?php echo zget($products, $task->product, '')?>"><?php echo zget($products, $task->product, '');?></td>
|
||||
<td class='text-left' title="<?php echo $task->name?>"><?php echo html::a($this->createLink('testtask', 'view', "taskID=$task->id"), $task->name);?></td>
|
||||
@@ -65,17 +66,20 @@
|
||||
<td><?php echo $task->end?></td>
|
||||
<td class='status-<?php echo $task->status?>'><?php echo $lang->testtask->statusList[$task->status];?></td>
|
||||
<td class='c-actions'>
|
||||
<div class='more'>
|
||||
<?php
|
||||
if(common::hasPriv('testtask', 'delete', $task))
|
||||
{
|
||||
$deleteURL = $this->createLink('testtask', 'delete', "taskID=$task->id&confirm=yes");
|
||||
echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"taskList\",confirmDelete)", '<i class="icon-trash"></i>', '', "class='btn' title='{$lang->testtask->delete}'");
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
common::printIcon('testtask', 'cases', "taskID=$task->id", $task, 'list', 'sitemap');
|
||||
common::printIcon('testtask', 'linkCase', "taskID=$task->id", $task, 'list', 'link');
|
||||
common::printIcon('testtask', 'edit', "taskID=$task->id", $task, 'list');
|
||||
common::printIcon('testreport', 'browse', "objectID=$task->product&objectType=product&extra=$task->id", $task, 'list','flag');
|
||||
|
||||
if(common::hasPriv('testtask', 'delete', $task))
|
||||
{
|
||||
$deleteURL = $this->createLink('testtask', 'delete', "taskID=$task->id&confirm=yes");
|
||||
echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"taskList\",confirmDelete)", '<i class="icon-trash"></i>', '', "class='btn' title='{$lang->testtask->delete}'");
|
||||
}
|
||||
common::printIcon('testtask', 'cases', "taskID=$task->id", $task, 'list', 'sitemap');
|
||||
common::printIcon('testtask', 'linkCase', "taskID=$task->id", $task, 'list', 'link');
|
||||
common::printIcon('testreport', 'browse', "objectID=$task->product&objectType=product&extra=$task->id", $task, 'list','flag');
|
||||
common::printIcon('testtask', 'edit', "taskID=$task->id", $task, 'list');
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -84,6 +88,7 @@
|
||||
</table>
|
||||
<?php if($tasks):?>
|
||||
<div class="table-footer">
|
||||
<?php if($canTestReport):?>
|
||||
<div class="checkbox-primary check-all"><label><?php echo $lang->selectAll?></label></div>
|
||||
<div class="table-actions btn-toolbar">
|
||||
<?php
|
||||
@@ -92,6 +97,8 @@
|
||||
echo html::commonButton($lang->testreport->common, $misc);
|
||||
?>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php $pager->show('right', 'pagerjs');?>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user