Files
thetool/Layout/default/Voiceplan/export.pdf.php
2024-08-30 13:17:22 +02:00

77 lines
2.9 KiB
PHP

<?php
/**
* @var $voiceplan Voiceplan
* @var $ressourcePathPrefix string
*/
$this->setReturnValue([
'filename' => "xinon-sprachtarif-uebersicht-".preg_replace("/[^a-z0-9-_]+/i","-", $voiceplan->name).".pdf"
]);
?>
<!DOCTYPE html>
<html>
<head>
<title>Xinon Sprachtarifsübersicht <?=$voiceplan->name?></title>
<meta charset="utf-8" />
<link href="<?=$ressourcePathPrefix?>fontawesome/css/all.min.css" rel="stylesheet" type="text/css" />
<link href="<?=$ressourcePathPrefix?>assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="<?=$ressourcePathPrefix?>assets/css/thetool.css" rel="stylesheet" type="text/css" />
<link href="<?=$ressourcePathPrefix?>assets/css/print.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
margin-left: 36pt;
margin-right: 36pt;
font-size: 9pt;
font-family: "Open Sans", OpenSans, sans-serif;
background-color: #fff !important;
}
</style>
</head>
<body>
<div style="border-top: 1pt solid #000">
&nbsp;
</div>
<div>
<img src="<?=$ressourcePathPrefix?>assets/images/xinon-full.png" style="height: 80pt;" />
</div>
<div style="height:32pt;"></div>
<div>
<h3 class="text-center mb-3">Gesprächsgebührenübersicht für den Sprachtarif<br /> <?=$voiceplan->name?></h3>
<?php if($voiceplan->increment_first == 1 && $voiceplan->increment == 1): ?>
<p class="text-center">Abrechnungstakt: Sekundengenaue Abrechnung</p>
<?php else: ?>
<p class="text-center">Abrechnungstakt: <?=$voiceplan->increment_first?>/<?=$voiceplan->increment?>*</p>
<?php endif; ?>
<table class="table table-sm table-bordered table-striped">
<tr>
<th class="font-weight-bold">Ziel</th>
<th class="text-right font-weight-bold">Preis pro Minute excl. Ust.</th>
<th class="text-right font-weight-bold">Preis pro Minute incl. Ust.</th>
</tr>
<?php $i=0; foreach($voiceplan->zones as $zone): ?>
<tr style="page-break-inside: avoid">
<td style="padding:6pt; padding-top: 2pt; padding-bottom: 2pt;"><?=$zone->name?></td>
<td style="padding:6pt; padding-top: 2pt; padding-bottom: 2pt;" class="text-right text-monospace">€ <?=number_format($zone->price, 4, ",",".")?></td>
<td style="padding:6pt; padding-top: 2pt; padding-bottom: 2pt;" class="text-right text-monospace">€ <?=number_format($zone->price*1.2, 4, ",",".")?></td>
</tr>
<?php $i++; endforeach; ?>
</table>
<?php if($voiceplan->increment_first != 1 || $voiceplan->increment != 1): ?>
<p style="font-size: 6pt;">* Taktung: Jedes Gespräch wird für volle <?=$voiceplan->increment_first?> Gesprächssekunden abgerechnet, darüber hinausgehende Gesprächsdauer in Schritten von <?=$voiceplan->increment?> Sekunden.</p>
<?php endif; ?>
</div>
</body>
</html>