_decodeProperties($_smarty_tpl, array (
'version' => '4.3.0',
'unifunc' => 'content_6605928a4de714_93425312',
'has_nocache_code' => false,
'file_dependency' =>
array (
'04aff6747d5810c93897e694c59d0f6f149582c6' =>
array (
0 => '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/v_mitarbeiter.tpl',
1 => 1711535485,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_6605928a4de714_93425312 (Smarty_Internal_Template $_smarty_tpl) {
?>
>
$(document).ready(function() {
load_data();
function load_data(query)
{
$.ajax({
url:"ajax.php?s=mafetch",
method:"POST",
data:{query:query},
success:function(data)
{
$('#result').html(data);
}
});
}
$('#search_text').keyup(function(){
var search = $(this).val();
if(search != '')
{
load_data(search);
}
else
{
load_data();
}
});
});
function ma_wahl(maID) {
$('#spinner-div').show();
$.ajax({
type: 'POST',
url: "ajax.php?s=ma_edit&tpl",
dataType: 'html',
data: '&maID=' + maID,
success: function (data) {
console.log(data)
$("#maedit").html(data);
$('#spinner-div').hide();
}
});
$.ajax({
type: 'POST',
url: "ajax.php?s=ma_edit_sb&tpl",
dataType: 'html',
data: '&maID=' + maID,
success: function (data) {
console.log(data)
$("#maedit2").html(data);
}
});
}
function ma_edit_sb(maID) {
$('#spinner-div').show();
$.ajax({
type: 'POST',
url: "ajax.php?s=ma_edit_sb&tpl",
dataType: 'html',
data: '&maID=' + maID,
success: function (data) {
console.log(data)
$("#maedit2").html(data);
$('#spinner-div').hide();
}
});
}
function ma_tuer(maID) {
$('#spinner-div').show();
$.ajax({
type: 'POST',
url: "ajax.php?s=ma_tuer&tpl",
dataType: 'html',
data: '&maID=' + maID,
success: function (data) {
console.log(data)
$("#maedit2").html(data);
$('#spinner-div').hide();
}
});
}
function ma_kal(maID) {
$('#spinner-div').show();
$.ajax({
type: 'POST',
url: "ajax.php?s=ma_kal&tpl",
dataType: 'html',
data: '&maID=' + maID,
success: function (data) {
console.log(data)
$("#maedit2").html(data);
$('#spinner-div').hide();
}
});
}
function ma_setup(maID) {
$('#spinner-div').show();
$.ajax({
type: 'POST',
url: "ajax.php?s=ma_setup&tpl",
dataType: 'html',
data: '&maID=' + maID,
success: function (data) {
console.log(data)
$("#maedit2").html(data);
$('#spinner-div').hide();
}
});
}
$(document).ready(function () {
$("#do-call").click(function () {//The load button
$('#spinner-div').show();//Load button clicked show spinner
$.ajax({
url: "https://jb-data.de/",
type: 'GET',
dataType: 'json',
success: function (res) {
//On success do something....
},
complete: function () {
$('#spinner-div').hide();//Request is complete so hide spinner
}
});
});
});
>