_decodeProperties($_smarty_tpl, array (
'version' => '4.3.0',
'unifunc' => 'content_671230679cd410_35945558',
'has_nocache_code' => false,
'file_dependency' =>
array (
'4bf931a3d5de03975973cdf3837cb912c11cf51e' =>
array (
0 => '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/pss.tpl',
1 => 1729245201,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_671230679cd410_35945558 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/var/www/vhosts/jb-data.de/httpdocs/lib/plugins/modifier.date_format.php','function'=>'smarty_modifier_date_format',),1=>array('file'=>'/var/www/vhosts/jb-data.de/httpdocs/lib/plugins/function.html_options.php','function'=>'smarty_function_html_options',),));
echo '
>
>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
>
>
$(document).ready(function() {
$("[rel=popover]").popover({'trigger':'hover'});
});
>
>
function caricon(tourID) {
$.ajax({
type: 'POST',
url: "ajax.php?s=ss&a=load_car_icon",
dataType: "json",
//contentType: "application/json; charset=utf-8",
data: 'tourID=' + tourID,
success: function (data) {
$("#caricon"+data.zeile).html(data.htmlresult);
}
});
}
function usericon(tourID) {
$.ajax({
type: 'POST',
url: "ajax.php?s=ss&a=load_user_icon",
dataType: "json",
//contentType: "application/json; charset=utf-8",
data: 'tourID=' + tourID,
success: function (data) {
$("#usericon"+data.zeile).html(data.htmlresult);
}
});
}
function load_free_cars(date) {
$.ajax({
type: 'POST',
url: "ajax.php?s=ss&a=load_free_cars",
dataType: "text",
//contentType: "application/json; charset=utf-8",
data: "date=" + date,
success: function (data) {
data = jQuery.parseJSON(data); // <-- *** ADD THIS LINE ***
console.log("data")
console.log(data)
$("#trp").html("");
$.each( data.trp, function( key, value ) {
$("#trp").append(value+"
");
});
}
});
}
function save_lohn(tourID) {
//alert($("#car_"+tourID).val());
$.ajax({
type: 'POST',
url: "ajax.php?s=ss&a=lohn_save",
dataType: 'json',
data: 'tourID=' + tourID + "&lohn=" + $("#lohn_"+tourID).val(),
success: function (data) {
if(data.success == true) {
$.notify({
icon: 'glyphicon glyphicon-warning-ok',
message: data.lastnote
},{
type: 'success',
showProgressbar: true,
delay: 300,
newest_on_top: false,
element: 'body',
placement: {
from: "bottom",
align: "right"
},
animate: {
enter: 'animated fadeInDown',
exit: 'animated fadeOutUp'
}
});
}
console.log(data)
caricon(data.zeile);
}
});
}
function save_car(tourID) {
//alert($("#car_"+tourID).val());
$.ajax({
type: 'POST',
url: "ajax.php?s=ss&a=car_save",
dataType: 'json',
data: 'tourID=' + tourID + "&car=" + $("#car_"+tourID).val(),
success: function (data) {
if(data.success == true) {
$.notify({
icon: 'glyphicon glyphicon-warning-ok',
message: data.lastnote
},{
type: 'success',
showProgressbar: true,
delay: 300,
newest_on_top: false,
element: 'body',
placement: {
from: "bottom",
align: "right"
},
animate: {
enter: 'animated fadeInDown',
exit: 'animated fadeOutUp'
}
});
}
console.log(data)
caricon(data.zeile);
load_free_cars(tagheute);
}
});
}
function save_user(tourID) {
//alert($("#car_"+tourID).val());
$.ajax({
type: 'POST',
url: "ajax.php?s=ss&a=user_save",
dataType: 'json',
data: 'tourID=' + tourID + "&user=" + $("#user_"+tourID).val(),
success: function (data) {
if(data.success == true) {
$.notify({
icon: 'glyphicon glyphicon-warning-ok',
message: data.lastnote
},{
type: 'success',
showProgressbar: true,
delay: 300,
newest_on_top: false,
element: 'body',
placement: {
from: "bottom",
align: "right"
},
animate: {
enter: 'animated fadeInDown',
exit: 'animated fadeOutUp'
}
});
}
console.log(data)
usericon(data.zeile);
}
});
}
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
load_free_cars(tagheute);
>