lable update

This commit is contained in:
Devdatt Bhatt 2026-05-20 08:23:35 +00:00
parent 0c2ff83685
commit 36a713952f
1 changed files with 14 additions and 14 deletions

View File

@ -92,21 +92,25 @@ function getValue($data, $key)
<!-- File Uploads --> <!-- File Uploads -->
<div class="card wide"> <div class="card wide">
<div class="input-group">
<label style="display: block; margin-bottom: 10px; color: var(--muted); font-size: 14px;">Upload Ad (PNG)</label> <label style="display: block; margin-bottom: 10px; color: var(--muted); font-size: 14px;">Upload Ad (PNG)</label>
<input type="file" name="app_ad" accept="image/png"> <input type="file" name="app_ad" accept="image/png">
<?php if (file_exists('/var/www/html/app_ad.png')): ?> <?php if (file_exists('/var/www/html/app_ad.png')): ?>
<div class="mt-2"><small class="text-muted">Current:</small><br><img src="/var/www/html/app_ad.png" class="img-thumbnail" style="max-height: 60px; opacity: 0.7;"></div> <div class="mt-2"><small class="text-muted">Current:</small><br><img src="/var/www/html/app_ad.png" class="img-thumbnail" style="max-height: 60px; opacity: 0.7;"></div >
<?php endif; ?> <?php endif; ?>
</div> </div>
</div>
<div class="card wide"> <div class="card wide">
<div class="input-group">
<label style="display: block; margin-bottom: 10px; color: var(--muted); font-size: 14px;">Upload Logo (PNG)</label> <label style="display: block; margin-bottom: 10px; color: var(--muted); font-size: 14px;">Upload Logo (PNG)</label>
<input type="file" name="app_logo" accept="image/png"> <input type="file" name="app_logo" accept="image/png">
<?php if (file_exists('/var/www/html/app_logo.png')): ?> <?php if (file_exists('/var/www/html/app_logo.png')): ?>
<div class="mt-2"><small class="text-muted">Current:</small><br><img src="/var/www/html/app_logo.png" class="img-thumbnail" style="max-height: 60px; opacity: 0.7;"></div> <div class="mt-2"><small class="text-muted">Current:</small><br><img src="/var/www/html/app_logo.png" class="img-thumbnail" style="max-height: 60px; opacity: 0.7;"></div >
<?php endif; ?> <?php endif; ?>
</div> </div>
</div> </div>
</div>
<div class="card wide" style="text-align: center; margin-top: 20px;"> <div class="card wide" style="text-align: center; margin-top: 20px;">
<button type="submit" name="submit" class="cta-primary" style="padding: 12px 60px; font-size: 16px;">Save All Details</button> <button type="submit" name="submit" class="cta-primary" style="padding: 12px 60px; font-size: 16px;">Save All Details</button>
@ -151,10 +155,6 @@ function getValue($data, $key)
]; ];
$data_to_save = []; $data_to_save = [];
foreach ($text_for_save as $field) { // Note: fixed variable name from previous logic
// ... (logic remains same)
}
// Re-implementing the logic correctly for the snippet
foreach ($text_fields as $field) { foreach ($text_fields as $field) {
$data_to_save[$field] = $_POST[$field] ?? ''; $data_to_save[$field] = $_POST[$field] ?? '';
} }