2023-04-25 13:25:59 +02:00

276 lines
12 KiB
HTML
Executable File

{if $action == ''}
<html>
<head>
<link type="text/css" rel="stylesheet" href="templates/{$global_template}/css/styles_refill.css">
</head>
<body>
<br />
<br />
<div class="header">
<div>
<div>{$fz_titel}</div>
</div>
</div>
<form action="?action=lbfzerf" method='post' name='erfassen'>
<div class="pat_list_box">
<fieldset>
<legend>
<b>Funktion auswählen</b>
</legend>
<br />
<br />
<p align="center">
<select size="10" id='funktion' name='funktion'>
{section name=table_data loop=$table_data}
<option value="{$table_data[table_data].kfid}">{$table_data[table_data].bezeichnung}&nbsp;&nbsp;&nbsp;&nbsp;</option>
{/section}
</select>
<br />
<br />
<br />
<input type="submit" name="senden" value="Weiter">
</p>
<br />
</fieldset>
</form>
<br />
</div>
</body>
</html>
{/if}
{if $action == 'lbfzerf'}
<html>
<head>
<link type="text/css" rel="stylesheet" href="templates/{$global_template}/css/styles_refill.css">
<!-- Kalender Beginn // -->
<link rel='stylesheet' href='./datepicker/dynCalendar.css' type='text/css' media='screen'>
<script src='./datepicker/browserSniffer.js' type='text/javascript' language='javascript'></script>
<script src='./datepicker/dynCalendar.js' type='text/javascript' language='javascript'></script>
<script type='text/javascript'>
{literal}
<!--
// Calendar callback. When a date is clicked on the calendar
// this function is called so you can do as you want with it
function calendarCallback(date, month, year, pos)
{
if(date<10){date='0'+date;}
if(month<10){month='0'+month;}
date_tag = date;
date_mon = month;
date_jahr = year;
document.getElementById('tag'+pos).value = date_tag;
document.getElementById('mon'+pos).value = date_mon;
document.getElementById('jahr'+pos).value = date_jahr;
}
// -->
{/literal}
</script>
<!-- Kalender Ende // -->
<script language='JavaScript' type='text/javascript'>
<!--
function start() {
if (document.adm_anleg)
document.adm_anleg.atelier.focus();
return false;
}
//-->
</script>
</head>
<body onload="start();">
<br />
<br />
<div class="header">
<div>
<div>{$fz_titel}</div>
</div>
</div>
<div class="pat_list_box">
<form action=?action=save method="POST" name="adm_anleg">
<fieldset>
<legend><b>Erfassung</b></legend>
<br>
<table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="100%" id="AutoNumber1" height="194">
<tr>
<td width="40%">
<b>{$fz_field_betrag}*</b>
</td>
<td width="60%">
<input align="right" type="number" min="0.00" step="0.01" name="wert" value='{$fz_wert}'> &euro;
</td>
</tr>
<tr>
<td width="40%">
<b>{$fz_field_starttag}*</b>
</td>
<td width="60%">
<input type='text' name='tag1' id='tag1' value='{$fz_startdat_tag}' size=1>.<input type='text' name='mon1' id='mon1' value='{$fz_startdat_mon}' size=1>.<input type='text' name='jahr1' id='jahr1' value='{$fz_startdat_jahr}' size=3>
<script language='JavaScript' type='text/javascript'>
<!--
startdat = new dynCalendar('startdat', 'calendarCallback', './datepicker/images/', '', '1');
//-->
</script>
</td>
</tr>
<tr>
<td width="40%">
<b>{$fz_field_endtag}</b>
</td>
<td width="60%">
<input type='text' name='tag3' id='tag3' value='{$fz_enddat_tag}' size=1>.<input type='text' name='mon3' id='mon3'value='{$fz_enddat_mon}' size=1>.<input type='text' name='jahr3' id='jahr3' value='{$fz_enddat_jahr}' size=3>
<script language='JavaScript' type='text/javascript'>
<!--
endtag = new dynCalendar('endtag', 'calendarCallback', './datepicker/images/', '', '3');
//-->
</script>
</td>
<tr>
<tr>
<td width="40%">
<b>{$fz_field_prof}</b>
</td>
<td width="60%">
<select size="5" id='prof' name='prof'>
{section name=table_data3 loop=$table_data3}
<option value="{$table_data3[table_data3].imtuid}" {if $fz_imtuid == $table_data3[table_data3].imtuid} selected {/if}>{$table_data3[table_data3].titel} {$table_data3[table_data3].nachname}, {$table_data3[table_data3].vorname}&nbsp;&nbsp;&nbsp;&nbsp;</option>
{/section}
</select>
</td>
<tr>
<tr>
<td width="40%">
* = Pflichtfelder
</td>
<td width="60%">
&nbsp;
</td>
</tr>
</table>
</fieldset>
<br>
<fieldset>
<legend><b>Gespeicherte Zulagen</b></legend>
<table width='100%' border='0'>
<tr>
<td>
<b>{$fz_field_starttag}</b>
</td>
<td>
<b>{$fz_field_betrag}</b>
</td>
<td>
<b>{$fz_field_name}</b>
</td>
<td>
<b>{$fz_field_endtag}</b>
</td>
<td align='center'>
<b>{$fz_field_aktionen}</b>
</td>
<tr>
{section name=table_data2 loop=$table_data2}
<tr>
<td>
{$table_data2[table_data2].startdat_form}
</td>
<td>
{$table_data2[table_data2].wert}&nbsp;&euro;
</td>
<td>
{$table_data2[table_data2].name}
</td>
<td>
{$table_data2[table_data2].enddat_form}
</td>
<td align='center'>
<a href="?action=lbfzerf&edit={$table_data2[table_data2].lbfzid}"><img title = "Daten bearbeiten" border="0" height=10 src="./templates/{$global_template}/images/edit.png"></a>
&nbsp;
<a href="?action=del&lbfzid={$table_data2[table_data2].lbfzid}"><img title = "Daten l&ouml;schen" border="0" height=10 src="./templates/{$global_template}/images/drop.png"></a>
</td>
<tr>
{/section}
</table>
<br>
</fieldset>
<p align='center'>
<input type="submit" value="Speichern" name="B1">
</p>
</form>
<br />
</div>
</body>
</html>
{/if}
{if $action == 'save'}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="./templates/{$global_template}/css/styles_pc.php" type="text/css">
<title>{$fz_inserterr_titel}</title>
</head>
<body>
<table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
<tr>
<td>
<div align="center">
<table cellspacing="0" cellpadding="0" width="550" border="0">
<tr>
<td width="10" background="./templates/{$global_template}/images/box_e1.gif">
<img height="40" src="./templates/{$global_template}/images/blank.gif" width="22">
</td>
<td nowrap="nowrap" align="left" width="3%" background="./templates/{$global_template}/images/box_top.gif" valign="top"></td>
<td width="95%" background="./templates/{$global_template}/images/box_top.gif">
<img height="10" src="./templates/{$global_template}/images/blank.gif" width="1"><br>
<span class="sh">{$fz_save_titel}</span><br>
<img height="5" src="./templates/{$global_template}/images/blank.gif" width="1">
</td>
<td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e2.gif">
<img height="40" src="./templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
<tr>
<td width="1%" background="./templates/{$global_template}/images/box_l.gif">
<img height="1" src="./templates/{$global_template}/images/blank.gif" width="22">
</td>
<td colspan="2">
<br>
<p align="left"><b>{$fz_save_text}</b></p>
<p align="center"><a href="?">
<img border="0" src="./templates/{$global_template}/images/zurueck.gif" width="77" height="22"></a><br>
</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p><br>
</p>
</td>
<td width="1%" background="./templates/{$global_template}/images/box_r.gif">
<img height="1" src="./templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
<tr>
<td nowrap="nowrap" align="left" width="1%" background="./templates/{$global_template}/images/box_e3.gif">
<img height="16" src="./templates/{$global_template}/images/blank.gif" width="22">
</td>
<td nowrap="nowrap" align="left" width="98%" background="./templates/{$global_template}/images/box_bottom.gif" colspan="2">
<img height="16" src="./templates/{$global_template}/images/blank.gif" width="8">
</td>
<td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e4.gif">
<img height="16" src="./templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
{/if}