%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64 User : ndkhermy ( 1200) PHP Version : 8.5.12 Disable Function : NONE Directory : /home1/ndkhermy/www/website_6ca89795/admin/ |
Upload File : |
<?php
include('header.php');
include('../dbcon.php');
if (!isset($_GET['sid']) || !is_numeric($_GET['sid'])) {
die("Invalid ID");
}
$sid = intval($_GET['sid']);
$sql = "SELECT * FROM aboutcontent WHERE id='$sid'";
$run = mysqli_query($conn, $sql);
if (!$run) {
die("Query Error : " . mysqli_error($conn));
}
$updateabout = mysqli_fetch_assoc($run);
if (!$updateabout) {
die("Record Not Found");
}
?>
<div class="container">
<h3>Update About Content</h3>
<script src="ckeditor/ckeditor.js"></script>
<form action="aboutcontentupdatedata.php" method="POST" enctype="multipart/form-data">
<div class="form-group mb-3">
<label><b>About Title</b></label>
<input type="text"
name="abouttitle1"
class="form-control"
value="<?php echo htmlspecialchars($updateabout['abouttitle1']); ?>">
</div>
<div class="form-group mb-3">
<label><b>About Content</b></label>
<textarea name="subtitle1" id="subtitle1"><?php echo $updateabout['subtitle1']; ?></textarea>
</div>
<div class="form-group mb-3">
<label><b>Privacy Policy</b></label>
<textarea name="privacy_policy_content" id="privacy_policy_content"><?php echo $updateabout['privacy_policy_content']; ?></textarea>
</div>
<div class="form-group mb-3">
<label><b>Terms & Condition</b></label>
<textarea name="terms_and_condition" id="terms_and_condition"><?php echo $updateabout['terms_and_condition']; ?></textarea>
</div>
<div class="form-group mb-3">
<label><b>Delete Account Privacy</b></label>
<textarea name="delete_account_privacy" id="delete_account_privacy"><?php echo $updateabout['delete_account_privacy']; ?></textarea>
</div>
<div class="form-group mb-3">
<label><b>Image</b></label>
<input type="file" name="simg" class="form-control">
<br>
<?php if (!empty($updateabout['image'])) { ?>
<img src="dataimg/<?php echo $updateabout['image']; ?>" width="120">
<?php } ?>
<input type="hidden" name="old_image" value="dataimg/<?php echo $updateabout['image']; ?>">
</div>
<input type="hidden" name="sid" value="<?php echo $updateabout['id']; ?>">
<button type="submit" name="submit" value="1" class="btn btn-primary">
Update
</button>
</form>
</div>
<script>
CKEDITOR.replace('subtitle1');
CKEDITOR.replace('privacy_policy_content');
CKEDITOR.replace('terms_and_condition');
CKEDITOR.replace('delete_account_privacy');
document.querySelector('form').addEventListener('submit', function () {
for (instance in CKEDITOR.instances) {
CKEDITOR.instances[instance].updateElement();
}
});
</script>
<?php include('footer.php'); ?>