mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Add functionality to link certificates to services
This commit is contained in:
@@ -154,7 +154,7 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- TODO: Services related to other services & certificates -->
|
||||
<!-- TODO: Services related to other services -->
|
||||
|
||||
</div>
|
||||
|
||||
@@ -207,6 +207,23 @@
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="certificates">Certificates</label>
|
||||
<p></p>
|
||||
<select class="form-select" id="certificates" name="certificates[]" multiple="multiple">
|
||||
<option value="">- Certificates -</option>
|
||||
<?php
|
||||
$sql = mysqli_query($mysqli, "SELECT * FROM certificates WHERE certificate_client_id = '$client_id'");
|
||||
while($row = mysqli_fetch_array($sql)){
|
||||
$cert_id = $row['certificate_id'];
|
||||
$cert_name = $row['certificate_name'];
|
||||
$cert_domain = $row['certificate_domain'];
|
||||
echo "<option value=\"$cert_id\">$cert_name ($cert_domain)</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user