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

144 lines
6.3 KiB
Smarty

<form action="" method="post" id="loadzeile">
{if $tour.aktiv==0}
<td nowrap style="width:110px;color:bisque">{$tour.tour}</td>
{else}
<td nowrap style="width:110px;">{$tour.tour}</td>
{/if}
<!-- --------------------------- fahrer hinweis -->
{if $tour.stamm_info==0} <td style="width:20px"> </td> {/if}
{if $tour.stamm_info==1} <td align="left" data-toggle="tooltip" title={$tour.stamminfo}><i class="fad fa-info" style="color:red;font-size: 14px"</i> </td> {/if}
{if $tour.stamm_info==2} <td align="left" data-toggle="tooltip" title={$tour.stamminfo}><i class="far fa-info" style="color:orange"></i></td> {/if}
<!-- ------------------------------------------
<td style="width:20px"> {$tour.fahrer_id} </td>
-->
{if $tour.fahrer_id==0}
<td style="width:20px"><i class="fad fa-times-square" style="background-color:red;color:#fff"></i></td>
{elseif $tour.fahrer_ok==0}
<td style="width:20px"><i class="fad fa-info-square" style="background-color:#FF2222;color:#fff"></i></td>
{elseif $tour.fahrer_ok==2}
<td style="width:20px"><i class="fad fa-question-square" style="background-color:#FF9900;color:#fff"></i></td>
{elseif $tour.fahrer_ok==3}
<td style="width:20px"><i class="fad fa-check" style="background-color:#99FF00;color:#fff"></i></td>
{else} <td style="width:20px"> </td>
{/if}
<!-- --------------------------- fahrer mit anwesenheitsprüfung
<td nowrap id="ma_wahl{$tour.id},{$tour.typ},{$tour.fahrer_id}" style="width:165px;font-size:10pt;"></td> -->
<!-- --------------------------- fahrer mit anwesenheitsprüfung -->
<td nowrap style="width:195px;">
<!-- --------------------------- -->
<!-- --------------------------- -->
<select name="Fahrer[{$tour.id}]" id="user_{$tour.id}"
onChange="save_user({$tour.id})";>
{if $tour.typ== 3}
{foreach from=$fahrer_array3 item=allfahrer}
{html_options values=$allfahrer.id selected=$tour.fahrer_id output=$allfahrer.name options2=$allfahrer.name}
{/foreach}
{/if}
{if $tour.typ== 4}
{foreach from=$fahrer_array4 item=allfahrer}
<option value="{$allfahrer.id}" {if $tour.fahrer_id==$allfahrer.id} selected="selected"{/if} style="color: darkgray">{$allfahrer.name}</option>{/foreach}
{/if}
{if $tour.typ== 5}
{foreach from=$fahrer_array5 item=allfahrer}
<option value="{$allfahrer.id}" {if $tour.fahrer_id==$allfahrer.id} selected="selected"{/if} style="color: darkgray">{$allfahrer.name}</option>{/foreach}
{/if}
{if $tour.typ== 17}
{foreach from=$fahrer_array17 item=allfahrer}
<option value="{$allfahrer.id}" {if $tour.fahrer_id==$allfahrer.id} selected="selected"{/if} style="color: darkgray">{$allfahrer.name}</option>{/foreach}
{/if}
<!-- --------------------------- -->
</select>
</td>
<!-- --------------------------- Fahrzeug -->
<td nowrap style="width:110px;">
<select name="Fahrzeug[{$tour.id}]" id="car_{$tour.id}" data-width="100px"
{if $tour.auto_id!=0} style="width:90px;border:none;border-bottom: 1px solid "
{else} style="color: red"
{/if}
onChange="save_car({$tour.id})" data-hight="10px">
{foreach from=$auto_array item=allauto}
{html_options values=$allauto.id selected=$tour.auto_id output=$allauto.kz options2=$allauto.kz }
{/foreach}
</select>
{literal}
</script>
{/literal}
</td>
<!-- --------------------------- Zusatzinfo neu -->
<td nowrap id="ma_gh{$tour.id}" style="width:160px; font-size:8pt;background-color:#222222;color: #dcdcdc">
<input type="text" value="{$tour.infotext}" id="info_{$tour.id}"
style="width:155px;height:22px;background-color:#222222;border:none;border-bottom: 1px solid #444444" name="infotext[{$tour.id}]"
onChange="save_info({$tour.id})">
</td>
<!--
<td nowrap id="ma_gh{$tour.id}" style="width:117px;font-size:7pt;">
{if $tour.stamm_info==1}
<div style="text-align: right; width:115px;font-size:8pt;color:#FF2222">{$tour.stamminfo}</div>
{/if}
{if $tour.stamm_info==2}
<div style="text-align: right; width:115px;font-size:8pt;color:#FF9900">{$tour.stamminfo}</div>
{/if}
</td>
-->
<!-- SMS Status !!!!! ------------------------------------- -->
<td nowrap align="center" style="width:30px" id="smscheck{$tour.tourid}">
<i class="fal fa-comment-alt fa-1x" style="color:#999" ></i>
</td>
<!-- Infobereich !!!!! ------------------------------------- -->
<td nowrap align="center" style="width:20px">
<i class="fad fa-info fa-1x" style="color:cornflowerblue;font-size: 14px" onclick="tinfo({$tour.tourid})"></i>
</td>
<!-- SMS senden Änderung ------------------------------------- -->
<td nowrap align="center" style="width:20px; font-size:13pt;"
onclick="window.location='?s=pnacht&jahr={$jahr}&monat={$monat}&tag={$tag}&sms={$tour.id}'";>
<i class="fal fa-sms" style="color:#999" >
</td>
{if $tour.zusatz==0}
<!-- 2. Tour hinzufügen ------------------------------------- -->
<td nowrap align="center" style="width:30px; font-size:13pt;"
onclick="window.location='?s=pnacht&jahr={$jahr}&monat={$monat}&tag={$tag}&dazu={$tour.tid}&kw={$tour.kw}'";>
<i class="fal fa-plus" style="color:#999" >
</td>
{/if}
{if $tour.zusatz==1}
<!-- 2. Tour löschen ------------------------------------- -->
<td nowrap align="center" style="width:30px; font-size:13pt;"
onclick="window.location='?s=pnacht&jahr={$jahr}&monat={$monat}&tag={$tag}&daweg={$tour.id}&kw={$tour.kw}'";>
<i class="fas fa-times" style="color:#444" >
</td>
{/if}
{if $tour.zusatz==2}
<!-- 2. Tour hinzufügen ------------------------------------- -->
<td nowrap align="center" style="width:30px; font-size:13pt;">
<i class="fal fa-minus" style="color:#444" >
</td>
{/if}
</tr>
{/foreach}
</tbody>
</table>