556 lines
25 KiB
PHP
556 lines
25 KiB
PHP
<?php
|
|
/* Smarty version 4.3.0, created on 2024-03-29 12:05:59
|
|
from '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/itour.tpl' */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '4.3.0',
|
|
'unifunc' => 'content_6606a097ad1b74_10971990',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'ce36fa2dcd2936118751a054b25566799a9f66bb' =>
|
|
array (
|
|
0 => '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/itour.tpl',
|
|
1 => 1704558460,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_6606a097ad1b74_10971990 (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',),));
|
|
?>
|
|
<section class="col-md-8">
|
|
<div class="row sortable">
|
|
<!-- Main Section -- mittlere Spalte -->
|
|
<div class="col-md-12">
|
|
<?php if ($_smarty_tpl->tpl_vars['anzeige']->value == 0) {?>
|
|
<?php if ($_smarty_tpl->tpl_vars['nochmenge']->value != 0) {?>
|
|
<div class="panel panel-info">
|
|
<div class="panel-heading" style="background-color:green;color: white">Touren werden angelegt !!!</div>
|
|
<div class="panel-body">
|
|
<i class="fas fa-spinner fa-pulse fa-2x" style="color: red"></i>
|
|
<span style="font-size: 14px;color: darkred"> Bitte warten...</br></span>
|
|
<span id="i_tour_a" style="font-size: 20px;color: darkred"> Es sind noch <?php echo $_smarty_tpl->tpl_vars['nochmenge']->value;?>
|
|
Tour(en) in der Warteschleife zum Anlegen. !!!</span>
|
|
</div>
|
|
<?php } else { ?>
|
|
<div class="panel panel-info">
|
|
<div class="panel-heading" style="background-color:orangered;color: white">alle aktiven Touren für den Monat <?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
|
im Jahr <?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
|
anlegen.</div>
|
|
<div class="panel-body">
|
|
<table class="table table-condensed">
|
|
<thead style="background-color:yellow">
|
|
<th style="width:100px;font-size:8pt" align="left">Tour</th>
|
|
<th style="width:190px;font-size:8pt" align="left">Tourbez.</th>
|
|
<th style="width:220px;font-size:8pt" align="center">Stammfahrer</th>
|
|
<th style="width:80px;font-size:8pt" align="center">Stammauto</th>
|
|
<th style="width:35px;font-size:8pt" align="left">Status</th>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['touraktiv']->value, 'taktiv');
|
|
$_smarty_tpl->tpl_vars['taktiv']->do_else = true;
|
|
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['taktiv']->value) {
|
|
$_smarty_tpl->tpl_vars['taktiv']->do_else = false;
|
|
?>
|
|
<td align="left" style="font-size:11pt"><?php echo $_smarty_tpl->tpl_vars['taktiv']->value['tour'];?>
|
|
</td>
|
|
<td style="font-size:8pt"><?php echo $_smarty_tpl->tpl_vars['taktiv']->value['infotitel'];?>
|
|
</td>
|
|
|
|
<td style="font-size:11pt"><?php echo $_smarty_tpl->tpl_vars['taktiv']->value['name'];?>
|
|
</td>
|
|
<td style="font-size:11pt"><?php echo $_smarty_tpl->tpl_vars['taktiv']->value['kz'];?>
|
|
</td>
|
|
<?php if ($_smarty_tpl->tpl_vars['taktiv']->value['ok'] == 1) {?>
|
|
<td style="font-size:11pt" align="right"><i class="fad fa-check-square" style="color: green"></i></td>
|
|
<?php } else { ?>
|
|
<td style="font-size:11pt" align="right"><i class="fad fa-times-square"></i></td>
|
|
<?php }?>
|
|
</tr>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<?php }?>
|
|
<!-- ------------------------------------ Tourenliste -->
|
|
<?php } else { ?> <!-- keine Auswahlgetroffen -->
|
|
<?php if ($_smarty_tpl->tpl_vars['einzel']->value == 0) {?>
|
|
<div class="panel panel-warning">
|
|
<div class="panel-heading">Auswahl Touren <?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
|
/<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
|
</div>
|
|
<div class="panel-body">
|
|
<table class="no-style full">
|
|
<thead>
|
|
<th style="width:25px;font-size:8pt" align="left">akt.</th>
|
|
<th style="width:100px;font-size:8pt" align="left">Tourbez.</th>
|
|
<th style="width:190px;font-size:8pt" align="left">Detailanzeige</th>
|
|
<th style="width:220px;font-size:8pt" align="center">Stammfahrer</th>
|
|
<th style="width:120px;font-size:8pt" align="center">Stammauto</th>
|
|
<!--
|
|
<th style="width:20px;font-size:8pt" align="left">anl.</th>-->
|
|
<th style="width:15px;font-size:8pt" align="left">del.</th>
|
|
|
|
<th style="width:35px;font-size:8pt" align="left">Status</th>
|
|
</thead>
|
|
<tbody>
|
|
<form action="" method="post">
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['toursel']->value, 'tsel');
|
|
$_smarty_tpl->tpl_vars['tsel']->do_else = true;
|
|
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['tsel']->value) {
|
|
$_smarty_tpl->tpl_vars['tsel']->do_else = false;
|
|
?>
|
|
<td>
|
|
<label>
|
|
<input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['tsel']->value['id'];?>
|
|
" id="info_<?php echo $_smarty_tpl->tpl_vars['tsel']->value['id'];?>
|
|
" onChange="save_date(<?php echo $_smarty_tpl->tpl_vars['tsel']->value['id'];?>
|
|
)" <?php if ($_smarty_tpl->tpl_vars['tsel']->value['aktiv'] == 1) {?> checked="checked" <?php }?>>
|
|
</label>
|
|
</td>
|
|
<td style="width:110px;font-size:12pt" align="left"><a href="?s=itour&wahl=8&tid=<?php echo $_smarty_tpl->tpl_vars['tsel']->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['tsel']->value['tour'];?>
|
|
</a></td>
|
|
<td style="width:190px;font-size:9pt"><?php echo $_smarty_tpl->tpl_vars['tsel']->value['infotitel'];?>
|
|
</td>
|
|
|
|
<td style="width:220px;font-size:10pt"><center>
|
|
<select name="Fahrer[<?php echo $_smarty_tpl->tpl_vars['tsel']->value['id'];?>
|
|
]" id="user_<?php echo $_smarty_tpl->tpl_vars['tsel']->value['id'];?>
|
|
" style="width:190px;" onChange="save_user(<?php echo $_smarty_tpl->tpl_vars['tsel']->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;
|
|
?>
|
|
<?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['tsel']->value['s_fahrer']),$_smarty_tpl);?>
|
|
|
|
<?php
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
</select>
|
|
</td>
|
|
|
|
<td style="width:120px;font-size:10pt"><center>
|
|
<select name="Fahrzeug[<?php echo $_smarty_tpl->tpl_vars['tsel']->value['id'];?>
|
|
]" id="car_<?php echo $_smarty_tpl->tpl_vars['tsel']->value['id'];?>
|
|
" style="width:100px;" onChange="save_car(<?php echo $_smarty_tpl->tpl_vars['tsel']->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['tsel']->value['s_auto']),$_smarty_tpl);?>
|
|
|
|
<?php
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
</select>
|
|
</td>
|
|
<!--
|
|
<td><input type="image" name="add" value="<?php echo $_smarty_tpl->tpl_vars['tsel']->value['id'];?>
|
|
"src="template/images/icon/add.png"/></td> -->
|
|
<td><input type="image" name="del" value="<?php echo $_smarty_tpl->tpl_vars['tsel']->value['id'];?>
|
|
"src="template/images/icon/cross.png"/></td>
|
|
|
|
<td style="width:40px;font-size:11pt" align="right"><?php echo $_smarty_tpl->tpl_vars['tsel']->value['wert'];?>
|
|
x</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="panel-footer">
|
|
<a href="http://jb-data.de/index.php?s=itour&tid=<?php echo $_smarty_tpl->tpl_vars['tsel']->value['typ'];?>
|
|
&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
|
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
|
&wahl=6" class="btn btn-default">Alle Ausgewählte Touren anlegen.</a>
|
|
</form>
|
|
</div>
|
|
<?php } else { ?>
|
|
|
|
|
|
<!-- ///////////////// einzeltouranzeige -->
|
|
<div class="panel panel-warning">
|
|
<div class="panel-heading">Einzelanzeige <?php echo $_smarty_tpl->tpl_vars['anzeigetour']->value;?>
|
|
für <?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
|
/<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-2">
|
|
<div class="panel panel-primary">
|
|
<div class="panel-body" style="height:215px;overflow-y:">
|
|
<table class="no-style full">
|
|
<tbody>
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['etour']->value, 'e_tour');
|
|
$_smarty_tpl->tpl_vars['e_tour']->do_else = true;
|
|
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['e_tour']->value) {
|
|
$_smarty_tpl->tpl_vars['e_tour']->do_else = false;
|
|
?>
|
|
<?php if ($_smarty_tpl->tpl_vars['e_tour']->value['wz'] == 1) {?> <!-- ist Montag ???????? -->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<div class="panel panel-primary">
|
|
<div class="panel-body" style="height:215px;overflow-y:">
|
|
<table class="no-style full">
|
|
<tbody>
|
|
<?php }?>
|
|
<tr>
|
|
<td style="width:20px;font-size:12pt">
|
|
<label>
|
|
<input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['e_tour']->value['tid'];?>
|
|
" id="info_<?php echo $_smarty_tpl->tpl_vars['e_tour']->value['tag'];?>
|
|
"
|
|
onChange="tsave_date('<?php echo $_smarty_tpl->tpl_vars['e_tour']->value['tid'];?>
|
|
','<?php echo $_smarty_tpl->tpl_vars['e_tour']->value['tag'];?>
|
|
','<?php echo $_smarty_tpl->tpl_vars['e_tour']->value['monat'];?>
|
|
','<?php echo $_smarty_tpl->tpl_vars['e_tour']->value['jahr'];?>
|
|
','<?php echo $_smarty_tpl->tpl_vars['e_tour']->value['ok'];?>
|
|
')" <?php if ($_smarty_tpl->tpl_vars['e_tour']->value['ok'] > 0) {?> checked="checked" <?php }?>>
|
|
</label>
|
|
</td>
|
|
|
|
<td <?php if ($_smarty_tpl->tpl_vars['e_tour']->value['ft'] == 1) {?>
|
|
bgcolor="#F89737"
|
|
<?php } else { ?>
|
|
<?php if ($_smarty_tpl->tpl_vars['e_tour']->value['wz'] == 0) {?>bgcolor="#BEBEBE" <?php } else { ?>
|
|
bgcolor="#FFFFFF"
|
|
<?php }?>
|
|
<?php }?>
|
|
style="width:20px;font-size:11pt;color:#000000"><?php echo $_smarty_tpl->tpl_vars['e_tour']->value['wt'];?>
|
|
|
|
</td>
|
|
<td <?php if ($_smarty_tpl->tpl_vars['e_tour']->value['ft'] == 1) {?>
|
|
bgcolor="#F89737"
|
|
<?php } else { ?>
|
|
<?php if ($_smarty_tpl->tpl_vars['e_tour']->value['wz'] == 0) {?>bgcolor="#BEBEBE" <?php } else { ?>
|
|
bgcolor="#FFFFFF"
|
|
<?php }?>
|
|
<?php }?>
|
|
style="width:70px;font-size:11pt;color:#000000" align="right"><?php echo $_smarty_tpl->tpl_vars['e_tour']->value['tag'];?>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <td style="width:300px;font-size:11pt"> <?php echo $_smarty_tpl->tpl_vars['e_tour']->value['tour'];?>
|
|
</td> -->
|
|
|
|
</tr>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<?php }?>
|
|
<!-- ------------------------------------ -->
|
|
<?php }?>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ------------------------------------ -->
|
|
<!-- ------------------------------------ -->
|
|
<!-- ------------------------------------ -->
|
|
<!-- ------------------------------------ -->
|
|
<!-- ------------------------------------ -->
|
|
<!-- Sidebar -->
|
|
<aside class="col-md-4">
|
|
<!-- ------------------------------------ Monatswechsel -->
|
|
<div id="rightmenu" class="panel panel-default">
|
|
<div class="btn-group">
|
|
<a class="btn btn-warning btn-md" href="?s=itour&wahl=1&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;?>
|
|
" aria-label="Skip to main navigation">
|
|
<i class="fa fa-arrow-left" aria-hidden="true"></i>
|
|
</a>
|
|
<button type="button" class="btn btn-default btn-md"><?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
|
/<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
|
</button>
|
|
</a>
|
|
<a class="btn btn-warning btn-md" href="?s=itour&wahl=2&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;?>
|
|
" aria-label="Skip to main navigation">
|
|
<i class="fa fa-arrow-right" aria-hidden="true"></i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<!-- ------------------------------------- alle aktiven anlegen -->
|
|
<?php if ($_smarty_tpl->tpl_vars['anzeige']->value == 0 && $_smarty_tpl->tpl_vars['nochmenge']->value == 0) {?>
|
|
<div id="rightmenu" class="panel panel-default" style="background-color: yellow;color: white">
|
|
<div class="btn-group">
|
|
<a class="btn btn-md" href="?s=itour&wahl=7&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
|
&monat=<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
|
" aria-label="alle anlegen">
|
|
<i class="fad fa-edit"></i> Alle aktiven Touren anlegen !!!
|
|
</a>
|
|
|
|
</div>
|
|
</div>
|
|
<?php }?>
|
|
<!-- ------------------------------------- Bereichswahl -->
|
|
<div id="rightmenu" class="panel panel-default">
|
|
<div class="panel-heading">Typ Bereich</div>
|
|
<div class="panel-body">
|
|
<table class="no style">
|
|
<thead>
|
|
<tr>
|
|
<th style="width:140px;font-size:8pt" align="left">Tour</th>
|
|
<th style="width:220px;font-size:8pt" align="left">Info</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['tourenlist']->value, '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;
|
|
?>
|
|
<tr>
|
|
<td style="width:140px;font-size:12pt" align="left">
|
|
<a href="?s=itour&tid=<?php echo $_smarty_tpl->tpl_vars['tlist']->value['tid'];?>
|
|
&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['tname'];?>
|
|
|
|
</td>
|
|
<td style="width:140px;font-size:10pt" align="left"><?php echo $_smarty_tpl->tpl_vars['tlist']->value['tinfotitel'];?>
|
|
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<!-- ------------------------------------ Sondertermine -->
|
|
<div id="rightmenu" class="panel panel-warning">
|
|
<div class="panel-heading">Besonderes <?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
|
/<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
|
</div>
|
|
<div class="panel-body">
|
|
<table class="no-style full">
|
|
<thead>
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['datenlist']->value, 'dlist');
|
|
$_smarty_tpl->tpl_vars['dlist']->do_else = true;
|
|
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['dlist']->value) {
|
|
$_smarty_tpl->tpl_vars['dlist']->do_else = false;
|
|
?>
|
|
<tr>
|
|
<td style="width:90px;font-size:11pt"><?php echo $_smarty_tpl->tpl_vars['dlist']->value['tag'];?>
|
|
.<?php echo $_smarty_tpl->tpl_vars['dlist']->value['monat'];?>
|
|
.<?php echo $_smarty_tpl->tpl_vars['dlist']->value['jahr'];?>
|
|
</td>
|
|
<td style="width:160px;font-size:11pt"><?php echo $_smarty_tpl->tpl_vars['dlist']->value['info'];?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</aside>
|
|
|
|
<!------------------------------------------------>
|
|
<?php if ($_smarty_tpl->tpl_vars['nochmenge']->value != 0) {?>
|
|
|
|
<?php echo '<script'; ?>
|
|
>
|
|
var refreshId = setInterval(function() {
|
|
$.ajax({
|
|
type : "POST",
|
|
url : 'ajax.php?s=i_tour_a&tpl',
|
|
cache : false,
|
|
data : {
|
|
},
|
|
dataType : "html",
|
|
success : function(data){
|
|
$("#i_tour_a").html(data);
|
|
},
|
|
})
|
|
}, 10000);
|
|
<?php echo '</script'; ?>
|
|
>
|
|
|
|
<?php }?>
|
|
|
|
<!------------------------------------------------>
|
|
<?php echo '<script'; ?>
|
|
> var jahr = '<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
|
';<?php echo '</script'; ?>
|
|
>
|
|
<?php echo '<script'; ?>
|
|
> var monat = '<?php echo $_smarty_tpl->tpl_vars['monat']->value;?>
|
|
';<?php echo '</script'; ?>
|
|
>
|
|
<?php echo '<script'; ?>
|
|
> var tag = '<?php echo $_smarty_tpl->tpl_vars['tag']->value;?>
|
|
';<?php echo '</script'; ?>
|
|
>
|
|
|
|
<?php echo '<script'; ?>
|
|
>
|
|
function save_date(id) {
|
|
// alert($("#info_"+id).val());
|
|
var remember = document.getElementById('info_'+id);
|
|
if (remember.checked){
|
|
var istC = 1;
|
|
}else{
|
|
var istC = 0;
|
|
}
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "ajax.php?s=itour_save&a=date_save",
|
|
dataType: 'json',
|
|
data: 'tour='+id+ "&id="+id+"&istC="+istC,
|
|
success: function (data) {
|
|
if(data.success == true) {
|
|
}
|
|
console.log(data)
|
|
}
|
|
});
|
|
}
|
|
function tsave_date(tid,tag,monat,jahr) {
|
|
// alert($("#info_"+tag).val());
|
|
var remember = document.getElementById('info_'+tag);
|
|
if (remember.checked){
|
|
var istC = 1;
|
|
}else{
|
|
var istC = 0;
|
|
}
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "ajax.php?s=itour_save&a=tdate_save",
|
|
dataType: 'json',
|
|
// data: 'tour='+tid + "&tid="+tid + "&istC="+istC + "&tag="+tag +"&monat="+monat+ "&jahr="+jahr,
|
|
data: 'tour='+tid + "&tid="+tid + "&istC="+istC + "&tag="+tag +"&monat="+monat+ "&jahr="+jahr,
|
|
success: function (data) {
|
|
if(data.success == true) {
|
|
}
|
|
console.log(data)
|
|
}
|
|
});
|
|
}
|
|
function save_car(tourID) {
|
|
//alert($("#car_"+tourID).val());
|
|
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "ajax.php?s=itour_save&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'
|
|
}
|
|
});
|
|
}
|
|
console.log(data)
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
function save_user(tourID) {
|
|
//alert($("#car_"+tourID).val());
|
|
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "ajax.php?s=itour_save&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)
|
|
}
|
|
});
|
|
|
|
}
|
|
$(document).ready(function(){
|
|
$('[data-toggle="popover"]').popover();
|
|
});
|
|
|
|
<?php echo '</script'; ?>
|
|
>
|
|
|
|
|
|
|
|
|
|
<?php }
|
|
}
|