|
tpl_vars['monat']->value;?>
/tpl_vars['jahr']->value;?>
|
tpl_vars['datum_unix']->value,"%d.%m.%y");?>
smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['tage']->value, 'kt');
$_smarty_tpl->tpl_vars['kt']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['kt']->value) {
$_smarty_tpl->tpl_vars['kt']->do_else = false;
?>
tpl_vars['kt']->value['tagt'] == 1) {?>
|
|
|
--- tpl_vars['kt']->value['kw'];?>
.KW --- |
| tpl_vars['kt']->value['wt'];?>
|
tpl_vars['kt']->value['datum'];?>
|
smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
tpl_vars['old']->value > 0) {?>
Achtung! Diese Planung liegt in der Vergangenheit...
tpl_vars['fttest']->value != 0) {?>
tpl_vars['ftrow']->value['tag'];?>
tpl_vars['ftrow']->value['bez'];?>
smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['tag_tour2']->value, 'tour');
$_smarty_tpl->tpl_vars['tour']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['tour']->value) {
$_smarty_tpl->tpl_vars['tour']->do_else = false;
?>
tpl_vars['tour']->value['test'] == 99) {?>
smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
> var tag = 'tpl_vars['tag']->value;?>
';
>
> var monat = 'tpl_vars['monat']->value;?>
';
>
> var monat2 = '7';
>
> var jahr = 'tpl_vars['jahr']->value;?>
';
>
>
function tinfo(tid) {
$.ajax({
type: 'POST',
url: "ajax.php?s=tinfo&tpl",
dataType: 'html',
data: 'tid=' + tid,
success: function (data) {
$("#tinfo").html(data);
}
});
}
function load_free_cars(tag,monat,jahr) {
$.ajax({
type: 'POST',
url: "ajax.php?s=free_car&tpl",
dataType: 'html',
data: 'tag=' + tag + "&monat=" + monat + "&jahr=" + jahr,
success: function (data) {
$("#freecar").html(data);
}
});
}
function load_free_ma(tag,monat,jahr) {
$.ajax({
type: 'POST',
url: "ajax.php?s=free_ma&tpl",
dataType: 'html',
data: 'tag=' + tag + "&monat=" + monat + "&jahr=" + jahr,
success: function (data) {
$("#freema").html(data);
}
});
}
function save_car(tourID) {
//alert($("#car_"+tourID).val());
$.ajax({
type: 'POST',
url: "ajax.php?s=pnacht&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'
}
});
}
load_free_cars(tag,monat,jahr);
}
});
}
function save_info(tourID) {
$.ajax({
type: 'POST',
url: "ajax.php?s=pnacht&a=info_save",
dataType: 'json',
data: 'tourID=' + tourID + "&info=" + $("#info_"+tourID).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'
}
});
}
});
}
function save_user(tourID) {
//alert($("#car_"+tourID).val());
$.ajax({
type: 'POST',
url: "ajax.php?s=pnacht&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'
}
});
}
load_free_ma(tag,monat,jahr);
}
});
}
load_free_ma(tag,monat,jahr);
load_free_cars(tag,monat,jahr);
var refreshId = setInterval(function() {
$.ajax({
type : "POST",
url : 'ajax.php?s=pnacht&a=smscheck&tpl',
cache : false,
data: 'tag=' + tag + "&monat=" + monat + "&jahr=" + jahr,
dataType : "json",
success : function (back) {
/*
$.each(back.s, function(t,s) {
console.log(back.s)
$("#smscheck"+back.t).html(back.s);
})
*/
for (var i = 0; i < back.length; i++) {
console.log (back.t[i]);
$("#smscheck"+back.t[i]).html(back.s[i]);
//$("#smscheck"+back.i.tour).html(back.i.status);
}
},
})
}, 60000);
$(function () {
$("select").select2();
});
>