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

52 lines
1.9 KiB
Smarty

<br />
<br />
<table class="datatable paginate sortable full" width="100%" >
<thead>
<tr>
<th style="width:185px">Datum</th>
<th style="width:60px">Stellzeit</th>
<th style="width:180px">Fahrer</th>
<th style="width:100px">Fahrzeug</th>
<th style="width:300px">Bemerkung</th>
<th>&ensp;</th>
</tr>
</thead>
<tbody>
{foreach from=$touren2 item=tour}
<tr>
<form action="" method="post">
<td> {$tour.kw}.KW - {$tour.wt},{$tour.tag}</td>
<td> {$tour.zeit}</td>
<!-- --------------------------- fahrer -->
<td><center>
<select name="Fahrer[{$tour.id}]" style="width:180px;" >
<option value="{$tour.fahrer}" >{$tour.fahrer}</option>
{foreach from=$tour.fahrer_array item=allfahrer}
<option value="{$allfahrer.id}" >{$allfahrer.name}</option>
{/foreach}
</select>
</td>
<!-- --------------------------- Fahrzeug -->
<td><center>
<select name="Fahrzeug[{$tour.id}]" style="width:100px;" >
<option value="{$tour.auto}" >{$tour.kennz}</option>
{foreach from=$tour.auto_array item=allauto}
<option value="{$allauto.id}" >{$allauto.kz}</option>
{/foreach}
</select>
</td>
<td><center><input type="text" value="{$tour.infotext}" style="width:300px;" name="infotext[{$tour.id}]"></center></td>
<td><center>
<input type="hidden" name="savetour" value="{$tour.id}"/>
<input type="submit" name="savetoursubmit" value="Speichern" >
</center></td>
</form>
</tr>
{/foreach}
</tbody>
</table>