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

682 lines
26 KiB
PHP

<?php
/* Smarty version 4.3.0, created on 2024-04-09 11:47:51
from '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/ptag.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '4.3.0',
'unifunc' => 'content_66150ec7b0d020_99499442',
'has_nocache_code' => false,
'file_dependency' =>
array (
'e2f2b456ecbc02bad11371a02cb1da906160a08f' =>
array (
0 => '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/ptag.tpl',
1 => 1706091648,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_66150ec7b0d020_99499442 (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',),));
?>
<!-- <link rel="stylesheet" href="template/css/planung.css">
<link rel="stylesheet" href="../lib/css/select2.min.css"> -->
<?php echo '<script'; ?>
src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/js/select2.full.min.js"><?php echo '</script'; ?>
>
<!-- ********** -->
<body style="background-color:#333333">
<!-- ********** -->
<section class="col-md-9" style="background-color:#333333">
<div class="row sortable" style="background-color:#333333">
<!-- Main Section -- mittlere Spalte -->
<div class="col-md-2">
<div class="panel panel-tbox">
<table class="no-style full">
<tbody>
<td nowrap style="align:center;width:320px;font-size:14pt">
<a class="fa fa-arrow-left" href="?s=ptag&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=ptag&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 panel-tbox">
<div class="panel-heading" style="background-color:orange;">
<spawn style="width:5px;height:20px;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;
?>
<tr>
<?php if ($_smarty_tpl->tpl_vars['kt']->value['tagt'] == 1) {?>
</tr>
<td> </td>
<td nowrap style="width:5px;font-size:4pt;line-height: 5pt" >&nbsp;</td>
</tr>
<td style="width:5px"> </td>
<td nowrap style="width:70px;font-size:8pt">--- <?php echo $_smarty_tpl->tpl_vars['kt']->value['kw'];?>
.KW ---</td>
<tr>
<?php }?>
<td style="font-size:8pt;color:<?php echo $_smarty_tpl->tpl_vars['kt']->value['color'];?>
" onclick="window.location='?s=ptag&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:<?php echo $_smarty_tpl->tpl_vars['kt']->value['color'];?>
" onclick="window.location='?s=ptag&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>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
<!-- mitte seite -->
<!-- <div id="phelp" style="text-align:center;"></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='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-heading" style="background-color:orangered;">
<spawn style='font-size:16pt;color:white;'><?php echo $_smarty_tpl->tpl_vars['ftrow']->value['tag'];?>
<?php echo $_smarty_tpl->tpl_vars['ftrow']->value['bez'];?>
</spawn>
</div>
</div>
<?php }?>
<div class="col-md-10" >
<div class="panel panel-tagbox">
<div class="panel-body">
<table class="no-style hover">
<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 panel-tagbox">
<div class="panel-body">
<table class="no-style full">
<tbody>
<?php }?>
<tr>
<form action="" method="post">
<?php if ($_smarty_tpl->tpl_vars['tour']->value['aktiv'] == 0) {?>
<td nowrap style="width:110px;color:bisque"><?php echo $_smarty_tpl->tpl_vars['tour']->value['tour'];?>
</td>
<?php } else { ?>
<td nowrap style="width:110px;"><?php echo $_smarty_tpl->tpl_vars['tour']->value['tour'];?>
</td>
<?php }?>
<!-- --------------------------- fahrer hinweis -->
<?php if ($_smarty_tpl->tpl_vars['tour']->value['stamm_info'] == 0) {?> <td style="width:20px"> </td> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['tour']->value['stamm_info'] == 1) {?> <td align="left" data-toggle="tooltip" title=<?php echo $_smarty_tpl->tpl_vars['tour']->value['stamminfo'];?>
><i class="fad fa-info" style="color:red;font-size: 14px"</i> </td> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['tour']->value['stamm_info'] == 2) {?> <td align="left" data-toggle="tooltip" title=<?php echo $_smarty_tpl->tpl_vars['tour']->value['stamminfo'];?>
><i class="far fa-info" style="color:orange"></i></td> <?php }?>
<!-- ------------------------------------------
<td style="width:20px"> <?php echo $_smarty_tpl->tpl_vars['tour']->value['fahrer_id'];?>
</td>
-->
<?php if ($_smarty_tpl->tpl_vars['tour']->value['fahrer_id'] == 0) {?>
<td style="width:20px"><i class="fad fa-times-square" style="background-color:red;color:#fff"></i></td>
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['fahrer_ok'] == 0) {?>
<td style="width:20px"><i class="fad fa-info-square" style="background-color:#FF2222;color:#fff"></i></td>
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['fahrer_ok'] == 2) {?>
<td style="width:20px"><i class="fad fa-question-square" style="background-color:#FF9900;color:#fff"></i></td>
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['fahrer_ok'] == 3) {?>
<td style="width:20px"><i class="fad fa-check" style="background-color:#99FF00;color:#fff"></i></td>
<?php } else { ?> <td style="width:20px"> </td>
<?php }?>
<!-- --------------------------- fahrer mit anwesenheitsprüfung
<td nowrap id="ma_wahl<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
,<?php echo $_smarty_tpl->tpl_vars['tour']->value['typ'];?>
,<?php echo $_smarty_tpl->tpl_vars['tour']->value['fahrer_id'];?>
" style="width:165px;font-size:10pt;"></td> -->
<!-- --------------------------- fahrer mit anwesenheitsprüfung -->
<td nowrap style="width:195px;">
<!-- --------------------------- -->
<!-- --------------------------- -->
<select name="Fahrer[<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
]" id="user_<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
"
onChange="save_user(<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
)";>
<?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;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['allfahrer']->value['id'];?>
" <?php if ($_smarty_tpl->tpl_vars['tour']->value['fahrer_id'] == $_smarty_tpl->tpl_vars['allfahrer']->value['id']) {?> selected="selected"<?php }?> style="color: darkgray"><?php echo $_smarty_tpl->tpl_vars['allfahrer']->value['name'];?>
</option>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
<!-- --------------------------- -->
</select>
</td>
<!-- --------------------------- Fahrzeug -->
<td nowrap style="width:110px;">
<select name="Fahrzeug[<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
]" id="car_<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
" data-width="100px"
<?php if ($_smarty_tpl->tpl_vars['tour']->value['auto_id'] != 0) {?> style="width:90px;border:none;border-bottom: 1px solid "
<?php } else { ?> style="color: red"
<?php }?>
onChange="save_car(<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
)" data-hight="10px">
<?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'],'selected'=>$_smarty_tpl->tpl_vars['tour']->value['auto_id'],'output'=>$_smarty_tpl->tpl_vars['allauto']->value['kz'],'options2'=>$_smarty_tpl->tpl_vars['allauto']->value['kz']),$_smarty_tpl);?>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</select>
<?php echo '</script'; ?>
>
</td>
<!-- --------------------------- Zusatzinfo neu -->
<td nowrap id="ma_gh<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
" style="width:160px; font-size:8pt;background-color:#222222;color: #dcdcdc">
<input type="text" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['infotext'];?>
" id="info_<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
"
style="width:155px;height:22px;background-color:#222222;border:none;border-bottom: 1px solid #444444" name="infotext[<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
]"
onChange="save_info(<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
)">
</td>
<!--
<td nowrap id="ma_gh<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
" style="width:117px;font-size:7pt;">
<?php if ($_smarty_tpl->tpl_vars['tour']->value['stamm_info'] == 1) {?>
<div style="text-align: right; width:115px;font-size:8pt;color:#FF2222"><?php echo $_smarty_tpl->tpl_vars['tour']->value['stamminfo'];?>
</div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['tour']->value['stamm_info'] == 2) {?>
<div style="text-align: right; width:115px;font-size:8pt;color:#FF9900"><?php echo $_smarty_tpl->tpl_vars['tour']->value['stamminfo'];?>
</div>
<?php }?>
</td>
-->
<!-- SMS Status !!!!! ------------------------------------- -->
<td nowrap align="center" style="width:30px" id="smscheck<?php echo $_smarty_tpl->tpl_vars['tour']->value['tourid'];?>
">
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 0) {?> <i class='fal fa-comment-alt fa-1x' style='color:gray' ></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 1) {?> <i class='fas fa-comment-alt-exclamation fa-1x' style='color:orange' ></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 2) {?> <i class='fas fa-comment-alt-check fa-1x' style='color:green' ></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 8) {?> <i class='fas fa-comment-alt-dots fa-1x' style='color:gray' ></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 20) {?> <i class='fas fa-spinner fa-spin fa-1x' style='color:gray' ></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 3) {?> <i class='fas fa-comment-alt-times fa-1x' style='color:red' ></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 4) {?> <i class='fas fa-comment-alt-times fa-1x' style='color:red' ></i> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 5) {?> <i class='fas fa-comment-alt-times fa-1x' style='color:red' ></i> <?php }?>
<!-- <i class="fal fa-comment-alt fa-1x" style="color:#999" ></i> -->
</td>
<!-- Infobereich !!!!! ------------------------------------- -->
<td nowrap align="center" style="width:20px">
<i class="fad fa-info fa-1x" style="color:cornflowerblue;font-size: 14px" 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=ptag&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:#999" >
</td>
<?php if ($_smarty_tpl->tpl_vars['tour']->value['zusatz'] == 0) {?>
<!-- 2. Tour hinzufügen ------------------------------------- -->
<td nowrap align="center" style="width:30px; font-size:13pt;"
onclick="window.location='?s=ptag&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;?>
&dazu=<?php echo $_smarty_tpl->tpl_vars['tour']->value['tid'];?>
&kw=<?php echo $_smarty_tpl->tpl_vars['tour']->value['kw'];?>
'";>
<i class="fal fa-plus" style="color:#999" >
</td>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['tour']->value['zusatz'] == 1) {?>
<!-- 2. Tour löschen ------------------------------------- -->
<td nowrap align="center" style="width:30px; font-size:13pt;"
onclick="window.location='?s=ptag&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:#444" >
</td>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['tour']->value['zusatz'] == 2) {?>
<!-- 2. Tour hinzufügen ------------------------------------- -->
<td nowrap align="center" style="width:30px; font-size:13pt;">
<i class="fal fa-minus" style="color:#444" >
</td>
<?php }?>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
<!-- -------------------------------------->
</section>
<!-- rechte seite -->
<!-- -------------------------------------->
<!-- Sidebar -->
<aside class="col-md-3" style="background-color:#333333">
<div id="rightmenu" class="panel panel-tbox">
<div class="panel-body">
<table class="no-style full" style="margin:-20px">
<thead>
<tr>
<td nowrap align="center" style="width:150px;font-size: 40pt">
<form action="" method="post">
<input type="hidden" name="smst" value="<?php echo $_smarty_tpl->tpl_vars['tag']->value;?>
"/>
<input type="hidden" name="smsm" value="<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
"/>
<input type="hidden" name="smsj" value="<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
"/>
<button type="submit" class="btn btn" id="notifyBtn" value="SMS senden" name="smspower" value="kompl. Liste per SMS senden" onclick="return confirm('M&ouml;chten sie wirklich alle SMS senden ?')" style="background-color: #222222;color:gray">
<i style="font-size: 40pt" class="far fa-sms fa-lg"></i>
</form>
</td>
<td></td>
<!--
<td nowrap align="center" style="width:100px;font-size: 40pt">
<form action="" method="post">
<button type="submit" class="btn btn" id="notifyBtn" name="vortag" value="vortag übernehmen" value="kompl. Liste per SMS senden" onclick="return confirm('M&ouml;chten sie wirklich den Vortag kopieren ??')"style="background-color: #222222;color:gray">
<i style="font-size: 40pt" class="far fa-copy fa-lg"></i>
</td>
-->
</tr>
</thead>
</table>
</br>
</div>
</div>
<!--
<div id="rightmenu" class="panel panel-default">
<table class="no-style full">
<tbody>
<td>
<form action="" method="post">
<input type="hidden" name="smst" value="<?php echo $_smarty_tpl->tpl_vars['tag']->value;?>
"/>
<input type="hidden" name="smsm" value="<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
"/>
<input type="hidden" name="smsj" value="<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
"/>
<input type="submit" id="notifyBtn" value="SMS senden" name="smspower" value="kompl. Liste per SMS senden" onclick="return confirm('M&ouml;chten sie wirklich alle SMS senden ?')">
</form>
</td>
</tbody>
</table>
</div>
-->
<!-- ------------------------------------ -->
<!-- --------------------------------------------------------------------------------- -->
<!-- -------------------------------- History -->
<div id="tinfo"></div>
<!-- -------------------------------- fehlende Mitarbeiter heute / Calender -->
<div id="rightmenu" class="panel panel-tbox">
<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;&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;">
<?php if ($_smarty_tpl->tpl_vars['maf']->value['na'] != 0) {?>
<i class='<?php echo $_smarty_tpl->tpl_vars['maf']->value['icon'];?>
' style="color:#b50000"></i>
<?php } else { ?>
<i class='<?php echo $_smarty_tpl->tpl_vars['maf']->value['icon'];?>
' style="color: orange"></i>
<?php }?>
</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>
<!-- --------------------------------------------------------------------------------- -->
<!-- -------------------------------- verfügbare Mitarbeiter -->
<div id="freema"></div>
<!-- -------------------------------- verfügbare Fahrzeuge -->
<div id="freecar"></div>
<!-- --------------------------------------------------------------------------------- -->
</aside>
<!-- --------------------------------------------------------------------------------- -->
<!-- Sidebar End -->
</body>
<!-- <?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=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();
});
<?php echo '</script'; ?>
>
<?php }
}