16 lines
763 B
Python
16 lines
763 B
Python
with open('approved_school.php', 'r', encoding='utf-8') as f:
|
|
content = f.read()
|
|
|
|
replacement = """
|
|
<div class="d-flex align-items-center gap-3 mb-3">
|
|
<?php if ($application['logo']): ?>
|
|
<img src="<?= e((string)$application['logo']) ?>" alt="Logo" style="width: 64px; height: 64px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,0.1);">
|
|
<?php endif; ?>
|
|
<h1 class="page-title mb-0"><?= e((string) $application['center_name']) ?></h1>
|
|
</div>"""
|
|
|
|
content = content.replace('<h1 class="page-title mb-3"><?= e((string) $application["center_name"]) ?></h1>', replacement)
|
|
|
|
with open('approved_school.php', 'w', encoding='utf-8') as f:
|
|
f.write(content)
|