594 lines
30 KiB
Smarty
594 lines
30 KiB
Smarty
<script>var timercount = 0; </script>
|
|
<!-- --------------------------- Sms sendebutton -->
|
|
<form action="" method="post">
|
|
<b><i><span style='font-size:16pt;line-height:115%; color:#4F81BD'>Rundschau für die {$kw_aktuell}.KW </span></i></b>
|
|
<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>
|
|
<!-- -------------------------------------->
|
|
<div class="col-md-8">
|
|
<form action="" method="post">
|
|
<!-- --------------------------- RS-Land -->
|
|
{if ($atyp1)>0}
|
|
<div class="panel panel-default">
|
|
<header class="panel-heading"><h2 class="panel-title"><span style='font-size:12pt;line-height:100%; color:#4F81BD'>Rundschau Ausgabe Land - {$kw_aktuell}.KW - {$datumland}</span></h2>
|
|
</header>
|
|
<section class="panel-body">
|
|
<table class="table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th style="width:90px;font-size:8pt" align="left">Tour</th>
|
|
<th style="width:80px;font-size:8pt" align="left">Zeit</th>
|
|
<th style="width:80px;font-size:8pt" align="right">R.-Gewicht</th>
|
|
<th style="width:80px;font-size:8pt" align="right">G.-Gewicht</th>
|
|
<th style="width:80px;font-size:8pt" align="right">Pakete</th>
|
|
<th style="width:180px;font-size:8pt" >Fahrer</th>
|
|
<th style="width:100px;font-size:8pt" >Fahrzeug</th>
|
|
<th style="width:70px;font-size:8pt">SMS</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody> {foreach from=$rs_tour1 item=rs_tour1}
|
|
<td nowrap style="width:90px;font-size:11pt"> <b>{$rs_tour1.tour}</td>
|
|
<td nowrap style="width:80px;font-size:11pt"> <b>{$rs_tour1.zeit} Uhr</td>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$rs_tour1.gewicht4} kg</td> </right>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$rs_tour1.gewicht} kg</td> </right>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$rs_tour1.pakete} St. </td> </right>
|
|
|
|
<!-- --------------------------- fahrer -->
|
|
<td nowrap style="width:180px;font-size:11pt"><center>
|
|
<select name="list[{$rs_tour1.tid}][Fahrer]" id="user_{$rs_tour1.id}" style="width:160px;" onChange="save_user({$rs_tour1.id})">
|
|
{foreach from=$fahrer_array2 item=allfahrer}
|
|
{html_options values=$allfahrer.id output=$allfahrer.name selected=$rs_tour1.fahrer_id}
|
|
{/foreach}
|
|
</select>
|
|
|
|
</td>
|
|
|
|
<!-- --------------------------- Fahrzeug -->
|
|
<td nowrap style="width:100px;font-size:11pt"><center>
|
|
<select name="list[{$rs_tour1.tid}][Fahrzeug]" id="car_{$rs_tour1.id}" style="width:100px;" onChange="save_car({$rs_tour1.id})">
|
|
{foreach from=$rs_tour1.auto_array item=allauto}
|
|
{html_options values=$allauto.id output=$allauto.kz selected=$rs_tour1.auto_id}
|
|
{/foreach}
|
|
</select>
|
|
|
|
</td>
|
|
<input type="hidden" name="list[{$rs_tour1.tid}][tid]" value="{$rs_tour1.id}"/>
|
|
<td style="width:70px;font-size:11pt">
|
|
<div id="smsstatus{$rs_tour1.id}" style="text-align:center;">
|
|
{if $rs_tour1.smsstatus==0 && $rs_tour1.fahre_idr==0}
|
|
<button type='submit' name="smssenden" data-toggle="tooltip" title="SMS senden nicht möglich" ><i class='fa fa-times'></i></button>
|
|
{/if}
|
|
{if $rs_tour1.smsstatus==0 && $rs_tour1.fahrer_id>0}
|
|
<button type='submit' name="smssenden" value="{$rs_tour1.id}"><i class='fa fa-commenting-o'></i></button>
|
|
{/if}
|
|
{if $rs_tour1.smsstatus==1 && $rs_tour1.fahrer_id>0}
|
|
<button type='submit' name="smssenden" data-toggle="tooltip" title="in Warteschleife" value="{$rs_tour1.id}"><i class='fa fa-spinner fa-pulse'></i></button>
|
|
{/if}
|
|
{if $rs_tour1.smsstatus==2 && $rs_tour1.fahrer_id>0}
|
|
<button type='submit' name="smssenden" data-toggle="tooltip" data-placement="top" title="zugestellt am: {$rs_tour1.smsstatusdate|date_format:"%d.%m.%Y-%H:%M"} Uhr" value="{$rs_tour1.id}"><i class='fa fa-check-square-o'></i></button>
|
|
{/if}
|
|
{if $rs_tour1.smsstatus==5 && $rs_tour1.fahrer_id>0}
|
|
<button type='submit' name="smssenden" data-toggle="tooltip" title="Versand fehlgeschlagen !!" value="{$rs_tour1.id}"><i class='fa fa-ban text-danger'></i></button>
|
|
{/if}
|
|
{if $rs_tour1.smsstatus==8 && $rs_tour1.fahrer_id>0}
|
|
<button type='submit' name="smssenden" value="{$rs_tour1.id}"><i class='fa fa-share-square-o'></i></button>
|
|
{/if}
|
|
</div>
|
|
{literal}
|
|
<script>
|
|
timer = 5000+(timercount*1200);
|
|
var refresh_EDV{/literal}{$rs_tour1.id}{literal} = setInterval(function() {
|
|
$.ajax({
|
|
type : "POST",
|
|
url : 'ajax.php?s=smsstatus1&tpl',
|
|
cache : false,
|
|
data : {
|
|
id:{/literal}{$rs_tour1.id}{literal},
|
|
},
|
|
dataType : "html",
|
|
success : function(data){
|
|
$("#smsstatus{/literal}{$rs_tour1.id}{literal}").html(data);
|
|
var matches = data.match("zugestellt am:"); // findet das erst 'zug'
|
|
|
|
if(matches == 'zugestellt am:') {
|
|
clearInterval(refresh_EDV{/literal}{$rs_tour1.id}{literal});
|
|
}
|
|
},
|
|
})
|
|
},timer);
|
|
timercount++;
|
|
</script>
|
|
{/literal}
|
|
|
|
</td>
|
|
</tbody> {/foreach}
|
|
</table>
|
|
</div>
|
|
{/if}
|
|
<!-- --------------------------- RS-Nord -->
|
|
{if ($atyp2)>0}
|
|
<div class="panel panel-default">
|
|
<header 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>
|
|
</header>
|
|
<section class="panel-body">
|
|
|
|
<table class="table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th style="width:90px;font-size:8pt" align="left">Tour</th>
|
|
<th style="width:80px;font-size:8pt" align="left">Zeit</th>
|
|
<th style="width:80px;font-size:8pt" align="right">R.-Gewicht</th>
|
|
<th style="width:80px;font-size:8pt" align="right">G.-Gewicht</th>
|
|
<th style="width:80px;font-size:8pt" align="right">Pakete</th>
|
|
<th style="width:180px;font-size:8pt" >Fahrer</th>
|
|
<th style="width:100px;font-size:8pt" >Fahrzeug</th>
|
|
<th style="width:70px;font-size:8pt">SMS</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody> {foreach from=$rs_tour2 item=rs_tour2}
|
|
<td nowrap style="width:90px;font-size:11pt"> <b>{$rs_tour2.tour}</td>
|
|
<td nowrap style="width:80px;font-size:11pt"> <b>{$rs_tour2.zeit} Uhr</td>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$rs_tour2.gewicht4} kg</td> </right>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$rs_tour2.gewicht} kg</td> </right>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$rs_tour2.pakete} St. </td> </right>
|
|
<!-- --------------------------- fahrer -->
|
|
<td nowrap style="width:180px;font-size:11pt"><center>
|
|
<select name="list[{$rs_tour2.tid}][Fahrer]" id="user_{$rs_tour2.id}" style="width:160px;" onChange="save_user({$rs_tour2.id})">
|
|
{foreach from=$fahrer_array2 item=allfahrer}
|
|
{html_options values=$allfahrer.id output=$allfahrer.name selected=$rs_tour2.fahrer_id}
|
|
{/foreach}
|
|
</select>
|
|
|
|
</td>
|
|
|
|
<!-- --------------------------- Fahrzeug -->
|
|
<td nowrap style="width:100px;font-size:11pt"><center>
|
|
<select name="list[{$rs_tour2.tid}][Fahrzeug]" id="car_{$rs_tour2.id}" style="width:100px;" onChange="save_car({$rs_tour2.id})">
|
|
|
|
{foreach from=$rs_tour2.auto_array item=allauto}
|
|
{html_options values=$allauto.id output=$allauto.kz selected=$rs_tour2.auto_id}
|
|
{/foreach}
|
|
</select>
|
|
</td>
|
|
<input type="hidden" name="list[{$rs_tour2.tid}][tid]" value="{$rs_tour2.id}"/>
|
|
<td style="width:70px;font-size:11pt">
|
|
<div id="smsstatus{$rs_tour2.id}" style="text-align:center;">
|
|
{if $rs_tour2.smsstatus==0 && $rs_tour2.fahre_idr==0}
|
|
<button type='submit' name="smssenden" data-toggle="tooltip" title="SMS senden nicht möglich" ><i class='fa fa-times'></i></button>
|
|
{/if}
|
|
{if $rs_tour2.smsstatus==0 && $rs_tour2.fahrer_id>0}
|
|
<button type='submit' name="smssenden" value="{$rs_tour2.id}"><i class='fa fa-commenting-o'></i></button>
|
|
{/if}
|
|
{if $rs_tour2.smsstatus==1 && $rs_tour2.fahrer_id>0}
|
|
<button type='submit' name="smssenden" data-toggle="tooltip" title="in Warteschleife" value="{$rs_tour2.id}"><i class='fa fa-spinner fa-pulse'></i></button>
|
|
{/if}
|
|
{if $rs_tour2.smsstatus==2 && $rs_tour2.fahrer_id>0}
|
|
<button type='submit' name="smssenden" data-toggle="tooltip" data-placement="top" title="zugestellt am: {$rs_tour2.smsstatusdate|date_format:"%d.%m.%Y-%H:%M"} Uhr" value="{$rs_tour2.id}"><i class='fa fa-check-square-o'></i></button>
|
|
{/if}
|
|
{if $rs_tour2.smsstatus==5 && $rs_tour2.fahrer_id>0}
|
|
<button type='submit' name="smssenden" data-toggle="tooltip" title="Versand fehlgeschlagen !!" value="{$rs_tour2.id}"><i class='fa fa-ban text-danger'></i></button>
|
|
{/if}
|
|
{if $rs_tour2.smsstatus==8 && $rs_tour2.fahrer_id>0}
|
|
<button type='submit' name="smssenden" value="{$rs_tour2.id}"><i class='fa fa-share-square-o'></i></button>
|
|
{/if}
|
|
</div>
|
|
{literal}
|
|
<script>
|
|
timer = 5000+(timercount*1200);
|
|
var refresh_EDV{/literal}{$rs_tour2.id}{literal} = setInterval(function() {
|
|
$.ajax({
|
|
type : "POST",
|
|
url : 'ajax.php?s=smsstatus1&tpl',
|
|
cache : false,
|
|
data : {
|
|
id:{/literal}{$rs_tour2.id}{literal},
|
|
},
|
|
dataType : "html",
|
|
success : function(data){
|
|
$("#smsstatus{/literal}{$rs_tour2.id}{literal}").html(data);
|
|
var matches = data.match("zugestellt am:"); // findet das erst 'zug'
|
|
|
|
if(matches == 'zugestellt am:') {
|
|
clearInterval(refresh_EDV{/literal}{$rs_tour2.id}{literal});
|
|
}
|
|
},
|
|
})
|
|
},timer);
|
|
timercount++;
|
|
</script>
|
|
{/literal}
|
|
|
|
</td>
|
|
</tbody> {/foreach}
|
|
</table>
|
|
</div>
|
|
{/if}
|
|
<!-- --------------------------- RS-West -->
|
|
{if ($atyp3)>0}
|
|
<div class="panel panel-default">
|
|
<header 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>
|
|
</header>
|
|
<section class="panel-body">
|
|
|
|
<table class="table-hover-striped">
|
|
<thead>
|
|
<tr>
|
|
<th style="width:90px;font-size:8pt" align="left">Tour</th>
|
|
<th style="width:80px;font-size:8pt" align="left">Zeit</th>
|
|
<th style="width:80px;font-size:8pt" align="right">R.-Gewicht</th>
|
|
<th style="width:80px;font-size:8pt" align="right">G.-Gewicht</th>
|
|
<th style="width:80px;font-size:8pt" align="right">Pakete</th>
|
|
<th style="width:180px;font-size:8pt" >Fahrer</th>
|
|
<th style="width:100px;font-size:8pt" >Fahrzeug</th>
|
|
<th style="width:70px;font-size:8pt">SMS</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody> {foreach from=$rs_tour3 item=rs_tour2}
|
|
<td nowrap style="width:90px;font-size:11pt"> <b>{$rs_tour2.tour}</td>
|
|
<td nowrap style="width:80px;font-size:11pt"> <b>{$rs_tour2.zeit} Uhr</td>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$rs_tour2.gewicht4} kg</td> </right>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$rs_tour2.gewicht} kg</td> </right>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$rs_tour2.pakete} St. </td> </right>
|
|
<!-- --------------------------- fahrer -->
|
|
<td nowrap style="width:180px;font-size:11pt"><center>
|
|
<select name="list[{$rs_tour2.tid}][Fahrer]" id="user_{$rs_tour2.id}" style="width:160px;" onChange="save_user({$rs_tour2.id})">
|
|
{foreach from=$fahrer_array2 item=allfahrer}
|
|
{html_options values=$allfahrer.id output=$allfahrer.name selected=$rs_tour2.fahrer_id}
|
|
{/foreach}
|
|
</select>
|
|
|
|
</td>
|
|
|
|
<!-- --------------------------- Fahrzeug -->
|
|
<td nowrap style="width:100px;font-size:11pt"><center>
|
|
<select name="list[{$rs_tour2.tid}][Fahrzeug]" id="car_{$rs_tour2.id}" style="width:100px;" onChange="save_car({$rs_tour2.id})">
|
|
|
|
{foreach from=$rs_tour2.auto_array item=allauto}
|
|
{html_options values=$allauto.id output=$allauto.kz selected=$rs_tour2.auto_id}
|
|
{/foreach}
|
|
</select>
|
|
</td>
|
|
<input type="hidden" name="list[{$rs_tour2.tid}][tid]" value="{$rs_tour2.id}"/>
|
|
<td style="width:70px;font-size:11pt">
|
|
<div id="smsstatus{$rs_tour2.id}" style="text-align:center;">
|
|
{if $rs_tour2.smsstatus==0 && $rs_tour2.fahre_idr==0}
|
|
<button type='submit' name="smssenden" data-toggle="tooltip" title="SMS senden nicht möglich" ><i class='fa fa-times'></i></button>
|
|
{/if}
|
|
{if $rs_tour2.smsstatus==0 && $rs_tour2.fahrer_id>0}
|
|
<button type='submit' name="smssenden" value="{$rs_tour2.id}"><i class='fa fa-commenting-o'></i></button>
|
|
{/if}
|
|
{if $rs_tour2.smsstatus==1 && $rs_tour2.fahrer_id>0}
|
|
<button type='submit' name="smssenden" data-toggle="tooltip" title="in Warteschleife" value="{$rs_tour2.id}"><i class='fa fa-spinner fa-pulse'></i></button>
|
|
{/if}
|
|
{if $rs_tour2.smsstatus==2 && $rs_tour2.fahrer_id>0}
|
|
<button type='submit' name="smssenden" data-toggle="tooltip" data-placement="top" title="zugestellt am: {$rs_tour2.smsstatusdate|date_format:"%d.%m.%Y-%H:%M"} Uhr" value="{$rs_tour2.id}"><i class='fa fa-check-square-o'></i></button>
|
|
{/if}
|
|
{if $rs_tour2.smsstatus==5 && $rs_tour2.fahrer_id>0}
|
|
<button type='submit' name="smssenden" data-toggle="tooltip" title="Versand fehlgeschlagen !!" value="{$rs_tour2.id}"><i class='fa fa-ban text-danger'></i></button>
|
|
{/if}
|
|
{if $rs_tour2.smsstatus==8 && $rs_tour2.fahrer_id>0}
|
|
<button type='submit' name="smssenden" value="{$rs_tour2.id}"><i class='fa fa-share-square-o'></i></button>
|
|
{/if}
|
|
</div>
|
|
{literal}
|
|
<script>
|
|
timer = 5000+(timercount*1200);
|
|
var refresh_EDV{/literal}{$rs_tour2.id}{literal} = setInterval(function() {
|
|
$.ajax({
|
|
type : "POST",
|
|
url : 'ajax.php?s=smsstatus1&tpl',
|
|
cache : false,
|
|
data : {
|
|
id:{/literal}{$rs_tour2.id}{literal},
|
|
},
|
|
dataType : "html",
|
|
success : function(data){
|
|
$("#smsstatus{/literal}{$rs_tour2.id}{literal}").html(data);
|
|
var matches = data.match("zugestellt am:"); // findet das erst 'zug'
|
|
|
|
if(matches == 'zugestellt am:') {
|
|
clearInterval(refresh_EDV{/literal}{$rs_tour2.id}{literal});
|
|
}
|
|
},
|
|
})
|
|
},timer);
|
|
timercount++;
|
|
</script>
|
|
{/literal}
|
|
|
|
</td>
|
|
</tbody> {/foreach}
|
|
</table>
|
|
</div>
|
|
{/if}
|
|
<!-- --------------------------- RS-Süd -->
|
|
{if ($atyp4)>0}
|
|
<div class="panel panel-default">
|
|
<header 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>
|
|
</header>
|
|
<section class="panel-body">
|
|
|
|
<table class="table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th style="width:90px;font-size:8pt" align="left">Tour</th>
|
|
<th style="width:80px;font-size:8pt" align="left">Zeit</th>
|
|
<th style="width:80px;font-size:8pt" align="right">R.-Gewicht</th>
|
|
<th style="width:80px;font-size:8pt" align="right">G.-Gewicht</th>
|
|
<th style="width:80px;font-size:8pt" align="right">Pakete</th>
|
|
<th style="width:180px;font-size:8pt" >Fahrer</th>
|
|
<th style="width:100px;font-size:8pt" >Fahrzeug</th>
|
|
<th style="width:70px;font-size:8pt">SMS</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody> {foreach from=$rs_tour4 item=rs_tour2}
|
|
<td nowrap style="width:90px;font-size:11pt"> <b>{$rs_tour2.tour}</td>
|
|
<td nowrap style="width:80px;font-size:11pt"> <b>{$rs_tour2.zeit} Uhr</td>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$rs_tour2.gewicht4} kg</td> </right>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$rs_tour2.gewicht} kg</td> </right>
|
|
<td nowrap style="width:80px;font-size:11pt" align="right"> <b>{$rs_tour2.pakete} St. </td> </right>
|
|
<!-- --------------------------- fahrer -->
|
|
<td nowrap style="width:180px;font-size:11pt"><center>
|
|
<select name="list[{$rs_tour2.tid}][Fahrer]" id="user_{$rs_tour2.id}" style="width:160px;" onChange="save_user({$rs_tour2.id})">
|
|
{foreach from=$fahrer_array2 item=allfahrer}
|
|
{html_options values=$allfahrer.id output=$allfahrer.name selected=$rs_tour2.fahrer_id}
|
|
{/foreach}
|
|
</select>
|
|
|
|
</td>
|
|
|
|
<!-- --------------------------- Fahrzeug -->
|
|
<td nowrap style="width:100px;font-size:11pt"><center>
|
|
<select name="list[{$rs_tour2.tid}][Fahrzeug]" id="car_{$rs_tour2.id}" style="width:100px;" onChange="save_car({$rs_tour2.id})">
|
|
|
|
{foreach from=$rs_tour2.auto_array item=allauto}
|
|
{html_options values=$allauto.id output=$allauto.kz selected=$rs_tour2.auto_id}
|
|
{/foreach}
|
|
</select>
|
|
</td>
|
|
<input type="hidden" name="list[{$rs_tour2.tid}][tid]" value="{$rs_tour2.id}"/>
|
|
<td style="width:70px;font-size:11pt">
|
|
<div id="smsstatus{$rs_tour2.id}" style="text-align:center;">
|
|
{if $rs_tour2.smsstatus==0 && $rs_tour2.fahre_idr==0}
|
|
<button type='submit' name="smssenden" data-toggle="tooltip" title="SMS senden nicht möglich" ><i class='fa fa-times'></i></button>
|
|
{/if}
|
|
{if $rs_tour2.smsstatus==0 && $rs_tour2.fahrer_id>0}
|
|
<button type='submit' name="smssenden" value="{$rs_tour2.id}"><i class='fa fa-commenting-o'></i></button>
|
|
{/if}
|
|
{if $rs_tour2.smsstatus==1 && $rs_tour2.fahrer_id>0}
|
|
<button type='submit' name="smssenden" data-toggle="tooltip" title="in Warteschleife" value="{$rs_tour2.id}" value="{$rs_tour2.id}"><i class='fa fa-spinner fa-pulse'></i></button>
|
|
{/if}
|
|
{if $rs_tour2.smsstatus==2 && $rs_tour2.fahrer_id>0}
|
|
<button type='submit' name="smssenden" data-toggle="tooltip" data-placement="top" title="zugestellt am: {$rs_tour2.smsstatusdate|date_format:"%d.%m.%Y-%H:%M"} Uhr" value="{$rs_tour2.id}"><i class='fa fa-check-square-o'></i></button>
|
|
{/if}
|
|
{if $rs_tour2.smsstatus==5 && $rs_tour2.fahrer_id>0}
|
|
<button type='submit' name="smssenden" data-toggle="tooltip" title="Versand fehlgeschlagen !!" value="{$rs_tour2.id}"><i class='fa fa-ban text-danger'></i></button>
|
|
{/if}
|
|
{if $rs_tour2.smsstatus==8 && $rs_tour2.fahrer_id>0}
|
|
<button type='submit' name="smssenden" value="{$rs_tour2.id}"><i class='fa fa-share-square-o'></i></button>
|
|
{/if}
|
|
</div>
|
|
{literal}
|
|
<script>
|
|
timer = 5000+(timercount*2000);
|
|
var refresh_EDV{/literal}{$rs_tour2.id}{literal} = setInterval(function() {
|
|
$.ajax({
|
|
type : "POST",
|
|
url : 'ajax.php?s=smsstatus1&tpl',
|
|
cache : false,
|
|
data : {
|
|
id:{/literal}{$rs_tour2.id}{literal},
|
|
},
|
|
dataType : "html",
|
|
success : function(data){
|
|
$("#smsstatus{/literal}{$rs_tour2.id}{literal}").html(data);
|
|
var matches = data.match("zugestellt am:"); // findet das erst 'zug'
|
|
if(matches == 'zugestellt am:') {
|
|
clearInterval(refresh_EDV{/literal}{$rs_tour2.id}{literal});
|
|
}
|
|
},
|
|
})
|
|
},timer);
|
|
timercount++;
|
|
</script>
|
|
{/literal}
|
|
|
|
|
|
</td>
|
|
</tbody> {/foreach}
|
|
</table>
|
|
</div>
|
|
{/if}
|
|
<!-- <input type="submit" class="pull-right" class="btn btn-default" value="speichern" name="testsave"> -->
|
|
</form>
|
|
</div>
|
|
<!-- -------------------------------------->
|
|
<!-- Sidebar -->
|
|
<aside class="col-md-4">
|
|
{if ($atyp1)>0}
|
|
<div id="rightmenu" class="panel panel-default">
|
|
<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-default">
|
|
<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:10pt"> {$maf2.fahrer}</td>
|
|
<td nowrap style= "width:30px;height:10px;font-size:10pt"> <img src="/template/images/icon/{$maf2.icon}" width="12" height="12"/></td>
|
|
<td nowrap style="width:150px;height:10px;font-size:10pt"> {$maf2.bez}</td>
|
|
</tbody> {/foreach}
|
|
</table>
|
|
</section>
|
|
</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="trp" style="font-size:11pt">
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div id="rightmenu" class="panel panel-default">
|
|
<header class="panel-heading"><h2 class="panel-title"><span style='font-size:12pt;line-height:100%; color:#4F81BD'>Einsatzplanung letzte Woche</h2></header>
|
|
<section class="panel-body">
|
|
<section>
|
|
<table class="no-style full">
|
|
<tbody> {foreach from=$last item=last }
|
|
<td nowrap style= "width:90px;height:10px;font-size:10pt"> {$last.tour}</td>
|
|
<td nowrap style="width:170px;height:10px;font-size:10pt"> {$last.fahrer}</td>
|
|
<td nowrap style="width:100px;height:10px;font-size:10pt"> {$last.kennz}</td>
|
|
</tbody> {/foreach}
|
|
</table>
|
|
</section>
|
|
</div>
|
|
|
|
|
|
|
|
</aside>
|
|
|
|
<!-- Sidebar End -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script> var tagheute = '{$datum_unix|date_format:"%Y-%m-%d"}';</script>
|
|
{literal}
|
|
<script>
|
|
//-----------------------------------------------------
|
|
function load_free_cars(tourID,date) {
|
|
$.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=prundschau&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);
|
|
|
|
function save_user(tourID) {
|
|
//alert($("#car_"+tourID).val());
|
|
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "ajax.php?s=prundschau&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)
|
|
}
|
|
});
|
|
}
|
|
$(document).ready(function(){
|
|
$('[data-toggle="tooltip"]').tooltip();
|
|
});
|
|
</script>
|
|
{/literal}
|