465 lines
14 KiB
PHP
465 lines
14 KiB
PHP
<?php
|
|
/* Smarty version 4.3.0, created on 2024-09-03 20:24:46
|
|
from '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/p_night.tpl' */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '4.3.0',
|
|
'unifunc' => 'content_66d7546eaa0811_62955861',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'f7d5e55cf8adf5d12585b395e705f6c79cb245fc' =>
|
|
array (
|
|
0 => '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/p_night.tpl',
|
|
1 => 1725387016,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_66d7546eaa0811_62955861 (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',),));
|
|
?>
|
|
<!-- <link rel="stylesheet" href="template/css/planung.css"> -->
|
|
<!-- <link rel="stylesheet" href="../lib/css/select2.min.css"> -->
|
|
<!-- <?php echo '<script'; ?>
|
|
src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/js/select2.full.min.js"><?php echo '</script'; ?>
|
|
> -->
|
|
|
|
|
|
<!-- ********** -->
|
|
<body style="background-color:#333333">
|
|
<!-- ********** -->
|
|
|
|
<section class="col-md-12" style="background-color:#333333">
|
|
<div class="row sortable" style="background-color:#333333">
|
|
<!-- Main Section -- linke Spalte -->
|
|
<div class="col-md-2">
|
|
<div class="panel panel-tbox">
|
|
<table class="kalender" style="text-align: center; ">
|
|
<td nowrap style="color: orange;width:30px; text-align: center"><a class="fa fa-arrow-left" href="?s=p_night&mw=1&atime=<?php echo $_smarty_tpl->tpl_vars['atime']->value;?>
|
|
"></a></td>
|
|
<td nowrap style="color: orange;width:200px"><?php echo $_smarty_tpl->tpl_vars['ktime']->value;?>
|
|
</td>
|
|
<td nowrap style="color: orange;width:30px; text-align: center"><a class="fa fa-arrow-right" href="?s=p_night&mw=2&atime=<?php echo $_smarty_tpl->tpl_vars['atime']->value;?>
|
|
"></a></td>
|
|
|
|
</table>
|
|
<table class="kalender" style="align:center;text-align:center;font-size:11pt;">
|
|
<thead>
|
|
<tr align="center" style="text-align:center;font-size:8pt">
|
|
<th align="center" style="width:33px">Mo</th>
|
|
<th style="width:33px">Di</th>
|
|
<th style="width:33px">Mi</th>
|
|
<th style="width:33px">Do</th>
|
|
<th style="width:33px">Fr</th>
|
|
<th style="width:33px">Sa</th>
|
|
<th style="width:33px">So</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['kd']->value, 'kx');
|
|
$_smarty_tpl->tpl_vars['kx']->do_else = true;
|
|
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['kx']->value) {
|
|
$_smarty_tpl->tpl_vars['kx']->do_else = false;
|
|
?>
|
|
<?php if ($_smarty_tpl->tpl_vars['kx']->value['int'] == 1) {?> <tr style="align:center;font-size:12pt;"> <?php }?>
|
|
<!--
|
|
<?php if ($_smarty_tpl->tpl_vars['kx']->value['int'] == 6) {?> <td style="color: orange" onclick="window.location='?s=p_night&ts=<?php echo $_smarty_tpl->tpl_vars['kx']->value['ts'];?>
|
|
'"><?php echo $_smarty_tpl->tpl_vars['kx']->value['inx'];?>
|
|
</td>
|
|
<?php } elseif ($_smarty_tpl->tpl_vars['kx']->value['int'] == 7) {?> <td style="color: darkred" onclick="window.location='?s=p_night&ts=<?php echo $_smarty_tpl->tpl_vars['kx']->value['ts'];?>
|
|
'"><?php echo $_smarty_tpl->tpl_vars['kx']->value['inx'];?>
|
|
</td>
|
|
<?php } elseif ($_smarty_tpl->tpl_vars['kx']->value['int'] == 2) {?> <td style="color: cyan" onclick="window.location='?s=p_night&ts=<?php echo $_smarty_tpl->tpl_vars['kx']->value['ts'];?>
|
|
'"><?php echo $_smarty_tpl->tpl_vars['kx']->value['inx'];?>
|
|
</td> <?php }?>
|
|
-->
|
|
<?php if ($_smarty_tpl->tpl_vars['kx']->value['int'] == 6) {?> <td style="color: orange" onclick="window.location='?s=p_night&ts=<?php echo $_smarty_tpl->tpl_vars['kx']->value['ts'];?>
|
|
'"><?php echo $_smarty_tpl->tpl_vars['kx']->value['inx'];?>
|
|
</td> <?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['kx']->value['int'] == 7) {?> <td style="color: darkred" onclick="window.location='?s=p_night&ts=<?php echo $_smarty_tpl->tpl_vars['kx']->value['ts'];?>
|
|
'"><?php echo $_smarty_tpl->tpl_vars['kx']->value['inx'];?>
|
|
</td> <?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['kx']->value['int'] == 2) {?> <td style="color: cyan" onclick="window.location='?s=p_night&ts=<?php echo $_smarty_tpl->tpl_vars['kx']->value['ts'];?>
|
|
'"><?php echo $_smarty_tpl->tpl_vars['kx']->value['inx'];?>
|
|
</td> <?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['kx']->value['int'] == 3) {?> <td style="color:gray" onclick="window.location='?s=p_night&ts=<?php echo $_smarty_tpl->tpl_vars['kx']->value['ts'];?>
|
|
'"><?php echo $_smarty_tpl->tpl_vars['kx']->value['inx'];?>
|
|
</td> <?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['kx']->value['int'] == 4) {?> <td style="color: #000"><?php echo $_smarty_tpl->tpl_vars['kx']->value['inx'];?>
|
|
</td> <?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['kx']->value['int'] == 5) {?> <td style="color: darkorange" onclick="window.location='?s=p_night&ts=<?php echo $_smarty_tpl->tpl_vars['kx']->value['ts'];?>
|
|
'"><?php echo $_smarty_tpl->tpl_vars['kx']->value['inx'];?>
|
|
</td> <?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['kx']->value['so'] == 1) {?> </tr> <?php }?>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<!-- --------------------------------------------------------------------------------- -->
|
|
<div id="ma_kal"></div>
|
|
<!-- -------------------------------- verfügbare Fahrzeuge -->
|
|
<div id="freecar"></div>
|
|
<!-- -------------------------------- verfügbare MA -->
|
|
<div id="freema"></div>
|
|
<!-- --------------------------------------------------------------------------------- -->
|
|
|
|
</div>
|
|
<!-- --------------------------------------------------------------------------------- -->
|
|
<!-- mitte seite -->
|
|
<?php if ($_smarty_tpl->tpl_vars['old']->value > 0) {?>
|
|
<div class="col-md-8">
|
|
<p nowrap align="center" style='width:100%;font-size:12pt;background-color:darkred;color:#fff;margin-top: -2px'> Achtung! - Diese Planung liegt in der Vergangenheit...<p>
|
|
</div>
|
|
<?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['fttest']->value != 0) {?>
|
|
<div class="col-md-8">
|
|
<p nowrap align="center" style='width:100%;font-size:12pt;background-color:orangered;color:#fff'> Feiertag - <?php echo $_smarty_tpl->tpl_vars['ftrow']->value['tag'];?>
|
|
<?php echo $_smarty_tpl->tpl_vars['ftrow']->value['bez'];?>
|
|
<p>
|
|
</div>
|
|
|
|
<?php }?>
|
|
<!-- --------------------------------------------------------------------------------- -->
|
|
<div id="p_tdata" >
|
|
|
|
</div>
|
|
</div>
|
|
<!-- -------------------------------------->
|
|
</section>
|
|
|
|
|
|
<!-- rechte seite -->
|
|
<!-- -------------------------------------->
|
|
|
|
<!-- Sidebar
|
|
<aside class="col-md-1" style="background-color:#333333">
|
|
<div id="rightmenu" class="panel panel-tbox">
|
|
<div class="panel-body">
|
|
<table class="no-style full" style="margin:-20px">
|
|
<thead>
|
|
<tr>
|
|
<td nowrap align="center" style="width:150px;font-size: 40pt">
|
|
<form action="" method="post">
|
|
<input type="hidden" name="smst" value="<?php echo $_smarty_tpl->tpl_vars['tag']->value;?>
|
|
"/>
|
|
<input type="hidden" name="smsm" value="<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
|
"/>
|
|
<input type="hidden" name="smsj" value="<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
|
"/>
|
|
<button type="submit" class="btn btn" id="notifyBtn" value="SMS senden" name="smspower" value="kompl. Liste per SMS senden" onclick="return confirm('Möchten sie wirklich alle SMS senden ?')" style="background-color: #222222;color:gray">
|
|
<i style="font-size: 40pt" class="far fa-sms fa-lg"></i>
|
|
</form>
|
|
</td>
|
|
<td></td>
|
|
<td nowrap align="center" style="width:100px;font-size: 40pt">
|
|
<form action="" method="post">
|
|
<button type="submit" class="btn btn" id="notifyBtn" name="vortag" value="vortag übernehmen" value="kompl. Liste per SMS senden" onclick="return confirm('Möchten sie wirklich den Vortag kopieren ??')"style="background-color: #222222;color:gray">
|
|
<i style="font-size: 40pt" class="far fa-copy fa-lg"></i>
|
|
</td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</br>
|
|
</div>
|
|
</div>
|
|
-->
|
|
|
|
|
|
|
|
|
|
<!--
|
|
<div id="rightmenu" class="panel panel-default">
|
|
<table class="no-style full">
|
|
<tbody>
|
|
<td>
|
|
<form action="" method="post">
|
|
<input type="hidden" name="smst" value="<?php echo $_smarty_tpl->tpl_vars['tag']->value;?>
|
|
"/>
|
|
<input type="hidden" name="smsm" value="<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
|
"/>
|
|
<input type="hidden" name="smsj" value="<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
|
"/>
|
|
<input type="submit" id="notifyBtn" value="SMS senden" name="smspower" value="kompl. Liste per SMS senden" onclick="return confirm('Möchten sie wirklich alle SMS senden ?')">
|
|
</form>
|
|
</td>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
-->
|
|
<!-- ------------------------------------ -->
|
|
<!-- --------------------------------------------------------------------------------- -->
|
|
<!-- -------------------------------- History -->
|
|
<div id="tinfo"></div>
|
|
<!-- -------------------------------- fehlende Mitarbeiter heute / Calender -->
|
|
|
|
<!-- -------------------------------------------------------- -->
|
|
|
|
<div id="modal" class="modal fade" tabindex="-1" role="dialog">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content" id="tddmodal"></div>
|
|
</div>
|
|
</div>
|
|
<!-- -------------------------------------------------------- -->
|
|
<!-- --------------------------------------------------------------------------------- -->
|
|
|
|
|
|
</aside>
|
|
<!-- --------------------------------------------------------------------------------- -->
|
|
<!-- Sidebar End -->
|
|
|
|
</body>
|
|
<!-- <?php echo '<script'; ?>
|
|
> var tagheute = '<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['datum_unix']->value,"%Y-%m-%d");?>
|
|
';<?php echo '</script'; ?>
|
|
> -->
|
|
<?php echo '<script'; ?>
|
|
> var tag = '<?php echo $_smarty_tpl->tpl_vars['xt']->value;?>
|
|
';<?php echo '</script'; ?>
|
|
>
|
|
<?php echo '<script'; ?>
|
|
> var monat = '<?php echo $_smarty_tpl->tpl_vars['xm']->value;?>
|
|
';<?php echo '</script'; ?>
|
|
>
|
|
<?php echo '<script'; ?>
|
|
> var jahr = '<?php echo $_smarty_tpl->tpl_vars['xj']->value;?>
|
|
';<?php echo '</script'; ?>
|
|
>
|
|
<?php echo '<script'; ?>
|
|
> var ts = '<?php echo $_smarty_tpl->tpl_vars['xj']->value;?>
|
|
';<?php echo '</script'; ?>
|
|
>
|
|
|
|
|
|
|
|
<?php echo '<script'; ?>
|
|
>
|
|
function load_free_cars(tag,monat,jahr) {
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "ajax.php?s=p_night_free_car&tpl",
|
|
dataType: 'html',
|
|
data: 'tag=' + tag + "&monat=" + monat + "&jahr=" + jahr,
|
|
success: function (data) {
|
|
$("#freecar").html(data);
|
|
}
|
|
});
|
|
}
|
|
function load_free_ma(tag,monat,jahr) {
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "ajax.php?s=p_night_free_ma&tpl",
|
|
dataType: 'html',
|
|
data: 'tag=' + tag + "&monat=" + monat + "&jahr=" + jahr,
|
|
success: function (data) {
|
|
$("#freema").html(data);
|
|
}
|
|
});
|
|
}
|
|
$.ajax({
|
|
type : "POST",
|
|
url : 'ajax.php?s=p_tdata&tpl',
|
|
cache : false,
|
|
dataType: 'html',
|
|
data: 'tag=' + tag + "&monat=" + monat + "&jahr=" + jahr,
|
|
success : function(data){
|
|
$("#p_tdata").html(data);
|
|
},
|
|
});
|
|
var refreshId = setInterval(function() {
|
|
$('#modal').modal('hide');
|
|
$.ajax({
|
|
type : "POST",
|
|
url : 'ajax.php?s=p_night_tdd&tpl',
|
|
cache : false,
|
|
dataType: 'html',
|
|
data: 'tag=' + tag + "&monat=" + monat + "&jahr=" + jahr,
|
|
success : function(data){
|
|
$("#p_night_tdd").html(data);
|
|
},
|
|
})
|
|
}, 100000);
|
|
function load_ma_kal(tag,monat,jahr) {
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "ajax.php?s=p_nirght_kal&tpl",
|
|
dataType: 'html',
|
|
data: 'tag=' + tag + "&monat=" + monat + "&jahr=" + jahr,
|
|
success: function (data) {
|
|
$("#ma_kal").html(data);
|
|
}
|
|
});
|
|
}
|
|
load_free_ma(tag,monat,jahr);
|
|
load_free_cars(tag,monat,jahr);
|
|
load_ma_kal(tag,monat,jahr);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function tinfo(tid) {
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "ajax.php?s=tinfo&tpl",
|
|
dataType: 'html',
|
|
data: 'tid=' + tid,
|
|
success: function (data) {
|
|
$("#tinfo").html(data);
|
|
}
|
|
});
|
|
}
|
|
|
|
function save_car(tourID) {
|
|
//alert($("#car_"+tourID).val());
|
|
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "ajax.php?s=pnacht&a=car_save",
|
|
dataType: 'json',
|
|
data: 'tourID=' + tourID + "&car=" + $("#car_"+tourID).val(),
|
|
success: function (data) {
|
|
if(data.success == true) {
|
|
$.notify({
|
|
icon: 'glyphicon glyphicon-warning-ok',
|
|
message: data.lastnote
|
|
},{
|
|
type: 'success',
|
|
showProgressbar: true,
|
|
delay: 300,
|
|
newest_on_top: false,
|
|
element: 'body',
|
|
placement: {
|
|
from: "bottom",
|
|
align: "right"
|
|
},
|
|
animate: {
|
|
enter: 'animated fadeInDown',
|
|
exit: 'animated fadeOutUp'
|
|
}
|
|
});
|
|
}
|
|
load_free_cars(tag,monat,jahr);
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
function save_info(tourID) {
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "ajax.php?s=pnacht&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'
|
|
}
|
|
});
|
|
}
|
|
});
|
|
|
|
}
|
|
function save_user(tourID) {
|
|
//alert($("#car_"+tourID).val());
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "ajax.php?s=pnacht&a=user_save",
|
|
dataType: 'json',
|
|
data: 'tourID=' + tourID + "&user=" + $("#user_"+tourID).val(),
|
|
success: function (data) {
|
|
if(data.success == true) {
|
|
$.notify({
|
|
icon: 'glyphicon glyphicon-warning-ok',
|
|
message: data.lastnote
|
|
},{
|
|
type: 'success',
|
|
showProgressbar: true,
|
|
delay: 300,
|
|
newest_on_top: false,
|
|
element: 'body',
|
|
placement: {
|
|
from: "bottom",
|
|
align: "right"
|
|
},
|
|
animate: {
|
|
enter: 'animated fadeInDown',
|
|
exit: 'animated fadeOutUp'
|
|
}
|
|
});
|
|
}
|
|
load_free_ma(tag,monat,jahr);
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
$('[data-toggle="ttp"]').ttp();
|
|
});
|
|
|
|
|
|
<?php echo '</script'; ?>
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php }
|
|
}
|