lable update
This commit is contained in:
parent
0c2ff83685
commit
36a713952f
|
|
@ -92,14 +92,17 @@ function getValue($data, $key)
|
|||
|
||||
<!-- File Uploads -->
|
||||
<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>
|
||||
<input type="file" name="app_ad" accept="image/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 >
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
<input type="file" name="app_logo" accept="image/png">
|
||||
<?php if (file_exists('/var/www/html/app_logo.png')): ?>
|
||||
|
|
@ -107,6 +110,7 @@ function getValue($data, $key)
|
|||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
|
|
@ -151,10 +155,6 @@ function getValue($data, $key)
|
|||
];
|
||||
|
||||
$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) {
|
||||
$data_to_save[$field] = $_POST[$field] ?? '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue