73 lines
2.5 KiB
PHP
73 lines
2.5 KiB
PHP
<?php
|
|
/**
|
|
* The required view file of custom 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 custom
|
|
* @version $Id$
|
|
* @link http://www.zentao.net
|
|
*/
|
|
?>
|
|
<?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>
|
|
</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>
|
|
<table class='table table-form mw-800px'>
|
|
<?php foreach($requiredFields as $method => $requiredField):?>
|
|
<tr>
|
|
<th class='w-100px'>
|
|
<?php
|
|
$fields = $this->custom->getDBFields($moduleName, $method);
|
|
|
|
if($moduleName == 'testsuite' and $method == 'createlib') $method = 'createLib';
|
|
if($moduleName == 'testsuite' and $method == 'createcase')
|
|
{
|
|
$this->app->loadLang('testcase');
|
|
$fields = $this->custom->getDBFields('testcase', $method);
|
|
$method = 'createCase';
|
|
}
|
|
echo $lang->$moduleName->$method;
|
|
?>
|
|
</th>
|
|
<td><?php echo html::select("requiredFields[{$method}][]", $fields, $requiredField, "class='form-control chosen' multiple");?></td>
|
|
<td></td>
|
|
</tr>
|
|
<?php endforeach;?>
|
|
<tr>
|
|
<td></td>
|
|
<td>
|
|
<?php
|
|
echo html::submitButton();
|
|
if(common::hasPriv('custom', 'resetRequired')) echo html::a(inlink('resetRequired', "module=$moduleName"), $lang->custom->restore, 'hiddenwin', "class='btn'");
|
|
?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<script>
|
|
$(function()
|
|
{
|
|
$('#featurebar #requiredTab').addClass('active');
|
|
$('.side #<?php echo $moduleName?>Tab').addClass('active');
|
|
})
|
|
</script>
|
|
<?php include '../../common/view/footer.html.php';?>
|