This commit is contained in:
steven 2025-08-11 22:23:30 +02:00
commit 72a26edcff
22092 changed files with 2101903 additions and 0 deletions

View file

@ -0,0 +1,534 @@
<div class="container-fluid">
<!-- ********** mobile Anzeige zurammenrutzschen -->
<div class="row">
<div class="col-md-1">
<div class="panel panel-warning">
<table class="table-hover" style="font-size:11pt">
<thead>
{foreach from=$tage item=tage}
<tr>
{if $tage.tagt==1} <td><h4><font color="#A8A5A5">-{$tage.kw}.KW-</td></tr><tr> {/if}
{if $tage.aktiv>0}
<td style="background:#FF0"><a href="?s=pnachtsplit&jahr={$jahr}&monat={$monat}&tag={$tage.tag}" title="Kicke zum ausw&auml;len">{$tage.datum}</td>
{elseif $tage.ft>0}
<td style="background:#F5A50D"><a href="?s=pnachtsplit&jahr={$jahr}&monat={$monat}&tag={$tage.tag}" title="Kicke zum ausw&auml;len">{$tage.datum}</td>
{else}
<td><a href="?s=pnachtsplit&jahr={$jahr}&monat={$monat}&tag={$tage.tag}" title="Kicke zum ausw&auml;len" >{$tage.datum}</td>
{/if}
</tr>
{/foreach}
</thead>
</table>
</div>
</div>
<!--</div> -->
<!-- ------------------------------------------------------------------------------- -->
<!--<div class="row"> -->
<div class="col-md-5">
<div class="panel panel-primary">
<div class="panel-body">
<table class="table-hover" style="font-size:11pt">
<tbody>
{foreach from=$tag_tour1 item=tour1}
{if $tour1.test==99}
</tbody>
</table>
</div>
</div>
<div class="panel panel-primary">
<div class="panel-body">
<table class="table-hover" style="font-size:11pt">
<tbody>
{/if}
<tr>
<td nowrap style="width:100px;line-height:2;font-size:11pt;">{if $tour1.aktiv==0}<mark>{/if}{$tour1.tour}</mark></td>
<td nowrap style="width:200px;line-height:2;font-size:11pt;">{if $tour1.aktiv==0}<mark>{/if}{$tour1.fahrer}</mark>
<td nowrap style="width:100px;line-height:2;font-size:11pt;">{if $tour1.aktiv==0}<mark>{/if}{$tour1.car}</mark>
</tr>
{/foreach}
</div>
</table>
</div>
</div>
</div>
<!--</div> -->
<!-- ------------------------------------------------------------------------------- -->
<!--<div class="row"> -->
<div class="col-md-5">
<div class="panel panel-primary">
<div class="panel-body">
<table class="table-hover" style="font-size:11pt">
<tbody>
{foreach from=$tag_tour2 item=tour}
{if $tour.test==99}
</tbody>
</table>
</div>
</div>
<div class="panel panel-primary">
<div class="panel-body">
<table class="table-hover" style="font-size:11pt">
<tbody>
{/if}
<tr>
<form action="" method="post">
<td nowrap style="width:100px;line-height:2;font-size:11pt;">{if $tour.aktiv==0}<mark>{/if}{$tour.tour}</mark>
</td>
<!-- --------------------------- fahrer mit anwesenheitsprüfung
<td nowrap id="ma_wahl{$tour.id},{$tour.typ},{$tour.fahrer_id}" style="width:165px;font-size:10pt;"></td> -->
<!-- --------------------------- fahrer mit anwesenheitsprüfung -->
<td nowrap style="width:200px;font-size:11pt;">
<select name="Fahrer[{$tour.id}]" id="user_{$tour.id}"
{if $tour.fahrer_id==0} style="width:195px;border:none;border-bottom: 4px solid #FF2222;"
{elseif $tour.fahrer_ok==0} style="width:195px;border:none;border-bottom: 4px solid #FF2222;"
{elseif $tour.fahrer_ok==2} style="width:195px;border:none;border-bottom: 4px solid #FF9900;"
{elseif $tour.fahrer_ok==3} style="width:195px;border:none;border-bottom: 4px solid #99FF00;"
{else} style="width:195px;border:none;border-bottom: 1px solid #dcdcdc;"
{/if}
onChange="save_user({$tour.id})">
<!-- --------------------------- fahrer fährt ständig *** typ 3 -->
<optgroup label="aktuelle Fahrer">
{foreach from=$tour.fahrer_array1 item=allfahrer}
<option value="{$allfahrer.id}" {if $tour.fahrer_id==$allfahrer.id} selected="selected"{/if}>
<strong>{$allfahrer.name}</strong>
</option>
{/foreach}
</optgroup>
<!-- --------------------------- fahrer noch nie *** typ 4 -->
<optgroup label="------------------------------------">
{foreach from=$tour.fahrer_array2 item=allfahrer}
<option value="{$allfahrer.id}" {if $tour.fahrer_id==$allfahrer.id} selected="selected"{/if}>
<strong>{$allfahrer.name}</strong>
</option>
{/foreach}
</optgroup>
<!-- --------------------------- -->
</select>
</td>
<!-- --------------------------- fahrer mit anwesenheitsprüfung
<div id="ma_wahl{$tour.id}}">
<td nowrap style="width:165px;font-size:10pt;">
<select name="Fahrer[{$tour.id}]" id="user_{$tour.id}"
{if $tour.fahrer_id==0} style="width:155px;border:none;border-bottom: 4px solid #FF2222;"
{elseif $tour.fahrer_ok==0} style="width:155px;border:none;border-bottom: 4px solid #FF2222;"
{elseif $tour.fahrer_ok==2} style="width:155px;border:none;border-bottom: 4px solid #FF9900;"
{elseif $tour.fahrer_ok==3} style="width:155px;border:none;border-bottom: 4px solid #99FF00;"
{else} style="width:155px;border:none;border-bottom: 1px solid #dcdcdc;"
{/if}
onChange="save_user({$tour.id})">
{foreach from=$tour.fahrer_array item=allfahrer}
{html_options values=$allfahrer.id output=$allfahrer.name selected=$tour.fahrer_id}
{/foreach}
</select>
</td>
</div>
-->
<!-- --------------------------- Fahrzeug -->
<td nowrap style="width:110px;font-size:11pt;">
<select name="Fahrzeug[{$tour.id}]" id="car_{$tour.id}"
{if $tour.auto_id==0} style="width:100px;border:none;border-bottom: 4px solid #ff0000;"
{else} style="width:100px;border:none;border-bottom: 1px solid #dcdcdc;"
{/if}
style="width:100px;"
onChange="save_car({$tour.id})" >
{foreach from=$auto_array item=allauto}
{html_options values=$allauto.id output=$allauto.kz selected=$tour.auto_id}
{/foreach}
</select>
</td>
<!-- --------------------------- Zusatzinfo -->
<td nowrap id="ma_gh{$tour.id}" style="width:225px;font-size:11pt;">
<input type="text" value="{$tour.infotext}" id="info_{$tour.id}"
style="width:215px;border-color:#dcdcdc;border:none;border-bottom: 1px solid #dcdcdc;" name="infotext[{$tour.id}]"
onChange="save_info({$tour.id})">
</td>
<td>
<input type="hidden" name="savetour" value="{$tour.id}"/>
</center></td>
<td><center>
<input type="hidden" name="sendtour" value="{$tour.id}"/>
<td>
<center>
<div id="smsstatus{$tour.id}" style="text-align:center;">
{if $tour.fahrer_id==0 || $tour.fahrer_ok==0}
<button type='submit' name="smssenden" data-toggle="tooltip" title="SMS senden nicht möglich" value="{$tour.id}"><i class='fa fa-times' style="color:#000000;"></i></button>
{else}
{if $tour.smsstatus==0} <!-- SMS in Warteschleife -->
<button type='submit' name="smssenden" value="{$tour.id}"><i class='fa fa-commenting-o' style="color:#0080FF
;"></i></button>
{/if}
{if $tour.smsstatus==20 || $tour.smsstatus==8} <!-- SMS in Warteschleife -->
<button type='submit' name="smssenden" value="{$tour.id}"><i class='fa fa-spinner fa-pulse' style="color:#FF8000;"></i></button>
{/if}
{if $tour.smsstatus==1 || $tour.smsstatus==3 || $tour.smsstatus==4} <!-- SMS in statusbericht abfarge -->
<button type='submit' name="smssenden" value="{$tour.id}"><i class='fa fa-check-square-o' style="color:#FF8000;"></i></button>
{/if}
{if $tour.smsstatus==2}
<button type='submit' name="smssenden" data-toggle="tooltip" title="zugestellt am: {$tour.smsstatusdate|date_format:"%d.%m.%Y-%H:%M"} Uhr" value="{$tour.id}"><i class='fa fa-check-square-o' style="color:#04B404;"></i></button>
{/if}
{if $tour.smsstatus==5}
<button type='submit' name="smssenden" data-toggle="tooltip" title="Versand fehlgeschlagen !!" value="{$tour.id}"><i class='fa fa-ban' style="color:#ff0000;"></i></button>
{/if}
{if $tour.smsstatus==99}
<button type='submit' name="smssenden" value="{$tour.id}"><i class='fa fa-question' style="color:#FF8000;"></i></button>
{/if}
{/if}
</div>
{if $tour.smsstatus!=2}
{literal}
<script>
timer = 30000;
var refresh_EDV{/literal}{$tour.id}{literal} = setInterval(function() {
$.ajax({
type : "POST",
url : 'ajax.php?s=msmsstatus&tpl',
cache : false,
data : {
id:{/literal}{$tour.id}{literal},
},
dataType : "html",
success : function(data){
$("#smsstatus{/literal}{$tour.id}{literal}").html(data);
var matches = data.match("zugestellt am:"); // findet das erst 'zug'
if(matches == 'zugestellt am:') {
clearInterval(refresh_EDV{/literal}{$tour.id}{literal});
}
},
})
},timer);
</script>
{/literal}
{/if}
</center>
</td>
<td nowrap align="center" style="width:20px">
{if $tour.m_update>0}
<a class="btn btn-xs" target="_last" onClick="javascript:open('', '_last', 'height=800,width=600,resizable=yes')"
href="?s=phistory&tour={$tour.tourid}" onmouseout="hideTooltip()" onmouseover="showTooltip(event,'geändert: {$tour.n_update} - {$tour.t_update}');return false" aria-label="Settings">
<i class="fa fa-info"></i>
{else}
<a class="btn btn-xs" target="_last" onClick="javascript:open('', '_last', 'height=800,width=600,resizable=yes')"
href="?s=phistory&tour={$tour.tourid}" aria-label="Settings">
<i class="fa fa-info"></i>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
<div class="panel panel-primary">
<div class="panel-body">
<table class="table-hover" style="font-size:11pt">
<tbody>
<tr>
<td></td>
<td><input type="submit" id="notifyBtn" name="vortag" value="vortag übernehmen" onclick="return confirm('M&ouml;chten sie wirklich den Vortag kopieren ??')"> </td>
<td align="right"><H6></H6>"Tag-Touren" werden nicht kopiert.</td>
</form>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- -------------------------------------->
</div>
</section>
<!-- rechte seite -->
<!-- -------------------------------------->
<!-- Sidebar
<aside class="col-md-3">-->
<div id="rightmenu" class="panel panel-default">
<header class="panel-heading">
<table class="no-style full">
<tbody>
<td nowrap style="align:center;width:320px;font-size:14pt">
<a class="fa fa-arrow-left" href="?s=pnacht&wahl=1&jahr={$jahr}&monat={$monat}"></a>
<strong>{$monat}/{$jahr} </strong>
<a class="fa fa-arrow-right" href="?s=pnacht&wahl=2&jahr={$jahr}&monat={$monat}"></a></td>
</tbody>
</table>
</header>
</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="alle SMS senden" name="smspower" value="kompl. Liste per SMS senden" onclick="return confirm('M&ouml;chten sie wirklich alle SMS senden ?')">
</form>
</td>
</tbody>
</table>
</div>
<!-- -------------------------------- fehlende Mitarbeiter heute
<div id="kal_1" style="text-align:center;"></div> -->
<div id="rightmenu" class="panel panel-warning">
<header class="panel-heading"><span class="fa fa-calendar fa-fw pull-left"></span><h2 class="panel-title">Kalender - {$tag}.{$monat}.{$jahr}</h2></header>
<div class="panel-body">
<table class="no-style full">
<tbody>
{foreach from=$maf1 item=maf1 }
<tr>
<td nowrap style="width:135px;font-size:10pt"> {$maf1.fahrer}</td>
<td nowrap style="width:25px;font-size:11pt"> <img src="/template/images/icon/{$maf1.icon}" width="16" height="16"/></td>
<td nowrap style="width:150px;font-size:10pt"> {$maf1.bez}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
<div id="rightmenu" class="panel panel-info">
<header class="panel-heading"><span class="fa fa-moon-o fa-fw pull-left"></span><h2 class="panel-title"> verfügbare Caddy</h2></header>
<div class="panel-body">
<table class="no-style full" id="caddy" style="font-size:10pt"></table>
</div>
</div>
<div id="rightmenu" class="panel panel-info">
<header class="panel-heading"><span class="fa fa-moon-o fa-fw pull-left"></span><h2 class="panel-title"> verfügbare Transporter</h2></header>
<div class="panel-body">
<table class="no-style full" id="trp" style="font-size:10pt"></table>
</div>
</div>
<!--
<div id="rightmenu" class="panel panel-warning">
<header class="panel-heading"><spawn class="fa fa-sun-o fa-fw pull-left fa-spin fa-fw"></spawn><h2 class="panel-title"> verfügbare PKW´s</h2></header>
<div class="panel-body">
<table class="no-style full" id="pkw" style="font-size:10pt"></table>
</div>
</div>
<div id="rightmenu" class="panel panel-warning">
<header class="panel-heading"><spawn class="fa fa-sun-o fa-fw pull-left fa-spin fa-fw"></spawn><h2 class="panel-title"> verfügbare Caddy</h2></header>
<div class="panel-body">
<table class="no-style full" id="caddytag" style="font-size:10pt"></table>
</div>
</div>
<div id="rightmenu" class="panel panel-warning">
<header class="panel-heading"><spawn class="fa fa-sun-o fa-fw pull-left fa-spin fa-fw"></spawn><h2 class="panel-title"> verfügbare Transporter</h2></header>
<div class="panel-body">
<table class="no-style full" id="trptag" style="font-size:10pt"></table>
</div>
</div>
-->
</aside>
<!-- Sidebar End -->
<script> var tagheute = '{$datum_unix|date_format:"%Y-%m-%d"}';</script>
{literal}
<script>
function load_free_cars(tourID,date) {
console.log(date);
$.ajax({
type: 'POST',
url: "ajax.php?s=paktuell&a=load_free_ncars",
dataType: 'json',
data: 'tourID=' + tourID + "&date=" + date,
success: function (data) {
console.log(data)
$("#caddy").html("");
$("#trp").html("");
$.each( data.caddy, function( key, value ) {
$("#caddy").append(value+"<br>");
});
$.each( data.trp, function( key, value ) {
$("#trp").append(value+"<br>");
});
}
});
}
function save_car(tourID) {
//alert($("#car_"+tourID).val());
$.ajax({
type: 'POST',
url: "ajax.php?s=paktuell&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'
}
});
}
console.log(data)
load_free_cars(0,tagheute)
}
});
}
load_free_cars(0,tagheute);
function save_info(tourID) {
$.ajax({
type: 'POST',
url: "ajax.php?s=paktuell&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_user(tourID) {
//alert($("#car_"+tourID).val());
$.ajax({
type: 'POST',
url: "ajax.php?s=paktuell&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'
}
});
}
}
});
}
</script>
{/literal}