Closed thanesh2308 closed 6 years ago
</div>
<div class= "col-md-9">
<?php if(isset($message)) { echo $message; } ?>
<form action="index.php?page=pages&id=<?php echo $opened['id']; ?>" method="post" role="form">
<div class="form-group">
<label for="title">Title:</label>
<input class="form-control" type="text" name="title" id="title" value="<?php echo $opened['title']; ?>" placeholder="Page Title">
</div>
<div class="form-group">
<label for="user">User:</label>
<select class="form-control" type="text" name="user" id="user">
<option value="0">No user</option>
<?php
$q = "SELECT id FROM users ORDER BY first ASC";
$r = mysqli_query($dbc, $q);
while($user_list = mysqli_fetch_assoc($r)){
$user_data = data_user($dbc, $user_list['id']);
?>
<option value="<?php echo $user_data['id']; ?>"
<?php
if(isset($_GET['id'])){
selected($user_data['id'], $opened['user'], 'selected');
} else {
selected($user_data['id'], $user['id'], 'selected');
}
?>><?php echo $user_data['fullname']; ?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label for="slug">Slug:</label>
<input class="form-control" type="text" name="slug" id="slug" value="<?php echo $opened['slug']; ?>"placeholder="Page Slug">
</div>
<div class="form-group">
<label for="label">Label:</label>
<input class="form-control" type="text" name="label" id="label" value="<?php echo $opened['label']; ?>" placeholder="Page Label">
</div>
<div class="form-group">
<label for="header">Header:</label>
<input class="form-control" type="text" name="header" id="header" value="<?php echo $opened['header']; ?>" placeholder="Page Header">
</div>
<div class="form-group">
<label for="body">Body:</label>
<textarea class="form-control editor" name="body" id="body" rows="8" placeholder="Page Body"><?php echo $opened['body']; ?></textarea>
</div>
<?php if(isset($opened['id'])) { ?> <input type="hidden" name"id" value="<?php echo $opened['id']; ?>"> <?php } ?>
</form>
</div>
</div>
hi there, could someone help me regarding this issue please :)
I have completed the video 66 by adding the delete page button , everything is working but in the admin panel the link is not clickable. here is the source code of the pages.php.
Admin Panel
<?php
?>
<?php } ?>