📄 Source: document_template.php
<?php
// SUPER COMPACT document template - fits on half a page
// Variables: $nume, $prenume, $clasa_full, $motiv, $data
?>
<div style="font-family: 'Times New Roman', Times, serif; font-size: 11pt; max-width: 550px; margin: 0 auto;">
<div style="text-align: center; margin-bottom: 15px;">
<div style="font-size: 12pt; font-weight: bold;">MINISTERUL EDUCAȚIEI</div>
<div>Școala Gimnazială "Mihai Eminescu"</div>
<div style="font-size: 9pt;">Str. Culturii nr. 1, București</div>
</div>
<div style="text-align: center; font-size: 14pt; font-weight: bold; margin: 10px 0; text-decoration: underline;">
CERERE / ADEVEREINȚĂ
</div>
<div style="margin: 10px 0;">
<strong>Nr. ________ / <?php echo date('Y'); ?></strong>
<span style="float: right;"><strong>Data:</strong> <?php echo date('d.m.Y'); ?></span>
</div>
<div style="margin: 15px 0;">
<p>Subsemnatul(a), <strong><?php echo $nume . ' ' . $prenume; ?></strong>, elev(ă) în clasa <strong><?php echo $clasa_full; ?></strong>,</p>
<p>prin prezenta, solicit / adeveresc următoarele:</p>
<div style="margin: 10px 0; padding: 8px; background: #f9f9f9; border-left: 3px solid #667eea;">
<em><?php echo nl2br(htmlspecialchars($motiv)); ?></em>
</div>
<p><strong>Data evenimentului:</strong> <?php echo date('d.m.Y', strtotime($data)); ?></p>
</div>
<div style="margin: 15px 0;">
<div style="margin: 5px 0;"><strong>Rezoluție:</strong> ☐ Aprobată ☐ Respinsă</div>
<div style="margin: 5px 0;"><strong>Observații:</strong> _________________________</div>
</div>
<div style="display: flex; justify-content: space-between; margin: 25px 0 15px 0;">
<div style="text-align: center;">
Elev(ă),<br>
_________________<br>
<small>(semnătura)</small>
</div>
<div style="text-align: center;">
Diriginte,<br>
_________________<br>
<small>(semnătura)</small>
</div>
<div style="text-align: center;">
Ștampilă,<br>
[L.S.]
</div>
</div>
<div style="text-align: center; font-size: 8pt; margin-top: 15px; padding-top: 8px; border-top: 1px solid #ccc;">
Document generat automat la <?php echo date('d.m.Y H:i'); ?> | Valabil doar cu semnături
</div>
</div>
← Back