first commit
This commit is contained in:
253
templates/modern/#erm_mutterschutz.html
Executable file
253
templates/modern/#erm_mutterschutz.html
Executable file
@ -0,0 +1,253 @@
|
||||
{if $action == ''}
|
||||
<html>
|
||||
<head>
|
||||
<link type="text/css" rel="stylesheet" href="templates/{$global_template}/css/styles_refill.css">
|
||||
<link rel="stylesheet" href="jquery/jquery-ui.css">
|
||||
<script src="jquery/jquery-1.12.4.js"></script>
|
||||
<script src="jquery/jquery-ui.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$(".datepicker").datepicker({
|
||||
prevText: '< zurück', prevStatus: '',
|
||||
prevJumpText: '<<', prevJumpStatus: '',
|
||||
changeMonth: true,
|
||||
changeYear: true,
|
||||
nextText: 'Vor >', nextStatus: '',
|
||||
nextJumpText: '>>', nextJumpStatus: '',
|
||||
currentText: 'Heute', currentStatus: '',
|
||||
todayText: 'Heute', todayStatus: '',
|
||||
clearText: '-', clearStatus: '',
|
||||
closeText: 'schließen', closeStatus: '',
|
||||
monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'],
|
||||
monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'],
|
||||
dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
|
||||
dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
|
||||
dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
|
||||
weekHeader: 'Wo',
|
||||
weekStatus: 'Woche des Monats',
|
||||
showMonthAfterYear: false,
|
||||
showOn: 'focus',
|
||||
firstDay: 1,
|
||||
numberOfMonths : 1,
|
||||
showButtonPanel : true,
|
||||
altField : "#datepicker_input",
|
||||
dateFormat : "dd.mm.yy",
|
||||
showWeek: true
|
||||
});
|
||||
$.datepicker._gotoToday = function(id) {
|
||||
$(id).datepicker('setDate', new Date()).datepicker('hide').blur();
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
<script src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'></script>
|
||||
<script type="text/javascript">
|
||||
function calc_muschu() {
|
||||
/*
|
||||
Diese Funktion berechnet die LVS
|
||||
*/
|
||||
var sws = 1;
|
||||
var beginn_funktion = document.getElementById('beginn_funktion').value;
|
||||
var ende_funktion = document.getElementById('ende_funktion').value;
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'fetch_mutterschutz.php',
|
||||
data: {
|
||||
get_beginn_funktion: beginn_funktion,
|
||||
get_ende_funktion: ende_funktion
|
||||
},
|
||||
success: function (response) {
|
||||
var str1 = response.split("||");
|
||||
document.getElementById("gesamtvolumen_count").innerHTML = "<strong>" + str1[0] + "</strong>";
|
||||
|
||||
/* LVS Wert in hidden Inputfeld setzen, damit es mit $_POST übertragen wird beim speichern*/
|
||||
document.getElementById("lvs").value = str1[1];
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<style>
|
||||
.StandardTable thead th{
|
||||
background: lightgray;
|
||||
border: 1px solid #656565;
|
||||
font-size:12px;
|
||||
font-family:Arial;
|
||||
padding-top:5px;
|
||||
padding-bottom:5px;
|
||||
padding-left:5px;
|
||||
padding-right:5px;
|
||||
}
|
||||
textarea{
|
||||
border: 1px solid #888;
|
||||
height: 6.7em;
|
||||
width: 48.5em;
|
||||
}
|
||||
select{
|
||||
width:630px;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" >
|
||||
function loader(){
|
||||
if(document.erfassen)document.erfassen.sws.focus();return false;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
{if $muschu_status == 'edit'}
|
||||
<script type="text/javascript">
|
||||
setTimeout(calc_muschu, 100);
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
<body onload="setTimeout(loader, 1500);">
|
||||
|
||||
<form action="?action=save" method='post' name='erfassen'>
|
||||
|
||||
{if $muschu_error == '1'}
|
||||
<table width="70%" class="errorTable" align="center">
|
||||
<tr>
|
||||
<td>
|
||||
<img src="templates/{$global_template}/images/pflichtfelder/achtung_gross.gif">
|
||||
</td>
|
||||
<td><b>Achtung!</b><br>
|
||||
{$muschu_error_text}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
{/if}
|
||||
|
||||
<fieldset>
|
||||
<legend>
|
||||
<b>Mutterschutz/Elternzeit erfassen</b>
|
||||
</legend>
|
||||
<br />
|
||||
<br />
|
||||
<table cellspacing="0" cellpadding="0" width="100%" border="0" class="StandardTable">
|
||||
|
||||
<td>
|
||||
Beginn des Mutterschutzes / der Elternzeit
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker" name="beginn_funktion" id="beginn_funktion" value="{$muschu_value_datumvon}" onchange='calc_muschu();'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<tr>
|
||||
<td>
|
||||
Ende des Mutterschutzes / der Elternzeit
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker" name="ende_funktion" id="ende_funktion" value="{$muschu_value_datumbis}" onchange='calc_muschu();'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<tr>
|
||||
<tr id="erm_freist_hinweis">
|
||||
<td width="30%">
|
||||
|
||||
</td>
|
||||
<td valign="top">
|
||||
<table width="70%" class="errorTable">
|
||||
<tr>
|
||||
<td>
|
||||
<b>Berechnete LVS Stunden</b><br>
|
||||
<ul>
|
||||
<li>Die Berechnung der LVS-Stunden ist tagesgenau</li>
|
||||
<li>Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)</li>
|
||||
<li>Rechenweg: LVS-(Anzahl der Mutterschutztage / Anzahl der Tage im Jahr x LVS)</li>
|
||||
</ul>
|
||||
<div id="gesamtvolumen_count"></div>
|
||||
<input type="hidden" name="lvs" id="lvs" size="101">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<p align='center'>
|
||||
<input type='submit' name='senden' value="Berechnung übernehmen und speichern">
|
||||
</p>
|
||||
<br />
|
||||
</fieldset>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
<fieldset>
|
||||
<legend>
|
||||
<b>Erfasste Mutterschutzeit / Elternzeit / Pflegezeit</b>
|
||||
</legend>
|
||||
<table cellspacing="0" cellpadding="2" width="100%" border="1">
|
||||
<tr>
|
||||
<td>
|
||||
<b>lfd.Nr.</b>
|
||||
</td>
|
||||
<td>
|
||||
<b>Art</b>
|
||||
</td>
|
||||
<td align="right">
|
||||
<b>Beginn</b>
|
||||
</td>
|
||||
<td align="right">
|
||||
<b>Ende</b>
|
||||
</td>
|
||||
<td align="right">
|
||||
<b>Ermäßigung LVS</b>
|
||||
</td>
|
||||
<td align="center">
|
||||
<b>Edit</b>
|
||||
</td>
|
||||
<tr>
|
||||
{section name=table_data2 loop=$table_data2}
|
||||
{if $smarty.section.table_data2.rownum != ''}
|
||||
<tr>
|
||||
<td>
|
||||
{$smarty.section.table_data2.rownum}
|
||||
</td>
|
||||
<td>
|
||||
{$table_data2[table_data2].art}
|
||||
</td>
|
||||
<td align="right">
|
||||
{$table_data2[table_data2].beginn}
|
||||
</td>
|
||||
<td align="right">
|
||||
{$table_data2[table_data2].ende}
|
||||
</td>
|
||||
<td align="right">
|
||||
{$table_data2[table_data2].lvs}
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href=?edit={$table_data2[table_data2].deid}><img title = "Lehrveranstaltung bearbeiten" border="0" height=10 src="templates/{$global_template}/images/edit.png"></a>
|
||||
|
||||
<a href="?action=del&deid={$table_data2[table_data2].deid}"><img title = 'Lehrveranstaltung löschen' border="0" height=10 src="templates/{$global_template}/images/drop.png"></a>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/section}
|
||||
<tr>
|
||||
<td colspan="4"> </td>
|
||||
<td align="right"><b>Summe: {$muschu_value_summe_jahr}</b></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
</body>
|
||||
</html>
|
||||
{/if}
|
Reference in New Issue
Block a user