This commit is contained in:
tianshujie
2021-10-13 15:11:26 +08:00
parent 5e3863b284
commit 880c8893c8
4 changed files with 27 additions and 7 deletions
+4 -1
View File
@@ -13,7 +13,9 @@
</th>
<td class='required'>
<div class='input-group'>
<?php echo html::select("programs", $programs, $programID, "class='form-control hidden pgm-exist' onchange='getProjectByProgram(this)'");?>
<?php $hidden = $type == 'noProject' ? '' : 'hidden';?>
<?php echo html::select("programs", $programs, $programID, "class='form-control $hidden pgm-exist' onchange='getProjectByProgram(this)'");?>
<?php if($type != 'noProject'):?>
<?php echo html::input("programName", '', "class='form-control pgm-no-exist'");?>
<span class='input-group-addon'>
<div class="checkbox-primary">
@@ -21,6 +23,7 @@
<label for="newProgram0"><?php echo $lang->upgrade->newProgram;?></label>
</div>
</span>
<?php endif;?>
</div>
<?php echo html::hidden('programID', '');?>
</td>