* Code for task #89906.

This commit is contained in:
tianshujie
2023-04-05 13:58:53 +08:00
parent e90d2c0d66
commit 1a3ce097fd
7 changed files with 25 additions and 15 deletions
+2
View File
@@ -42,6 +42,8 @@ class api extends control
public function index($libID = 0, $moduleID = 0, $apiID = 0, $version = 0, $release = 0, $appendLib = 0, $browseType = '', $param = 0)
{
$this->session->set('spaceType', 'api', 'doc');
$this->session->set('structList', $this->app->getURI(true), 'doc');
$this->setMenu($libID);
$objectType = $this->objectType;
$objectID = $this->objectID;
+5 -12
View File
@@ -1,12 +1,5 @@
.col-attr {
vertical-align: middle;
margin-bottom: 8px;
}
.tree {
padding-left: 30px!important;
}
.c-date {
width: 200px;
}
.col-attr {vertical-align: middle; margin-bottom: 8px;}
.tree {padding-left: 30px!important;}
.leftBar > .btn {margin-right: 0px;}
.leftBar > .divider {color: #D9D9D9;}
.leftBar > .page-title > .text {font-weight: 400;}
+1
View File
@@ -87,6 +87,7 @@ $lang->struct->desc = 'Description';
$lang->struct->descPlaceholder = 'Parameter Description';
$lang->struct->action = 'Action';
$lang->struct->addSubField = 'Add Subfield';
$lang->struct->list = 'Data Structure List';
$lang->struct->typeOptions = array(
'formData' => 'FormData',
+1
View File
@@ -87,6 +87,7 @@ $lang->struct->desc = 'Description';
$lang->struct->descPlaceholder = 'Parameter Description';
$lang->struct->action = 'Action';
$lang->struct->addSubField = 'Add Subfield';
$lang->struct->list = 'Data Structure List';
$lang->struct->typeOptions = array(
'formData' => 'FormData',
+1
View File
@@ -87,6 +87,7 @@ $lang->struct->desc = 'Description';
$lang->struct->descPlaceholder = 'Parameter Description';
$lang->struct->action = 'Action';
$lang->struct->addSubField = 'Add Subfield';
$lang->struct->list = 'Data Structure List';
$lang->struct->typeOptions = array(
'formData' => 'FormData',
+1
View File
@@ -87,6 +87,7 @@ $lang->struct->desc = '描述';
$lang->struct->descPlaceholder = '参数说明';
$lang->struct->action = '操作';
$lang->struct->addSubField = '添加子字段';
$lang->struct->list = '数据结构列表';
$lang->struct->typeOptions = array(
'formData' => 'FormData',
+14 -3
View File
@@ -15,6 +15,14 @@
<div class='main-col'>
<div class="cell" id="queryBox" data-module='user'></div>
<div id='mainMenu' class='clearfix'>
<div class='btn-toolbar pull-left leftBar'>
<?php $gobackLink = $this->session->structList ? $this->session->structList : inlink('struct', "libID=$libID");?>
<?php echo html::a($gobackLink, "<i class='icon-back'></i> " . $lang->goback, '', "class='btn btn-link'");?>
<div class='divider'></div>
<div class='page-title'>
<span class='text'><?php echo $lang->struct->list;?></span>
</div>
</div>
<div class='btn-toolbar pull-right'>
<?php common::printLink('api', 'createStruct', "libID=$libID", "<i class='icon icon-plus'></i> " . $lang->api->createStruct, '', "class='btn btn-primary create-user-btn'");?>
</div>
@@ -36,7 +44,7 @@
<th class='c-name'><?php echo $lang->api->structName;?></th>
<th class='c-user'><?php common::printOrderLink('addedBy', $orderBy, $vars, $lang->api->structAddedBy);?></th>
<th class='c-date'><?php common::printOrderLink('addedDate', $orderBy, $vars, $lang->api->structAddedDate);?></th>
<th class='c-actions'><?php echo $lang->actions;?></th>
<th class='c-actions-2'><?php echo $lang->actions;?></th>
</tr>
</thead>
<tbody>
@@ -44,9 +52,9 @@
<tr>
<td><?php printf('%03d', $struct->id);?></td>
<td><?php echo $struct->type;?></td>
<td><?php echo $struct->name;?></td>
<td class='c-name' title="<?php echo $struct->name;?>"><?php echo $struct->name;?></td>
<td><?php echo $struct->addedName;?></td>
<td class="c-date"><?php echo $struct->addedDate;?></td>
<td><?php echo formatTime($struct->addedDate, 'Y-m-d');?></td>
<td class='c-actions'>
<?php
if(common::hasPriv('api', 'editStruct')) echo html::a($this->createLink('api', 'editStruct', "libID=$libID&structID=$struct->id"), '<i class="icon-edit"></i>', '', "title='{$lang->api->editStruct}' class='btn'");
@@ -57,6 +65,9 @@
<?php endforeach;?>
</tbody>
</table>
<div class='table-footer'>
<?php $pager->show('right', 'pagerjs');?>
</div>
</form>
<?php endif;?>
</div>