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

400 lines
15 KiB
Smarty

<div class="name"> <span> {$ma.name} {$ma.name2} </span><span style="font-size: 12px"><i class="far fa-id-card-alt"></i> {$ma.id} </span></div>
</br>
<div class="ma1">
<i class="fad fa-address-card fa-6x fa-pull-left" style="width:110px"></i>
<table class="no-style full" style="color: #aaaaaa;line-height: 2">
<tbody>
<tr>
<td width="130px" nowrap="nowrap">Name:</td>
<td width="290px"><input type="text" id="data_1" value="{$ma.name}" style="width:290px" onChange="save_ma({$ma.id},1)"/></span>
</td>
</tr>
<tr>
<tr>
<td nowrap="nowrap">Strasse:</td>
<td><input type="text" name="strasse" id="data_2" value="{$ma.strasse}" style="width:290px" onChange="save_ma({$ma.id},2)"/></td></tr>
<tr>
<tr>
<td nowrap="nowrap">Zusatz:</td>
<td><input type="text" name="azusatz" id="data_3" value="{$ma.azusatz}" style="width:290px" onChange="save_ma({$ma.id},3)"></td></tr>
<tr>
<td nowrap="nowrap">PLZ Ort:</td>
<td><input type="text" name="plz" value="{$ma.plz}" id="data_4" style="width:55px" onChange="save_ma({$ma.id},4)">&nbsp;
<input type="text" name="ort" value="{$ma.ort}" id="data_5" style="width:225px" onChange="save_ma({$ma.id},5)"></td>
</tr>
<tr>
<td style="width:100px" nowrap="nowrap">Geburtstag:</td>
<td><input type="number" name="tag" id="data_6" value="{$ma.gebtag|string_format:"%02d"}" style="width:60px" onChange="save_ma({$ma.id},6)">
<input type="number" name="monat" id="data_7" value="{$ma.gebmonat|string_format:"%02d"}" style="width:60px" onChange="save_ma({$ma.id},7)">
<input type="number" name="jahr" id="data_8" value="{$ma.gebjahr}" style="width:80px" onChange="save_ma({$ma.id},8)">
</td>
</tr>
<tr>
<td nowrap="nowrap">Geburtsort:</td>
<td><input type="text" name="gebort" id="data_9" value="{$ma.gebort}" style="width:290px" onChange="save_ma({$ma.id},9)"></td>
</tr>
<tr>
<td nowrap="nowrap">Geburtsname:</td>
<td><input type="text" name="gebname" id="data_10" value="{$ma.gebname}" style="width:290px" onChange="save_ma({$ma.id},10)"></td>
</tr>
<tr>
<td nowrap="nowrap">Nationalit&auml;t:</td>
<td><input type="text" name="staata" id="data_11" value="{$ma.staata}" style="width:290px" onChange="save_ma({$ma.id},11)"></td>
</tr>
<tr>
<td nowrap="nowrap">BPA-Nummer::</td>
<td><input type="text" name="bpa" id="data_12" value="{$ma.bpa}" style="width:290px" onChange="save_ma({$ma.id},12)"></td>
</tr>
</body>
</table>
</div>
</br>
<div class="ma1">
<i class="fad fa-phone-office fa-6x fa-pull-left" style="width:110px"></i>
<table class="no-style full" style="color: #aaaaaa;line-height: 2">
<tr>
<td style="width:130px" nowrap="nowrap">Mail:</td>
<td width="290px"><input type="text" name="mail" value="{$ma.mail}" style="width:220px" id="data_26" onChange="save_ma({$ma.id},26)"/></td>
</tr>
<tr>
<td style="width:130px" nowrap="nowrap">Handy:</td>
<td width="290px"><input type="text" name="handy" value="{$ma.handy}" style="width:220px" id="data_27" onChange="save_ma({$ma.id},27)"/></td>
</tr>
<tr>
<td style="width:130px" nowrap="nowrap">Tel2:</td>
<td width="290px"><input type="text" name="tel2" value="{$ma.tel2}" style="width:220px" id="data_28" onChange="save_ma({$ma.id},28)"/></td>
</tr>
<tr>
<td style="width:130px" nowrap="nowrap">Festnetz:</td>
<td width="290px"><input type="text" name="festnetz" value="{$ma.festnetz}" style="width:220px" id="data_29" onChange="save_ma({$ma.id},29)"/></td>
</tr>
<tr>
<td>No SMS</td><td>
{if $ma.nosms==1}
<input type="checkbox" name="nosms" id="nosms" checked="checked" onChange="save_ma({$ma.id},56)"/>
{else}
<input type="checkbox" name="nosms" id="nosms" onChange="save_ma({$ma.id},57)"/>
{/if}
</tr>
</body>
</table>
</div>
</br>
<div class="ma1">
<i class="fad fa-user-friends fa-6x fa-pull-left" style="width:110px"></i>
<table class="no-style full" style="color: #aaaaaa;line-height: 2">
<tbody>
<tr><td width="130px" nowrap="nowrap">Familienstand:</td>
<td width="290px"><input type="text" name="famstand" id="data_13" value="{$ma.famstand}" style="width:290px" onChange="save_ma({$ma.id},13)"/></span>
</tr>
<tr>
<td nowrap="nowrap">Kinder / Freibetrag:</td>
<td><input type="text" name="kinder" value="{$ma.kinder}" style="width:55px" id="data_14" onChange="save_ma({$ma.id},14)"/>&nbsp;
<input type="text" name="kinderfb" value="{$ma.kinderfb}" style="width:220px" id="data_15" onChange="save_ma({$ma.id},15)"/>
</td>
</tr>
<tr><td>Steuer.ID-Nr.:</td>
<td><input type="text" name="steuerid" value="{$ma.steuerid}" style="width:290px" id="data_16" onChange="save_ma({$ma.id},16)"/></td>
</tr>
<tr><td>Steuerklasse:</td>
<td><input type="text" name="steuerkl" value="{$ma.steuerkl}" style="width:290px" id="data_17" onChange="save_ma({$ma.id},17)"/></td>
</tr>
<tr><td>Sozialvers.-Nr.</td>
<td><input type="text" name="svnummer" value="{$ma.svnummer}" style="width:290px" id="data_18" onChange="save_ma({$ma.id},18)"/></td>
</tr>
</tr>
<tr>
<td>Rentner</td>
<td>
{if $ma.rentner==1}
<input type="checkbox" name="rentner" id="rentner" checked="checked" onChange="save_ma({$ma.id},30)"/>
{else}
<input type="checkbox" name="rentner" id="rentner" onChange="save_ma({$ma.id},31)"/>
{/if}
<input type="text" name="rentnerinfo" value="{$ma.rentnerinfo}" style="width:220px" id="data_32" onChange="save_ma({$ma.id},32)"/></td>
</tr>
<tr>
<td>schwerbehindert</td><td>
{if $ma.sbehind==1}
<input type="checkbox" name="sbehind" id="sbehind" checked="checked" onChange="save_ma({$ma.id},33)"/>
{else}
<input type="checkbox" name="sbehind" id="sbehind" onChange="save_ma({$ma.id},34)"/>
{/if}
<input type="text" name="sbehind2" value="{$ma.sbehind2}" style="width:50px" id="data_19" onChange="save_ma({$ma.id},19)"/> %</td>
</tr>
<tr>
<td>Student</td><td>
{if $ma.student==1}
<input type="checkbox" name="student" id="student" checked="checked" onChange="save_ma({$ma.id},35)"/>
{else}
<input type="checkbox" name="student" id="student" onChange="save_ma({$ma.id},36)"/>
{/if}
<input type="text" name="studentinfo" value="{$ma.studentinfo}" style="width:120px" id="data_20" onChange="save_ma({$ma.id},20)"/></td>
</tr>
<tr>
<td>Selbständig</td><td>
{if $ma.lohnabr==1}
<input type="checkbox" name="lohnabr" id="lohnabr" checked="checked" onChange="save_ma({$ma.id},52)"/>
{else}
<input type="checkbox" name="lohnabr" id="lohnabr" onChange="save_ma({$ma.id},53)"/>
{/if}
</tr>
<tr>
<td>Zeitzugang</td><td>
{if $ma.zeitzugang==1}
<input type="checkbox" name="zeitzugang" id="zeitzugang" checked="checked" onChange="save_ma({$ma.id},58)"/>
{else}
<input type="checkbox" name="zeitzugang" id="zeitzugang" onChange="save_ma({$ma.id},59)"/>
{/if}
</tr>
<tr>
<td style="width:130px" nowrap="nowrap">Konfessionen:</td>
<td width="250px">
<select name="kotyp" id="data_51" onChange="save_ma({$ma.id},51)" style="width:50px;background-color:#222; color: #fff; border:none;border-bottom: 1px solid #333; font-size:11pt;">
{foreach from=$kotyp item=ko_typ}
{html_options values=$ko_typ.id output=$ko_typ.abk selected=$ma.konfessionen}
{/foreach}
</select> {$koinfo}
</td>
</tr>
<tr>
<td style="width:130px" nowrap="nowrap">Mitarbeiter-Typ:</td>
<td width="290px">
<select name="typ" id="data_49" onChange="save_ma({$ma.id},49)" style="width:190px;background-color:#222; color: #fff; border:none;border-bottom: 1px solid #333; font-size:11pt;">
{foreach from=$matyp item=ma_typ}
{html_options values=$ma_typ.id output=$ma_typ.bezeichnung selected=$ma.typ}
{/foreach}
</select>
</td>
</tr>
<tr>
<td style="width:130px" nowrap="nowrap">Tarif-Typ:</td>
<td width="290px">
<select name="ttyp" id="data_60" onChange="save_ma({$ma.id},60)" style="width:190px;background-color:#222; color: #fff; border:none;border-bottom: 1px solid #333; font-size:11pt;">
{foreach from=$mattyp item=t_typ}
{html_options values=$t_typ.id output=$t_typ.bezeichnung selected=$t.typ}
{/foreach}
</select>
</td>
</tr>
<tr>
<td style="width:130px" nowrap="nowrap">Urlaubstage /Jahr:</td>
<td width="290px"><input type="text" name="urlaubprojahr" value="{$ma.urlaubprojahr}" style="width:220px" id="data_50" onChange="save_ma({$ma.id},50)"/></td>
</tr>
</body>
</table>
</div>
</br>
<div class="ma1">
<i class="fad fa-money-check-edit-alt fa-6x fa-pull-left" style="width:110px"></i>
<table class="no-style full" style="color: #aaaaaa;line-height: 2">
<tbody>
<tr>
<td style="width:130px" nowrap="nowrap">Bankname:</td>
<td width="290px"><input type="text" name="bankname" value="{$ma.bankname}" style="width:220px" id="data_21" onChange="save_ma({$ma.id},21)"/></td>
</tr>
<tr>
<td nowrap="nowrap">Kontoinhaber:</td>
<td><input type="text" name="kontoinh" value="{$ma.kontoinh}" style="width:220px" id="data_22" onChange="save_ma({$ma.id},22)"/></td>
</tr>
<tr>
<td nowrap="nowrap">IBAN:</td>
<td><input type="text" name="iban" value="{$ma.iban}" style="width:220px" id="data_23" autocomplete onChange="save_ma({$ma.id},23)"/></td>
</tr>
<tr>
<td nowrap="nowrap">BIC:</td>
<td><input type="text" name="BIC" value="{$ma.BIC}" style="width:220px" id="data_24" onChange="save_ma({$ma.id},24)"/></td>
</tr>
<tr>
<td nowrap="nowrap">Bankinfo:</td>
<td><input type="text" name="bankinfo" value="{$ma.bankinfo}" style="width:220px" id="data_25" onChange="save_ma({$ma.id},25)"/></td>
</tr>
</body>
</table>
</div>
</br>
<div class="ma1">
<i class="fad fa-calendar-alt fa-6x fa-pull-left" style="width:110px"></i>
<table class="no-style full" style="color: #aaaaaa;line-height: 2">
<tr>
<td style="width:130px" nowrap="nowrap">Eintrittstag:</td>
<td><input type="number" name="eintag" id="data_37" value="{$ma.eintag|string_format:"%02d"}" style="width:60px" onChange="save_ma({$ma.id},37)">
<input type="number" name="einmonat" id="data_38" value="{$ma.einmonat|string_format:"%02d"}" style="width:60px" onChange="save_ma({$ma.id},38)">
<input type="number" name="einjahr" id="data_39" value="{$ma.einjahr|string_format:"%04d"}" style="width:80px" onChange="save_ma({$ma.id},39)">
</td>
</tr>
<tr>
<td style="width:130px" nowrap="nowrap">Austrittstag:</td>
<td><input type="number" name="austag" id="data_40" value="{$ma.austag|string_format:"%02d"}" style="width:60px" onChange="save_ma({$ma.id},40)">
<input type="number" name="ausmonat" id="data_41" value="{$ma.ausmonat|string_format:"%02d"}" style="width:60px" onChange="save_ma({$ma.id},41)">
<input type="number" name="ausjahr" id="data_42" value="{$ma.ausjahr|string_format:"%04d"}" style="width:80px" onChange="save_ma({$ma.id},42)">
</td>
</tr>
<tr>
<td style="width:130px" nowrap="nowrap">befristet bis:</td>
<td><input type="number" name="beftag" id="data_43" value="{$ma.beftag|string_format:"%02d"}" style="width:60px" onChange="save_ma({$ma.id},43)">
<input type="number" name="befmonat" id="data_44" value="{$ma.befmonat|string_format:"%02d"}" style="width:60px" onChange="save_ma({$ma.id},44)">
<input type="number" name="befjahr" id="data_45" value="{$ma.befjahr|string_format:"%04d"}" style="width:80px" onChange="save_ma({$ma.id},45)">
</td>
</tr>
<tr>
<td>Aktiv</td><td>
{if $ma.aktiv==1}
<input type="checkbox" name="aktiv" id="aktiv" checked="checked" onChange="save_ma({$ma.id},54)"/>
{else}
<input type="checkbox" name="aktiv" id="aktiv" onChange="save_ma({$ma.id},55)"/>
{/if}
</tr>
</body>
</table>
</div>
</br>
</br>
<div class="ma1">
<i class="fad fa-address-card fa-6x fa-pull-left" style="width:110px"></i>
<table class="no-style full" style="color: #aaaaaa;line-height: 2">
<tr>
<td style="width:130px" nowrap="nowrap">Krankenkasse:</td>
<td width="290px"><input type="text" name="kkasse" value="{$ma.kkasse}" style="width:220px" id="data_46" onChange="save_ma({$ma.id},46)"/></td>
</tr>
<tr>
<td style="width:130px" nowrap="nowrap">Mitg.-Nr.:</td>
<td width="290px"><input type="text" name="kkassennr" value="{$ma.kkassennr}" style="width:220px" id="data_47" onChange="save_ma({$ma.id},47)"/></td>
</tr>
<tr>
<td style="width:130px" nowrap="nowrap">Beitrag in %:</td>
<td width="290px"><input type="text" name="kkbeitrag" value="{$ma.kkbeitrag}" style="width:220px" id="data_48" onChange="save_ma({$ma.id},48)"/></td>
</tr>
</body>
</table>
</div>
{literal}
<style>
input[type=checkbox] {
width: 20px;
border:none;
font-size: 16px;
border-bottom: 1px solid #333333;
color: #ff0000;
background-color: #222222;
}
input[type=text] {
width: 250px;
border:none;
font-size: 16px;
border-bottom: 1px solid #333333;
color: #dddddd;
background-color: #222222;
}
input[type=text]:focus{
border:none;
outline:none;
border-bottom:1px solid #ff0000;
}
input[type=number] {
width: 250px;
border:none;
font-size: 16px;
border-bottom: 1px solid #333333;
color: #dddddd;
background-color: #222222;
}
input[type=number]:focus{
border:none;
outline:none;
border-bottom:1px solid #ff0000;
}
.name {
align-content: center;
background: #115270;
color: #ccc;
padding: 5px;
border: 1px solid #115270;
border-radius:6px;
margin-left: -5px;
margin-top: -12px;
height: 50px;
font-size: 24px;
width: 570px;
}
.ma1 {
background: #222222;
color: #999;
padding: 5px;
font-size: 13px;
min-height: 115px;
max-height: 615px;
border: 1px solid #115270;
border-radius: 6px;
margin-top: -12px;
margin-left: -5px;
width: 570px;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
</style>
<script>
function save_ma(maID,feld) {
$.ajax({
type: 'POST',
url: "ajax.php?s=save_ma",
dataType: 'json',
data: 'maID=' + maID + '&feld='+feld + "&data=" +$("#data_"+feld).val(),
success: function (data) {
$.notify({
icon: 'glyphicon glyphicon-warning-ok',
message: data.lastnote
},{
type: 'info',
showProgressbar: true,
delay: 300,
newest_on_top: false,
element: 'body',
placement: {
from: "bottom",
align: "right"
},
animate: {
enter: 'animated fadeInDown',
exit: 'animated fadeOutUp'
}
});
}
});
}
</script>
{/literal}