jb-data.de/template/tpl/ppin.tpl
2025-08-11 22:23:30 +02:00

572 lines
22 KiB
Smarty
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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_cars",
dataType: 'json',
data: 'tourID=' + tourID + "&date=" + date,
success: function (data) {
console.log(data)
$("#pkw").html("");
$("#trptag").html("");
$("#caddytag").html("");
$.each( data.pkwtag, function( key, value ) {
$("#pkwtag").append(value+"<br>");
});
$.each( data.caddytag, function( key, value ) {
$("#caddytag").append(value+"<br>");
});
$.each( data.trptag, function( key, value ) {
$("#trptag").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}
<!-- ********** -->
<!-- ********** --> <section class="col-md-9" style="background-color: #333333">
<div class="row sortable">
<!-- Main Section -- mittlere Spalte -->
<div class="col-md-2">
<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-heading">
<button type="button" class="btn btn-warning">{$tag}.{$monat }.{$jahr}</button>
</div>
-->
<div class="panel-body">
<table class="table-hover" style="font-size:11pt">
<tbody>
{foreach from=$tage item=tage}
<tr>
{if $tage.tagt==1} <td><hr></td><td><hr></td></tr><tr> {/if}
{if $tage.aktiv>0}
<td nowrap style="width:5px;line-height:120%;font-size:8pt;background:#FF0"
onclick="window.location='?s=ppin&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=ppin&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=ppin&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=ppin&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=ppin&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=ppin&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=ppin&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=ppin&jahr={$jahr}&monat={$monat}&tag={$tage.tag}&anz={$anz}'">{$tage.datum}
</td>
{/if}
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
<!-- mitte seite -->
<!-- <div id="phelp" style="text-align:center;"></div> -->
{if $fttest>0}
<table class="table-condensed">
<tbody>
<td align="left" nowrap style="color:#4F81BD;width:500px;line-height:120%;text-align:center;font-size:20pt">&nbsp;LVZ-Post (AG) für {$datum_unix|date_format:"%d.%m.%y"}</td>
<td align="right" nowrap style="color:#4F81BD;width:200px;line-height:120%;text-align:center;font-size:20pt">
<img src="template/images/display_post.png" height="35">
</td>
</tbody>
</table>
<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}
<table class="table-condensed">
<tbody>
<td align="left" nowrap style="color:#4F81BD;width:500px;line-height:120%;text-align:center;font-size:20pt">&nbsp;LVZ-Post (AG) für {$datum_unix|date_format:"%d.%m.%y"}</td>
<td align="right" nowrap style="color:#4F81BD;width:200px;line-height:120%;text-align:center;font-size:20pt">
<img src="template/images/display_post.png" height="40">
</td>
</tbody>
</table>
<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>
<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>&nbsp; "Rtouren-Touren" werden kopiert.</td>
</form>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- -------------------------------------->
</div>
</section>
<!-- rechte seite -->
<!-- -------------------------------------->
<!-- Sidebar -->
<aside class="col-md-3" style="background-color: #333333">
<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 -->