141 lines
4.6 KiB
PHP
141 lines
4.6 KiB
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>Ticket</title>
|
|
<link rel="stylesheet" type="text/css" href="ticket.css" />
|
|
{{ Html::style('css/ticket.css') }}
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container" id="ticket">
|
|
<div class="left">
|
|
<span id="customerName">A{{$seat->user()->first()->title}} {{$seat->user()->first()->firstname}} {{$seat->user()->first()->lastname}} </span>
|
|
</div>
|
|
|
|
<div class="right">
|
|
<span id="reduction">
|
|
@if($seat->concession()->first()->name != "Vollpreis")
|
|
ermäßigt
|
|
@endif
|
|
</span>
|
|
<span id="price">EUR {{ number_format($price/100, 2) }}</span>
|
|
</div>
|
|
|
|
<br clear="all" />
|
|
<hr />
|
|
|
|
<div class="title">
|
|
<span id="eventTitle">{{$seat->singleSeat()->first()->seat()->first()->event()->first()->title}}</span>
|
|
<span id="additionalTitle"></span>
|
|
</div>
|
|
|
|
<div class="left event">
|
|
<span id="eventDate">{{date('d. F Y', strtotime($seat->singleSeat()->first()->seat()->first()->date))}}</span>
|
|
<span id="additionalDate"></span><br />
|
|
<span id="eventRoom">{{$seat->singleSeat()->first()->seat()->first()->event()->first()->room}}</span>
|
|
</div>
|
|
|
|
<div class="right">
|
|
<?php
|
|
$seatX = $seat->singleSeat()->first()->x;
|
|
if($seatX<16 && $seatX>7){
|
|
$seatX--;
|
|
}else if($seatX >= 16){
|
|
$seatX = $seatX-17;
|
|
$seatX = 'E'.$seatX;
|
|
}
|
|
$seatY = $seat->singleSeat()->first()->y;
|
|
?>
|
|
<span id="seat">Reihe {{$seatX}}, Platz {{$seatY}}</span>
|
|
</div>
|
|
|
|
<br clear="all" />
|
|
<hr />
|
|
|
|
<div>
|
|
<img src="/imgs/logo_white.jpg" id="logo" alt="Logo Kulturhaus Bruckmühle" />
|
|
</div>
|
|
|
|
<div id="footer">
|
|
KULTURHAUS PREGARTEN | BAHNHOFSTRASSE 12 | 4230 PREGARTEN | 07236/2570 | KULTURHAUS@BRUCKMUEHLE.AT | WWW.KULTURHAUS-BRUCKMUEHLE.AT
|
|
DURCH DEN ERWERB DIESER EINTRITTSKARTE AKZEPTIERT DER BESUCHER DIE HAUSORDNUNG (WWW.KULTURHAUS-BRUCKMUEHLE.AT/HAUSORDNUNG/). DIE MITNAHME VON TON- UND BILDAUFZEICHNUNGSGERÄTEN,
|
|
GETRÄNKEN UND WURFGESCHOSSEN IST VERBOTEN. ENTWERTETE KARTEN SIND UNGÜLTIG. KARTEN KÖNNEN NICHT ZURÜCKGEGEBEN WERDEN.
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="debug"></div>
|
|
|
|
<script src="{{ URL::asset('jcrop/js/jquery.min.js') }}"></script>
|
|
<script>
|
|
var HTTP_GET_VARS;
|
|
var PRINTER_NAME = "Citizen";
|
|
//var PRINTER_FALLBACK_NAME = "Deskjet";
|
|
var PRINTER_FALLBACK_NAME = "Adobe";
|
|
|
|
$(document).ready(function(){
|
|
|
|
printTickets();
|
|
});
|
|
|
|
function printTickets() {
|
|
jsPrintSetup.setPrinter(selectPrinter());
|
|
|
|
//var paperID = 200;
|
|
//jsPrintSetup.definePaperSize(paperID, paperID, 'ticket_bm', 'ticket_bm_200x87mm', 'Ticket Bruckmuehle', 200, 87, jsPrintSetup.kPaperSizeMillimeters);
|
|
//jsPrintSetup.setPaperSizeData(paperID);
|
|
//alert(jsPrintSetup.getPaperSizeDataByID(200));
|
|
|
|
jsPrintSetup.setOption('orientation', jsPrintSetup.kLandscapeOrientation);
|
|
jsPrintSetup.setOption('marginTop', 0);
|
|
jsPrintSetup.setOption('marginBottom', 0);
|
|
jsPrintSetup.setOption('marginLeft', 0);
|
|
jsPrintSetup.setOption('marginRight', 0);
|
|
|
|
jsPrintSetup.setOption('headerStrLeft', '');
|
|
jsPrintSetup.setOption('headerStrCenter', '');
|
|
jsPrintSetup.setOption('headerStrRight', '');
|
|
jsPrintSetup.setOption('footerStrLeft', '');
|
|
jsPrintSetup.setOption('footerStrCenter', '');
|
|
jsPrintSetup.setOption('footerStrRight', '');
|
|
|
|
jsPrintSetup.setOption('printBGColors', 1);
|
|
|
|
jsPrintSetup.clearSilentPrint();
|
|
jsPrintSetup.setOption('printSilent', 1);
|
|
|
|
jsPrintSetup.printWindow(window);
|
|
|
|
window.close();
|
|
}
|
|
|
|
|
|
function selectPrinter() {
|
|
var printers = jsPrintSetup.getPrintersList().split(',');
|
|
//console.log(printers);
|
|
|
|
for (var i = 0; i < printers.length; ++i) {
|
|
if (printers[i].toLowerCase().indexOf(PRINTER_NAME.toLowerCase()) != -1) {
|
|
return printers[i];
|
|
}
|
|
}
|
|
|
|
for (var i = 0; i < printers.length; ++i) {
|
|
if (printers[i].toLowerCase().indexOf(PRINTER_FALLBACK_NAME.toLowerCase()) != -1) {
|
|
return printers[i];
|
|
}
|
|
}
|
|
|
|
if (printers.length > 0) {
|
|
return printers[0];
|
|
}
|
|
|
|
return '';
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|