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

505
template/tpl/pkomplett.tpl Normal file
View file

@ -0,0 +1,505 @@
<!-- ********** -->
<!-- ********** -->
<section class="col-md-9">
<div class="row sortable">
<!-- Main Section -- mittlere Spalte -->
<div class="col-md-2">
<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>
<div class="panel">
<div class="panel-heading" style="background-color:yellow;">
<spawn style="width:5px;height:2px;font-size:16pt;">{$datum_unix|date_format:"%d.%m.%y"}</spawn>
</div>
<div class="panel-body">
<table class="table-hover" style="font-size:11pt;line-height: 2pt">
<tbody>
{foreach from=$tage item=tage}
<tr>
{if $tage.tagt==1}
<td> </td><td nowrap style="width:5px;line-height:120%;font-size:4pt" >&nbsp;</td>
</tr>
<td> </td><td nowrap style="width:5px;line-height:120%;font-size:8pt" >--- {$tage.kw}.KW ---</td>
<tr>
{/if}
{if $tage.aktiv>0}
<td nowrap style="width:5px;line-height:120%;font-size:8pt;background:#FF0"
onclick="window.location='?s=pnacht&jahr={$jahr}&monat={$monat}&tag={$tage.tag}&anz={$anz}'">{$tage.wt}
</td>
<td nowrap style="width:70px;line-height:120%;font-size:12pt;background:#FF0"
onclick="window.location='?s=pnacht&jahr={$jahr}&monat={$monat}&tag={$tage.tag}&anz={$anz}'">{$tage.datum}
</td>
{elseif $tage.ft>0}
<td nowrap style="width:5px;line-height:120%;font-size:8pt;background:#F5A50D"
onclick="window.location='?s=pnacht&jahr={$jahr}&monat={$monat}&tag={$tage.tag}&anz={$anz}'">{$tage.wt}
</td>
<td nowrap style="width:70px;line-height:120%;font-size:12pt;background:#F5A50D"
onclick="window.location='?s=pnacht&jahr={$jahr}&monat={$monat}&tag={$tage.tag}&anz={$anz}'">{$tage.datum}
</td>
{elseif $tage.wahl>0}
<td nowrap style="width:5px;line-height:120%;font-size:8pt;border: 1px solid #000099"
onclick="window.location='?s=pnacht&jahr={$jahr}&monat={$monat}&tag={$tage.tag}&anz={$anz}'">{$tage.wt}
</td>
<td nowrap style="width:70px;line-height:120%;font-size:12pt;border: 1px solid #000099"
onclick="window.location='?s=pnacht&jahr={$jahr}&monat={$monat}&tag={$tage.tag}&anz={$anz}'">{$tage.datum}
</td>
{else}
<td nowrap style="width:5px;line-height:120%;font-size:8pt"
onclick="window.location='?s=pnacht&jahr={$jahr}&monat={$monat}&tag={$tage.tag}&anz={$anz}'">{$tage.wt}
</td>
<td nowrap style="width:70px;line-height:120%;font-size:12pt"
onclick="window.location='?s=pnacht&jahr={$jahr}&monat={$monat}&tag={$tage.tag}&anz={$anz}'">{$tage.datum}
</td>
{/if}
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
<!-- mitte seite -->
{if $old>0}
<div class="col-md-10">
<div class="alert alert-danger">
<strong>Achtung!</strong> Diese Planung liegt in der Vergangenheit...
</div>
</div>
{/if}
{if $fttest>0}
<div class="col-md-10">
<div class="panel panel-danger">
<div class="panel-heading">Feiertag</div>
<table class="table-condensed">
<tbody>
<td nowrap style="width:100px;line-height:120%;font-size:14pt"> <strong>{$ftrow.tag}</strong></td>
<td nowrap style="width:500px;line-height:120%;font-size:14pt"> <strong>{$ftrow.bez}</strong></td>
</tbody>
</table>
</div>
</div>
{/if}
<div class="col-md-10">
<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 id="loadzeile{$tour.id}">
<td nowrap style="width:90px;line-height:28px;font-size:11pt;">{if $tour.aktiv==0}<mark>{/if}{$tour.tour}</mark>
<td nowrap style="width:195px;font-size:11pt;">
<!-- --------------------------- -->
<!-- --------------------------- -->
<select name="Fahrer[{$tour.id}]" id="user_{$tour.id}" disabled style="width:190px;border:none;border-bottom: 1px solid #dcdcdc;" onChange="save_user({$tour.id})";>
<!-- --------------------------- fahrer fährt ständig *** typ 3 -->
{foreach from=$fahrer_array item=allfahrer}
<option value="{$allfahrer.id}" {if $tour.fahrer_id==$allfahrer.id} selected="selected"{/if}>
<strong>{$allfahrer.name}</strong>
</option>
{/foreach}
</select>
</td>
<!-- --------------------------- Fahrzeug -->
<td nowrap style="width:100px;font-size:11pt;">
<select name="Fahrzeug[{$tour.id}]" id="car_{$tour.id}" style="width:95px;border:none;border-bottom: 1px solid #dcdcdc;" 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>
<!-- --------------------------- Info -->
<td nowrap id="ma_gh{$tour.id}" style="width:128px; font-size:8pt;">
<input type="text" value="{$tour.infotext}" id="info_{$tour.id}"
style="width:125px;height:22px;border-color:#dcdcdc;border:none;border-bottom: 1px solid #dcdcdc;" name="infotext[{$tour.id}]"
onChange="save_info({$tour.id})">
</td>
<td nowrap id="ma_gh{$tour.id}" style="width:127px;font-size:8pt;">
{if $tour.stamm_info==1}
<div style="text-align: right; width:125px;font-size:8pt;color:#FF2222">{$tour.stamminfo}</div>
{/if}
{if $tour.stamm_info==2}
<div style="text-align: right; width:125px;font-size:8pt;color:#FF9900">{$tour.stamminfo}</div>
{/if}
</td>
<td nowrap><input type="hidden" name="savetour" value="{$tour.id}"/> </td>
<td><center><input type="hidden" name="sendtour" value="{$tour.id}"/> </td>
<td>
<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>
</td>
{literal}
<script>
$.ajax({
type : "POST",
url : "ajax.php?s=ntour&tpl",
cache : false,
data : {
id:{/literal}{$tour.id}{literal},
},
dataType : "html",
success : function(data){
$("#loadzeile{/literal}{$tour.id}{literal}").html(data);
},
});
</script>
{/literal}
</div>
</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}