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

74 lines
2.7 KiB
Smarty

<form action="" method="post">
<p>
<input type="date" name="dasdatum" value="{$time|date_format:"%d.%m.%Y"}" />
<input type="submit" value="ok" />
Waehle einen Tag aus um die Kalender woche zu bestimmen.
</p>
</form>
<table class="datatable full" width="100%" >
<thead>
<tr>
<th style="width:60px">Datum</th>
<th style="width:80px">Tour</th>
<th style="width:60px">Stellzeit</th>
<th style="width:60px">Gewicht</th>
<th style="width:180px">Fahrer</th>
<th style="width:100px">Fahrzeug</th>
<th style="width:150px">Bemerkung</th>
<th style="width:5px">Rampe</th>
<th style="width:5px">Speichern</th>
<th style="width:5px">SMS</th>
</tr>
</thead>
<tbody>
{foreach from=$touren2 item=tour}
<tr>
<form action="" method="post">
<td> {$tour.tag}.{$tour.monat}.{$tour.jahr}</td>
<td><b>{$tour.tour}</td>
<td><input type="text" value="{$tour.zeit}" style="width:32px;" name="szeit[{$tour.id}]" placeholder="12:00"></td>
<td><input type="int" value="{$tour.gewicht}" style="width:32px;" name="gewicht[{$tour.id}]" placeholder="0" > kg</td>
<!-- --------------------------- fahrer -->
<td><center>
<select name="Fahrer[{$tour.id}]" 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="Fahrzeug[{$tour.id}]" 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><center><input type="text" value="{$tour.infotext}" style="width:150px;" name="infotext[{$tour.id}]"></center></td>
<td><input type="text" value="{$tour.rampe}" style="width:20px;" name="rampe[{$tour.id}]" /></td>
<td><center>
<input type="hidden" name="savetour" value="{$tour.id}"/>
<input type="submit" name="savetoursubmit" value="Speichern" >
</center></td>
<td><center>
<input type="submit" name="smssenden" value="SMS" >
</center></td>
</form>
</tr>
{$tour.kw}
{/foreach}
</tbody>
</table>