384 lines
11 KiB
Smarty
384 lines
11 KiB
Smarty
<!-- <link rel="stylesheet" href="template/css/planung.css"> -->
|
|
<!-- <link rel="stylesheet" href="../lib/css/select2.min.css"> -->
|
|
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/js/select2.full.min.js"></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={$atime}"></a></td>
|
|
<td nowrap style="color: orange;width:200px">{$ktime}</td>
|
|
<td nowrap style="color: orange;width:30px; text-align: center"><a class="fa fa-arrow-right" href="?s=p_night&mw=2&atime={$atime}"></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>
|
|
{foreach from=$kd item=kx}
|
|
{if $kx.int==1} <tr style="align:center;font-size:12pt;"> {/if}
|
|
<!--
|
|
{if $kx.int==6} <td style="color: orange" onclick="window.location='?s=p_night&ts={$kx.ts}'">{$kx.inx}</td>
|
|
{elseif $kx.int==7} <td style="color: darkred" onclick="window.location='?s=p_night&ts={$kx.ts}'">{$kx.inx}</td>
|
|
{elseif $kx.int==2} <td style="color: cyan" onclick="window.location='?s=p_night&ts={$kx.ts}'">{$kx.inx}</td> {/if}
|
|
-->
|
|
{if $kx.int==6} <td style="color: orange" onclick="window.location='?s=p_night&ts={$kx.ts}'">{$kx.inx}</td> {/if}
|
|
{if $kx.int==7} <td style="color: darkred" onclick="window.location='?s=p_night&ts={$kx.ts}'">{$kx.inx}</td> {/if}
|
|
{if $kx.int==2} <td style="color: cyan" onclick="window.location='?s=p_night&ts={$kx.ts}'">{$kx.inx}</td> {/if}
|
|
{if $kx.int==3} <td style="color:gray" onclick="window.location='?s=p_night&ts={$kx.ts}'">{$kx.inx}</td> {/if}
|
|
{if $kx.int==4} <td style="color: #000">{$kx.inx}</td> {/if}
|
|
{if $kx.int==5} <td style="color: darkorange" onclick="window.location='?s=p_night&ts={$kx.ts}'">{$kx.inx}</td> {/if}
|
|
{if $kx.so ==1} </tr> {/if}
|
|
{/foreach}
|
|
</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 -->
|
|
{if $old>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>
|
|
{/if}
|
|
{if $fttest!=0}
|
|
<div class="col-md-8">
|
|
<p nowrap align="center" style='width:100%;font-size:12pt;background-color:orangered;color:#fff'> Feiertag - {$ftrow.tag} {$ftrow.bez}<p>
|
|
</div>
|
|
|
|
{/if}
|
|
<!-- --------------------------------------------------------------------------------- -->
|
|
<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="{$tag}"/>
|
|
<input type="hidden" name="smsm" value="{$monat}"/>
|
|
<input type="hidden" name="smsj" value="{$jahr}"/>
|
|
<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="{$tag}"/>
|
|
<input type="hidden" name="smsm" value="{$monat}"/>
|
|
<input type="hidden" name="smsj" value="{$jahr}"/>
|
|
<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>
|
|
<!-- <script> var tagheute = '{$datum_unix|date_format:"%Y-%m-%d"}';</script> -->
|
|
<script> var tag = '{$xt}';</script>
|
|
<script> var monat = '{$xm}';</script>
|
|
<script> var jahr = '{$xj}';</script>
|
|
<script> var ts = '{$xj}';</script>
|
|
|
|
|
|
{literal}
|
|
<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();
|
|
});
|
|
|
|
|
|
</script>
|
|
|
|
{/literal}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|