* Batch editing project interface.

This commit is contained in:
tianshujie98
2021-02-20 17:41:13 +08:00
parent 83c4669281
commit b0384bbc7f
4 changed files with 56 additions and 5 deletions
+35
View File
@@ -11,4 +11,39 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php $requiredFields = $config->program->PRJEdit->requiredFields;?>
<div id="mainContent" class="main-content">
<div class="main-header">
<h2><?php echo $lang->product->batchEdit;?></h2>
</div>
<form method='post' class='load-indicator main-form' enctype='multipart/form-data' target='hiddenwin' id="batchEditForm">
<table class="table table-form">
<thead>
<tr>
<th class='w-10px'> <?php echo $lang->idAB;?></th>
<th class='w-150px'> <?php echo $lang->program->PGMParent;?></th>
<th class='w-200px required'><?php echo $lang->program->PRJName;?></th>
<th class="w-150px <?php echo strpos($requiredFields, 'PM') !== false ? 'required' : '';?>"> <?php echo $lang->program->PRJPM;?></th>
</tr>
</thead>
<tbody>
<?php foreach($projectIdList as $projectID):?>
<tr>
<td><?php echo sprintf('%03d', $projectID) . html::hidden("productIDList[$projectID]", $projectID);?></td>
<td><?php echo html::select('parents', $programList, $projects[$projectID]->parent, "class='form-control chosen'");?></td>
<td title='<?php echo $projects[$projectID]->name;?>'><?php echo html::input("names[$projectID]", $projects[$projectID]->name, "class='form-control'");?></td>
<td><?php echo html::select('PMs[$projectID]', $PMUsers, $projects[$projectID]->PM, "class='form-control chosen'");?></td>
</tr>
<?php endforeach;?>
</tbody>
<tfoot>
<tr>
<td colspan="4" class="text-center form-actions">
<?php echo html::submitButton();?>
<?php echo html::backButton();?>
</td>
</tr>
</tfoot>
</table>
</div>
<?php include '../../common/view/footer.html.php';?>