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

72 lines
2.8 KiB
Smarty

<form action="" method="post">
<b> Wähle eine Tour:
<select name="Tourwahl" style="width:120<px;" >
{foreach from=$touren item=alltour}
{html_options values=$alltour.id output=$alltour.tour selected=$a_tour}
{/foreach}
</select>
<select name="monate" style="width:180px;" >
{html_options values=$monate.id output=$monate.name selected=$monate.monat}
</select>
<select name="jahre" style="width:180px;" >
{html_options values=$jahre.id output=$jahre.name selected=$jahre.jahr}
</select>
<input type="submit" name="tourwahl" value="OK" >
</form>
<br />
<table class="datatable full" >
<thead>
<tr>
<th style="width:30px">Datum</th>
<th style="width:70px">Tour</th>
<th style="width:60px">Fahrer</th>
<th style="width:60px">Fahrzeug</th>
<th style="width:200px">Bemerkung</th>
<th style="width:5px">SMS</th>
</tr>
</thead>
<tbody>
{foreach from=$tag_tour2 item=tour}
<tr>
<form action="" method="post">
<td><b> {$tour.tag}.{$tour.monat}.{$tour.jahr}</td>
<td><b> {$tour.tour}</td>
<!-- --------------------------- fahrer -->
<td><center>
<select name="list[{$tour.tid}][Fahrer]" style="width:180px;" >
{foreach from=$tour.fahrer_array item=allfahrer}
{html_options values=$allfahrer.id output=$allfahrer.name selected=$tour.fahrer_id}
{/foreach}
</select>
</td>
<!-- --------------------------- Fahrzeug -->
<td><center>
<select name="list[{$tour.tid}][Fahrzeug]" style="width:100px;" >
{foreach from=$tour.auto_array item=allauto}
{html_options values=$allauto.id output=$allauto.kz selected=$tour.auto_id}
{/foreach}
</select>
</td>
<td><input type="text" value="{$tour.infotext}" style="width:300px;" name="list[{$tour.tid}][infotext]"></center></td>
<td><center>
<input type="hidden" name="savetour" value="{$tour.tid}"/>
<input type="submit" name="smssenden" value="SMS" >
</center></td>
<input type="hidden" name="list[{$tour.tid}][tid]" value="{$tour.id}"/>
<input type="hidden" name="list[{$tour.tid}][tournr]" value="{$tour.tournr}"/>
<input type="hidden" name="list[{$tour.tid}][amonat]" value="{$monate.monat}"/>
<input type="hidden" name="list[{$tour.tid}][ajahr]" value="{$jahre.jahr}"/>
</tr>
{/foreach}
<input type="submit" name="testsave" value="kompl. Liste Speichern" >
</form>
</tbody>
</table>