jb-data.de/compile/e9f003a15caf67960c458cacc81548722fe8aa31_0.file.kal_urlaub.tpl.php
2025-08-11 22:23:30 +02:00

638 lines
32 KiB
PHP

<?php
/* Smarty version 4.3.0, created on 2024-04-14 10:17:02
from '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/ajax/kal_urlaub.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '4.3.0',
'unifunc' => 'content_661b90fee21f96_54311855',
'has_nocache_code' => false,
'file_dependency' =>
array (
'e9f003a15caf67960c458cacc81548722fe8aa31' =>
array (
0 => '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/ajax/kal_urlaub.tpl',
1 => 1710803674,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_661b90fee21f96_54311855 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/var/www/vhosts/jb-data.de/httpdocs/lib/plugins/modifier.date_format.php','function'=>'smarty_modifier_date_format',),));
?>
<!-- MA auswahl -->
<section class="col-md-12">
<div class="row sortable">
<!-- Januar -->
<div class="col-md-1">
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 1) {?> <div class="panel panel-warning"> <?php } else { ?> <div class="panel panel-primary"> <?php }?>
<div class="panel-heading" padding-left: 0>Jan.</div>
<div class="panel-body" style="height:700px;overflow-y: noscroll">
<table class="no style">
<tbody>
<form action="" method="post">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['kdata']->value[1], 'test');
$_smarty_tpl->tpl_vars['test']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['test']->value) {
$_smarty_tpl->tpl_vars['test']->do_else = false;
?>
<tr>
<!-- ------------------ -->
<td <?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?>bgcolor="#AEAEAE" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?>bgcolor="#F8BE7D" <?php }?>
style="line-height:6px;font-size:10pt">
<label>
<input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" id="info_<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" onChange="save_date(<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
,<?php echo $_smarty_tpl->tpl_vars['maid']->value;?>
)"
<?php if ($_smarty_tpl->tpl_vars['test']->value['ok'] != 0) {?>checked="checked" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?> disabled <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?> disabled <?php }?> >
<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['test']->value['time'],"%d");?>
</label>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
<!-- Dienstag -->
<div class="col-md-1">
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 2) {?> <div class="panel panel-warning"> <?php } else { ?> <div class="panel panel-primary"> <?php }?>
<div class="panel-heading">Feb.</div>
<div class="panel-body" style="height:700px;overflow-y: noscroll;">
<table class="no style">
<tbody>
<form action="" method="post">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['kdata']->value[2], 'test');
$_smarty_tpl->tpl_vars['test']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['test']->value) {
$_smarty_tpl->tpl_vars['test']->do_else = false;
?>
<tr>
<!-- ------------------ -->
<td <?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?>bgcolor="#AEAEAE" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?>bgcolor="#F8BE7D" <?php }?>
style="line-height:6px;font-size:10pt">
<label>
<!-- <div id="MyDiv"><nobr> -->
<input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" id="info_<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" onChange="save_date(<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
,<?php echo $_smarty_tpl->tpl_vars['maid']->value;?>
)"
<?php if ($_smarty_tpl->tpl_vars['test']->value['ok'] != 0) {?>checked="checked" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?> disabled <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?> disabled <?php }?> >
<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['test']->value['time'],"%d");?>
</label>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
<!-- März -->
<div class="col-md-1">
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 3) {?> <div class="panel panel-warning"> <?php } else { ?> <div class="panel panel-primary"> <?php }?>
<div class="panel-heading">März</div>
<div class="panel-body" style="height:700px;overflow-y: noscroll;">
<table class="no style">
<tbody>
<form action="" method="post">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['kdata']->value[3], 'test');
$_smarty_tpl->tpl_vars['test']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['test']->value) {
$_smarty_tpl->tpl_vars['test']->do_else = false;
?>
<tr>
<!-- ------------------ -->
<td <?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?>bgcolor="#AEAEAE" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?>bgcolor="#F8BE7D" <?php }?>
style="line-height:6px;font-size:10pt">
<label>
<input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" id="info_<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" onChange="save_date(<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
,<?php echo $_smarty_tpl->tpl_vars['maid']->value;?>
)"
<?php if ($_smarty_tpl->tpl_vars['test']->value['ok'] != 0) {?>checked="checked" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?> disabled <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?> disabled <?php }?> >
<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['test']->value['time'],"%d");?>
</label>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
<!-- März -->
<div class="col-md-1">
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 3) {?> <div class="panel panel-warning"> <?php } else { ?> <div class="panel panel-primary"> <?php }?>
<div class="panel-heading">April</div>
<div class="panel-body" style="height:700px;overflow-y: noscroll;">
<table class="no style">
<tbody>
<form action="" method="post">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['kdata']->value[4], 'test');
$_smarty_tpl->tpl_vars['test']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['test']->value) {
$_smarty_tpl->tpl_vars['test']->do_else = false;
?>
<tr>
<!-- ------------------ -->
<td <?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?>bgcolor="#AEAEAE" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?>bgcolor="#F8BE7D" <?php }?>
style="line-height:6px;font-size:10pt">
<label>
<input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" id="info_<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" onChange="save_date(<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
,<?php echo $_smarty_tpl->tpl_vars['maid']->value;?>
)"
<?php if ($_smarty_tpl->tpl_vars['test']->value['ok'] != 0) {?>checked="checked" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?> disabled <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?> disabled <?php }?> >
<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['test']->value['time'],"%d");?>
</label>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
<!-- Mai -->
<div class="col-md-1">
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 3) {?> <div class="panel panel-warning"> <?php } else { ?> <div class="panel panel-primary"> <?php }?>
<div class="panel-heading">Mai</div>
<div class="panel-body" style="height:700px;overflow-y: noscroll;">
<table class="no style">
<tbody>
<form action="" method="post">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['kdata']->value[5], 'test');
$_smarty_tpl->tpl_vars['test']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['test']->value) {
$_smarty_tpl->tpl_vars['test']->do_else = false;
?>
<tr>
<!-- ------------------ -->
<td <?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?>bgcolor="#AEAEAE" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?>bgcolor="#F8BE7D" <?php }?>
style="line-height:6px;font-size:10pt">
<label>
<input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" id="info_<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" onChange="save_date(<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
,<?php echo $_smarty_tpl->tpl_vars['maid']->value;?>
)"
<?php if ($_smarty_tpl->tpl_vars['test']->value['ok'] != 0) {?>checked="checked" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?> disabled <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?> disabled <?php }?> >
<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['test']->value['time'],"%d");?>
</label>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
<!-- März -->
<div class="col-md-1">
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 3) {?> <div class="panel panel-warning"> <?php } else { ?> <div class="panel panel-primary"> <?php }?>
<div class="panel-heading">Juni</div>
<div class="panel-body" style="height:700px;overflow-y: noscroll;">
<table class="no style">
<tbody>
<form action="" method="post">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['kdata']->value[6], 'test');
$_smarty_tpl->tpl_vars['test']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['test']->value) {
$_smarty_tpl->tpl_vars['test']->do_else = false;
?>
<tr>
<!-- ------------------ -->
<td <?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?>bgcolor="#AEAEAE" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?>bgcolor="#F8BE7D" <?php }?>
style="line-height:6px;font-size:10pt">
<label>
<input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" id="info_<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" onChange="save_date(<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
,<?php echo $_smarty_tpl->tpl_vars['maid']->value;?>
)"
<?php if ($_smarty_tpl->tpl_vars['test']->value['ok'] != 0) {?>checked="checked" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?> disabled <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?> disabled <?php }?> >
<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['test']->value['time'],"%d");?>
</label>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
<!-- Juli -->
<div class="col-md-1">
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 3) {?> <div class="panel panel-warning"> <?php } else { ?> <div class="panel panel-primary"> <?php }?>
<div class="panel-heading">Juli</div>
<div class="panel-body" style="height:700px;overflow-y: noscroll;">
<table class="no style">
<tbody>
<form action="" method="post">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['kdata']->value[7], 'test');
$_smarty_tpl->tpl_vars['test']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['test']->value) {
$_smarty_tpl->tpl_vars['test']->do_else = false;
?>
<tr>
<!-- ------------------ -->
<td <?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?>bgcolor="#AEAEAE" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?>bgcolor="#F8BE7D" <?php }?>
style="line-height:6px;font-size:10pt">
<label>
<input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" id="info_<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" onChange="save_date(<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
,<?php echo $_smarty_tpl->tpl_vars['maid']->value;?>
)"
<?php if ($_smarty_tpl->tpl_vars['test']->value['ok'] != 0) {?>checked="checked" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?> disabled <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?> disabled <?php }?> >
<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['test']->value['time'],"%d");?>
</label>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
<!-- 8 -->
<div class="col-md-1">
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 3) {?> <div class="panel panel-warning"> <?php } else { ?> <div class="panel panel-primary"> <?php }?>
<div class="panel-heading">Aug.</div>
<div class="panel-body" style="height:700px;overflow-y: noscroll;">
<table class="no style">
<tbody>
<form action="" method="post">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['kdata']->value[8], 'test');
$_smarty_tpl->tpl_vars['test']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['test']->value) {
$_smarty_tpl->tpl_vars['test']->do_else = false;
?>
<tr>
<!-- ------------------ -->
<td <?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?>bgcolor="#AEAEAE" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?>bgcolor="#F8BE7D" <?php }?>
style="line-height:6px;font-size:10pt">
<label>
<input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" id="info_<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" onChange="save_date(<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
,<?php echo $_smarty_tpl->tpl_vars['maid']->value;?>
)"
<?php if ($_smarty_tpl->tpl_vars['test']->value['ok'] != 0) {?>checked="checked" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?> disabled <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?> disabled <?php }?> >
<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['test']->value['time'],"%d");?>
</label>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
<!-- 9 -->
<div class="col-md-1">
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 3) {?> <div class="panel panel-warning"> <?php } else { ?> <div class="panel panel-primary"> <?php }?>
<div class="panel-heading">Sep.</div>
<div class="panel-body" style="height:700px;overflow-y: noscroll;">
<table class="no style">
<tbody>
<form action="" method="post">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['kdata']->value[9], 'test');
$_smarty_tpl->tpl_vars['test']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['test']->value) {
$_smarty_tpl->tpl_vars['test']->do_else = false;
?>
<tr>
<!-- ------------------ -->
<td <?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?>bgcolor="#AEAEAE" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?>bgcolor="#F8BE7D" <?php }?>
style="line-height:6px;font-size:10pt">
<label>
<input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" id="info_<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" onChange="save_date(<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
,<?php echo $_smarty_tpl->tpl_vars['maid']->value;?>
)"
<?php if ($_smarty_tpl->tpl_vars['test']->value['ok'] != 0) {?>checked="checked" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?> disabled <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?> disabled <?php }?> >
<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['test']->value['time'],"%d");?>
</label>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
<!-- 10 -->
<div class="col-md-1">
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 3) {?> <div class="panel panel-warning"> <?php } else { ?> <div class="panel panel-primary"> <?php }?>
<div class="panel-heading">Okt.</div>
<div class="panel-body" style="height:700px;overflow-y: noscroll;">
<table class="no style">
<tbody>
<form action="" method="post">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['kdata']->value[10], 'test');
$_smarty_tpl->tpl_vars['test']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['test']->value) {
$_smarty_tpl->tpl_vars['test']->do_else = false;
?>
<tr>
<!-- ------------------ -->
<td <?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?>bgcolor="#AEAEAE" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?>bgcolor="#F8BE7D" <?php }?>
style="line-height:6px;font-size:10pt">
<label>
<input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" id="info_<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" onChange="save_date(<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
,<?php echo $_smarty_tpl->tpl_vars['maid']->value;?>
)"
<?php if ($_smarty_tpl->tpl_vars['test']->value['ok'] != 0) {?>checked="checked" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?> disabled <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?> disabled <?php }?> >
<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['test']->value['time'],"%d");?>
</label>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
<!-- 11 -->
<div class="col-md-1">
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 3) {?> <div class="panel panel-warning"> <?php } else { ?> <div class="panel panel-primary"> <?php }?>
<div class="panel-heading">Nov.</div>
<div class="panel-body" style="height:700px;overflow-y: noscroll;">
<table class="no style">
<tbody>
<form action="" method="post">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['kdata']->value[11], 'test');
$_smarty_tpl->tpl_vars['test']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['test']->value) {
$_smarty_tpl->tpl_vars['test']->do_else = false;
?>
<tr>
<!-- ------------------ -->
<td <?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?>bgcolor="#AEAEAE" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?>bgcolor="#F8BE7D" <?php }?>
style="line-height:6px;font-size:10pt">
<label>
<input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" id="info_<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" onChange="save_date(<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
,<?php echo $_smarty_tpl->tpl_vars['maid']->value;?>
)"
<?php if ($_smarty_tpl->tpl_vars['test']->value['ok'] != 0) {?>checked="checked" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?> disabled <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?> disabled <?php }?> >
<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['test']->value['time'],"%d");?>
</label>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
<!-- Dezember -->
<div class="col-md-1">
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 3) {?> <div class="panel panel-warning"> <?php } else { ?> <div class="panel panel-primary"> <?php }?>
<div class="panel-heading">Dez.</div>
<div class="panel-body" style="height:700px;overflow-y: noscroll;">
<table class="no style">
<tbody>
<form action="" method="post">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['kdata']->value[12], 'test');
$_smarty_tpl->tpl_vars['test']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['test']->value) {
$_smarty_tpl->tpl_vars['test']->do_else = false;
?>
<tr>
<!-- ------------------ -->
<td <?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?>bgcolor="#AEAEAE" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?>bgcolor="#F8BE7D" <?php }?>
style="line-height:6px;font-size:10pt">
<label>
<input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" id="info_<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
" onChange="save_date(<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
,<?php echo $_smarty_tpl->tpl_vars['maid']->value;?>
)"
<?php if ($_smarty_tpl->tpl_vars['test']->value['ok'] != 0) {?>checked="checked" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 1) {?> disabled <?php }?>
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?> disabled <?php }?> >
<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['test']->value['time'],"%d");?>
</label>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
<!-- Main Section End -->
<!-- Sidebar -->
<!----------------------------------------------
<?php echo '<script'; ?>
> var jahr = '<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
';<?php echo '</script'; ?>
>
<?php echo '<script'; ?>
> var mitarbeiter = '<?php echo $_smarty_tpl->tpl_vars['maID']->value;?>
';<?php echo '</script'; ?>
>
<?php echo '<script'; ?>
>
function save_date(time,maID) {
var remember = document.getElementById('info_'+time);
if (remember.checked){
var istC = 1;
}else{
var istC = 0;
}
$.ajax({
type: 'POST',
url: "ajax.php?s=kal_save&a=date_save",
dataType: 'json',
data: 'time=' + time + "&maID="+mitarbeiter+"&istC="+istC,
success: function (data) {
if(data.success == true) {
$.notify({
icon: 'glyphicon glyphicon-warning-ok',
message: data.lastnote
},{
type: 'info',
showProgressbar: true,
delay: 200,
newest_on_top: true,
element: 'body',
placement: {
from: "bottom",
align: "right"
},
animate: {
enter: 'animated fadeInDown',
exit: 'animated fadeOutUp'
}
});
}
console.log(data)
}
});load_free_urlaub(mitarbeiter,jahr)
}
load_free_urlaub(mitarbeiter,jahr);
function load_free_urlaub(maID,jahr) {
$.ajax({
type: 'POST',
url: "ajax.php?s=kal_rest_u&tpl",
dataType: 'html',
data: "maID=" + maID + "&jahr="+jahr,
success: function (data) {
$("#urlaub").html(data);
console.log(data)
}
});
}
<?php echo '</script'; ?>
>
-->
<?php }
}