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

206 lines
No EOL
12 KiB
Smarty

<div class="col-md-4" style="background-color:#333333; color:#115270">
<div class="panel-group" id="accordion">
{foreach from=$tag_tour item=tagtour}
{if $tagtour.menge>0}
<div class="panel panel-default" style="background-color:#222; color:#115270; border: 1px solid #115270;">
<div class="panel-heading" style="background-color:#115270; color:#ddd">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="{$tagtour.raute}">{$tagtour.name1} ({$tagtour.name2})</a></h4>
</div>
{if $tagtour.typ==$tagtour.col}
<div id={$tagtour.typ} class="panel-collapse collapse in">
{else}
<div id={$tagtour.typ} class="panel-collapse collapse">
{/if}
<div class="panel-body">
{foreach from=$tagtour.tdata item=tlist}
<table class="no-style full" style="color:#ddd;">
<thead>
<tr style="font-size:11pt">
{if $tlist.aktiv!=0}
<td nowrap style="width:100px"><a href="?s=v_touren&id={$tlist.id}" style="color:#ddd;">{$tlist.tour}</a></td>
<td nowrap style="color:#ddd;font-size:8pt">&nbsp;&nbsp;&nbsp;{$tlist.infotitel}</td>
{else}
<td nowrap style="width:100px"><a href="?s=v_touren&id={$tlist.id}" style="color:#666;">{$tlist.tour}</a></td>
<td nowrap align="left" style="color:#666;font-size:8pt">&nbsp;&nbsp;&nbsp;{$tlist.infotitel}</td>
{/if}
</tr>
</thead>
</table>
{/foreach}
</div>
</div>
</div>
{/if}
{/foreach}
</div>
</div>
<!-- ***** Tourenlisten rechte Seite ***** -->
<!-- rechte seite keine Auswahl -->
<div class="col-md-8" style="background-color:#333333; color:#115270">
{if $anzeige==0}
<div class="ibox">
<p nowrap>Info
<br> <span style='font-size:10pt;line-height:115%; color:#4F81BD'>
Bitte die Tour auw&auml;hlen die Sie bearbeiten m&ouml;chten.
</span>
</p>
</div>
<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// rechte seite -->
{else}
<p class="xbox" nowrap>
<span style='font-size:20pt'>{$tour.tour} </span>
<span style='font-size:10pt'>ID: {$tour.id} </span>
</span>
</p>
<div class="panel panel-default" style="background-color:#222; color:#115270; border-color: #115270">
<div class="panel-body" style="background-color:#222; color:#ddd">
<section>
<form action="" method="post">
<table class="no-style sortable full">
<tr style="line-height: 25px">
<td nowrap style="width:200px"><strong>Kurzbezeichnung:</strong></td>
<td><input type="text" name="tour" value="{$tour.tour}" style="width:220px;background-color:#222;border:none;border-bottom: 1px solid #666"/></td>
</tr>
<tr style="line-height: 25px">
<td nowrap="nowrap"><strong>Bezeichnung Dateninput:</strong></td>
<td><input type="text" name="tour2" value="{$tour.tour2}" style="width:220px;background-color:#222;border:none;border-bottom: 1px solid #666"/></td>
</tr>
<tr style="line-height: 25px">
<td nowrap="nowrap"><strong>Bezeichnung Druckerei:</strong></td>
<td><input type="text" name="tour3" value="{$tour.tour3}" style="width:220px;background-color:#222;border:none;border-bottom: 1px solid #666"/></td>
</tr>
<tr style="line-height: 25px">
<td nowrap="nowrap"><strong>Bezeichnung/Ziel:</strong></td>
<td><input type="text" name="infotitel" value="{$tour.infotitel}" style="width:220px;background-color:#222;border:none;border-bottom: 1px solid #666"/></td>
</tr>
<tr style="line-height: 25px">
<!-- --------------------------- Auftraggeber -->
<td nowrap="nowrap"><strong>Auftraggeber:</strong></td>
<td>
<select name="retyp" style="width:180px;background-color:#222;border:none;border-bottom: 1px solid #666">
{foreach from=$auftraggeber item=ageber}
{html_options values=$ageber.id output=$ageber.name selected=$tour.retyp}
{/foreach}
</select>
</td>
</tr>
<tr style="line-height: 25px">
<!-- --------------------------- typ -->
<td nowrap="nowrap"><strong>Tourzuordnung:</strong></td>
<td>
<select name="ttyp" style="width:180px;background-color:#222;border:none;border-bottom: 1px solid #666">
{foreach from=$auswahltyp item=atyp}
{html_options values=$atyp.tid output=$atyp.tname selected=$tour.typ}
{/foreach}
</select>
</td>
</tr>
<tr style="line-height: 25px">
<td nowrap="nowrap"><strong>Bedarf:</strong></td>
<td><input type="text" name="bedarf" value="{$tour.kaltyp}" style="width:30px;background-color:#222;border:none;border-bottom: 1px solid #666"/> 1-fest / 0-Abnahme/nach Bedarf</td>
</tr>
<tr style="line-height: 25px">
<td nowrap="nowrap"><strong>Netto:</strong></td>
<td><input type="text" name="preis" value="{$tour.preis}" style="width:60px;background-color:#222;border:none;border-bottom: 1px solid #666"/> Netto/ändert alte Bestände !</td>
</tr>
<tr style="line-height: 25px">
<td nowrap="nowrap"><strong>aktiv:</strong></td>
<td><input type="text" name="aktiv" value="{$tour.aktiv}" style="width:30px;background-color:#222;border:none;border-bottom: 1px solid #666"/> 1-aktiv / 0-inaktiv</td>
</tr>
<!-- --------------------------- fahrer -->
<tr style="line-height: 25px">
<td nowrap="nowrap"><strong>Stammfahrer:</strong></td>
<td>
<select name="efahrer" style="width:160px;background-color:#222;border:none;border-bottom: 1px solid #666">
{foreach from=$fahrer_array item=allfahrer}
{html_options values=$allfahrer.id output=$allfahrer.name selected=$tour.s_fahrer}
{/foreach}
</select>
</td>
</tr>
<!-- --------------------------- Fahrzeug -->
<tr style="line-height: 25px">
<td nowrap="nowrap"><strong>Stammfahrzeug:</strong></td>
<td>
<select name="eauto" style="width:160px;background-color:#222;border:none;border-bottom: 1px solid #666">
{foreach from=$auto_array item=allauto}
{html_options values=$allauto.id output=$allauto.kz selected=$tour.s_auto}
{/foreach}
</select>
</td>
</tr>
<tr style="line-height: 25px">
<td nowrap="nowrap"><strong>Startzeit:</strong></td>
<td><input type="text" name="kalzeit" value="{$tour.kalzeit}" placeholder="01:00" required style="width:60px;background-color:#222;border:none;border-bottom: 1px solid #666"/> Uhr</td>
</tr>
<tr style="line-height: 25px">
<td nowrap="nowrap"><strong>Exemplare:</strong></td>
<td><input type="text" name="exemplare" value="{$tour.exemplare}" style="width:60px;background-color:#222;border:none;border-bottom: 1px solid #666"/> St&uuml;ck</td>
</tr>
<tr style="line-height: 25px">
<td nowrap="nowrap"><strong>ca. Strecke:</strong></td>
<td><input type="text" name="km" value="{$tour.km}" style="width:60px;background-color:#222;border:none;border-bottom: 1px solid #666"/> km</td>
</tr>
<tr style="line-height: 25px">
<td><input type="submit" name="toursave" value="Speichern" ></td>
</tr>
</table>
</form>
</section>
</div>
{/if}
<!-- rechte seite -->
</div>
</section>
</div>
</section>
{literal}
<style>
.ibox {
background: #222222;
color: darkred;
font-size: 30px;
padding: 5px;
border: 1px solid #115270;
margin-top: -1px;
margin-bottom: 18px;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
width: 100%;
}
.xbox {
background: #222;
color: #115270;
padding-left: 10px;
border: 1px solid #115270;
margin-top: -1px;
margin-bottom: 18px;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
width: 100%;
}
</style>
<script>
</script>
{/literal}