346 lines
11 KiB
PHP
346 lines
11 KiB
PHP
<?php
|
|
/* Smarty version 3.1.39, created on 2022-02-05 21:04:21
|
|
from '/var/www/web360/htdocs/gottesdienst/templates/modern/admin/qr_code.html' */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '3.1.39',
|
|
'unifunc' => 'content_61fed8455e3087_29811195',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'fb32a06db5f8ef647fe811fcce41656be1ad294a' =>
|
|
array (
|
|
0 => '/var/www/web360/htdocs/gottesdienst/templates/modern/admin/qr_code.html',
|
|
1 => 1623086666,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_61fed8455e3087_29811195 (Smarty_Internal_Template $_smarty_tpl) {
|
|
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
|
<html>
|
|
<head>
|
|
<link type="text/css" rel="stylesheet" href="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
|
|
/css/styles_refill.css">
|
|
<link rel="stylesheet" href="../jquery/jquery-ui.css">
|
|
<link rel="stylesheet" href="../jquery/jquery.timepicker.min.css">
|
|
<?php echo '<script'; ?>
|
|
src="../jquery/jquery-1.12.4.js"><?php echo '</script'; ?>
|
|
>
|
|
<?php echo '<script'; ?>
|
|
src="../jquery/jquery-ui.js"><?php echo '</script'; ?>
|
|
>
|
|
<?php echo '<script'; ?>
|
|
src="../jquery/globalize.js"><?php echo '</script'; ?>
|
|
>
|
|
<?php echo '<script'; ?>
|
|
src="../jquery/globalize.culture.de-DE.js"><?php echo '</script'; ?>
|
|
>
|
|
<?php echo '<script'; ?>
|
|
src="../jquery/jquery.mousewheel.js"><?php echo '</script'; ?>
|
|
>
|
|
<?php echo '<script'; ?>
|
|
src="../jquery/jquery.timepicker.min.js"><?php echo '</script'; ?>
|
|
>
|
|
<style type="text/css">
|
|
.spinner {
|
|
width: 112px;
|
|
height: 15px;
|
|
font-size: 12px !important;
|
|
}
|
|
</style>
|
|
<?php echo '<script'; ?>
|
|
>
|
|
$( function() {
|
|
$( ".spinner" ).spinner({
|
|
change: function (event, ui) {
|
|
<!--calc_erm_78();-->
|
|
},
|
|
spin: function (event, ui) {
|
|
<!--calc_erm_78();-->
|
|
},
|
|
start: function (event, ui) {
|
|
<!--calc_erm_78();-->
|
|
},
|
|
stop: function (event, ui) {
|
|
<!--calc_erm_78();-->
|
|
},
|
|
step: 1,
|
|
numberFormat: "i",
|
|
min:0,
|
|
decimals:0
|
|
});
|
|
Globalize.culture( "de-DE" );
|
|
} );
|
|
|
|
function trackKeys(evnt,regEx) {
|
|
var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which;
|
|
return !!String.fromCharCode(keyCode).match(regEx);
|
|
}
|
|
//-->
|
|
<?php echo '</script'; ?>
|
|
>
|
|
<?php echo '<script'; ?>
|
|
type="text/javascript">
|
|
$(function() {
|
|
$(".datepicker").datepicker({
|
|
prevText: '< zurück', prevStatus: '',
|
|
prevJumpText: '<<', prevJumpStatus: '',
|
|
changeMonth: true,
|
|
changeYear: true,
|
|
nextText: 'Vor >', nextStatus: '',
|
|
nextJumpText: '>>', nextJumpStatus: '',
|
|
currentText: 'Heute', currentStatus: '',
|
|
todayText: 'Heute', todayStatus: '',
|
|
clearText: '-', clearStatus: '',
|
|
closeText: 'schließen', closeStatus: '',
|
|
monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'],
|
|
monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'],
|
|
dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
|
|
dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
|
|
dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
|
|
weekHeader: 'Wo',
|
|
weekStatus: 'Woche des Monats',
|
|
showMonthAfterYear: false,
|
|
showOn: 'focus',
|
|
firstDay: 1,
|
|
numberOfMonths : 1,
|
|
yearRange: "c-5:+5",
|
|
showButtonPanel : true,
|
|
altField : "#datepicker_input",
|
|
dateFormat : "dd.mm.yy",
|
|
showWeek: true
|
|
});
|
|
$.datepicker._gotoToday = function(id) {
|
|
$(id).datepicker('setDate', new Date()).datepicker('hide').blur();
|
|
}
|
|
|
|
});
|
|
<?php echo '</script'; ?>
|
|
>
|
|
|
|
<?php echo '<script'; ?>
|
|
type="text/javascript">
|
|
$(document).ready(function(){
|
|
$('input.timepicker').timepicker({
|
|
timeFormat: 'HH:mm',
|
|
interval: 30,
|
|
minTime: '00:00',
|
|
maxTime: '21:00',
|
|
startTime: '0',
|
|
dynamic: false,
|
|
dropdown: true,
|
|
scrollbar: true
|
|
});
|
|
});
|
|
<?php echo '</script'; ?>
|
|
>
|
|
|
|
<style>
|
|
.StandardTable thead th{
|
|
background: lightgray;
|
|
border: 1px solid #656565;
|
|
font-size:12px;
|
|
font-family:Arial;
|
|
padding-top:5px;
|
|
padding-bottom:5px;
|
|
padding-left:5px;
|
|
padding-right:5px;
|
|
}
|
|
textarea{
|
|
border: 1px solid #888;
|
|
height: 6.7em;
|
|
width: 48.5em;
|
|
}
|
|
select{
|
|
width:630px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<form action="?action=save" method='post' name='erfassen'>
|
|
|
|
<?php if ($_smarty_tpl->tpl_vars['qrcode_error']->value == '1') {?>
|
|
<table width="70%" class="errorTable" align="center">
|
|
<tr>
|
|
<td>
|
|
<img src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
|
|
/images/pflichtfelder/achtung_gross.gif">
|
|
</td>
|
|
<td><b>Achtung!</b><br>
|
|
<?php echo $_smarty_tpl->tpl_vars['qrcode_error_text']->value;?>
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br />
|
|
<?php }?>
|
|
<fieldset>
|
|
<legend>
|
|
<b>QR Code erfassen</b>
|
|
</legend>
|
|
<br />
|
|
<br />
|
|
<table cellspacing="0" cellpadding="0" width="100%" border="0" class="StandardTable">
|
|
<tr>
|
|
<td width="30%">
|
|
Vorname:
|
|
</td>
|
|
<td>
|
|
<input type="text" name="vorname" id="vorname" value="<?php echo $_smarty_tpl->tpl_vars['qrcode_value_vorname']->value;?>
|
|
">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30%">
|
|
</td>
|
|
<td>
|
|
</td>
|
|
<tr>
|
|
<tr>
|
|
<td width="30%">
|
|
Nachname:
|
|
</td>
|
|
<td>
|
|
<input type="text" name="nachname" id="nachname" value="<?php echo $_smarty_tpl->tpl_vars['qrcode_value_nachname']->value;?>
|
|
">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30%">
|
|
</td>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
QR-Code:
|
|
</td>
|
|
<td valign="top">
|
|
<input type="text" name="qrcode" id="qrcode" value="<?php echo $_smarty_tpl->tpl_vars['qrcode_value_qrcode']->value;?>
|
|
" size="60">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30%">
|
|
</td>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
Mail:
|
|
</td>
|
|
<td valign="top">
|
|
<input type="text" name="mail" id="mail" value="<?php echo $_smarty_tpl->tpl_vars['qrcode_value_mail']->value;?>
|
|
" size="60">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
</td>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
<br />
|
|
<p align='center'>
|
|
<input type='submit' name='senden' value="Link speichern">
|
|
</p>
|
|
<br />
|
|
</fieldset>
|
|
</form>
|
|
<br />
|
|
<br />
|
|
<fieldset>
|
|
<legend>
|
|
<b>Erfasste Links</b>
|
|
</legend>
|
|
<table cellspacing="0" cellpadding="2" width="100%" border="1">
|
|
<tr>
|
|
<td>
|
|
<b>lfd.Nr.</b>
|
|
</td>
|
|
<td>
|
|
<b>Nachname</b>
|
|
</td>
|
|
<td>
|
|
<b>Vorname</b>
|
|
</td>
|
|
<td>
|
|
<b>QR-Code</b>
|
|
</td>
|
|
<td>
|
|
<b>Mail</b>
|
|
</td>
|
|
<td align="center">
|
|
<b>Edit</b>
|
|
</td>
|
|
<tr>
|
|
<?php
|
|
$__section_table_data1_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data1']->value) ? count($_loop) : max(0, (int) $_loop));
|
|
$__section_table_data1_0_total = $__section_table_data1_0_loop;
|
|
$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = new Smarty_Variable(array());
|
|
if ($__section_table_data1_0_total !== 0) {
|
|
for ($__section_table_data1_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] = 0; $__section_table_data1_0_iteration <= $__section_table_data1_0_total; $__section_table_data1_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']++){
|
|
$_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] = $__section_table_data1_0_iteration;
|
|
?>
|
|
<?php if ((isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] : null) != '') {?>
|
|
<tr>
|
|
<td>
|
|
<?php echo (isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] : null);?>
|
|
|
|
</td>
|
|
<td>
|
|
<?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['nachname'];?>
|
|
|
|
</td>
|
|
<td>
|
|
<?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['vorname'];?>
|
|
|
|
</td>
|
|
<td>
|
|
<?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['qr'];?>
|
|
|
|
</td>
|
|
<td>
|
|
<?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['mail'];?>
|
|
|
|
</td>
|
|
<td align="center">
|
|
<a href=?edit=<?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['id'];?>
|
|
><img title = "QR-Code bearbeiten" border="0" height=10 src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
|
|
/images/edit.png"></a>
|
|
|
|
<a href="?action=del&id=<?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['id'];?>
|
|
"><img title = 'QR-Code löschen' border="0" height=10 src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
|
|
/images/drop.png"></a>
|
|
</td>
|
|
</tr>
|
|
<?php }?>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</table>
|
|
</fieldset>
|
|
|
|
<br />
|
|
<br />
|
|
<br />
|
|
<br />
|
|
</body>
|
|
</html>
|
|
<?php }
|
|
}
|
|
}
|