s2 #22

Merged
suvo merged 1 commits from b2 into master 2025-02-14 12:19:40 +00:00
2 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@
<option value="page">Page</option> <option value="page">Page</option>
<option value="documents">Documents</option> <option value="documents">Documents</option>
<option value="events">Events</option> <option value="events">Events</option>
<option value="faculty">Faculty</option>
</select><br/> </select><br/>
<label for="title">Page Title:</label><br> <input id="title" name="title" type="text"> <label for="title">Page Title:</label><br> <input id="title" name="title" type="text">
<label for="slug">Page unique slug:</label><br> <input id="slug" name="slug" type="text"> <label for="slug">Page unique slug:</label><br> <input id="slug" name="slug" type="text">

View File

@ -114,7 +114,7 @@ try {
<select name="type" id="type" style="padding: 10px;"> <select name="type" id="type" style="padding: 10px;">
<?php <?php
// echo $row['type']; // echo $row['type'];
$typeOptions = ['notice', 'tender', 'page', 'documents', 'events']; $typeOptions = ['notice', 'tender', 'page', 'documents', 'events', 'faculty'];
foreach($typeOptions as $type){ foreach($typeOptions as $type){
$selected = ($row['type'] === $type) ? 'selected' : ''; $selected = ($row['type'] === $type) ? 'selected' : '';
echo '<option value="'.$type.'" '.$selected.'>'.ucfirst($type).'</option>'; echo '<option value="'.$type.'" '.$selected.'>'.ucfirst($type).'</option>';