| Server IP : 172.67.201.108 / Your IP : 216.73.216.11 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/banners/domains/stagemag/ |
Upload File : |
<?php
include 'header.php';
set_time_limit(600);
$programid = resolve_programid();
require_program_access($programid, $getuser);
?>
<style>
.feature-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.08); }
.feature-card-header { background: linear-gradient(135deg, #b20223 0%, #8a011a 100%); color: #fff; padding: 12px 20px; border-radius: 7px 7px 0 0; font-size: 18px; font-weight: 600; }
.feature-card-body { padding: 20px; }
.feature-card-body p { color: #555; margin-bottom: 15px; line-height: 1.5; }
.feature-row { margin-bottom: 15px; }
.btn-save { background-color: #b20223; color: white; border: none; padding: 12px 30px; border-radius: 4px; font-size: 16px; font-weight: 600; cursor: pointer; }
.btn-save:hover { background-color: #8a011a; }
.page-titles-table { width: 100%; border-collapse: collapse; }
.page-titles-table td { padding: 8px 12px; border-bottom: 1px solid #eee; vertical-align: middle; }
.page-titles-table td:first-child { font-weight: 600; color: #333; width: 180px; }
.page-titles-table input { padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; width: 100%; max-width: 300px; }
</style>
<div id="content" style="max-width: 700px;">
<div id="content-header">
<h2> Page Titles</h2>
</div>
<div class="container-fluid">
<?php
if (isset($_GET['editsaveclient'])) {
$editsaveclient = intval($_GET['editsaveclient']);
$stmt = db_write()->prepare("UPDATE stagemag.productions SET
titleads = ?, titleat = ?, titlesong = ?, titlewho = ?,
titlecast = ?, titlecreative = ?, titlemeet = ?,
titlemultimedia = ?, titlearticles = ?, titledonors = ?
WHERE id = ?");
$stmt->execute([
$_POST['titleads'] ?? '', $_POST['titleat'] ?? '', $_POST['titlesong'] ?? '',
$_POST['titlewho'] ?? '', $_POST['titlecast'] ?? '', $_POST['titlecreative'] ?? '',
$_POST['titlemeet'] ?? '', $_POST['titlemultimedia'] ?? '',
$_POST['titlearticles'] ?? '', $_POST['titledonors'] ?? '',
$editsaveclient
]);
header('Location: /programedit.php?programid=' . urlencode($editsaveclient));
exit;
}
$stmt = db_write()->prepare("SELECT * FROM stagemag.productions WHERE id = ?");
$stmt->execute([$programid]);
$geter = $stmt->fetch();
?>
<br>
<FORM action="programedit-pages.php?editsaveclient=<?= urlencode($programid) ?>" method="post" enctype="multipart/form-data">
<div class="feature-card">
<div class="feature-card-header">Customize Page Titles</div>
<div class="feature-card-body">
<p>Want to modify any of the default page titles on the Modern program? Edit below!</p>
<table class="page-titles-table">
<tr><td>Advertisements</td><td><input name="titleads" value="<?= htmlspecialchars($geter['titleads'] ?? '') ?>"></td></tr>
<tr><td>At This Performance</td><td><input name="titleat" value="<?= htmlspecialchars($geter['titleat'] ?? '') ?>"></td></tr>
<tr><td>Song List</td><td><input name="titlesong" value="<?= htmlspecialchars($geter['titlesong'] ?? '') ?>"></td></tr>
<tr><td>Who's Who</td><td><input name="titlewho" value="<?= htmlspecialchars($geter['titlewho'] ?? '') ?>"></td></tr>
<tr><td>Cast</td><td><input name="titlecast" value="<?= htmlspecialchars($geter['titlecast'] ?? '') ?>"></td></tr>
<tr><td>Creative Team</td><td><input name="titlecreative" value="<?= htmlspecialchars($geter['titlecreative'] ?? '') ?>"></td></tr>
<tr><td>Meet the Company</td><td><input name="titlemeet" value="<?= htmlspecialchars($geter['titlemeet'] ?? '') ?>"></td></tr>
<tr><td>Multimedia</td><td><input name="titlemultimedia" value="<?= htmlspecialchars($geter['titlemultimedia'] ?? '') ?>"></td></tr>
<tr><td>Donors</td><td><input name="titledonors" value="<?= htmlspecialchars($geter['titledonors'] ?? '') ?>"></td></tr>
<tr><td>Articles</td><td><input name="titlearticles" value="<?= htmlspecialchars($geter['titlearticles'] ?? '') ?>"></td></tr>
</table>
</div>
</div>
<div style="text-align: center; margin-bottom: 30px;">
<button type="submit" name="buttarticleman" id="cdh_update_article" class="btn-save">Save Page Titles</button>
</div>
</form>
</div>
<!--Footer-part-->
<br><br><br><br>
<?php include 'footer.php'; ?>