🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:settings.php
<?php require APPROOT . '/views/layouts/admin_header.php'; ?> <h4 class="font-outfit fw-bold text-navy mb-4">Site Configurations</h4> <?php if(isset($_SESSION['settings_updated'])) : ?> <div class="alert alert-success alert-dismissible fade show rounded-3 mb-4 shadow-sm" role="alert"> <i class="fas fa-check-circle me-2"></i> Settings updated successfully! <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> </div> <?php unset($_SESSION['settings_updated']); ?> <?php endif; ?> <div class="card border-0 shadow-sm rounded-4"> <div class="card-header bg-white border-bottom py-3"> <h5 class="mb-0 font-outfit fw-bold text-navy">General Settings</h5> </div> <div class="card-body p-4"> <form action="<?php echo URLROOT; ?>/admin/settings" method="POST"> <div class="row g-4"> <!-- Site Name --> <div class="col-md-6"> <label for="site_name" class="form-label font-inter fw-medium text-navy">Site Name / Company Title</label> <input type="text" name="site_name" id="site_name" class="form-control rounded-3" value="<?php echo htmlspecialchars($data['settings']['site_name'] ?? ''); ?>"> </div> <!-- Contact Email --> <div class="col-md-6"> <label for="contact_email" class="form-label font-inter fw-medium text-navy">Contact Email</label> <input type="email" name="contact_email" id="contact_email" class="form-control rounded-3" value="<?php echo htmlspecialchars($data['settings']['contact_email'] ?? ''); ?>"> </div> <!-- Phone 1 --> <div class="col-md-6"> <label for="contact_phone_1" class="form-label font-inter fw-medium text-navy">Primary Contact Phone</label> <input type="text" name="contact_phone_1" id="contact_phone_1" class="form-control rounded-3" value="<?php echo htmlspecialchars($data['settings']['contact_phone_1'] ?? ''); ?>"> </div> <!-- Phone 2 --> <div class="col-md-6"> <label for="contact_phone_2" class="form-label font-inter fw-medium text-navy">Secondary Contact Phone</label> <input type="text" name="contact_phone_2" id="contact_phone_2" class="form-control rounded-3" value="<?php echo htmlspecialchars($data['settings']['contact_phone_2'] ?? ''); ?>"> </div> <!-- Address --> <div class="col-12"> <label for="contact_address" class="form-label font-inter fw-medium text-navy">Office Address</label> <input type="text" name="contact_address" id="contact_address" class="form-control rounded-3" value="<?php echo htmlspecialchars($data['settings']['contact_address'] ?? ''); ?>"> </div> <!-- Mission --> <div class="col-md-6"> <label for="about_mission" class="form-label font-inter fw-medium text-navy">Company Mission Statement</label> <textarea name="about_mission" id="about_mission" rows="5" class="form-control rounded-3"><?php echo htmlspecialchars($data['settings']['about_mission'] ?? ''); ?></textarea> </div> <!-- Vision --> <div class="col-md-6"> <label for="about_vision" class="form-label font-inter fw-medium text-navy">Company Vision Statement</label> <textarea name="about_vision" id="about_vision" rows="5" class="form-control rounded-3"><?php echo htmlspecialchars($data['settings']['about_vision'] ?? ''); ?></textarea> </div> </div> <div class="d-flex justify-content-end mt-4 pt-3 border-top"> <button type="submit" class="btn btn-navy rounded-pill px-4"> <i class="fas fa-save me-2"></i> Save Configurations </button> </div> </form> </div> </div> <?php require APPROOT . '/views/layouts/admin_footer.php'; ?>
Save Changes
Cancel
Create New File
Create New Folder