jb-data.de/compile/090b9fddec14a7fc13beb3d7b0f7264d2bce65f0_0.file.p_ilonexs.tpl.php
2025-08-11 22:23:30 +02:00

691 lines
24 KiB
PHP

<?php
/* Smarty version 4.3.0, created on 2024-04-01 11:10:42
from '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/p_ilonexs.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '4.3.0',
'unifunc' => 'content_660a7a1247afa4_79450131',
'has_nocache_code' => false,
'file_dependency' =>
array (
'090b9fddec14a7fc13beb3d7b0f7264d2bce65f0' =>
array (
0 => '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/p_ilonexs.tpl',
1 => 1704554808,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_660a7a1247afa4_79450131 (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',),));
?>
<!-- ********** -->
<?php echo '<script'; ?>
>
function tload(tld) {
$.ajax({
type: 'POST',
url: "ajax.php?s=tload&tpl",
dataType: 'html',
data: 'tld=' + tld,
success: function (data) {
$("#tload"+tld).html(data);
}
});
}
<?php echo '</script'; ?>
>
<!-- ********** -->
<section class="col-md-9" style="background-color:#333333">
<div class="row sortable">
<!-- Main Section -- mittlere Spalte -->
<div class="col-md-2">
<div class="panel">
<table class="no-style full">
<tbody>
<td nowrap style="align:center;width:320px;font-size:14pt">
<a class="fa fa-arrow-left" href="?s=p_ilonexs&wahl=1&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
"></a>
<strong><?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
/<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
</strong>
<a class="fa fa-arrow-right" href="?s=p_ilonexs&wahl=2&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
"></a></td>
</tbody>
</table>
</div>
<div class="panel" style="background-color:#222222;">
<div class="panel-heading" style="background-color:yellow;">
<spawn style="width:5px;height:2px;font-size:16pt;"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['datum_unix']->value,"%d.%m.%y");?>
</spawn>
</div>
<div class="panel-body">
<table class="table-hover" style="font-size:11pt;line-height: 14pt">
<tbody>
<?php
$_from = $_smarty_tpl->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;
?>
<?php if ($_smarty_tpl->tpl_vars['tage']->value['tagt'] == 1) {?>
<tr>
<td> </td>
<td nowrap style="width:5px;font-size:4pt;line-height: 5pt" >&nbsp;</td>
</tr>
<tr style="width:5px;background-color: gray;color:#fff">
<td> </td>
<td nowrap style="width:70px;font-size:8pt">--- <?php echo $_smarty_tpl->tpl_vars['kt']->value['kw'];?>
.KW ---</td>
</tr>
<?php }?>
<tr style="background:#222222">
<?php if ($_smarty_tpl->tpl_vars['kt']->value['t'] == 0) {?>
<td style="font-size:8pt;color:darkred" onclick="window.location='?s=p_ilonexs&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
&tag=<?php echo $_smarty_tpl->tpl_vars['kt']->value['tag'];?>
&anz=<?php echo $_smarty_tpl->tpl_vars['anz']->value;?>
'"><?php echo $_smarty_tpl->tpl_vars['kt']->value['wt'];?>
</td>
<td style="font-size:13pt;color:darkred" onclick="window.location='?s=p_ilonexs&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
&tag=<?php echo $_smarty_tpl->tpl_vars['kt']->value['tag'];?>
&anz=<?php echo $_smarty_tpl->tpl_vars['anz']->value;?>
'"><?php echo $_smarty_tpl->tpl_vars['kt']->value['datum'];?>
</td>
<?php } elseif ($_smarty_tpl->tpl_vars['kt']->value['btag'] != 0) {?>
<td style="font-size:8pt;color:blue" onclick="window.location='?s=p_ilonexs&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
&tag=<?php echo $_smarty_tpl->tpl_vars['kt']->value['tag'];?>
&anz=<?php echo $_smarty_tpl->tpl_vars['anz']->value;?>
'"><?php echo $_smarty_tpl->tpl_vars['kt']->value['wt'];?>
</td>
<td style="font-size:13pt;color:blue" onclick="window.location='?s=p_ilonexs&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
&tag=<?php echo $_smarty_tpl->tpl_vars['kt']->value['tag'];?>
&anz=<?php echo $_smarty_tpl->tpl_vars['anz']->value;?>
'"><?php echo $_smarty_tpl->tpl_vars['kt']->value['datum'];?>
</td>
<?php } elseif ($_smarty_tpl->tpl_vars['kt']->value['ftag'] != 0) {?>
<td style="font-size:8pt;color:orange" onclick="window.location='?s=p_ilonexs&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
&tag=<?php echo $_smarty_tpl->tpl_vars['kt']->value['tag'];?>
&anz=<?php echo $_smarty_tpl->tpl_vars['anz']->value;?>
'"><?php echo $_smarty_tpl->tpl_vars['kt']->value['wt'];?>
</td>
<td style="font-size:13pt;color:orange" onclick="window.location='?s=p_ilonexs&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
&tag=<?php echo $_smarty_tpl->tpl_vars['kt']->value['tag'];?>
&anz=<?php echo $_smarty_tpl->tpl_vars['anz']->value;?>
'"><?php echo $_smarty_tpl->tpl_vars['kt']->value['datum'];?>
</td>
<?php } else { ?>
<td style="font-size:8pt;color:#fff" onclick="window.location='?s=p_ilonexs&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
&tag=<?php echo $_smarty_tpl->tpl_vars['kt']->value['tag'];?>
&anz=<?php echo $_smarty_tpl->tpl_vars['anz']->value;?>
'"><?php echo $_smarty_tpl->tpl_vars['kt']->value['wt'];?>
</td>
<td style="font-size:13pt;color:#fff" onclick="window.location='?s=p_ilonexs&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
&tag=<?php echo $_smarty_tpl->tpl_vars['kt']->value['tag'];?>
&anz=<?php echo $_smarty_tpl->tpl_vars['anz']->value;?>
'"><?php echo $_smarty_tpl->tpl_vars['kt']->value['datum'];?>
</td>
<?php }?>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
<?php if ($_smarty_tpl->tpl_vars['old']->value > 0) {?>
<div class="col-md-10">
<div class="panel-heading" style="background-color:darkred;">
<spawn style='width:5px;height:2px;font-size:16pt;color:white;'><strong>Achtung!</strong> Diese Planung liegt in der Vergangenheit...</spawn>
</div>
</div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['fttest']->value > 0) {?>
<div class="col-md-10">
<div class="panel panel-danger">
<div class="panel-heading">Feiertag</div>
<table class="table-condensed">
<tbody>
<td nowrap style="width:100px;line-height:120%;font-size:14pt"> <strong><?php echo $_smarty_tpl->tpl_vars['ftrow']->value['tag'];?>
</strong></td>
<td nowrap style="width:500px;line-height:120%;font-size:14pt"> <strong><?php echo $_smarty_tpl->tpl_vars['ftrow']->value['bez'];?>
</strong></td>
</tbody>
</table>
</div>
</div>
<?php }?>
<div class="col-md-10">
<div class="panel" style="border: black 1px solid;">
<div class="panel-body" style="background-color: #111111">
<table style="line-height:20px;font-size:11pt;color:#FFFFFF">
<tbody>
<?php
$_from = $_smarty_tpl->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;
?>
<?php if ($_smarty_tpl->tpl_vars['tour']->value['test'] == 99) {?>
</tbody>
</table>
</div>
</div>
<div class="panel" style="border: black 1px solid;">
<div class="panel-body" style="background-color: #222222">
<table style="line-height:20px;font-size:11pt;color:#FFFFFF">
<tbody>
<?php }?>
<!-- --------------------------- Einsatzplanung ---------------------------------------- -->
<tr id="_tload<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
" style="border-bottom: 1px solid #000;">
<?php if ($_smarty_tpl->tpl_vars['tour']->value['aktiv'] == 1) {?>
<td nowrap style="width:90px"><?php echo $_smarty_tpl->tpl_vars['tour']->value['tour'];?>
</td>
<?php } else { ?>
<td nowrap style="width:90px;color: aquamarine"><?php echo $_smarty_tpl->tpl_vars['tour']->value['tour'];?>
</td>
<?php }?>
<td nowrap style="width:195px;font-size:11pt;">
<!-- --------------------------- -->
<select name="Fahrer[<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
]" id="user_<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
" style="width:190px;border:none;background-color: #222222"
<?php if ($_smarty_tpl->tpl_vars['tour']->value['fahrer_id'] == 0) {?> style="border-bottom: 1px solid #FF2222;"
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['fahrer_ok'] == 0) {?> style="border-bottom: 1px solid #FF2222;"
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['fahrer_ok'] == 2) {?> style="border-bottom: 1px solid #FF9900;"
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['fahrer_ok'] == 3) {?> style="border-bottom: 1px solid #99FF00;"
<?php } else { ?> style="border-bottom: 1px solid #dcdcdc;"
<?php }?>
onChange="save_user(<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
)";>
<!-- --------------------------- fahrer_array -->
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['fahrer_array']->value, 'allfahrer');
$_smarty_tpl->tpl_vars['allfahrer']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['allfahrer']->value) {
$_smarty_tpl->tpl_vars['allfahrer']->do_else = false;
?>
<?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['allfahrer']->value['id'],'selected'=>$_smarty_tpl->tpl_vars['tour']->value['fahrer_id'],'output'=>$_smarty_tpl->tpl_vars['allfahrer']->value['name'],'options2'=>$_smarty_tpl->tpl_vars['allfahrer']->value['name']),$_smarty_tpl);?>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
<!-- --------------------------- -->
</select>
</td>
<!-- --------------------------- Fahrzeug -->
<td nowrap style="width:100px">
<select name="Fahrzeug[<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
]" id="car_<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
" style="width:95px;border:none;background-color: #222222"
<?php if ($_smarty_tpl->tpl_vars['tour']->value['auto_id'] == 0) {?> style="border-bottom: 1px solid #ff0000;"
<?php } else { ?> style="border-bottom: 1px solid #dcdcdc;"
<?php }?>
style="width:95px;"
onChange="save_car(<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
)" >
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['auto_array']->value, 'allauto');
$_smarty_tpl->tpl_vars['allauto']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['allauto']->value) {
$_smarty_tpl->tpl_vars['allauto']->do_else = false;
?>
<?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['allauto']->value['id'],'output'=>$_smarty_tpl->tpl_vars['allauto']->value['kz'],'selected'=>$_smarty_tpl->tpl_vars['tour']->value['auto_id']),$_smarty_tpl);?>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</select>
</td>
<!-- --------------------------- Zusatzinfo neu -->
<td nowrap align="right" style="width:240px; font-size:6pt;">info </td>
<td style="position:static; width:50px; font-size:7pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="hidden" name="sendtour" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
"/>
<td>
<td nowrap>
<input type="hidden" name="savetour" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
"/>
</center></td>
<td><center>
<input type="hidden" name="sendtour" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
"/>
<td>
<center>
</div>
</center>
</td>
<!-- Infobereich !!!!! ------------------------------------- -->
<!-- SMS Status !!!!! ------------------------------------- -->
<td nowrap align="center" style="width:30px" id="smscheck<?php echo $_smarty_tpl->tpl_vars['tour']->value['tourid'];?>
">
<i class="fal fa-comment-alt fa-1x" style="color:#303030" ></i>
</td>
<!-- Infobereich !!!!! ------------------------------------- -->
<td nowrap align="center" style="width:20px">
<i class="fal fa-info fa-1x" style="color:#0080FF" onclick="tinfo(<?php echo $_smarty_tpl->tpl_vars['tour']->value['tourid'];?>
)"></i>
</td>
<!-- SMS senden Änderung ------------------------------------- -->
<td nowrap align="center" style="width:20px; font-size:13pt;"
onclick="window.location='?s=p_ilonexs&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
&tag=<?php echo $_smarty_tpl->tpl_vars['tag']->value;?>
&sms=<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
'";>
<i class="fal fa-sms" style="color:white" >
</td>
<!-- 2. Tour löschen ------------------------------------- -->
<td nowrap align="center" style="width:30px; font-size:13pt;"
onclick="window.location='?s=p_ilonexs&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
&tag=<?php echo $_smarty_tpl->tpl_vars['tag']->value;?>
&daweg=<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
&kw=<?php echo $_smarty_tpl->tpl_vars['tour']->value['kw'];?>
'";>
<i class="fas fa-times" style="color:white" >
</td>
<!-- 2. Tour hinzufügen ------------------------------------- -->
<td nowrap align="center" style="width:30px; font-size:13pt;">
<i class="fal fa-minus" style="color:white" >
</td>
</tr>
<?php echo '<script'; ?>
>
var tld = '<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
';
<?php echo '</script'; ?>
>
<?php echo '<script'; ?>
>
tload(tld);
<?php echo '</script'; ?>
>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
<!-- -------------------------------------->
</div>
</section>
<!-- rechte seite -->
<!-- -------------------------------------->
<!-- Sidebar -->
<aside class="col-md-3" style="background:#333333">
<!-- ------------------------------------ -->
<!-- --------------------------------------------------------------------------------- -->
<!-- -------------------------------- History -->
<div id="tinfo"></div>
<!-- -------------------------------- fehlende Mitarbeiter heute / Calender -->
<div id="rightmenu" class="panel panel-primary">
<header class="panel-heading" style="font-size: 16pt;line-height:80%"><span class="fad fa-calendar-alt pull-left"></span><div class="panel-title">&nbsp;&nbsp;Kalender - <?php echo $_smarty_tpl->tpl_vars['tag']->value;?>
.<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
.<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
</div></header>
<div class="panel-body">
<table class="no-style full" style="margin:-8px">
<tbody>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['maf1']->value, 'maf');
$_smarty_tpl->tpl_vars['maf']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['maf']->value) {
$_smarty_tpl->tpl_vars['maf']->do_else = false;
?>
<tr align="left" >
<td align="center" nowrap style="width:15px;font-size:11pt;"><i class='<?php echo $_smarty_tpl->tpl_vars['maf']->value['icon'];?>
'></i></td>
<td align="left" nowrap style="width:130px;font-size:10pt">&nbsp;&nbsp;<?php echo $_smarty_tpl->tpl_vars['maf']->value['fahrer'];?>
</td>
<td align="right" nowrap style="width:100px;font-size:10pt"><?php echo $_smarty_tpl->tpl_vars['maf']->value['bez'];?>
&nbsp;</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
<!-- --------------------------------------------------------------------------------- -->
<div id="rightmenu" class="panel panel-default">
<div class="panel-heading"><h2 class="panel-title">Toursetup</h2></div>
<section class="panel-body">
<form action="" method="post">
</br><b>Tour hinzu:</b>
<select name="plus" style="width:140px;" >
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['tourplus']->value, 'tplus');
$_smarty_tpl->tpl_vars['tplus']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['tplus']->value) {
$_smarty_tpl->tpl_vars['tplus']->do_else = false;
?>
<?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['tplus']->value['id'],'output'=>$_smarty_tpl->tpl_vars['tplus']->value['tour']),$_smarty_tpl);?>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
<input type="hidden" name="dazu" value="<?php echo $_smarty_tpl->tpl_vars['tplus']->value['id'];?>
"/>
<input type="hidden" name="dazu" value="<?php echo $_smarty_tpl->tpl_vars['tplus']->value['id'];?>
"/>
<input type="submit" name="dazuplus" value="hinzuf&uuml;gen" >
</select>
</form>
</section>
</div>
<!-- --------------------------------------------------------------------------------- -->
<!-- -------------------------------- verfügbare Mitarbeiter -->
<div id="freema"></div>
<!-- -------------------------------- verfügbare Fahrzeuge -->
<div id="freecar"></div>
<!-- --------------------------------------------------------------------------------- -->
</br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br>
</aside>
<!-- --------------------------------------------------------------------------------- -->
<!-- Sidebar End -->
<!-- <?php echo '<script'; ?>
> var tagheute = '<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['datum_unix']->value,"%Y-%m-%d");?>
';<?php echo '</script'; ?>
> -->
<?php echo '<script'; ?>
> var tag = '<?php echo $_smarty_tpl->tpl_vars['tag']->value;?>
';<?php echo '</script'; ?>
>
<?php echo '<script'; ?>
> var monat = '<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
';<?php echo '</script'; ?>
>
<?php echo '<script'; ?>
> var jahr = '<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
';<?php echo '</script'; ?>
>
<?php echo '<script'; ?>
>
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=paktuell&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);
<?php echo '</script'; ?>
>
<?php echo '<script'; ?>
>
var countryResult = [];
$(document).on('keyup' , '#search-keyword' ,function(){
var keyvalue = $("#search-keyword").val();
var xhttp;
xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
countryResult = [];
myFunction(this , keyvalue);
}
};
xhttp.open("GET", "country.xml", true);
xhttp.send();
});
function myFunction(xml , key) {
var x, i, xmlDoc , key;
xmlDoc = xml.responseXML;
x = xmlDoc.getElementsByTagName("country");
var counter = 0;
for (i = 0; i < x.length; i++) {
var value = x[i].childNodes[0].nodeValue.trim();
var pattern = value.substring(0 , key.length);
if(key.toUpperCase() == pattern.toUpperCase() && counter < 10){
countryResult.push(value);
counter++;
}
}
$("#search-keyword").autocomplete({
source: countryResult
});
}
$( function() {
$( "#search-keyword" ).autocomplete({
source:countryResult
});
});
<?php echo '</script'; ?>
>
<?php }
}