281 lines
No EOL
11 KiB
Smarty
281 lines
No EOL
11 KiB
Smarty
{literal}
|
|
|
|
<script type="text/javascript">
|
|
|
|
$.ajax({
|
|
type : "POST",
|
|
url : 'ajax.php?s=car_plan&tpl',
|
|
cache : false,
|
|
data : {
|
|
},
|
|
dataType : "html",
|
|
success : function(data){
|
|
$("#carplan").html(data);
|
|
},
|
|
});
|
|
|
|
|
|
var refreshId = setInterval(function() {
|
|
$.ajax({
|
|
type : "POST",
|
|
url : 'ajax.php?s=car_plan&tpl',
|
|
cache : false,
|
|
data : {
|
|
},
|
|
dataType : "html",
|
|
success : function(data){
|
|
$("#carplan").html(data);
|
|
},
|
|
})
|
|
}, 3600);
|
|
</script>
|
|
{/literal}
|
|
|
|
<!-- --------------------------- Sms sendebutton -->
|
|
<form action="" method="post">
|
|
<b><i><span style='font-size:16pt;line-height:115%; color:#4F81BD'>MPV-Werbung 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="row">
|
|
<div class="col-md-8">
|
|
<form action="" method="post">
|
|
<!-- --------------------------- 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'>Werbung Ausgabe Land - {$kw_aktuell}.KW - {$datumland}</span></h2>
|
|
</header>
|
|
<section class="panel-body">
|
|
|
|
|
|
<table class="table-hover">
|
|
|
|
<tbody> {foreach from=$tour1 item=rs_tour1}
|
|
<td nowrap> <b>{$rs_tour1.tour}</td>
|
|
<td nowrap> <b>{$rs_tour1.zeit} Uhr</td>
|
|
<td nowrap align="right"> <b>{$rs_tour1.gewicht} kg</td> </right>
|
|
|
|
<td nowrap><center>
|
|
<select name="list[{$rs_tour1.tid}][Fahrer]" style="width:150px;" >
|
|
{foreach from=$fahrer_array1 item=allfahrer}
|
|
{html_options values=$allfahrer.id output=$allfahrer.name selected=$rs_tour1.fahrer_id}
|
|
{/foreach}
|
|
</select>
|
|
|
|
</td>
|
|
|
|
|
|
<td nowrap><center>
|
|
<select name="list[{$rs_tour1.tid}][Fahrzeug]" style="width:100px;" >
|
|
|
|
{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_tour2.tid}][tid]" value="{$rs_tour2.id}"/>
|
|
<td style="width:70px;font-size:11pt"> <center>
|
|
|
|
<input type="hidden" name="list[{$rs_tour2.tid}][tid]" value="{$rs_tour2.id}"/>
|
|
<input type="hidden" name="list[{$rs_tour2.tid}][tourid]" value="{$rs_tour2.tourid}"/>
|
|
{if $rs_tour2.smsid==0 && $rs_tour2.fahrer_id>0}
|
|
<input type="image" name="smssenden" value="{$rs_tour2.id}" src="template/images/icon/sms2.png"/>{/if}
|
|
{if $rs_tour2.smsid>0 && $rs_tour2.fahrer_id>0}
|
|
<input type="image" name="smssenden" value="{$rs_tour2.id}" src="template/images/icon/okay.png"/>{/if}
|
|
{if $rs_tour2.fahrer_id==0}
|
|
<input type="image" name="smssenden" value="{$rs_tour2.id}" src="template/images/icon/nosms.png"/>{/if}
|
|
</center>
|
|
</td>
|
|
</tbody> {/foreach}
|
|
</table>
|
|
</div>
|
|
{/if}
|
|
<!-- --------------------------- Stadt -->
|
|
{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'>EXXTRA Stadt - {$kw_aktuell}.KW - {$datumstadt}</span></h2>
|
|
</header>
|
|
<section class="panel-body">
|
|
|
|
<table class="table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th style="width:90px;font-size:11pt" align="left">Tour</th>
|
|
<th style="width:80px;font-size:11pt" align="left">Zeit</th>
|
|
<th style="width:80px;font-size:11pt" align="right">R.-Gewicht</th>
|
|
<th style="width:80px;font-size:11pt" align="right">G.-Gewicht</th>
|
|
<th style="width:80px;font-size:11pt" align="right">Pakete</th>
|
|
<th style="width:200px;font-size:11pt" >Fahrer</th>
|
|
<th style="width:140px;font-size:11pt" >Fahrzeug</th>
|
|
<th style="width:30px;font-size:11pt">SMS</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody> {foreach from=$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]">
|
|
{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]">
|
|
|
|
{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"> <center>
|
|
|
|
<input type="hidden" name="list[{$rs_tour2.tid}][tid]" value="{$rs_tour2.id}"/>
|
|
<input type="hidden" name="list[{$rs_tour2.tid}][tourid]" value="{$rs_tour2.tourid}"/>
|
|
{if $rs_tour2.smsid==0 && $rs_tour2.fahrer_id>0}
|
|
<input type="image" name="smssenden" value="{$rs_tour2.id}" src="template/images/icon/sms2.png"/>{/if}
|
|
{if $rs_tour2.smsid>0 && $rs_tour2.fahrer_id>0}
|
|
<input type="image" name="smssenden" value="{$rs_tour2.id}" src="template/images/icon/okay.png"/>{/if}
|
|
{if $rs_tour2.fahrer_id==0}
|
|
<input type="image" name="smssenden" value="{$rs_tour2.id}" src="template/images/icon/nosms.png"/>{/if}
|
|
</center>
|
|
</td>
|
|
</tbody> {/foreach}
|
|
</table>
|
|
</div>
|
|
{/if}
|
|
|
|
|
|
<footer class="panel-footer">
|
|
|
|
<input type="submit" class="pull-right" class="btn btn-default" value="speichern" name="testsave">
|
|
</form>
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
|
|
<!-- -------------------------------------->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Sidebar -->
|
|
|
|
<aside class="col-md-4">
|
|
<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">
|
|
<dl>
|
|
<section>
|
|
<table class="no-style full">
|
|
<tbody> {foreach from=$maf2 item=maf2 }
|
|
<td nowrap style="width:160px;font-size:11pt"> {$maf2.fahrer}</td>
|
|
<td nowrap style="width:30px;font-size:11pt"> <img src="/template/images/icon/{$maf2.icon}" width="16" height="16"/></td>
|
|
<td nowrap style="width:150px;font-size:11pt"> {$maf2.bez}</td>
|
|
</tbody> {/foreach}
|
|
</table>
|
|
</dl>
|
|
</section>
|
|
</div>
|
|
{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">
|
|
<dl>
|
|
<section>
|
|
<table class="no-style full">
|
|
<tbody> {foreach from=$maf1 item=maf1 }
|
|
<td nowrap style="width:160px;font-size:11pt"> {$maf1.fahrer}</td>
|
|
<td nowrap style="width:30px;font-size:11pt"> <img src="/template/images/icon/{$maf1.icon}" width="16" height="16"/></td>
|
|
<td nowrap style="width:150px;font-size:11pt"> {$maf1.bez}</td>
|
|
</tbody> {/foreach}
|
|
</table>
|
|
</dl>
|
|
</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'>Einsatzplanung letzte Woche</h2></header>
|
|
<section class="panel-body">
|
|
<dl>
|
|
<section>
|
|
<table class="table-condensed">
|
|
<tbody> {foreach from=$last item=last }
|
|
<td nowrap style="font-size:10pt;line-height:70%;width:90px"> {$last.tour}</td>
|
|
<td nowrap style="font-size:10pt;line-height:70%;width:160px"> {$last.fahrer}</td>
|
|
<td nowrap style="font-size:10pt;line-height:70%;width:90px"> {$last.kennz}</td>
|
|
</tbody> {/foreach}
|
|
</table>
|
|
</dl>
|
|
</section>
|
|
</div>
|
|
|
|
|
|
|
|
</aside>
|
|
|
|
<!-- Sidebar End -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
<div id="push"></div>
|
|
</section> |