init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
|
|
@ -0,0 +1,696 @@
|
|||
<?php
|
||||
/* Smarty version 4.3.0, created on 2024-12-03 09:56:47
|
||||
from '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/kalender.tpl' */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '4.3.0',
|
||||
'unifunc' => 'content_674ec7cf5b54d1_24111305',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'8b291d5339ed55aa9408a9462ce34e509356738e' =>
|
||||
array (
|
||||
0 => '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/kalender.tpl',
|
||||
1 => 1733216087,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_674ec7cf5b54d1_24111305 (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',),));
|
||||
?>
|
||||
<section class="col-md-9" style="background-color: #333333">
|
||||
<div class="row sortable">
|
||||
<div class="col-sm-6" style="margin-top: -18px;font-size:14pt;color:#fff">
|
||||
<!-- Montag -->
|
||||
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 1) {?>
|
||||
<p style='background-color:orange'> Montag, <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['day1']->value,"%d.%m.%y");?>
|
||||
<p>
|
||||
<?php } else { ?>
|
||||
<p style='background-color:gray'> Montag, <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['day1']->value,"%d.%m.%y");?>
|
||||
<p>
|
||||
<?php }?>
|
||||
<div class="kal_f">
|
||||
<table class="no style">
|
||||
<tbody>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['k1']->value, 'kal');
|
||||
$_smarty_tpl->tpl_vars['kal']->do_else = true;
|
||||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['kal']->value) {
|
||||
$_smarty_tpl->tpl_vars['kal']->do_else = false;
|
||||
?>
|
||||
<tr style="font-size:12pt" onclick="window.location='?s=kalender&pid=<?php echo $_smarty_tpl->tpl_vars['kal']->value['pid'];?>
|
||||
&edit=1&car=<?php echo $_smarty_tpl->tpl_vars['kal']->value['car'];?>
|
||||
';">
|
||||
<?php if ($_smarty_tpl->tpl_vars['kal']->value['name'] != 0) {?>
|
||||
<td nowrap style="width: 30px;color: red" align="center"><i class='<?php echo $_smarty_tpl->tpl_vars['kal']->value['icon'];?>
|
||||
' ></i></td>
|
||||
<?php } else { ?>
|
||||
<td nowrap style="width: 30px;color: darkorange" align="left"><i class='<?php echo $_smarty_tpl->tpl_vars['kal']->value['icon'];?>
|
||||
'></i></td>
|
||||
<?php }?>
|
||||
<td nowrap style="width:170px" align="left"><?php echo $_smarty_tpl->tpl_vars['kal']->value['name'];?>
|
||||
</td>
|
||||
<td nowrap style="width:125px" align="left"><?php echo $_smarty_tpl->tpl_vars['kal']->value['bez'];?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- Mittwoch -->
|
||||
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 3) {?>
|
||||
<p style='background-color:orange'> Mittwoch, <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['day3']->value,"%d.%m.%y");?>
|
||||
<p>
|
||||
<?php } else { ?>
|
||||
<p style='background-color:gray'> Mittwoch, <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['day3']->value,"%d.%m.%y");?>
|
||||
<p>
|
||||
<?php }?>
|
||||
<div class="kal_f">
|
||||
<table class="no style">
|
||||
<tbody>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['k3']->value, 'kal');
|
||||
$_smarty_tpl->tpl_vars['kal']->do_else = true;
|
||||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['kal']->value) {
|
||||
$_smarty_tpl->tpl_vars['kal']->do_else = false;
|
||||
?>
|
||||
<tr style="font-size:12pt" onclick="window.location='?s=kalender&pid=<?php echo $_smarty_tpl->tpl_vars['kal']->value['pid'];?>
|
||||
&edit=1&car=<?php echo $_smarty_tpl->tpl_vars['kal']->value['car'];?>
|
||||
';">
|
||||
<?php if ($_smarty_tpl->tpl_vars['kal']->value['name'] != 0) {?>
|
||||
<td nowrap style="width: 30px;color: red" align="center"><i class='<?php echo $_smarty_tpl->tpl_vars['kal']->value['icon'];?>
|
||||
' ></i></td>
|
||||
<?php } else { ?>
|
||||
<td nowrap style="width: 30px;color: darkorange" align="left"><i class='<?php echo $_smarty_tpl->tpl_vars['kal']->value['icon'];?>
|
||||
'></i></td>
|
||||
<?php }?>
|
||||
<td nowrap style="width:170px" align="left"><?php echo $_smarty_tpl->tpl_vars['kal']->value['name'];?>
|
||||
</td>
|
||||
<td nowrap style="width:125px" align="left"><?php echo $_smarty_tpl->tpl_vars['kal']->value['bez'];?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- Freitag -->
|
||||
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 5) {?>
|
||||
<p style='background-color:orange'> Freitag, <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['day5']->value,"%d.%m.%y");?>
|
||||
<p>
|
||||
<?php } else { ?>
|
||||
<p style='background-color:gray'> Freitag, <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['day5']->value,"%d.%m.%y");?>
|
||||
<p>
|
||||
<?php }?>
|
||||
<div class="kal_f">
|
||||
<table class="no style">
|
||||
<tbody>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['k5']->value, 'kal');
|
||||
$_smarty_tpl->tpl_vars['kal']->do_else = true;
|
||||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['kal']->value) {
|
||||
$_smarty_tpl->tpl_vars['kal']->do_else = false;
|
||||
?>
|
||||
<tr style="font-size:12pt" onclick="window.location='?s=kalender&pid=<?php echo $_smarty_tpl->tpl_vars['kal']->value['pid'];?>
|
||||
&edit=1&car=<?php echo $_smarty_tpl->tpl_vars['kal']->value['car'];?>
|
||||
';">
|
||||
<?php if ($_smarty_tpl->tpl_vars['kal']->value['name'] != 0) {?>
|
||||
<td nowrap style="width: 30px;color: red" align="center"><i class='<?php echo $_smarty_tpl->tpl_vars['kal']->value['icon'];?>
|
||||
' ></i></td>
|
||||
<?php } else { ?>
|
||||
<td nowrap style="width: 30px;color: darkorange" align="left"><i class='<?php echo $_smarty_tpl->tpl_vars['kal']->value['icon'];?>
|
||||
'></i></td>
|
||||
<?php }?>
|
||||
<td nowrap style="width:170px" align="left"><?php echo $_smarty_tpl->tpl_vars['kal']->value['name'];?>
|
||||
</td>
|
||||
<td nowrap style="width:125px" align="left"><?php echo $_smarty_tpl->tpl_vars['kal']->value['bez'];?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- Sonntag -->
|
||||
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 7) {?>
|
||||
<p style='background-color:orange'> Sonntag, <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['day7']->value,"%d.%m.%y");?>
|
||||
<p>
|
||||
<?php } else { ?>
|
||||
<p style='background-color:gray'> Sonntag, <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['day7']->value,"%d.%m.%y");?>
|
||||
<p>
|
||||
<?php }?>
|
||||
<div class="kal_f">
|
||||
<table class="no style">
|
||||
<tbody>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['k7']->value, 'kal');
|
||||
$_smarty_tpl->tpl_vars['kal']->do_else = true;
|
||||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['kal']->value) {
|
||||
$_smarty_tpl->tpl_vars['kal']->do_else = false;
|
||||
?>
|
||||
<tr style="font-size:12pt" onclick="window.location='?s=kalender&pid=<?php echo $_smarty_tpl->tpl_vars['kal']->value['pid'];?>
|
||||
&edit=1&car=<?php echo $_smarty_tpl->tpl_vars['kal']->value['car'];?>
|
||||
';">
|
||||
<?php if ($_smarty_tpl->tpl_vars['kal']->value['name'] != 0) {?>
|
||||
<td nowrap style="width: 30px;color: red" align="center"><i class='<?php echo $_smarty_tpl->tpl_vars['kal']->value['icon'];?>
|
||||
' ></i></td>
|
||||
<?php } else { ?>
|
||||
<td nowrap style="width: 30px;color: darkorange" align="left"><i class='<?php echo $_smarty_tpl->tpl_vars['kal']->value['icon'];?>
|
||||
'></i></td>
|
||||
<?php }?>
|
||||
<td nowrap style="width:170px" align="left"><?php echo $_smarty_tpl->tpl_vars['kal']->value['name'];?>
|
||||
</td>
|
||||
<td nowrap style="width:125px" align="left"><?php echo $_smarty_tpl->tpl_vars['kal']->value['bez'];?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- Spaltenwechsel -->
|
||||
</div>
|
||||
<div class="col-sm-6" style="margin-top: -18px;font-size:14pt;color:#fff">
|
||||
<!-- Dienstag -->
|
||||
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 2) {?>
|
||||
<p style='background-color:orange'> Dienstag, <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['day2']->value,"%d.%m.%y");?>
|
||||
<p>
|
||||
<?php } else { ?>
|
||||
<p style='background-color:gray'> Dienstag, <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['day2']->value,"%d.%m.%y");?>
|
||||
<p>
|
||||
<?php }?>
|
||||
<div class="kal_f">
|
||||
<table class="no style">
|
||||
<tbody>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['k2']->value, 'kal');
|
||||
$_smarty_tpl->tpl_vars['kal']->do_else = true;
|
||||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['kal']->value) {
|
||||
$_smarty_tpl->tpl_vars['kal']->do_else = false;
|
||||
?>
|
||||
<tr style="font-size:12pt" onclick="window.location='?s=kalender&pid=<?php echo $_smarty_tpl->tpl_vars['kal']->value['pid'];?>
|
||||
&edit=1&car=<?php echo $_smarty_tpl->tpl_vars['kal']->value['car'];?>
|
||||
';">
|
||||
<?php if ($_smarty_tpl->tpl_vars['kal']->value['name'] != 0) {?>
|
||||
<td nowrap style="width: 30px;color: red" align="center"><i class='<?php echo $_smarty_tpl->tpl_vars['kal']->value['icon'];?>
|
||||
' ></i></td>
|
||||
<?php } else { ?>
|
||||
<td nowrap style="width: 30px;color: darkorange" align="left"><i class='<?php echo $_smarty_tpl->tpl_vars['kal']->value['icon'];?>
|
||||
'></i></td>
|
||||
<?php }?>
|
||||
<td nowrap style="width:170px" align="left"><?php echo $_smarty_tpl->tpl_vars['kal']->value['name'];?>
|
||||
</td>
|
||||
<td nowrap style="width:125px" align="left"><?php echo $_smarty_tpl->tpl_vars['kal']->value['bez'];?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- Donnerstag -->
|
||||
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 4) {?>
|
||||
<p style='background-color:orange'> Donnerstag, <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['day4']->value,"%d.%m.%y");?>
|
||||
<p>
|
||||
<?php } else { ?>
|
||||
<p style='background-color:gray'> Donnerstag, <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['day4']->value,"%d.%m.%y");?>
|
||||
<p>
|
||||
<?php }?>
|
||||
<div class="kal_f">
|
||||
<table class="no style">
|
||||
<tbody>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['k4']->value, 'kal');
|
||||
$_smarty_tpl->tpl_vars['kal']->do_else = true;
|
||||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['kal']->value) {
|
||||
$_smarty_tpl->tpl_vars['kal']->do_else = false;
|
||||
?>
|
||||
<tr style="font-size:12pt" onclick="window.location='?s=kalender&pid=<?php echo $_smarty_tpl->tpl_vars['kal']->value['pid'];?>
|
||||
&edit=1&car=<?php echo $_smarty_tpl->tpl_vars['kal']->value['car'];?>
|
||||
';">
|
||||
<?php if ($_smarty_tpl->tpl_vars['kal']->value['name'] != 0) {?>
|
||||
<td nowrap style="width: 30px;color: red" align="center"><i class='<?php echo $_smarty_tpl->tpl_vars['kal']->value['icon'];?>
|
||||
' ></i></td>
|
||||
<?php } else { ?>
|
||||
<td nowrap style="width: 30px;color: darkorange" align="left"><i class='<?php echo $_smarty_tpl->tpl_vars['kal']->value['icon'];?>
|
||||
'></i></td>
|
||||
<?php }?>
|
||||
<td nowrap style="width:170px" align="left"><?php echo $_smarty_tpl->tpl_vars['kal']->value['name'];?>
|
||||
</td>
|
||||
<td nowrap style="width:125px" align="left"><?php echo $_smarty_tpl->tpl_vars['kal']->value['bez'];?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- Samstag -->
|
||||
<?php if ($_smarty_tpl->tpl_vars['heute']->value == 6) {?>
|
||||
<p style='background-color:orange'> Samstag, <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['day6']->value,"%d.%m.%y");?>
|
||||
<p>
|
||||
<?php } else { ?>
|
||||
<p style='background-color:gray'> Samstag, <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['day6']->value,"%d.%m.%y");?>
|
||||
<p>
|
||||
<?php }?>
|
||||
<div class="kal_f">
|
||||
<table class="no style">
|
||||
<tbody>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['k6']->value, 'kal');
|
||||
$_smarty_tpl->tpl_vars['kal']->do_else = true;
|
||||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['kal']->value) {
|
||||
$_smarty_tpl->tpl_vars['kal']->do_else = false;
|
||||
?>
|
||||
<tr style="font-size:12pt" onclick="window.location='?s=kalender&pid=<?php echo $_smarty_tpl->tpl_vars['kal']->value['pid'];?>
|
||||
&edit=1&car=<?php echo $_smarty_tpl->tpl_vars['kal']->value['car'];?>
|
||||
';">
|
||||
<?php if ($_smarty_tpl->tpl_vars['kal']->value['name'] != 0) {?>
|
||||
<td nowrap style="width: 30px;color: red" align="center"><i class='<?php echo $_smarty_tpl->tpl_vars['kal']->value['icon'];?>
|
||||
' ></i></td>
|
||||
<?php } else { ?>
|
||||
<td nowrap style="width: 30px;color: darkorange" align="left"><i class='<?php echo $_smarty_tpl->tpl_vars['kal']->value['icon'];?>
|
||||
'></i></td>
|
||||
<?php }?>
|
||||
<td nowrap style="width:170px" align="left"><?php echo $_smarty_tpl->tpl_vars['kal']->value['name'];?>
|
||||
</td>
|
||||
<td nowrap style="width:125px" align="left"><?php echo $_smarty_tpl->tpl_vars['kal']->value['bez'];?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- Geburtstage -->
|
||||
<p style='background-color:gray'> Geburtstage<p>
|
||||
|
||||
<div class="kal_f">
|
||||
<table class="no style">
|
||||
<tbody>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['k0']->value, 'k');
|
||||
$_smarty_tpl->tpl_vars['k']->do_else = true;
|
||||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['k']->value) {
|
||||
$_smarty_tpl->tpl_vars['k']->do_else = false;
|
||||
?>
|
||||
<tr>
|
||||
<td nowrap style="width:110px;font-size:13pt"> <b><?php echo $_smarty_tpl->tpl_vars['k']->value['tag'];?>
|
||||
</td>
|
||||
<td nowrap style="width:190px;font-size:13pt"> <b><?php echo $_smarty_tpl->tpl_vars['k']->value['name'];?>
|
||||
</td>
|
||||
<td nowrap style="font-size:13pt"> <b>(<?php echo $_smarty_tpl->tpl_vars['k']->value['alter'];?>
|
||||
.)</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<!-- Main Section End -->
|
||||
|
||||
<!-- Sidebar -->
|
||||
|
||||
<aside class="col-md-3" style="background-color: #333333">
|
||||
<div id="rightmenu" class="panel panel-default">
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-primary btn-sm" href="?s=kalender&wahl=1&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
||||
&kw=<?php echo $_smarty_tpl->tpl_vars['kw']->value;?>
|
||||
" aria-label="Skip to main navigation">
|
||||
<i class="fa fa-arrow-left" aria-hidden="true"></i>
|
||||
</a>
|
||||
<button type="button" class="btn btn-default btn-sm"><?php echo $_smarty_tpl->tpl_vars['kw']->value;?>
|
||||
.KW</button>
|
||||
</a>
|
||||
<a class="btn btn-primary btn-sm" href="?s=kalender&wahl=2&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
||||
&kw=<?php echo $_smarty_tpl->tpl_vars['kw']->value;?>
|
||||
" aria-label="Skip to main navigation">
|
||||
<i class="fa fa-arrow-right" aria-hidden="true"></i>
|
||||
</a>
|
||||
<a class='btn btn-default btn-sm href="#"'>-</a>
|
||||
|
||||
<a class="btn btn-primary btn-sm" href="?s=kalender&wahl=3&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
||||
&kw=<?php echo $_smarty_tpl->tpl_vars['kw']->value;?>
|
||||
" aria-label="Skip to main navigation">
|
||||
<i class="fa fa-arrow-left" aria-hidden="true"></i>
|
||||
</a>
|
||||
<button type="button" class="btn btn-default btn-sm"><?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
||||
</button>
|
||||
</a>
|
||||
<a class="btn btn-primary btn-sm" href="?s=kalender&wahl=4&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
||||
&kw=<?php echo $_smarty_tpl->tpl_vars['kw']->value;?>
|
||||
" aria-label="Skip to main navigation">
|
||||
<i class="fa fa-arrow-right" aria-hidden="true"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['edit']->value == 0) {?>
|
||||
<div id="rightmenu" class="panel panel-default">
|
||||
<header class="panel-heading"><h2 class="panel-title">Anlegen/bearbeiten</h2></header>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="rightmenu" class="panel panel-default">
|
||||
<header class="panel-heading"><h2 class="panel-title">Mitarbeiter bearbeiten</h2></header>
|
||||
<div class="panel-body" style="height:100px;">
|
||||
<table class="no-style full">
|
||||
<tbody>
|
||||
<tr>
|
||||
<form action="" method="post">
|
||||
<tr>
|
||||
<td nowrap style="width:55px;font-size:12pt"> Name: </td>
|
||||
<td>
|
||||
<select style="width:165px" name="mitarbeiter">
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['mitarbeiterlist']->value, 'mlist');
|
||||
$_smarty_tpl->tpl_vars['mlist']->do_else = true;
|
||||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['mlist']->value) {
|
||||
$_smarty_tpl->tpl_vars['mlist']->do_else = false;
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['mlist']->value['id'];?>
|
||||
"><?php echo $_smarty_tpl->tpl_vars['mlist']->value['name'];?>
|
||||
</option>
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Grund :</td>
|
||||
<td><select style="width:165px" name="grund">
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gruende']->value, 'gr');
|
||||
$_smarty_tpl->tpl_vars['gr']->do_else = true;
|
||||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['gr']->value) {
|
||||
$_smarty_tpl->tpl_vars['gr']->do_else = false;
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['gr']->value['id'];?>
|
||||
"><?php echo $_smarty_tpl->tpl_vars['gr']->value['bez'];?>
|
||||
</option>
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<!-- <td><input type="text" name="info" value="" placeholder="hier deine info" /></td> -->
|
||||
<td><input style="width:165px" type="submit" name="datewahl" value="weiter zum Datum" /></td>
|
||||
</form>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div id="rightmenu" class="panel panel-default">
|
||||
<header class="panel-heading"><h2 class="panel-title">Fahrzeug bearbeiten</h2></header>
|
||||
<div class="panel-body" style="height:100px;">
|
||||
<table class="no-style full">
|
||||
<tbody>
|
||||
<tr>
|
||||
<form action="" method="post">
|
||||
<tr>
|
||||
<td nowrap style="width:55px;font-size:12pt"> Name: </td>
|
||||
<td>
|
||||
<select style="width:165px" name="car">
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['carlist']->value, 'clist');
|
||||
$_smarty_tpl->tpl_vars['clist']->do_else = true;
|
||||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['clist']->value) {
|
||||
$_smarty_tpl->tpl_vars['clist']->do_else = false;
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['clist']->value['id'];?>
|
||||
"><?php echo $_smarty_tpl->tpl_vars['clist']->value['kz'];?>
|
||||
</option>
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Grund :</td>
|
||||
<td><select style="width:165px" name="grund">
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['fgruende']->value, 'fgr');
|
||||
$_smarty_tpl->tpl_vars['fgr']->do_else = true;
|
||||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['fgr']->value) {
|
||||
$_smarty_tpl->tpl_vars['fgr']->do_else = false;
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['fgr']->value['id'];?>
|
||||
"><?php echo $_smarty_tpl->tpl_vars['fgr']->value['bez'];?>
|
||||
</option>
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<!-- <td><input type="text" name="info" value="" placeholder="hier deine info" /></td> -->
|
||||
<td><input style="width:165px" type="submit" name="fdatewahl" value="weiter zum Datum" /></input></td>
|
||||
</form>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<?php if ($_smarty_tpl->tpl_vars['madata']->value['g_id'] == 4 && $_smarty_tpl->tpl_vars['car']->value == 0) {?>
|
||||
<div id="rightmenu" class="panel panel-warning">
|
||||
<header class="panel-heading"><h2 class="panel-title"><?php echo $_smarty_tpl->tpl_vars['madata']->value['name'];?>
|
||||
</h2></header>
|
||||
<section class="panel-body">
|
||||
<table class="no-style full" id="urlaub" style="font-size:12pt">
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div id="rightmenu" class="panel panel-default">
|
||||
<header class="panel-heading"><h2 class="panel-title" style="font-size:16pt"><?php echo $_smarty_tpl->tpl_vars['madata']->value['name'];?>
|
||||
</h2></header>
|
||||
<div class="panel-body">
|
||||
<table class="no style">
|
||||
<tbody>
|
||||
<tr><td nowrap style="font-size:16pt"><mark><?php echo $_smarty_tpl->tpl_vars['madata']->value['grund'];?>
|
||||
</mark></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
<div id="rightmenu" class="panel panel-default">
|
||||
<!-- <header class="panel-heading"><h2 class="panel-title" style="font-size:16pt"><?php echo $_smarty_tpl->tpl_vars['madata']->value['name'];?>
|
||||
</h2></header> -->
|
||||
<div class="panel-body" style="height:675px;overflow-y: scroll;">
|
||||
<table class="no style">
|
||||
<tbody>
|
||||
<form action="" method="post">
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['testx']->value, '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="#F0F0F0" <?php }?>
|
||||
<?php if ($_smarty_tpl->tpl_vars['test']->value['ft'] == 2) {?>bgcolor="#F8BE7D" <?php }?>
|
||||
style="line-height:10px;font-size:12pt">
|
||||
<?php if ($_smarty_tpl->tpl_vars['car']->value > 0) {?>
|
||||
<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_car(<?php echo $_smarty_tpl->tpl_vars['test']->value['time'];?>
|
||||
,<?php echo $_smarty_tpl->tpl_vars['madata']->value['mid'];?>
|
||||
,<?php echo $_smarty_tpl->tpl_vars['madata']->value['g_id'];?>
|
||||
)"
|
||||
<?php if ($_smarty_tpl->tpl_vars['test']->value['ok'] > 0) {?>checked="checked" <?php }?> <?php if ($_smarty_tpl->tpl_vars['madata']->value['g_id'] == 4 && $_smarty_tpl->tpl_vars['test']->value['ft'] != 9 && $_smarty_tpl->tpl_vars['car']->value == 0) {?> disabled<?php }?>>
|
||||
<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['test']->value['time']," %d.%m.%Y");?>
|
||||
|
||||
</label>
|
||||
<?php } else { ?>
|
||||
<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['madata']->value['mid'];?>
|
||||
,<?php echo $_smarty_tpl->tpl_vars['madata']->value['g_id'];?>
|
||||
)"
|
||||
<?php if ($_smarty_tpl->tpl_vars['test']->value['ok'] > 0) {?>checked="checked" <?php }?> <?php if ($_smarty_tpl->tpl_vars['madata']->value['g_id'] == 4 && $_smarty_tpl->tpl_vars['test']->value['ft'] != 9 && $_smarty_tpl->tpl_vars['car']->value == 0) {?> disabled<?php }?>>
|
||||
<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['test']->value['time']," %d.%m.%Y");?>
|
||||
|
||||
</label>
|
||||
<?php }?>
|
||||
</td>
|
||||
<?php if (smarty_modifier_date_format($_smarty_tpl->tpl_vars['test']->value['time'],"%w") == 0) {?><tr><td><hr></td></tr><?php }?>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
</aside>
|
||||
|
||||
<!-- Sidebar End -->
|
||||
|
||||
|
||||
|
||||
<!------------------------------------------------>
|
||||
<?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['madata']->value['mid'];?>
|
||||
';<?php echo '</script'; ?>
|
||||
>
|
||||
|
||||
<style>
|
||||
ul.nav-tabs > li {
|
||||
width: 33%;
|
||||
text-align: center;
|
||||
}
|
||||
.kal_f {
|
||||
background: #115270;
|
||||
color: #aaaaaa;
|
||||
padding: 5px;
|
||||
border: 1px solid;
|
||||
border-radius:6px;
|
||||
margin-top: -16px;
|
||||
margin-bottom: 18px;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
<?php echo '<script'; ?>
|
||||
>
|
||||
function save_info(tourID) {
|
||||
// alert($("#info_"+tourID).val());
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: "ajax.php?s=kal_save&a=info_save",
|
||||
dataType: 'json',
|
||||
data: 'tourID=' + tourID + "&info=" + $("#info_"+tourID).val(),
|
||||
success: function (data) {
|
||||
$.notify({
|
||||
icon: 'glyphicon glyphicon-warning-ok',
|
||||
message: data.lastnote
|
||||
},{
|
||||
type: 'info',
|
||||
showProgressbar: true,
|
||||
delay: 300,
|
||||
newest_on_top: false,
|
||||
element: 'body',
|
||||
placement: {
|
||||
from: "bottom",
|
||||
align: "right"
|
||||
},
|
||||
animate: {
|
||||
enter: 'animated fadeInDown',
|
||||
exit: 'animated fadeOutUp'
|
||||
}
|
||||
});
|
||||
|
||||
console.log(data)
|
||||
}
|
||||
});
|
||||
}
|
||||
function save_car(time,maID,gID) {
|
||||
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_car",
|
||||
dataType: 'json',
|
||||
data: 'time=' + time + "&maID="+maID+"&istC="+istC+"&gID="+gID,
|
||||
success: function (data) {
|
||||
console.log(data)
|
||||
}
|
||||
});
|
||||
}
|
||||
function save_date(time,maID,gID) {
|
||||
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_old",
|
||||
dataType: 'json',
|
||||
data: 'time=' + time + "&maID="+maID+"&istC="+istC+"&gID="+gID,
|
||||
success: function (data) {
|
||||
if(data.success == true) {
|
||||
$.notify({
|
||||
icon: 'glyphicon glyphicon-warning-ok',
|
||||
message: data.lastnote
|
||||
},{
|
||||
type: 'info',
|
||||
showProgressbar: true,
|
||||
delay: 300,
|
||||
newest_on_top: false,
|
||||
element: 'body',
|
||||
placement: {
|
||||
from: "bottom",
|
||||
align: "left"
|
||||
},
|
||||
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_save&a=load_free_urlaub",
|
||||
dataType: 'json',
|
||||
data: "maID=" + maID + "&jahr="+jahr,
|
||||
success: function (data) {
|
||||
$("#urlaub").html(data);
|
||||
console.log(data)
|
||||
}
|
||||
});
|
||||
}
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
|
||||
<?php }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue