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

562 lines
28 KiB
Smarty

<link rel="stylesheet" href="template/css/ma.css">
{literal}
<style>
input[type=text] {
width: 250px;
border:none;
border-bottom: 1px solid #333333;
color: #dddddd;
background-color: #222222;
}
input[type=number] {
width: 250px;
border:none;
border-bottom: 1px solid #333333;
color: #dddddd;
background-color: #222222;
}
</style>
{/literal}
<!-- MA auswahl -->
<section class="col-md-12">
<div class="row">
<!-- xxxxxxxxxx -->
<div class="col-md-4" style="background-color:#333333">
<div class="panel panel-tbox">
<div class="panel-smallheading"><i class="fad fa-address-card"></i> Anschrift</div>
<div class="panel-smallbody">
<table class="no-style full">
<tbody>
<tr>
<td width="100px" nowrap="nowrap">Strasse:</td>
<td><input class="mainp" type="text" name="strasse" value="{$ma.strasse}"/></td></tr>
<tr>
<tr>
<td width="100px" nowrap="nowrap">Zusatz:</strong></td>
<td><input class="mainp" type="text" name="azusatz" value="{$ma.azusatz}"/></td></tr>
<tr>
<td width="100px" nowrap="nowrap">PLZ Ort:</strong></td>
<td><input class="mainp" type="text" name="plz" value="{$ma.plz}" style="width:55px"/>&nbsp;
<input class="mainp" type="text" name="ort" value="{$ma.ort}" style="width:185px"/></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-tbox">
<div class="panel-smallheading"><i class="fad fa-phone-rotary"></i> Kommunikation</div>
<div class="panel-smallbody">
<table class="no-style full">
<tbody>
<tr>
<td width="100px">Mail:</td><td><input type="text" name="mail" value="{$ma.mail}"/></td</tr>
<tr>
<tr>
<td width="100px">Handy:</td><td><input type="text" name="handy" value="{$ma.handy}"/></td>
</tr>
<tr>
<td width="100px">Tel2:</td><td><input type="text" name="tel2" value="{$ma.tel2}"/></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="panel panel-tbox">
<div class="panel-smallheading"><i class="fad fa-user-tag"></i> Erkennungsdaten</div>
<section class="panel-smallbody">
<table class="no-style full">
<tr>
<td style="width:120px" nowrap="nowrap">Geburtstag:</strong></td>
<td><input class="mainp2" type="number" name="tag" value="{$ma.gebtag|string_format:"%02d"}" style="width:50px"/>
<input class="mainp2" type="number" name="monat" value="{$ma.gebmonat|string_format:"%02d"}" style="width:50px"/>
<input class="mainp2" type="number" name="jahr" value="{$ma.gebjahr}" style="width:60px"/>
</td>
</tr>
<tr>
<td nowrap="nowrap">Geburtsort:</strong></td>
<td><input type="text" name="gebort" value="{$ma.gebort}" style="width:220px"/></td>
</tr>
<tr>
<td nowrap="nowrap">Geburtsname:</strong></td>
<td><input type="text" name="gebname" value="{$ma.gebname}" style="width:220px"/></td>
</tr>
<tr>
<td nowrap="nowrap">Nationalit&auml;t:</strong></td>
<td><input type="text" name="staata" value="{$ma.staata}" style="width:220px"/></td>
</tr>
<tr>
<td nowrap="nowrap">BPA-Nummer::</strong></td>
<td><input type="text" name="bpa" value="{$ma.bpa}" style="width:220px"/></td>
</tr>
</table>
</section>
</div>
</div>
<!-- ****************************************************************** Bankdaten -->
<div class="col-md-4">
<div class="panel panel-tbox">
<div class="panel-smallheading"><i class="fad fa-money-check-edit-alt"></i> Bankdaten</div>
<section class="panel-smallbody">
<table class="no-style full">
<input type="hidden" name="mid" value="{$ma.id}" />
<tr>
<td style="width:120px" nowrap="nowrap">Bankname:</strong></td>
<td><input type="text" name="bankname" value="{$ma.bankname}" style="width:220px"/></td>
</tr>
<tr>
<td nowrap="nowrap">Kontoinhaber:</strong></td>
<td><input type="text" name="kontoinh" value="{$ma.kontoinh}" style="width:220px"/></td>
</tr>
<tr>
<td nowrap="nowrap">IBAN:</strong></td>
<td><input type="text" name="iban" value="{$ma.iban}" style="width:220px"/></td>
</tr>
<tr>
<td nowrap="nowrap">BIC:</strong></td>
<td><input type="text" name="BIC" value="{$ma.BIC}" style="width:220px"/></td>
</tr>
<tr>
<td nowrap="nowrap">Bankinfo:</strong></td>
<td><input type="text" name="bankinfo" value="{$ma.bankinfo}" style="width:220px"/></td>
</tr>
</tbody>
</table>
</section>
</div>
</div>
</div>
<div class="row">
<!-- ****************************************************************** laufbahn -->
<div class="col-md-4">
<div class="panel panel-tbox">
<div class="panel-smallheading"><i class="fad fa-calendar-day"></i> Laufbahn</div>
<section class="panel-smallbody">
<table class="no-style full">
<input type="hidden" name="mid" value="{$ma.id}" />
<tbody>
<tr><td style="width:120px" nowrap="nowrap">Eintrittstag:</strong></td>
<td><input type="number" name="eintag" value="{$ma.eintag|string_format:"%02d"}" style="width:50px"/>
<input type="number" name="einmonat" value="{$ma.einmonat|string_format:"%02d"}" style="width:50px"/>
<input type="number" name="einjahr" value="{$ma.einjahr}" style="width:60px"/>
</td></tr>
<tr><td nowrap="nowrap">Austrittstag:</strong></td>
<td><input type="number" name="austag" value="{$ma.austag|string_format:"%02d"}" style="width:50px"/>
<input type="number" name="ausmonat" value="{$ma.ausmonat|string_format:"%02d"}" style="width:50px"/>
<input type="number" name="ausjahr" value="{$ma.ausjahr}" style="width:60px"/>
</td></tr>
<tr><td nowrap="nowrap">befristet bis:</strong></td>
<td><input type="number" name="beftag" value="{$ma.beftag|string_format:"%02d"}" style="width:50px"/>
<input type="number" name="befmonat" value="{$ma.befmonat|string_format:"%02d"}" style="width:50px"/>
<input type="number" name="befjahr" value="{$ma.befjahr}" style="width:60px"/>
</td></tr>
</tbody>
</table>
</section>
</div>
</div>
<!-- ****************************************************************** Sozialangaben -->
<div class="col-md-4">
<div class="panel panel-tbox">
<div class="panel-smallheading"><i class="fad fa-sack-dollar"></i> steuerliche Angaben</div>
<section class="panel-smallbody">
<table class="no-style full">
<tbody>
<input type="hidden" name="mid" value="{$ma.id}" />
<tr><td style="width:120px" nowrap="nowrap">Steuer.ID-Nr.:</strong></td>
<td><input type="text" name="steuerid" value="{$ma.steuerid}" style="width:220px"/></td>
</tr>
<tr><td nowrap="nowrap">Steuerklasse:</strong></td>
<td><input type="text" name="steuerkl" value="{$ma.steuerkl}" style="width:220px"/></td></tr>
<tr><td nowrap="nowrap">Sozialvers.-Nr.</strong></td>
<td><input type="text" name="svnummer" value="{$ma.svnummer}" style="width:220px"/></td></tr>
</tbody>
</table>
</section>
</div>
</div>
</div>
<!-- ************************** Spaltenwechsel -->
<div class="row">
<div class="col-md-4">
<div class="panel panel-tbox">
<div class="panel-smallheading"><i class="fab fa-pied-piper-alt"></i> Angaben Sonderfälle</div>
<section class="panel-smallbody">
<table class="no-style full">
<input type="hidden" name="mid" value="{$ma.id}" />
<tbody>
{if $ma.rentner==1}<tr>
<td><input type="checkbox" name="rentner" checked="checked" > Rentner</strong></td>
<td style="width:30px"> </strong></td>
<td><input type="text" name="rentnerinfo" value="{$ma.rentnerinfo}" style="width:120px"/></td>
{else}<tr>
<td><input type="checkbox" name="rentner" > Rentner</strong></td>
<td style="width:30px"> </strong></td>
<td><input type="text" name="rentnerinfo" value="{$ma.rentnerinfo}" style="width:120px"/></td>
{/if}</tr>
{if $ma.sbehind==1}<tr>
<td><input type="checkbox" name="sbehind" checked="checked" > schwerbehindert</strong></td>
<td style="width:30px"> </strong></td>
<td><input type="text" name="sbehind2" value="{$ma.sbehind2}" style="width:50px"/> %</td>
{else}<tr>
<td><input type="checkbox" name="sbehind" > schwerbehindert </strong></td>
<td style="width:30px"> </strong></td>
<td><input type="text" name="sbehind2" value="{$ma.sbehind2}" style="width:50px"/> %</td>
{/if}</tr>
{if $ma.student==1}<tr>
<td><input type="checkbox" name="student" checked="checked" > Student</strong></td>
<td style="width:30px"> </strong></td>
<td><input type="text" name="studentinfo" value="{$ma.studentinfo}" style="width:120px"/></td>
{else}<tr>
<td><input type="checkbox" name="student" > Student</strong></td>
<td style="width:30px"> </strong></td>
<td><input type="text" name="studentinfo" value="{$ma.studentinfo}" style="width:120px"/></td>
{/if}</tr>
</tbody>
</table>
</section>
</div>
</div>
<!-- ****************************************************************** Sozialangaben -->
<div class="col-md-4">
<div class="panel panel-tbox">
<div class="panel-smallheading"><i class="fad fa-baby"></i> Angaben zur Familie</div>
<section class="panel-smallbody">
<table class="no-style full">
<tbody>
<tr><td style="width:150px" >Familienstand:</strong></td>
<td><input type="text" name="famstand" value="{$ma.famstand}" style="width:200px"/></td></tr>
<tr><td nowrap="nowrap">Anzahl Kinder:</strong></td>
<td><input type="text" name="kinder" value="{$ma.kinder}" style="width:200px"/></td></tr>
<tr><td nowrap="nowrap">Kinderfreibetrag:</strong></td>
<td><input type="text" name="kinderfb" value="{$ma.kinderfb}" style="width:200px"/></td></tr>
</tbody>
</table>
</section>
</div>
</div>
</div>
<!-- ************************** Spaltenwechsel -->
<div class="row">
<div class="col-md-4">
<div class="panel panel-tbox">
<div class="panel-smallheading"><i class="fad fa-users-class"></i> sonstige Angaben</div>
<section class="panel-smallbody">
<table class="no-style full">
<input type="hidden" name="mid" value="{$ma.id}" />
<tbody>
<tr><td nowrap="nowrap">Urlaub/Jahr:</strong></td>
<td style="width:80px"> </strong></td>
<td><input type="text" name="urlaubprojahr" value="{$ma.urlaubprojahr}" style="width:60px"/> Tage</td></tr>
<tr>
<td nowrap="nowrap">Mitarbeitertyp</strong></td>
<td style="width:80px"> </strong></td>
<td>
<select name="typ">
{foreach from=$matyp item=matyp}
{html_options values=$matyp.id output=$matyp.bezeichnung selected=$ma.typ}
{/foreach}
</select>
</td></tr>
</tbody>
</table>
</section>
</div>
</div>
<!-- ****************************************************************** Krankenkasse -->
<div class="col-md-4">
<div class="panel panel-tbox">
<div class="panel-smallheading"><i class="fad fa-passport"></i> Krankenkasse</div>
<section class="panel-smallbody">
<table class="no-style full">
<tbody>
<tr>
<td style="width:140px" >Krankenkasse:</strong></td>
<td><input type="text" name="kkasse" value="{$ma.kkasse}" style="width:100px"/></td>
<td style="width:90px" > Beitrag:</strong></td>
<td><input type="text" name="kkbeitrag" value="{$ma.kkbeitrag}" style="width:50px"/></td>
</tr>
</tbody>
</table>
<table class="no-style full">
<tbody>
<tr><td style="width:140px" >Mitg.-Nr.:</strong></td>
<td><input type="text" name="kkassennr" value="{$ma.kkassennr}" style="width:200px"/></td></tr>
</tbody>
</table>
</section>
</div>
</div>
</div>
<div class="row">
<!-- ************************** Spaltenwechsel -->
<!-- ****************************************************************** Einstellungsart -->
<div class="col-md-4">
<div class="panel panel-tbox">
<div class="panel-smallheading"><i class="fad fa-route"></i> Einsatzgebiete</div>
<section class="panel-smallbody">
<table class="no-style full">
<tbody>
<input type="hidden" name="mid" value="{$ma.id}" />
<tr><td style="width:160px">PVL Leipzig</strong></td><td style="width:160px">Gerichshain</strong></td>
<td><input type="checkbox" name="gh" {if $ma.gh>0} checked="checked">{/if}
</td></tr>
<tr><td style="width:160px">LVZ Leipzig</strong></td><td style="width:160px">L.- Stahmeln</strong></td>
<td><input type="checkbox" name="lvz" {if $ma.lvz>0} checked="checked">{/if}
</td></tr>
<tr><td style="width:160px">PIN Leipzig</strong></td><td style="width:160px">AG (Ausfuhr)</strong></td>
<td><input type="checkbox" name="pin" {if $ma.pin>0} checked="checked">{/if}
</td></tr>
<tr><td style="width:160px">PIN Leipzig</strong></td><td style="width:160px">R (Abholung)</strong></td>
<td><input type="checkbox" name="post" {if $ma.post>0} checked="checked">{/if}
</td></tr>
<tr><td style="width:160px">PIN Leipzig</strong></td><td style="width:160px">Retouren/Leergut</strong></td>
<td><input type="checkbox" name="pleer" {if $ma.pleer>0} checked="checked">{/if}
</td></tr>
<tr><td style="width:160px">Rundschau</strong></td><td style="width:160px">MPV</strong></td>
<td><input type="checkbox" name="rs" {if $ma.rs>0} checked="checked">{/if}
</td></tr>
<tr><td style="width:160px">Sachsen-Sonntag</strong></td><td style="width:160px">LVZ Agentur</strong></td>
<td><input type="checkbox" name="saso" {if $ma.saso>0} checked="checked">{/if}
</td></tr>
<tr><td style="width:160px">Gastrofahrt</strong></td><td style="width:160px">VNG</strong></td>
<td><input type="checkbox" name="grm" {if $ma.grm>0} checked="checked">{/if}
</td></tr>
<tr><td style="width:160px">Exxtra-Werbung</strong></td><td style="width:160px">MPV</strong></td>
<td><input type="checkbox" name="werb" {if $ma.werb>0} checked="checked">{/if}
</td></tr>
<tr><td style="width:160px">Marktbelege</strong></td><td style="width:160px">LVZ / MPV</strong></td>
<td><input type="checkbox" name="mb" {if $ma.mb>0} checked="checked">{/if}
</td></tr>
<tr><td style="width:160px">LVZ-Zustellung</strong></td><td style="width:160px">LVZ Agentur</strong></td>
<td><input type="checkbox" name="lvzz" {if $ma.lvzz>0} checked="checked">{/if}
</td></tr>
<tr><td style="width:160px">FAZ-Zustellung</strong></td><td style="width:160px">Sonntagszeitung</strong></td>
<td><input type="checkbox" name="faz" {if $ma.faz>0} checked="checked">{/if}
</td></tr>
<tr><td style="width:160px">Saso-Zustellung</strong></td><td style="width:160px">LVZ Agentur</strong></td>
<td><input type="checkbox" name="sasoz" {if $ma.sasoz>0} checked="checked">{/if}
</td></tr>
<tr><td style="width:160px">Sondertouren</strong></td><td style="width:160px"> </strong></td>
<td><input type="checkbox" name="sonstige" {if $ma.sonstige>0} checked="checked">{/if}
</td></tr>
</tbody>
</table>
</section>
</div>
</div>
<!-- ****************************************************************** sonstige pers. Daten -->
<div class="col-md-4">
<div class="panel panel-tbox">
<div class="panel-smallheading"><i class="fad fa-bible"></i> Konfessionen</div>
<section class="panel-smallbody">
<table class="no-style full">
<tbody>
<tr>
<td>
<select name="kotyp">
{foreach from=$kotyp item=kotyp}
{html_options values=$kotyp.id output=$kotyp.abk selected=$ma.konfessionen}
{/foreach}
</select>
</td>
<td style="width:280px"; align="right">{$koinfo}</td>
</tr>
</tbody>
</table>
</section>
</div>
<!-- ****************************************************************** Fschein -->
<div class="panel panel-tbox">
<div class="panel-smallheading"><i class="fad fa-id-badge"></i> Führerschein</div>
<section class="panel-smallbody">
<table class="no-style full">
<tbody>
<input type="hidden" name="mid" value="{$ma.id}" />
<tr>
<td style="width:160px" >Führerschein:</strong></td>
<td><input type="text" name="fschein" value="{$ma.fschein}" style="width:190px"/></td>
</tr>
<tr>
<td style="width:160px" >Ablauffrist:</strong></td>
<td><input type="text" name="ffrist" value="{$ma.ffrist}" style="width:190px"/></td>
</tr>
<tr>
<td style="width:160px">Fahrerkarte LKW</strong></td>
<td><input type="checkbox" name="fkarte" {if $ma.fkarte>0} checked="checked">{/if}</td>
</tr>
</tbody>
</table>
</section>
</div>
<!-- ****************************************************************** aktiv -->
<div class="col-md-1">
<div class="panel panel-tbox">
<div class="panel-smallheading"><h2 class="panel-title">Aktiv</h2></div>
<section class="panel-smallbody">
<table class="no-style full">
<tbody>
<input type="hidden" name="mid" value="{$ma.id}" />
<tr>
<td><center><input type="checkbox" name="aktiv" {if $ma.aktiv>0} checked="checked">{/if} </td>
</tr>
</tbody>
</table>
</section>
</div>
</div>
<!-- ****************************************************************** Zeit/Tuer -->
<div class="col-md-1">
<div class="panel panel-tbox">
<div class="panel-smallheading"><h2 class="panel-title">Tuer</h2></div>
<section class="panel-smallbody">
<table class="no-style full">
<tbody>
<input type="hidden" name="mid" value="{$ma.id}" />
<tr>
<td><input type="checkbox" name="zeitzugang" {if $ma.zeitzugang>0} checked="checked">{/if} </td>
</tr>
</tbody>
</table>
</section>
</div>
</div>
<!-- ****************************************************************** Buchhaltungsnummer -->
<div class="col-md-1">
<div class="panel panel-tbox">
<div class="panel-smallheading"><h2 class="panel-title">BhNr.</h2></div>
<section class="panel-smallbody">
<table class="no-style full">
<tbody>
<input type="hidden" name="mid" value="{$ma.id}" />
<tr>
<td><input type="text" name="buchid" value="{$ma.buchid}" style="width:40px"/></td>
</td></tr>
</tbody>
</table>
</section>
</div>
</div>
<!-- ****************************************************************** lohn ja / nein -->
<div class="col-md-1">
<div class="panel panel-tbox">
<div class="panel-smallheading"><h2 class="panel-title">selbst.</h2></div>
<section class="panel-smallbody">
<table class="no-style full">
<tbody>
<input type="hidden" name="mid" value="{$ma.id}" />
<tr>
<td><input type="checkbox" name="lohnabr" {if $ma.lohnabr>0} checked="checked">{/if} </td>
</td></tr>
</tbody>
</table>
</section>
</div>
</div>
<!-- Main Section End -->
</section>
<!-- Sidebar -->
<!------------------------------------------------>
<script> var jahr = '{$jahr}';</script>
<script> var mitarbeiter = '{$maID}';</script>
{literal}
<script>
function save_date(time,maID) {
var remember = document.getElementById('info_'+time);
if (remember.checked){
var istC = 1;
}else{
var istC = 0;
}
$.ajax({
type: 'POST',
url: "ajax.php?s=kal_save&a=date_save",
dataType: 'json',
data: 'time=' + time + "&maID="+mitarbeiter+"&istC="+istC,
success: function (data) {
if(data.success == true) {
$.notify({
icon: 'glyphicon glyphicon-warning-ok',
message: data.lastnote
},{
type: 'info',
showProgressbar: true,
delay: 200,
newest_on_top: true,
element: 'body',
placement: {
from: "bottom",
align: "right"
},
animate: {
enter: 'animated fadeInDown',
exit: 'animated fadeOutUp'
}
});
}
console.log(data)
}
});load_free_urlaub(mitarbeiter,jahr)
}
load_free_urlaub(mitarbeiter,jahr);
function load_free_urlaub(maID,jahr) {
$.ajax({
type: 'POST',
url: "ajax.php?s=kal_rest_u&tpl",
dataType: 'html',
data: "maID=" + maID + "&jahr="+jahr,
success: function (data) {
$("#urlaub").html(data);
console.log(data)
}
});
}
</script>
{/literal}