* code for task #89148.

This commit is contained in:
tianshujie
2023-03-27 15:34:29 +08:00
parent cc8264cd49
commit 26c1ccbb25
5 changed files with 40 additions and 71 deletions
+6 -23
View File
@@ -12,6 +12,7 @@
?>
<?php include '../../common/view/header.lite.html.php';?>
<?php include '../../common/view/chosen.html.php';?>
<?php js::set('libType', $type);?>
<div id="main">
<div class="container">
<div id='mainContent' class='main-content'>
@@ -21,30 +22,12 @@
</div>
<form method='post' target='hiddenwin' class='no-stash'>
<table class='table table-form'>
<tr>
<th class='w-110px'><?php echo $lang->doc->libType?></th>
<?php if($this->app->tab != 'doc'):?>
<?php
foreach($libTypeList as $key => $libType)
{
if($this->app->tab != $key) unset($libTypeList[$key]);
}
?>
<?php endif;?>
<td><?php echo html::radio('type', $libTypeList, $type ? $type : key($libTypeList))?></td>
</tr>
<tr class='product'>
<th><?php echo $lang->doc->product?></th>
<td><?php echo html::select('product', $products, $type == 'product' ? $objectID : '', "class='form-control chosen' data-drop_direction='down'")?></td>
</tr>
<tr class='project hidden'>
<th><?php echo $lang->doc->project?></th>
<td><?php echo html::select('project', $projects, $type == 'project' ? $objectID : '', "class='form-control chosen' data-drop_direction='down'")?></td>
</tr>
<tr class='execution hidden'>
<th><?php echo $lang->doc->execution?></th>
<td><?php echo html::select('execution', $executions, $type == 'execution' ? $objectID : '', "class='form-control chosen' data-drop_direction='down'")?></td>
<?php if(in_array($type, array('product', 'project', 'execution'))):?>
<tr class='objectBox'>
<th><?php echo $lang->doc->{$type}?></th>
<td class='required'><?php echo html::select($type, $objects, $objectID, "class='form-control chosen' data-drop_direction='down'")?></td>
</tr>
<?php endif;?>
<tr class="normalLib">
<th><?php echo $lang->doclib->name?></th>
<td><?php echo html::input('name', '', "class='form-control'")?></td>