214 lines
11 KiB
PHP
214 lines
11 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/ajax/tload.tpl' */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '4.3.0',
|
|
'unifunc' => 'content_660a7a12c7d062_74508469',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'36cf2ca68eddc973b4e0f1109a6a7b112b0be017' =>
|
|
array (
|
|
0 => '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/ajax/tload.tpl',
|
|
1 => 1694432193,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_660a7a12c7d062_74508469 (Smarty_Internal_Template $_smarty_tpl) {
|
|
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/var/www/vhosts/jb-data.de/httpdocs/lib/plugins/function.html_options.php','function'=>'smarty_function_html_options',),));
|
|
?>
|
|
<tr id="loadzeile<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
|
">
|
|
|
|
<form action="" method="post" >
|
|
<?php if ($_smarty_tpl->tpl_vars['tour']->value['aktiv'] == 0) {?>
|
|
<td nowrap style="width:110px;color:bisque;border-bottom: 1px solid #000"><?php echo $_smarty_tpl->tpl_vars['tour']->value['tour'];?>
|
|
</td>
|
|
<?php } else { ?>
|
|
<td nowrap style="width:110px;border-bottom: 1px solid #000"><?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 }?>
|
|
|
|
<!-- ------------------------------------------ -->
|
|
<?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 }?>
|
|
|
|
<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 if ($_smarty_tpl->tpl_vars['tour']->value['typ'] == 3) {?>
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['tour']->value['fahrer_array3'], '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);?>
|
|
<?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['tour']->value['typ'] == 4) {?>
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['tour']->value['fahrer_array4'], '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);?>
|
|
<?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['tour']->value['typ'] == 5) {?>
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['tour']->value['fahrer_array5'], '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);?>
|
|
<?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['tour']->value['typ'] == 17) {?>
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['tour']->value['fahrer_array17'], '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);?>
|
|
<?php }?>
|
|
</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['tour']->value['auto_array'], '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>
|
|
|
|
<!-- 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:#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=pnacht&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=pnacht&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=pnacht&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 }
|
|
}
|