json update
This commit is contained in:
parent
bf5b07ac12
commit
7d13740033
|
|
@ -132,7 +132,7 @@ if (isset($_POST['submit'])) {
|
||||||
// --- 2. Load Data for Display ---
|
// --- 2. Load Data for Display ---
|
||||||
$saved_data = [];
|
$saved_data = [];
|
||||||
if (file_exists($json_file)) {
|
if (file_exists($json_file)) {
|
||||||
$json_content = file_get_contents($json_file);
|
$json_content = file/get_contents($json_file);
|
||||||
$saved_data = json_decode($json_content, true) ?? [];
|
$saved_data = json_decode($json_content, true) ?? [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -216,7 +216,7 @@ include 'header.php';
|
||||||
<label>EO Contact Details</label>
|
<label>EO Contact Details</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="text" name="company_name" value="<?php echo htmlspecialchars(getValue($saved_data, 'company_name')); ?>" required>
|
<intput type="text" name="company_name" value="<?php echo htmlspecialchars(getValue($saved_data, 'company_name')); ?>" required>
|
||||||
<label>Company Name</label>
|
<label>Company Name</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
|
|
@ -233,7 +233,7 @@ include 'header.php';
|
||||||
<div class="card wide">
|
<div class="card wide">
|
||||||
<h3 style="margin-bottom: 15px;">Content Details</h3>
|
<h3 style="margin-bottom: 15px;">Content Details</h3>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="text" name="content_type" value="<?php echo htmlspecialchars(getValue($saved_data, 'content_type')); ?>" required>
|
<input type="text" name="content_type" value="<?php echo htmlspecialchars(getValue($saved_data, 'content_type')); ?>" required>
|
||||||
<label>Content Type</label>
|
<label>Content Type</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="dropdown-container">
|
<div class="dropdown-container">
|
||||||
|
|
@ -254,7 +254,6 @@ include 'header.php';
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<label style="margin-top: 5px; display: block;">Content Rating</label>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="text" name="content_language" value="<?php echo htmlspecialchars(getValue($saved_data, 'content_language')); ?>" required>
|
<input type="text" name="content_language" value="<?php echo htmlspecialchars(getValue($saved_data, 'content_language')); ?>" required>
|
||||||
|
|
@ -273,7 +272,7 @@ include 'header.php';
|
||||||
<div class="mt-2">
|
<div class="mt-2">
|
||||||
<small style="color: #aaa;">Current:</small><br>
|
<small style="color: #aaa;">Current:</small><br>
|
||||||
<img src="/app_ad.png" id="preview_app_ad" class="img-thumbnail" style="max-height: 60px; opacity: 0.7; margin-top: 5px;">
|
<img src="/app_ad.png" id="preview_app_ad" class="img-thumbnail" style="max-height: 60px; opacity: 0.7; margin-top: 5px;">
|
||||||
<button type="button" onclick="prepareRemoval('file_app_ad', 'remove_app_ad', 'preview_app_ad')" style="background:none; border:none; color:#ff4d4d; cursor:pointer; font-size:12px; text-decoration:underline; display:block; margin-top:5px;">Remove Existing</button>
|
<button type="button" onclick="prepareRemoval('file_app_ ad', 'remove_app_ad', 'preview_app_ad')" style="background:none; border:none; color:#ff4d4d; cursor:pointer; font-size:12px; text-decoration:underline; display:block; margin-top:5px;">Remove Existing</button>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue