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

367 lines
No EOL
21 KiB
Smarty

<!-- ************************ PKW -->
<div class="col-md-2" style='margin-top: -20px'>
<p nowrap align="center" style='font-size:14pt;background-color:orange;color:#fff'>aktive Fahrzeuge<p>
<p nowrap align="center" style='font-size:14pt;background-color:#115270;color:#fff'>PKW<p>
<table class="no style" style="width:100%">
<tbody style="font-size:13pt">
{foreach from=$madata1 item=madata}
<tr>
<td nowrap style="width:80%" onClick="javascript:open('?s=c_aktiv&id={$madata.id}','_self','')">{$madata.kz}</td>
<td nowrap align="right" style="width:20%">
<i class="fa fa-file-pdf-o fa-ls" aria-hidden="true" style='color:red' onClick="javascript:open('?s=c_pdf&id={$madata.id}', '_pdf', 'height=800,width=600,resizable=yes')"></i>
</td>
</tr>
{/foreach}
</tbody>
</table>
<!-- ************************ kleine Transporter / Hundefänger / Caddy -->
<p nowrap align="center" style='font-size:14pt;background-color:#115270;color:#fff'>Caddy etc.<p>
<table class="no style" style="width:100%">
<tbody style="font-size:13pt">
{foreach from=$madata2 item=madata}
<tr>
<td nowrap style="width:80%" onClick="javascript:open('?s=c_aktiv&id={$madata.id}','_self','')">{$madata.kz}</td>
<td nowrap align="right" style="width:20%">
<i class="fa fa-file-pdf-o fa-ls" aria-hidden="true" style='color:red' onClick="javascript:open('?s=c_pdf&id={$madata.id}', '_pdf', 'height=800,width=600,resizable=yes')"></i>
</td>
</tr>
{/foreach}
</tbody>
</table>
<!-- ************************ Transporter -->
<p nowrap align="center" style='font-size:14pt;background-color:#115270;color:#fff'>Transporter<p>
<table class="no style" style="width:100%">
<tbody style="font-size:13pt">
{foreach from=$madata3 item=madata}
<tr>
<td nowrap style="width:80%" onClick="javascript:open('?s=c_aktiv&id={$madata.id}','_self','')">{$madata.kz}</td>
<td nowrap align="right" style="width:20%">
<i class="fa fa-file-pdf-o fa-ls" aria-hidden="true" style='color:red' onClick="javascript:open('?s=c_pdf&id={$madata.id}', '_pdf', 'height=800,width=600,resizable=yes')"></i>
</td>
</tr>
{/foreach}
</tbody>
</table>
<!-- ************************ neues Fahrzeug -->
<div class="panel panel-default">
<div class="panel-heading"><h2 class="panel-title"><span style='font-size:14pt;color:#4F81BD'>Neues Fahrzeug anlegen</span></i></div>
<div class="panel-body">
<form action="" method="post">
<table class="no-style full">
<tr><td nowrap="nowrap"style="width:70px;"><strong>neu: </strong></td> <td><input type="text" name="kz" style="width:150px;" placeholder="Kennzeichen" /> </td></tr>
<tr>
<td nowrap="nowrap"style="width:70px;"><strong>KBA zu2: </strong></td> <td><input type="text" name="kb2" style="width:70px;" placeholder="0000" /> </td></tr>
<td nowrap="nowrap"style="width:70px;"><strong>KBA zu3: </strong></td> <td><input type="text" name="kb3" style="width:70px;" placeholder="000" />
</td>
</tr>
</table>
<input type="submit" name="neu" value="neu anlegen" />
</form>
</div>
</div>
<!-- -------------------------------- Spaltenwechsel -->
</div>
<!-- -------------------------------- Car uaswählen info -->
<div class="col-md-10" style='margin-top: -20px'>
{if $anzeige==0}
<p style='font-size:14pt;background-color:#115270;color:#fff'>Bitte das Fahrzeug auw&auml;hlen den Sie bearbeiten m&ouml;chten.</p>
{/if}
</div>
{if $anzeige>0}
<!-- MA Info Anzeigen -->
<!-- ****************************************************************** zum Fahrzeug-->
<form action="" method="post"><input type="hidden" name="vid" value="{$fahrzeug.id}" />
<div class="col-md-4">
<div class="panel panel-Primary">
<div class="panel-body">
<table class="table-hover">
<tbody>
<tr><td nowrap="nowrap"style="width:120px;">Kennzeichen:</td>
<td nowrap="nowrap"style="width:210px;"><input type="text" name="kz" value="{$fahrzeug.kz}" style="width:200px"/></td>
</tr>
<tr>
<td nowrap="nowrap"><strong>Hersteller:</strong></td>
<td nowrap="nowrap"style="width:210px;"><input type="text" name="hersteller" value="{$fahrzeug.hersteller}" style="width:200px"/></td></tr>
<tr>
<td nowrap="nowrap"><strong>Bezeichnung:</strong></td>
<td nowrap="nowrap"style="width:210px;"><input type="text" name="name" value="{$fahrzeug.name}" style="width:200px"/></td></tr>
<tr>
<td nowrap="nowrap"><strong>KBA zu2/3:</strong></td>
<td nowrap="nowrap"style="width:210px;"><input type="text" name="kba2" value="{$fahrzeug.kba2}" style="width:98px"/>
<input type="text" name="kba3" value="{$fahrzeug.kba3}" style="width:98px"/>
</td>
</tr>
<tr>
</tbody>
</table>
</div>
</div>
<!-- ****************************************************************** Kommunikation -->
<div class="panel panel-Primary">
<div class="panel-body">
<table class="table-hover">
<tbody>
<tr>
<td nowrap="nowrap"style="width:120px;">FahrgestellNr.:</td>
<td><input type="text" name="fin" value="{$fahrzeug.fin}" style="width:200px"/></td>
</tr>
<tr>
<td nowrap="nowrap"><strong>KFZ-Typ:</strong></td>
<td>
<select name="typ">
{foreach from=$typ item=type}
{html_options values=$type.id output=$type.bezeichnung selected=$fahrzeug.typ}
{/foreach}
</select>
</td>
</tr>
<tr>
<td nowrap="nowrap"><strong>Erstzulassung:</strong></td>
<td><input type="text" name="ezltag" value="{$fahrzeug.ezltag|string_format:"%02d"}" style="width:30px"/>
<input type="text" name="ezlmonat" value="{$fahrzeug.ezlmonat|string_format:"%02d"}" style="width:30px"/>
<input type="text" name="ezljahr" value="{$fahrzeug.ezljahr}" style="width:60px"/>
</td>
</tr>
<tr>
<td nowrap="nowrap"><strong>JB- Zulassung:</strong></td>
<td><input type="text" name="jbtag" value="{$fahrzeug.jbtag|string_format:"%02d"}" style="width:30px"/>
<input type="text" name="jbmonat" value="{$fahrzeug.jbmonat|string_format:"%02d"}" style="width:30px"/>
<input type="text" name="jbjahr" value="{$fahrzeug.jbjahr}" style="width:60px"/>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- ****************************************************************** -->
<div class="panel panel-Primary">
<div class="panel-body">
<table class="table-hover">
<tbody>
<tr>
<td style="width:120px" nowrap="nowrap">Ölsorte:</td>
<td>
<select name="osorte">
{foreach from=$oel item=ol}
{html_options values=$ol.id output=$ol.bezeichnung selected=$fahrzeug.osorte}
{/foreach}
</select>
</td>
<!--<td><input type="text" name="osorte" value="{$fahrzeug.osorte}" style="width:30px"/> 1-5w30 2-10w30 3-10w40 </td> -->
</tr>
<tr>
<td nowrap="nowrap"><strong>Reifen:</strong></td>
<td><input type="text" name="reifen" value="{$fahrzeug.reifen}" style="width:200px"/>
</td>
</tr>
<tr>
<td nowrap="nowrap"><strong>Hubraum:</strong></td>
<td><input type="text" name="ccm" value="{$fahrzeug.ccm}" style="width:80"/> ccm
</td>
</tr>
<tr>
<td nowrap="nowrap"><strong>KW/PS</strong></td>
<td><input type="text" name="kw" value="{$fahrzeug.kw}" style="width:80px"/> KW
<input type="text" name="ps" value="{$fahrzeug.ps}" style="width:80px"/> PS
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- ****************************************************************** -->
<div class="panel panel-Primary">
<div class="panel-body">
<table class="table-hover">
<input type="hidden" name="mid" value="{$mitarbeiter.id}" />
<tbody>
<tr>
<td style="width:120px" nowrap="nowrap">Z.Info:</td>
<td><input type="text" name="zfeld1" value="{$fahrzeug.zfeld1}" style="width:200px"/>
</td>
</tr>
<tr>
<td nowrap="nowrap"><strong>Z.Info:</strong></td>
<td><input type="text" name="zfeld2" value="{$fahrzeug.zfeld2}" style="width:200px"/>
</td>
</tr>
<tr>
<td nowrap="nowrap"><strong>Z.Info:</strong></td>
<td><input type="text" name="zfeld3" value="{$fahrzeug.zfeld3}" style="width:200px"/>
</td>
</tr>
<tr>
<td nowrap="nowrap"><strong>Z.Info:</strong></td>
<td><input type="text" name="zfeld4" value="{$fahrzeug.zfeld4}" style="width:200px"/>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- ****************************************************************** Sozialangaben -->
<div class="col-md-4">
<div class="panel panel-Primary">
<div class="panel-body">
<table class="table-hover">
<tbody>
<tr>
<td style="width:120px" nowrap="nowrap">aktiv:</td>
<td><input type="text" name="aktiv" value="{$fahrzeug.aktiv}" style="width:30px"/> 1-aktiv / 0-inaktiv
</td>
</tr>
<tr>
<td nowrap="nowrap"><strong>Besitzer:</strong></td>
<td>
<select name="besitz">
{foreach from=$besitzer item=bes}
{html_options values=$bes.id output=$bes.bezeichnung selected=$fahrzeug.besitz}
{/foreach}
</select>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- ****************************************************************** -->
<div class="panel panel-Primary">
<div class="panel-body">
<table class="table-hover">
<tbody>
<tr>
<td style="width:120px" nowrap="nowrap">LVZ-Karte:</td>
<td><input type="text" name="lvzkarte" value="{$fahrzeug.lvzkarte}" style="width:100px"/>
</td>
</tr>
<tr>
<td nowrap="nowrap"><strong>Tank-PIN:</strong></td>
<td><input type="text" name="tankpin" value="{$fahrzeug.tankpin}" style="width:100px"/>
</td>
</tr>
<tr>
<td nowrap="nowrap"><strong>Tank-Karte:</strong></td>
<td><input type="text" name="tankkarte" value="{$fahrzeug.tankkarte}" style="width:100px"/>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- ****************************************************************** -->
<div class="panel panel-Primary">
<div class="panel-body">
<table class="no-style sortable full">
<tbody>
<tr>
<td style="width:120px" nowrap="nowrap"><strong>HU / AU:</strong></td>
<td nowrap="nowrap">
<input type="text" name="humonat" value="{$fahrzeug.hudate|date_format:"%m"}" style="width:40px"/> /
<input type="text" name="hujahr" value="{$fahrzeug.hudate|date_format:"%Y"}" style="width:60px"/>
</td>
</tr>
<!-- ****************************************************************** -->
<tr>
<td style="width:120px" nowrap="nowrap"><strong>Sanikasten:</strong></td>
<td nowrap="nowrap">
<input type="text" name="sanimonat" value="{$fahrzeug.sanidate|date_format:"%m"}" style="width:40px"/> /
<input type="text" name="sanijahr" value="{$fahrzeug.sanidate|date_format:"%Y"}" style="width:60px"/>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- ****************************************************************** -->
<div class="panel panel-Primary">
<div class="panel-body">
<table class="table-hover">
<tbody>
<tr>
<td style="width:120px" nowrap="nowrap">SFK:</td>
<td><input type="text" name="sfk" value="{$fahrzeug.sfk}" style="width:100px"/>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- ****************************************************************** -->
<div class="panel panel-default">
<div class="panel-heading"><h2 class="panel-title">letze Kontrolle</h2></div>
<div class="panel-body">
<table class="table-hover">
<tbody>
<tr>
<td nowrap="nowrap"><strong>Schadenkontrolle:</strong></td>
<td><strong>{$fahrzeug.tag_kon_s|string_format:"%02d"}.{$fahrzeug.monat_kon_s|string_format:"%02d"}.{$fahrzeug.jahr_kon_s}</strong></td>
<td><strong>{$fahrzeug.kon_skm|string_format:"%06d"} km</strong></td>
</tr>
<tr>
<td nowrap="nowrap"><strong>&Ouml;lkontrolle:</strong></td>
<td><strong>{$fahrzeug.tag_kon_o|string_format:"%02d"}.{$fahrzeug.monat_kon_o|string_format:"%02d"}.{$fahrzeug.jahr_kon_o}</strong></td>
<td><strong>{$fahrzeug.kon_okm|string_format:"%06d"} km</strong></td>
</tr>
<tr>
<td nowrap="nowrap"><strong>Bremsanlage:</strong></td>
<td><strong>{$fahrzeug.tag_kon_b|string_format:"%02d"}.{$fahrzeug.monat_kon_b|string_format:"%02d"}.{$fahrzeug.jahr_kon_b}</strong></td>
<td><strong>{$fahrzeug.kon_bkm|string_format:"%06d"} km</strong></td>
</tr>
<tr>
<td nowrap="nowrap"><strong>Reifen:</strong></td>
<td><strong>{$fahrzeug.tag_kon_r|string_format:"%02d"}.{$fahrzeug.monat_kon_r|string_format:"%02d"}.{$fahrzeug.jahr_kon_r}</strong></td>
<td><strong>{$fahrzeug.kon_rkm|string_format:"%06d"} km</strong></td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- ************************** Spaltenwechsel -->
<!-- ****************************************************************** -->
<div class="panel panel-Primary">
<div class="panel-body">
<table class="table-hover">
<tbody>
<tr>
<td><strong>{$fahrzeug.tag_kon_o|string_format:"%02d"}.{$fahrzeug.humonat|string_format:"%02d"}.{$fahrzeug.hujahr}</strong></td>
<td><strong>{$fahrzeug.humonat|string_format:"%06d"} Uhr</strong></td>
<td><strong>{$fahrzeug.humonat}</strong></td>
</tr>
<tr>
<td><strong>01.{$fahrzeug.owmonat|string_format:"%02d"}.{$fahrzeug.owjahr}</strong></td>
<td><strong>oder</strong></td>
<td><strong>{$fahrzeug.owkm|string_format:"%06d"} km</td>
</tr>
<tr>
<td><strong>01.{$fahrzeug.zrmonat|string_format:"%02d"}.{$fahrzeug.zrjahr}</strong></td>
<td><strong>oder</strong></td>
<td><strong>{$fahrzeug.zrkm|string_format:"%06d"} km</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- ****************************************************************** Einstellungsart -->
<div class="panel panel-danger">
<div class="panel-body">
<table class="table-hover">
<tbody>
<tr>
<td><input style="margin-right: "type="submit" name="save" value="Fahrzeugdaten Speichern" /></td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- ****************************************************************** -->
</div>
</form>
{/if}