lable update
This commit is contained in:
parent
0c2ff83685
commit
36a713952f
|
|
@ -92,19 +92,23 @@ function getValue($data, $key)
|
||||||
|
|
||||||
<!-- File Uploads -->
|
<!-- File Uploads -->
|
||||||
<div class="card wide">
|
<div class="card wide">
|
||||||
<label style="display: block; margin-bottom: 10px; color: var(--muted); font-size: 14px;">Upload Ad (PNG)</label>
|
<div class="input-group">
|
||||||
<input type="file" name="app_ad" accept="image/png">
|
<label style="display: block; margin-bottom: 10px; color: var(--muted); font-size: 14px;">Upload Ad (PNG)</label>
|
||||||
<?php if (file_exists('/var/www/html/app_ad.png')): ?>
|
<input type="file" name="app_ad" accept="image/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 if (file_exists('/var/www/html/app_ad.png')): ?>
|
||||||
<?php endif; ?>
|
<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>
|
||||||
|
|
||||||
<div class="card wide">
|
<div class="card wide">
|
||||||
<label style="display: block; margin-bottom: 10px; color: var(--muted); font-size: 14px;">Upload Logo (PNG)</label>
|
<div class="input-group">
|
||||||
<input type="file" name="app_logo" accept="image/png">
|
<label style="display: block; margin-bottom: 10px; color: var(--muted); font-size: 14px;">Upload Logo (PNG)</label>
|
||||||
<?php if (file_exists('/var/www/html/app_logo.png')): ?>
|
<input type="file" name="app_logo" accept="image/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>
|
<?php if (file_exists('/var/www/html/app_logo.png')): ?>
|
||||||
<?php endif; ?>
|
<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; ?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -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] ?? '';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue