init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
|
|
@ -0,0 +1,601 @@
|
|||
<?php
|
||||
/* Smarty version 4.3.0, created on 2024-05-02 14:56:30
|
||||
from '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/pwtag.tpl' */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '4.3.0',
|
||||
'unifunc' => 'content_66338d7e3c0dd7_66165328',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a249fcd33979c58c485bff8ca24aabcbe52f6beb' =>
|
||||
array (
|
||||
0 => '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/pwtag.tpl',
|
||||
1 => 1714654580,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_66338d7e3c0dd7_66165328 (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',),));
|
||||
?>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
|
||||
<?php echo '<script'; ?>
|
||||
src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"><?php echo '</script'; ?>
|
||||
>
|
||||
<?php echo '<script'; ?>
|
||||
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"><?php echo '</script'; ?>
|
||||
>
|
||||
</head>
|
||||
|
||||
|
||||
|
||||
<div class="row sortable">
|
||||
<div class="col-sm-4">
|
||||
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<b><span style='font-size:12pt;line-height:115%; color:#4F81BD'><a class="button-blue" href="?s=pwtag&wahl=1&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
||||
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
||||
">«</a>   <?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
||||
/<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
||||
  <a class="button-blue" href="?s=pwtag&wahl=2&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
||||
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
||||
">»</a>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<a class="button button-orange" href="?s=list_pwtag&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
||||
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
||||
&tid=<?php echo $_smarty_tpl->tpl_vars['anzeige']->value;?>
|
||||
">PDF/Monat</a></div>
|
||||
</div></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="panel-group" id="accordion">
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['tag_tour']->value, 't_tour');
|
||||
$_smarty_tpl->tpl_vars['t_tour']->do_else = true;
|
||||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['t_tour']->value) {
|
||||
$_smarty_tpl->tpl_vars['t_tour']->do_else = false;
|
||||
?>
|
||||
<?php if ($_smarty_tpl->tpl_vars['t_tour']->value['menge'] > 0) {?>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">
|
||||
<a data-toggle="collapse" data-parent="#accordion" href="<?php echo $_smarty_tpl->tpl_vars['t_tour']->value['raute'];?>
|
||||
"><?php echo $_smarty_tpl->tpl_vars['t_tour']->value['name1'];?>
|
||||
(<?php echo $_smarty_tpl->tpl_vars['t_tour']->value['name2'];?>
|
||||
)</a></h4>
|
||||
</div>
|
||||
<?php if ($_smarty_tpl->tpl_vars['t_tour']->value['typ'] == $_smarty_tpl->tpl_vars['t_tour']->value['col']) {?> <!-- fenster aufgeklappt bei auswahl des types -->
|
||||
<div id=<?php echo $_smarty_tpl->tpl_vars['t_tour']->value['typ'];?>
|
||||
class="panel-collapse collapse in">
|
||||
<?php } else { ?>
|
||||
<div id=<?php echo $_smarty_tpl->tpl_vars['t_tour']->value['typ'];?>
|
||||
class="panel-collapse collapse">
|
||||
<?php }?>
|
||||
<div class="panel-body">
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['t_tour']->value['tdata'], 'tlist');
|
||||
$_smarty_tpl->tpl_vars['tlist']->do_else = true;
|
||||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['tlist']->value) {
|
||||
$_smarty_tpl->tpl_vars['tlist']->do_else = false;
|
||||
?>
|
||||
<table class="no-style full">
|
||||
<thead>
|
||||
<?php if ($_smarty_tpl->tpl_vars['tlist']->value['aktiv'] == 0) {?>
|
||||
<tr>
|
||||
<td style="font-size:10pt;color:gray" onclick="window.location='?s=pwtag&id=<?php echo $_smarty_tpl->tpl_vars['tlist']->value['id'];?>
|
||||
&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
||||
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
||||
'"><?php echo $_smarty_tpl->tpl_vars['tlist']->value['tour'];?>
|
||||
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<tr>
|
||||
<td style="font-size:10pt;color:blue" onclick="window.location='?s=pwtag&id=<?php echo $_smarty_tpl->tpl_vars['tlist']->value['id'];?>
|
||||
&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
||||
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
||||
'"><?php echo $_smarty_tpl->tpl_vars['tlist']->value['tour'];?>
|
||||
|
||||
</td>
|
||||
<?php }?>
|
||||
|
||||
<td nowrap style="font-size:6pt"> <?php echo $_smarty_tpl->tpl_vars['tlist']->value['infotitel'];?>
|
||||
</td>
|
||||
|
||||
<!--
|
||||
<td nowrap style="font-size:11pt"><a href="?s=pwtag&id=<?php echo $_smarty_tpl->tpl_vars['tlist']->value['id'];?>
|
||||
&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
||||
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
||||
" title="Kicke zum auswälen" ><?php echo $_smarty_tpl->tpl_vars['tlist']->value['tour'];?>
|
||||
</a></td>
|
||||
<td nowrap style="font-size:8pt"> <?php echo $_smarty_tpl->tpl_vars['tlist']->value['infotitel'];?>
|
||||
</td>
|
||||
-->
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['anzeige']->value == 0) {?>
|
||||
<div class="col-md-9">
|
||||
<div class="panel panel-default">
|
||||
<header class="panel-heading"><h2 class="panel-title">Info</span></h2></header>
|
||||
<section class="panel-body">
|
||||
<header class="current"><h2>Info </h2></header>
|
||||
<span style='font-size:10pt;line-height:115%; color:#4F81BD'>
|
||||
Bitte die Tour auwählen die Sie bearbeiten möchten.
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div id="plan_tour" style="text-align:center;"></div>
|
||||
|
||||
|
||||
</div>
|
||||
<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// rechte seite -->
|
||||
<?php } else { ?>
|
||||
<!-- ///////////////// menu seite -->
|
||||
<?php if ($_smarty_tpl->tpl_vars['infoanz']->value > 0) {?>
|
||||
<div class="col-md-6">
|
||||
<div class="panel panel-danger">
|
||||
<div class="panel-heading">unklare Tourenplanung</div>
|
||||
<div class="panel-body" style="height:120px;overflow-y: scroll;">
|
||||
<table class="table-condensed">
|
||||
<tbody> <?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['infod']->value, 'info');
|
||||
$_smarty_tpl->tpl_vars['info']->do_else = true;
|
||||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['info']->value) {
|
||||
$_smarty_tpl->tpl_vars['info']->do_else = false;
|
||||
?>
|
||||
<?php if ($_smarty_tpl->tpl_vars['info']->value['infotyp'] == 4) {?>
|
||||
<td nowrap style="color:orange;width:60px;line-height:60%;font-size:10pt"> <strong><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['info']->value['date'],"%d.%m.%Y");?>
|
||||
</strong></td>
|
||||
<td nowrap style="color:orange;width:180px;line-height:60%;font-size:10pt"> <strong><?php echo $_smarty_tpl->tpl_vars['info']->value['info'];?>
|
||||
</strong></td>
|
||||
<td nowrap style="color:#B1B1B1;width:400px;line-height:60%;font-size:10pt"> <strong><?php echo $_smarty_tpl->tpl_vars['info']->value['text'];?>
|
||||
</strong></td>
|
||||
<?php } else { ?>
|
||||
<td nowrap style="color:red;width:60px;line-height:60%;font-size:10pt"> <strong><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['info']->value['date'],"%d.%m.%Y");?>
|
||||
</strong></td>
|
||||
<td nowrap style="color:red;width:180px;line-height:60%;font-size:10pt"> <strong><?php echo $_smarty_tpl->tpl_vars['info']->value['info'];?>
|
||||
</strong></td>
|
||||
<td nowrap style="color:#B1B1B1;width:400px;line-height:60%;font-size:8pt"> <strong><?php echo $_smarty_tpl->tpl_vars['info']->value['text'];?>
|
||||
</strong></td>
|
||||
<?php }?>
|
||||
</tbody> <?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } elseif ($_smarty_tpl->tpl_vars['ersanz']->value > 0) {?>
|
||||
<div class="col-md-6">
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading">Tourenplanung</div>
|
||||
<div class="panel-body" style="max-height:120px;overflow-y: scroll;">
|
||||
<table class="table-condensed">
|
||||
<tbody> <?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['ersatzx']->value, 'ersatz');
|
||||
$_smarty_tpl->tpl_vars['ersatz']->do_else = true;
|
||||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['ersatz']->value) {
|
||||
$_smarty_tpl->tpl_vars['ersatz']->do_else = false;
|
||||
?>
|
||||
<td nowrap style="color:#569EFD;width:60px;line-height:60%;font-size:10pt"> <strong><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['ersatz']->value['date'],"%d.%m.%Y");?>
|
||||
</strong></td>
|
||||
<td nowrap style="color:#569EFD;width:160px;line-height:60%;font-size:10pt"> <strong><?php echo $_smarty_tpl->tpl_vars['ersatz']->value['info'];?>
|
||||
</strong></td>
|
||||
<td nowrap style="color:#B1B1B1;width:400px;line-height:60%;font-size:10pt"> <strong><?php echo $_smarty_tpl->tpl_vars['ersatz']->value['text'];?>
|
||||
</strong></td>
|
||||
</tbody> <?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="col-md-6">
|
||||
<div class="panel panel-success">
|
||||
<div class="panel-heading">gute Tourenplanung</div>
|
||||
<table class="table-condensed">
|
||||
<tbody> <?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['infod']->value, 'info');
|
||||
$_smarty_tpl->tpl_vars['info']->do_else = true;
|
||||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['info']->value) {
|
||||
$_smarty_tpl->tpl_vars['info']->do_else = false;
|
||||
?>
|
||||
<td nowrap style="color:red;width:60px;line-height:60%;font-size:10pt"> <strong><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['info']->value['date'],"%d.%m.%Y");?>
|
||||
</strong></td>
|
||||
<td nowrap style="color:red;width:400px;line-height:60%;font-size:10pt"> <strong><?php echo $_smarty_tpl->tpl_vars['info']->value['info'];?>
|
||||
</strong></td>
|
||||
</tbody> <?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<!-- ***** kompletten Monat einzeln Daten ändern ***** -->
|
||||
<div class="col-md-3">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Monat kopieren</div>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<form action="" method="post">
|
||||
<td style="width:90%;">Startzeit <input type="text" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['zeit'];?>
|
||||
" style="width:50px;" name="ezeit" placeholder="14:30"></td>
|
||||
<td><input type="image" name="ezeit2" value="<?php echo $_smarty_tpl->tpl_vars['tourname']->value;?>
|
||||
" src="template/images/icon/save.png"/></td>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- --------------------------- fahrer -->
|
||||
<tr>
|
||||
|
||||
<form action="" method="post">
|
||||
<td style="width:90%x;"><select name="efahrer" style="width:150px;" >
|
||||
<?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'],'output'=>$_smarty_tpl->tpl_vars['allfahrer']->value['name'],'selected'=>$_smarty_tpl->tpl_vars['s_fahrer']->value),$_smarty_tpl);?>
|
||||
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</select></td>
|
||||
<td><input type="image" name="efahrer2" value="<?php echo $_smarty_tpl->tpl_vars['tourname']->value;?>
|
||||
" src="template/images/icon/save.png"/></td>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- --------------------------- Fahrzeug -->
|
||||
<tr>
|
||||
<form action="" method="post">
|
||||
<td style="width:180px;"><select name="eauto" style="width:180px;" >
|
||||
<?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['s_auto']->value),$_smarty_tpl);?>
|
||||
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</select></td>
|
||||
<td><input type="image" name="eauto2" value="<?php echo $_smarty_tpl->tpl_vars['tourname']->value;?>
|
||||
" src="template/images/icon/save.png"/></td>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-9">
|
||||
<div class="panel panel-default">
|
||||
<header class="panel-heading"><h2 class="panel-title">Tourenplanung ges. Monat <?php echo $_smarty_tpl->tpl_vars['tourname']->value;?>
|
||||
</span></h2></header>
|
||||
<section class="panel-body">
|
||||
<table class="no-style full" style="font-size: 10pt">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:70px" align="left">Tour</th>
|
||||
<th style="width:50px" align="left">Zeit</th>
|
||||
<th style="width:190px" align="left">Fahrer</th>
|
||||
<th style="width:130px" align="left">Fahrzeug</th>
|
||||
<th style="width:300px" align="left">z.Info</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<form action="" method="post">
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['tour_edit']->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['tagnr'] == 1) {?>
|
||||
<td><hr style="color: red; height: 1px;" /></td>
|
||||
<td><hr style="color: red; height: 1px;" /></td>
|
||||
<td><hr style="color: red; height: 1px;" /></td>
|
||||
<td><hr style="color: red; height: 1px;" /></td>
|
||||
<td><hr style="color: red; height: 1px;" /></td>
|
||||
|
||||
<?php }?>
|
||||
<tr>
|
||||
<td style="width:70px"><b><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['tour']->value['date'],"%d.%m.%y");?>
|
||||
</td>
|
||||
<td><input type="text" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['zeit'];?>
|
||||
" id="time_<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||||
" style="width:45px;" name="list[<?php echo $_smarty_tpl->tpl_vars['tour']->value['tid'];?>
|
||||
][zeit]" onChange="save_time(<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||||
)"></td>
|
||||
<td style="width:190px"><center>
|
||||
<!--
|
||||
1= kein Fahrer ausgewählt
|
||||
2= fahrer hat Kalendereintrag
|
||||
3= nicht stammfahrer
|
||||
4= doppelt N8 einsatz
|
||||
-->
|
||||
<select name="list[<?php echo $_smarty_tpl->tpl_vars['tour']->value['tid'];?>
|
||||
][Fahrer]" id="user_<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||||
"
|
||||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['fahrer_na'] == 1) {?> style="border-color:red;width:180px;" onChange="save_user(<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||||
)"
|
||||
|
||||
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['fahrer_na'] == 2) {?> style="border-color:red;width:180px;" onChange="save_user(<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||||
)"
|
||||
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['fahrer_na'] == 3) {?> style="border-color:blue;width:180px;" onChange="save_user(<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||||
)"
|
||||
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['fahrer_na'] == 4) {?> style="border-color:orange;width:180px;" onChange="save_user(<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||||
)"
|
||||
<?php } else { ?> style="width:180px;"onChange="save_user(<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||||
)"<?php }?>>
|
||||
<?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 }?> ><strong><?php echo $_smarty_tpl->tpl_vars['allfahrer']->value['name'];?>
|
||||
</strong></option>
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
|
||||
<!-- --------------------------- Fahrzeug -->
|
||||
<td style="width:130px"><center>
|
||||
<select name="list[<?php echo $_smarty_tpl->tpl_vars['tour']->value['tid'];?>
|
||||
][Fahrzeug]" id="car_<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||||
" style="width:90px;" 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>
|
||||
<td>
|
||||
<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:90%;" name="list[<?php echo $_smarty_tpl->tpl_vars['tour']->value['tid'];?>
|
||||
][infotext]" onChange="save_info(<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||||
)"/></td>
|
||||
<input type="hidden" name="list[<?php echo $_smarty_tpl->tpl_vars['tour']->value['tid'];?>
|
||||
][tid]" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||||
"/><input type="hidden" name="testsave" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||||
" >
|
||||
<!-- <input type="image" name="speichern" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||||
" src="template/images/icon/l.png"/> -->
|
||||
<td> <center>
|
||||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsid'] == 0 && $_smarty_tpl->tpl_vars['tour']->value['fahrer_id'] > 0) {?><input type="image" name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||||
" src="template/images/icon/sms2.png"/><?php }?>
|
||||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsid'] > 0 && $_smarty_tpl->tpl_vars['tour']->value['fahrer_id'] > 0) {?><input type="image" name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||||
" src="template/images/icon/okay.png"/><?php }?>
|
||||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['fahrer_id'] == 0) {?><input type="image" name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||||
" src="template/images/icon/nosms.png"/><?php }?>
|
||||
</center>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||||
</tbody>
|
||||
</div></div>
|
||||
|
||||
|
||||
<dl>
|
||||
<section>
|
||||
<table class="no-style full" id="trp" style="font-size:11pt">
|
||||
</table>
|
||||
</dl>
|
||||
|
||||
|
||||
<?php }?>
|
||||
|
||||
</div></div></div></div>
|
||||
|
||||
|
||||
<?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'; ?>
|
||||
type="text/javascript">
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : 'ajax.php?s=plan_tour&tpl',
|
||||
cache : false,
|
||||
data : {
|
||||
},
|
||||
dataType : "html",
|
||||
success : function(data){
|
||||
$("#plan_tour").html(data);
|
||||
},
|
||||
});
|
||||
function save_info(tourID) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: "ajax.php?s=paktuell2&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'
|
||||
}
|
||||
});
|
||||
|
||||
console.log(data)
|
||||
}
|
||||
});
|
||||
}
|
||||
function save_time(tourID) {
|
||||
//alert($("#car_"+tourID).val());
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: "ajax.php?s=paktuell2&a=time_save",
|
||||
dataType: 'json',
|
||||
data: 'tourID=' + tourID + "&time=" + $("#time_"+tourID).val(),
|
||||
success: function (data) {
|
||||
if(data.success == true) {
|
||||
$.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'
|
||||
}
|
||||
});
|
||||
}
|
||||
console.log(data)
|
||||
}
|
||||
});
|
||||
}
|
||||
function save_car(tourID) {
|
||||
//alert($("#car_"+tourID).val());
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: "ajax.php?s=paktuell2&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(tourID,tagheute)
|
||||
}
|
||||
console.log(data)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
load_free_cars(0,tagheute);
|
||||
|
||||
function save_user(tourID) {
|
||||
//alert($("#car_"+tourID).val());
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: "ajax.php?s=paktuell2&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)
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
|
||||
|
||||
<?php }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue