709 lines
32 KiB
Smarty
709 lines
32 KiB
Smarty
<script> var timercount = 0; </script>
|
|
<script> var tagheute = '{$datum_unix|date_format:"%Y-%m-%d"}';</script>
|
|
{literal}
|
|
<script>
|
|
$(document).ready(function(){
|
|
$('[data-toggle="tooltip"]').tooltip();
|
|
});
|
|
</script>
|
|
<script>
|
|
$(document).ready(function() {
|
|
$("[rel=popover]").popover({'trigger':'hover'});
|
|
});
|
|
</script>
|
|
<style>
|
|
[rel="popover"]{
|
|
cursor: pointer;
|
|
display:inline-block; /* chrome-fix */
|
|
}
|
|
</style>
|
|
<script>
|
|
function caricon(tourID) {
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "ajax.php?s=rs&a=load_car_icon",
|
|
dataType: "json",
|
|
//contentType: "application/json; charset=utf-8",
|
|
data: 'tourID=' + tourID,
|
|
success: function (data) {
|
|
$("#caricon"+data.zeile).html(data.htmlresult);
|
|
}
|
|
});
|
|
}
|
|
function usericon(tourID) {
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "ajax.php?s=rs&a=load_user_icon",
|
|
dataType: "json",
|
|
//contentType: "application/json; charset=utf-8",
|
|
data: 'tourID=' + tourID,
|
|
success: function (data) {
|
|
$("#usericon"+data.zeile).html(data.htmlresult);
|
|
}
|
|
});
|
|
}
|
|
|
|
$.ajax({
|
|
type : "POST",
|
|
url : 'ajax.php?s=last_week_7&tpl',
|
|
cache : false,
|
|
data : {
|
|
},
|
|
dataType : "html",
|
|
success : function(data){
|
|
$("#lastweek").html(data);
|
|
},
|
|
});
|
|
|
|
//-----------------------------------------------------
|
|
function load_free_cars(tagheute) {
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "ajax.php?s=prundschau&a=load_free_cars",
|
|
dataType: 'json',
|
|
data: "date=" + date,
|
|
success: function (data) {
|
|
console.log(data)
|
|
$("#trp").html("");
|
|
$.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=rs&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)
|
|
caricon(data.zeile);
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
load_free_cars(0,tagheute);
|
|
|
|
function save_user(tourID) {
|
|
//alert($("#car_"+tourID).val());
|
|
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "ajax.php?s=rs&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'
|
|
}
|
|
});
|
|
}
|
|
console.log(data)
|
|
usericon(data.zeile);
|
|
}
|
|
});
|
|
}
|
|
$(document).ready(function(){
|
|
$('[data-toggle="tooltip"]').tooltip();
|
|
});
|
|
</script>
|
|
{/literal}
|
|
|
|
|
|
<!-- -------------------------------------->
|
|
<div class="col-md-8">
|
|
<form action="" method="post">
|
|
<!-- --------------------------- RS-Land -->
|
|
{if ($atyp1)>0}
|
|
<div class="panel panel-warning">
|
|
<div class="panel-heading"><h2 class="panel-title"><span style='font-size:12pt;line-height:100%; color:#4F81BD'>Rundschau Ausgabe Land - {$kw_aktuell}.KW - {$datumstadt}</span></h2>
|
|
</div>
|
|
<div class="panel-body">
|
|
<table class="table-hover">
|
|
<tbody> {foreach from=$rs_tour1 item=tour}
|
|
<td nowrap style="width:90px;font-size:11pt"> <b>{$tour.tour}</td>
|
|
<td nowrap style="width:80px;font-size:11pt"> <b>{$tour.zeit} Uhr</td>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$tour.gewicht4} kg</td> </right>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$tour.gewicht} kg</td> </right>
|
|
<!-- <td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$tour.pakete} St. </td> </right> -->
|
|
<!-- --------------------------- fahrer -->
|
|
<td nowrap style="width:25px;font-size:11pt;text-align:right;color:gray" id="usericon{$tour.id}">
|
|
<span class="fa fa-user"></i>
|
|
{literal}
|
|
<script>usericon({/literal}{$tour.id}{literal});
|
|
</script>
|
|
{/literal}
|
|
</td>
|
|
<td nowrap style="width:180px;font-size:11pt"><center>
|
|
<select name="list[{$tour.tid}][Fahrer]" id="user_{$tour.id}" style="width:160px;" onChange="save_user({$tour.id})">
|
|
{foreach from=$fahrer_array2 item=allfahrer}
|
|
{html_options values=$allfahrer.id output=$allfahrer.name selected=$tour.fahrer_id}
|
|
{/foreach}
|
|
</select>
|
|
|
|
</td>
|
|
|
|
<!-- --------------------------- Fahrzeug -->
|
|
<td nowrap style="width:25px;font-size:11pt;text-align:right;color:gray" id="caricon{$tour.id}">
|
|
<span class="fa fa-truck"></i>
|
|
{literal}
|
|
<script>caricon({/literal}{$tour.id}{literal});
|
|
</script>
|
|
{/literal}
|
|
</td>
|
|
<td nowrap style="width:120px;font-size:11pt"><center>
|
|
<select name="list[{$tour.tid}][Fahrzeug]" id="car_{$tour.id}" style="width:100px;border:none;border-bottom: 1px solid #dcdcdc" onChange="save_car({$tour.id})">
|
|
|
|
{foreach from=$tour.auto_array item=allauto}
|
|
{html_options values=$allauto.id output=$allauto.kz selected=$tour.auto_id}
|
|
{/foreach}
|
|
</select>
|
|
</td>
|
|
<input type="hidden" name="list[{$tour.tid}][tid]" value="{$tour.id}"/>
|
|
<!-- --------------------------- SMS -->
|
|
<td style="width:70px;font-size:11pt">
|
|
<center>
|
|
<div id="smsstatus{$tour.id}" style="text-align:center;">
|
|
{if $tour.fahrer_id==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==1} <!-- 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==3} <!-- SMS in statusbericht abfarge -->
|
|
<button type='submit' name="smssenden" value="{$tour.id}"><i class='fa fa fa-exclamation-triangle' style="color:#FF8000;"></i></button>
|
|
{/if}
|
|
{if $tour.smsstatus==4} <!-- SMS in statusbericht abfarge -->
|
|
<button type='submit' name="smssenden" value="{$tour.id}"><i class='fa fa fa-exclamation-triangle' style="color:#FF8000;"></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==8} <!-- SMS in Warteschleife -->
|
|
<button type='submit' name="smssenden" value="{$tour.id}"><i class='fa fa-check-square-o'
|
|
style="color:#C0C0C0 ;"></i></button>
|
|
{/if}
|
|
{if $tour.smsstatus==20} <!-- 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==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>
|
|
var timer = 21000;
|
|
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);
|
|
},
|
|
})
|
|
},timer);
|
|
timercount++;
|
|
</script>
|
|
{/literal}
|
|
{/if}
|
|
</div>
|
|
</td>
|
|
</tbody> {/foreach}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
<!-- --------------------------- RS-Nord -->
|
|
{if ($atyp2)>0}
|
|
<div class="panel panel-warning">
|
|
<div class="panel-heading"><h2 class="panel-title"><span style='font-size:12pt;line-height:100%; color:#4F81BD'>Rundschau Ausgabe Stadt-Nord - {$kw_aktuell}.KW - {$datumstadt}</span></h2>
|
|
</div>
|
|
<div class="panel-body">
|
|
<table class="table-hover">
|
|
<tbody> {foreach from=$rs_tour2 item=tour}
|
|
<td nowrap style="width:90px;font-size:11pt"> <b>{$tour.tour}</td>
|
|
<td nowrap style="width:80px;font-size:11pt"> <b>{$tour.zeit} Uhr</td>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$tour.gewicht4} kg</td> </right>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$tour.gewicht} kg</td> </right>
|
|
<!-- <td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$tour.pakete} St. </td> </right> -->
|
|
<!-- --------------------------- fahrer -->
|
|
<td nowrap style="width:25px;font-size:11pt;text-align:right;color:gray" id="usericon{$tour.id}">
|
|
<span class="fa fa-user">
|
|
{literal}
|
|
<script>usericon({/literal}{$tour.id}{literal});
|
|
</script>
|
|
{/literal}
|
|
</td>
|
|
<td nowrap style="width:180px;font-size:11pt"><center>
|
|
<select name="list[{$tour.tid}][Fahrer]" id="user_{$tour.id}" style="width:160px;border:none;border-bottom: 1px solid #dcdcdc" onChange="save_user({$tour.id})">
|
|
{foreach from=$fahrer_array2 item=allfahrer}
|
|
{html_options values=$allfahrer.id output=$allfahrer.name selected=$tour.fahrer_id}
|
|
{/foreach}
|
|
</select>
|
|
|
|
</td>
|
|
|
|
<!-- --------------------------- Fahrzeug -->
|
|
<td nowrap style="width:25px;font-size:11pt;text-align:right;color:gray" id="caricon{$tour.id}">
|
|
<span class="fa fa-truck"></i>
|
|
{literal}
|
|
<script>caricon({/literal}{$tour.id}{literal});
|
|
</script>
|
|
{/literal}
|
|
</td>
|
|
<td nowrap style="width:120px;font-size:11pt"><center>
|
|
<select name="list[{$tour.tid}][Fahrzeug]" id="car_{$tour.id}" style="width:100px;border:none;border-bottom: 1px solid #dcdcdc" onChange="save_car({$tour.id})">
|
|
|
|
{foreach from=$tour.auto_array item=allauto}
|
|
{html_options values=$allauto.id output=$allauto.kz selected=$tour.auto_id}
|
|
{/foreach}
|
|
</select>
|
|
</td>
|
|
<input type="hidden" name="list[{$tour.tid}][tid]" value="{$tour.id}"/>
|
|
<!-- --------------------------- SMS -->
|
|
<td style="width:70px;font-size:11pt">
|
|
<center>
|
|
<div id="smsstatus{$tour.id}" style="text-align:center;">
|
|
{if $tour.fahrer_id==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==1} <!-- 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==3} <!-- SMS in statusbericht abfarge -->
|
|
<button type='submit' name="smssenden" value="{$tour.id}"><i class='fa fa fa-exclamation-triangle' style="color:#FF8000;"></i></button>
|
|
{/if}
|
|
{if $tour.smsstatus==4} <!-- SMS in statusbericht abfarge -->
|
|
<button type='submit' name="smssenden" value="{$tour.id}"><i class='fa fa fa-exclamation-triangle' style="color:#FF8000;"></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==8} <!-- SMS in Warteschleife -->
|
|
<button type='submit' name="smssenden" value="{$tour.id}"><i class='fa fa-check-square-o'
|
|
style="color:#C0C0C0 ;"></i></button>
|
|
{/if}
|
|
{if $tour.smsstatus==20} <!-- 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==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>
|
|
var timer = 18000;
|
|
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);
|
|
timercount++;
|
|
</script>
|
|
{/literal}
|
|
{/if}
|
|
</div>
|
|
</td>
|
|
</tbody> {/foreach}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
<!-- --------------------------- RS-West -->
|
|
{if ($atyp3)>0}
|
|
<div class="panel panel-warning">
|
|
<div class="panel-heading"><h2 class="panel-title"><span style='font-size:12pt;line-height:100%; color:#4F81BD'>Rundschau Ausgabe Stadt-West - {$kw_aktuell}.KW - {$datumstadt}</span></h2>
|
|
</div>
|
|
<div class="panel-body">
|
|
<table class="table-hover">
|
|
<tbody> {foreach from=$rs_tour3 item=tour}
|
|
<td nowrap style="width:90px;font-size:11pt"> <b>{$tour.tour}</td>
|
|
<td nowrap style="width:80px;font-size:11pt"> <b>{$tour.zeit} Uhr</td>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$tour.gewicht4} kg</td> </right>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$tour.gewicht} kg</td> </right>
|
|
<!-- <td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$tour.pakete} St. </td> </right> -->
|
|
<!-- --------------------------- fahrer -->
|
|
<td nowrap style="width:25px;font-size:11pt;text-align:right;color:gray" id="usericon{$tour.id}">
|
|
<span class="fa fa-user">
|
|
{literal}
|
|
<script>usericon({/literal}{$tour.id}{literal});
|
|
</script>
|
|
{/literal}
|
|
</td>
|
|
<td nowrap style="width:180px;font-size:11pt"><center>
|
|
<select name="list[{$tour.tid}][Fahrer]" id="user_{$tour.id}" style="width:160px;border:none;border-bottom: 1px solid #dcdcdc" onChange="save_user({$tour.id})">
|
|
{foreach from=$fahrer_array2 item=allfahrer}
|
|
{html_options values=$allfahrer.id output=$allfahrer.name selected=$tour.fahrer_id}
|
|
{/foreach}
|
|
</select>
|
|
|
|
</td>
|
|
<!-- --------------------------- Fahrzeug -->
|
|
<td nowrap style="width:20px;font-size:11pt;text-align:right;color:gray" id="caricon{$tour.id}">
|
|
<span class="fa fa-truck"></i>
|
|
{literal}
|
|
<script>caricon({/literal}{$tour.id}{literal});
|
|
</script>
|
|
{/literal}
|
|
</td>
|
|
<td nowrap style="width:120px;font-size:11pt"><center>
|
|
<select name="list[{$tour.tid}][Fahrzeug]" id="car_{$tour.id}" style="width:100px;border:none;border-bottom: 1px solid #dcdcdc" onChange="save_car({$tour.id})">
|
|
|
|
{foreach from=$tour.auto_array item=allauto}
|
|
{html_options values=$allauto.id output=$allauto.kz selected=$tour.auto_id}
|
|
{/foreach}
|
|
</select>
|
|
</td>
|
|
<input type="hidden" name="list[{$tour.tid}][tid]" value="{$tour.id}"/>
|
|
<!-- --------------------------- SMS -->
|
|
<td style="width:70px;font-size:11pt">
|
|
<center>
|
|
<div id="smsstatus{$tour.id}" style="text-align:center;">
|
|
{if $tour.fahrer_id==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==1} <!-- 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==3} <!-- SMS in statusbericht abfarge -->
|
|
<button type='submit' name="smssenden" value="{$tour.id}"><i class='fa fa fa-exclamation-triangle' style="color:#FF8000;"></i></button>
|
|
{/if}
|
|
{if $tour.smsstatus==4} <!-- SMS in statusbericht abfarge -->
|
|
<button type='submit' name="smssenden" value="{$tour.id}"><i class='fa fa fa-exclamation-triangle' style="color:#FF8000;"></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==8} <!-- SMS in Warteschleife -->
|
|
<button type='submit' name="smssenden" value="{$tour.id}"><i class='fa fa-check-square-o'
|
|
style="color:#C0C0C0 ;"></i></button>
|
|
{/if}
|
|
{if $tour.smsstatus==20} <!-- 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==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>
|
|
var timer = 15000;
|
|
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);
|
|
timercount++;
|
|
</script>
|
|
{/literal}
|
|
{/if}
|
|
</div>
|
|
</td>
|
|
</tbody> {/foreach}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
|
|
<!-- --------------------------- RS-Süd -->
|
|
<!-- --------------------------- RS-Süd -->
|
|
<!-- --------------------------- RS-Süd -->
|
|
<!-- --------------------------- RS-Süd -->
|
|
<!-- --------------------------- RS-Süd -->
|
|
<!-- --------------------------- RS-Süd -->
|
|
{if ($atyp4)>0}
|
|
<div class="panel panel-warning">
|
|
<div class="panel-heading"><h2 class="panel-title"><span style='font-size:12pt;line-height:100%; color:#4F81BD'>Rundschau Ausgabe Stadt-Süd - {$kw_aktuell}.KW - {$datumstadt}</span></h2>
|
|
</div>
|
|
<div class="panel-body">
|
|
<table class="table-hover">
|
|
<tbody> {foreach from=$rs_tour4 item=tour}
|
|
<td nowrap style="width:90px;font-size:11pt"> <b>{$tour.tour}</td>
|
|
<td nowrap style="width:80px;font-size:11pt"> <b>{$tour.zeit} Uhr</td>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$tour.gewicht4} kg</td> </right>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$tour.gewicht} kg</td> </right>
|
|
<!-- <td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$tour.pakete} St. </td> </right> -->
|
|
<!-- --------------------------- fahrer -->
|
|
<td nowrap style="width:25px;font-size:11pt;text-align:right;color:gray" id="usericon{$tour.id}">
|
|
<span class="fa fa-user">
|
|
{literal}
|
|
<script>usericon({/literal}{$tour.id}{literal});
|
|
</script>
|
|
{/literal}
|
|
</td>
|
|
<td nowrap style="width:180px;font-size:11pt"><center>
|
|
<select name="list[{$tour.tid}][Fahrer]" id="user_{$tour.id}" style="width:160px;border:none;border-bottom: 1px solid #dcdcdc" onChange="save_user({$tour.id})">
|
|
{foreach from=$fahrer_array2 item=allfahrer}
|
|
{html_options values=$allfahrer.id output=$allfahrer.name selected=$tour.fahrer_id}
|
|
{/foreach}
|
|
</select>
|
|
|
|
</td>
|
|
|
|
<!-- --------------------------- Fahrzeug -->
|
|
<td nowrap style="width:25px;font-size:11pt;text-align:right;color:gray" id="caricon{$tour.id}">
|
|
<span class="fa fa-truck" onLoad="caricon({$tour.id})"></i>
|
|
{literal}
|
|
<script>caricon({/literal}{$tour.id}{literal});
|
|
</script>
|
|
{/literal}
|
|
</td>
|
|
<td nowrap style="width:120px;font-size:11pt"><center>
|
|
<select name="list[{$tour.tid}][Fahrzeug]" id="car_{$tour.id}" style="width:100px;border:none;border-bottom: 1px solid #dcdcdc" onChange="save_car({$tour.id})">
|
|
|
|
{foreach from=$tour.auto_array item=allauto}
|
|
{html_options values=$allauto.id output=$allauto.kz selected=$tour.auto_id}
|
|
{/foreach}
|
|
</select>
|
|
</td>
|
|
<input type="hidden" name="list[{$tour.tid}][tid]" value="{$tour.id}"/>
|
|
<!-- --------------------------- SMS -->
|
|
<td style="width:70px;font-size:11pt">
|
|
<center>
|
|
<div id="smsstatus{$tour.id}" style="text-align:center;">
|
|
{if $tour.fahrer_id==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==1} <!-- 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==3} <!-- SMS in statusbericht abfarge -->
|
|
<button type='submit' name="smssenden" value="{$tour.id}"><i class='fa fa fa-exclamation-triangle' style="color:#FF8000;"></i></button>
|
|
{/if}
|
|
{if $tour.smsstatus==4} <!-- SMS in statusbericht abfarge -->
|
|
<button type='submit' name="smssenden" value="{$tour.id}"><i class='fa fa fa-exclamation-triangle' style="color:#FF8000;"></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==8} <!-- SMS in Warteschleife -->
|
|
<button type='submit' name="smssenden" value="{$tour.id}"><i class='fa fa-check-square-o'
|
|
style="color:#C0C0C0 ;"></i></button>
|
|
{/if}
|
|
{if $tour.smsstatus==20} <!-- 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==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>
|
|
var timer = 12000;
|
|
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);
|
|
timercount++;
|
|
</script>
|
|
{/literal}
|
|
{/if}
|
|
</div>
|
|
</td>
|
|
</tbody> {/foreach}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
<!-- <input type="submit" class="pull-right" class="btn btn-default" value="speichern" name="testsave"> -->
|
|
|
|
<!-- -------------------------------------->
|
|
<!-- Sidebar -->
|
|
<aside class="col-md-4">
|
|
<!-- -------------------------------------->
|
|
<div id="rightmenu" class="panel panel-warning">
|
|
<div class="panel-heading"><h2 class="panel-title"><span style='font-size:12pt;line-height:100%; color:#4F81BD'>Rundschau für die {$kw_aktuell}.KW</h2></div>
|
|
<section class="panel-body">
|
|
<table class="table-condensed">
|
|
<form action="" method="post">
|
|
<input type="submit" class="btn btn-link" value="alle SMS senden" name="smspower" value="kompl. Liste per SMS senden" onclick="return confirm('Möchten sie wirklich alle SMS senden ?')">
|
|
</form>
|
|
</table>
|
|
</section>
|
|
</div>
|
|
<!-- -------------------------------------->
|
|
{if ($atyp1)>0}
|
|
<div id="rightmenu" class="panel panel-warning">
|
|
<header class="panel-heading"><h2 class="panel-title"><span style='font-size:12pt;line-height:100%; color:#4F81BD'>Kalender für {$datumland}</h2></header>
|
|
|
|
<section class="panel-body">
|
|
<table class="no-style full">
|
|
<tbody> {foreach from=$maf1 item=maf1 }
|
|
<td nowrap style="width:160px;height:10px;font-size:10pt"> {$maf1.fahrer}</td>
|
|
<td nowrap style= "width:30px;height:10px;font-size:10pt"> <img src="/template/images/icon/{$maf1.icon}" width="12" height="12"/></td>
|
|
<td nowrap style="width:150px;height:10px;font-size:10pt"> {$maf1.bez}</td>
|
|
</tbody> {/foreach}
|
|
</table>
|
|
</section>
|
|
</div>
|
|
{/if}
|
|
<div id="rightmenu" class="panel panel-warning">
|
|
<header class="panel-heading"><h2 class="panel-title"><span style='font-size:12pt;line-height:100%; color:#4F81BD'>Kalender für {$datumstadt}</h2></header>
|
|
<section class="panel-body">
|
|
<table class="no-style full">
|
|
<tbody> {foreach from=$maf2 item=maf2 }
|
|
<td nowrap style="width:160px;height:10px;font-size:11pt"> {$maf2.fahrer}</td>
|
|
<td nowrap style= "width:30px;height:10px;font-size:11pt"> <img src="/template/images/icon/{$maf2.icon}" width="12" height="12"/></td>
|
|
<td nowrap style="width:150px;height:10px;font-size:11pt"> {$maf2.bez}</td>
|
|
</tbody> {/foreach}
|
|
</table>
|
|
</section>
|
|
</div>
|
|
|
|
|
|
|
|
<div id="rightmenu" class="panel panel-warning">
|
|
<header class="panel-heading"><span style='font-size:12pt;line-height:100%; color:#4F81BD'><spawn class="fa fa-sun-o fa-fw pull-left fa-spin fa-fw"></spawn><h2 class="panel-title"><span style='font-size:12pt;line-height:100%; color:#4F81BD'> verfügbare Transporter</h2></header>
|
|
<div class="panel-body">
|
|
<table class="no-style full" style="font-size:11pt">
|
|
<tbody> {foreach from=$frstrp item=frstrp }
|
|
{if ($frstrp.ort)==1}
|
|
<td nowrap style="width:80px;height:10px;font-size:11pt;color:#000000"> {$frstrp.car}</td>
|
|
{else}
|
|
<td nowrap style="width:80px;height:10px;font-size:11pt;color:#FF8000"> {$frstrp.car}</td>
|
|
{/if}
|
|
<td nowrap style="width:240px;height:10px;font-size:10pt"> {$frstrp.bez}</td>
|
|
</tbody> {/foreach}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- letzte Woche -->
|
|
<div id="rightmenu" class="panel panel-warning">
|
|
<header class="panel-heading"><h2 class="panel-title"><span style='font-size:12pt;line-height:100%; color:#4F81BD'>Einsatzplanung letzte Woche</h2></header>
|
|
<div class="panel-body">
|
|
<div id="lastweek" style="text-align:center;"></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</aside>
|
|
|
|
<!-- Sidebar End -->
|
|
|