753 lines
31 KiB
PHP
753 lines
31 KiB
PHP
<?php
|
||
/* Smarty version 4.3.0, created on 2024-10-18 11:54:47
|
||
from '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/pss.tpl' */
|
||
|
||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||
'version' => '4.3.0',
|
||
'unifunc' => 'content_671230679cd410_35945558',
|
||
'has_nocache_code' => false,
|
||
'file_dependency' =>
|
||
array (
|
||
'4bf931a3d5de03975973cdf3837cb912c11cf51e' =>
|
||
array (
|
||
0 => '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/pss.tpl',
|
||
1 => 1729245201,
|
||
2 => 'file',
|
||
),
|
||
),
|
||
'includes' =>
|
||
array (
|
||
),
|
||
),false)) {
|
||
function content_671230679cd410_35945558 (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',),));
|
||
echo '<script'; ?>
|
||
> var tagheute = '<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['datum_unix']->value,"%Y-%m-%d");?>
|
||
';<?php echo '</script'; ?>
|
||
>
|
||
|
||
<style>
|
||
select {
|
||
width: 250px;
|
||
border:none;
|
||
border-bottom: 1px solid #333333;
|
||
color: #999999;
|
||
background-color: #222222;
|
||
}
|
||
input[type=number] {
|
||
width: 250px;
|
||
border:none;
|
||
border-bottom: 1px solid #333333;
|
||
color: #DCDCDC;
|
||
background-color: #222222;
|
||
}
|
||
</style>
|
||
<?php echo '<script'; ?>
|
||
>
|
||
$(document).ready(function(){
|
||
$('[data-toggle="tooltip"]').tooltip();
|
||
});
|
||
<?php echo '</script'; ?>
|
||
>
|
||
<?php echo '<script'; ?>
|
||
>
|
||
$(document).ready(function() {
|
||
$("[rel=popover]").popover({'trigger':'hover'});
|
||
});
|
||
<?php echo '</script'; ?>
|
||
>
|
||
<style>
|
||
[rel="popover"]{
|
||
cursor: pointer;
|
||
display:inline-block; /* chrome-fix */
|
||
}
|
||
</style>
|
||
<?php echo '<script'; ?>
|
||
>
|
||
function caricon(tourID) {
|
||
$.ajax({
|
||
type: 'POST',
|
||
url: "ajax.php?s=ss&a=load_car_icon",
|
||
dataType: "json",
|
||
//contentType: "application/json; charset=utf-8",
|
||
data: 'tourID=' + tourID,
|
||
success: function (data) {
|
||
$("#caricon"+data.zeile).html(data.htmlresult);
|
||
}
|
||
});
|
||
}
|
||
function usericon(tourID) {
|
||
$.ajax({
|
||
type: 'POST',
|
||
url: "ajax.php?s=ss&a=load_user_icon",
|
||
dataType: "json",
|
||
//contentType: "application/json; charset=utf-8",
|
||
data: 'tourID=' + tourID,
|
||
success: function (data) {
|
||
$("#usericon"+data.zeile).html(data.htmlresult);
|
||
}
|
||
});
|
||
}
|
||
function load_free_cars(date) {
|
||
$.ajax({
|
||
type: 'POST',
|
||
url: "ajax.php?s=ss&a=load_free_cars",
|
||
dataType: "text",
|
||
//contentType: "application/json; charset=utf-8",
|
||
data: "date=" + date,
|
||
success: function (data) {
|
||
data = jQuery.parseJSON(data); // <-- *** ADD THIS LINE ***
|
||
console.log("data")
|
||
console.log(data)
|
||
$("#trp").html("");
|
||
$.each( data.trp, function( key, value ) {
|
||
$("#trp").append(value+"<br>");
|
||
});
|
||
}
|
||
});
|
||
}
|
||
function save_lohn(tourID) {
|
||
//alert($("#car_"+tourID).val());
|
||
|
||
$.ajax({
|
||
type: 'POST',
|
||
url: "ajax.php?s=ss&a=lohn_save",
|
||
dataType: 'json',
|
||
data: 'tourID=' + tourID + "&lohn=" + $("#lohn_"+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)
|
||
caricon(data.zeile);
|
||
}
|
||
});
|
||
|
||
}
|
||
function save_car(tourID) {
|
||
//alert($("#car_"+tourID).val());
|
||
|
||
$.ajax({
|
||
type: 'POST',
|
||
url: "ajax.php?s=ss&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)
|
||
caricon(data.zeile);
|
||
load_free_cars(tagheute);
|
||
}
|
||
});
|
||
|
||
}
|
||
function save_user(tourID) {
|
||
//alert($("#car_"+tourID).val());
|
||
|
||
$.ajax({
|
||
type: 'POST',
|
||
url: "ajax.php?s=ss&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)
|
||
usericon(data.zeile);
|
||
}
|
||
});
|
||
}
|
||
|
||
|
||
|
||
|
||
$(document).ready(function(){
|
||
$('[data-toggle="tooltip"]').tooltip();
|
||
});
|
||
|
||
load_free_cars(tagheute);
|
||
|
||
<?php echo '</script'; ?>
|
||
>
|
||
|
||
<!-- ********** --> <div class="container-fluid" style="background-color:#333333">
|
||
<div class="row">
|
||
<?php if ($_smarty_tpl->tpl_vars['ssa1']->value != 0) {?>
|
||
<div class="col-md-8">
|
||
<div class="panel panel-sbox">
|
||
<div class="panel-body">
|
||
<table class="no-style full" style="font-size:11pt">
|
||
<tbody>
|
||
<?php
|
||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['ss1']->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['wechsel'] == 1) {?>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
<div class="panel panel-sbox">
|
||
<div class="panel-body">
|
||
<table class="no-style full" style="font-size:11pt">
|
||
<tbody>
|
||
<?php }?>
|
||
<!-- **************************************************************************************************************
|
||
<td nowrap style="width:65px;line-height:2;font-size:11pt;" rel="stylesheet" title="<?php echo $_smarty_tpl->tpl_vars['tour']->value['info'];?>
|
||
" id="button1">
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['afirma'] != 1) {?><mark><?php }
|
||
echo $_smarty_tpl->tpl_vars['tour']->value['tname'];?>
|
||
</mark>
|
||
</td
|
||
-->
|
||
<tr>
|
||
<form action="" method="post">
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['aktiv'] != 0) {?>
|
||
<td nowrap style="width:65px;line-height:2;font-size:11pt;" rel="stylesheet" title="<?php echo $_smarty_tpl->tpl_vars['tour']->value['info'];?>
|
||
" id="button1"><?php echo $_smarty_tpl->tpl_vars['tour']->value['tname'];?>
|
||
|
||
</td>
|
||
<?php } else { ?>
|
||
<td nowrap style="width:60px;line-height:2;font-size:11pt;color:#115270;" rel="stylesheet" title="<?php echo $_smarty_tpl->tpl_vars['tour']->value['info'];?>
|
||
" id="button1">
|
||
<?php echo $_smarty_tpl->tpl_vars['tour']->value['tname'];?>
|
||
|
||
</td>
|
||
<?php }?>
|
||
<td nowrap style="width:55px;font-size:8pt" align="right"><?php echo $_smarty_tpl->tpl_vars['tour']->value['zeit'];?>
|
||
Uhr</td>
|
||
<!--
|
||
<td nowrap style="width:30px;font-size:8pt" align="right">
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['utyp'] == 11) {?>-1A-<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['utyp'] == 12) {?>-1B-<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['utyp'] == 21) {?>-2A-<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['utyp'] == 22) {?>-2B-<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['utyp'] == 31) {?>-3A-<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['utyp'] == 32) {?>-3B-<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['utyp'] == 41) {?>-4A-<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['utyp'] == 42) {?>-4B-<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['utyp'] == 51) {?>-5A-<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['utyp'] == 52) {?>-5B-<?php }?>
|
||
</td>
|
||
-->
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['gewicht4'] > 2200) {?>
|
||
<td nowrap style="width:20px;font-size:11pt;text-align:right;color:red"><i class="fa fa-stack-exchange"></i></td> <?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['gewicht4'] > 1800) {?>
|
||
<td nowrap style="width:20px;font-size:11pt;text-align:right;color:orange"><i class="fa fa-stack-exchange"></i></td> <?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['gewicht4'] > 0) {?>
|
||
<td nowrap style="width:20px;font-size:11pt;text-align:right;color:green"><i class="fa fa-stack-exchange"></i></td>
|
||
<?php } else { ?>
|
||
<td nowrap style="width:20px;font-size:11pt;text-align:right;color:gray"><i class="fa fa-stack-exchange"></i></td>
|
||
<?php }?>
|
||
|
||
<td nowrap style="width:50px;font-size:8pt" align="right">(<?php echo $_smarty_tpl->tpl_vars['tour']->value['gewicht'];?>
|
||
kg)</td>
|
||
<td nowrap style="width:60px;font-size:11pt" align="right"><?php echo $_smarty_tpl->tpl_vars['tour']->value['gewicht4'];?>
|
||
kg</td>
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['pakete'] != $_smarty_tpl->tpl_vars['tour']->value['pakete2']) {?>
|
||
<td nowrap style="width:70px;font-size:10pt" align="right"><?php echo $_smarty_tpl->tpl_vars['tour']->value['pakete2'];?>
|
||
/ <?php echo $_smarty_tpl->tpl_vars['tour']->value['pakete'];?>
|
||
</td>
|
||
<?php } else { ?>
|
||
<td nowrap style="width:70px;font-size:10pt" align="right"><?php echo $_smarty_tpl->tpl_vars['tour']->value['pakete'];?>
|
||
</td>
|
||
<?php }?>
|
||
<td nowrap style="width:23px;font-size:11pt;text-align:right;color:gray" id="usericon<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
">
|
||
<i class="fad fa-circle-notch"></i>
|
||
|
||
<?php echo '<script'; ?>
|
||
>usericon(<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
);
|
||
<?php echo '</script'; ?>
|
||
>
|
||
|
||
</td>
|
||
<td nowrap style="width:200px;font-size:11pt;" title="Stammfahrer: <?php echo $_smarty_tpl->tpl_vars['tour']->value['sfahrer'];?>
|
||
" id="button4">
|
||
<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:195px"
|
||
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;
|
||
?>
|
||
<?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['tour']->value['fahrer_id']),$_smarty_tpl);?>
|
||
|
||
<?php
|
||
}
|
||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||
</select>
|
||
</td>
|
||
|
||
<td nowrap style="width:20px;font-size:11pt;text-align:right;color:gray" id="caricon<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
">
|
||
<span class="fa fa-truck"></i>
|
||
|
||
<?php echo '<script'; ?>
|
||
>caricon(<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
);
|
||
<?php echo '</script'; ?>
|
||
>
|
||
|
||
</td>
|
||
<!-- --------------------------- Fahrzeug -->
|
||
<td nowrap style="width:100px;font-size:11pt;color:gray" title="Stammfahrzeug: <?php echo $_smarty_tpl->tpl_vars['tour']->value['sauto'];?>
|
||
" id="button4">
|
||
<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:100px"
|
||
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>
|
||
<!-- --------------------------- Lohneinstellung -->
|
||
<!--
|
||
<td nowrap align="right" style="width:45px;font-size:11pt;color: lightgray" title="Lohnauswahl: <?php echo $_smarty_tpl->tpl_vars['tour']->value['lohnbez'];?>
|
||
">
|
||
<select name="lohnstatus[<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
]" id="lohn_<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
"
|
||
style="width:35px;border:none;border-bottom: 1px solid #dcdcdc;"
|
||
onChange="save_lohn(<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
)" >
|
||
<?php
|
||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['lohn_array']->value, 'lstatus');
|
||
$_smarty_tpl->tpl_vars['lstatus']->do_else = true;
|
||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['lstatus']->value) {
|
||
$_smarty_tpl->tpl_vars['lstatus']->do_else = false;
|
||
?>
|
||
<?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['lstatus']->value['id'],'output'=>$_smarty_tpl->tpl_vars['lstatus']->value['bez'],'selected'=>$_smarty_tpl->tpl_vars['tour']->value['lohnstatus']),$_smarty_tpl);?>
|
||
|
||
<?php
|
||
}
|
||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||
</select>
|
||
</td>
|
||
-->
|
||
|
||
<!--
|
||
<td nowrap align="right" id="ma_gh<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
" style="width:25px;font-size:10pt;">
|
||
<input type="text" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['lohnstatus'];?>
|
||
" id="info_<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
"
|
||
style="width:20px;border-color:#dcdcdc;border:none;border-bottom: 1px solid #dcdcdc;" name="infotext[<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
]"
|
||
onChange="save_lohn(<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
)">
|
||
</td>
|
||
<!-- --------------------------- history -->
|
||
<td nowrap style="width:35px;font-size:11pt;text-align:center;color:gray">
|
||
|
||
<i style="width:20px;font-size:13pt" class="fa fa-info-circle" data-toggle="modal" data-target="#history"></i>
|
||
<!-- The Modal -->
|
||
<div class="modal fade" id="history">
|
||
<div class="modal-dialog">
|
||
<div class="modal-content">
|
||
<!-- Modal Header -->
|
||
<div class="modal-header">
|
||
<h4 class="modal-title">History für Tor <?php echo $_smarty_tpl->tpl_vars['tour']->value['tname'];?>
|
||
</h4>
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
</div>
|
||
<!-- ------------------------------------------------------------------------------------ -->
|
||
<!-- Modal body -->
|
||
<div class="modal-body">
|
||
<table class="table-striped">
|
||
<thead>
|
||
<tr>
|
||
<th style="width:200px";align="left"><strong>Fahrer</strong></th>
|
||
<th nowrap style="width:200px";align="right"><strong>wie oft gefahren</strong></th>
|
||
<th style="width:200px";align="right"><strong>zuletzt am</strong></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php
|
||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['tour']->value['history'], 'hinfo');
|
||
$_smarty_tpl->tpl_vars['hinfo']->do_else = true;
|
||
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['hinfo']->value) {
|
||
$_smarty_tpl->tpl_vars['hinfo']->do_else = false;
|
||
?>
|
||
<tr>
|
||
<td nowrap style="width:200px"><b> <?php echo $_smarty_tpl->tpl_vars['hinfo']->value['name'];?>
|
||
</td>
|
||
<td nowrap style="width:100px" align="right"> <?php echo $_smarty_tpl->tpl_vars['hinfo']->value['zahl'];?>
|
||
x</td>
|
||
<td nowrap style="width:200px" align="right"> <?php echo $_smarty_tpl->tpl_vars['hinfo']->value['last'];?>
|
||
Uhr</td>
|
||
|
||
<!-- --------------------------- fahrer -->
|
||
|
||
</tr>
|
||
<?php
|
||
}
|
||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<!-- Modal footer -->
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</td>
|
||
|
||
<!-- --------------------------- sms ohne ajax
|
||
<td nowrap style="width:20px;font-size:11pt;text-align:right;color:gray" id="smsicon<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
">
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['fahrer_id'] == 0) {?>
|
||
<button type='submit' name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
"><i class='fa fa-times' style="color:#000000;"></i></button>
|
||
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['auto_id'] == 0) {?>
|
||
<button type='submit' name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
"><i class='fa fa-times' style="color:#000000;"></i></button>
|
||
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 0) {?>
|
||
<button type='submit' name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
"><i class='fa fa-comment-o' style="color:#0080FF;"></i></button>
|
||
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 1) {?>
|
||
<button type='submit' name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
"><i class='fa fa-check' style="color:#FF8000;"></i></button>
|
||
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 2) {?>
|
||
<button type='submit' name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
"><i class='fa fa-check' style="color:#04B404;"></i></button>
|
||
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 3) {?>
|
||
<button type='submit' name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
"><i class='fa fa-question' style="color:#FF8000;"></i></button>
|
||
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 4) {?>
|
||
<button type='submit' name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
"><i class='fa fa-question' style="color:#FF8000;"></i></button>
|
||
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 5) {?>
|
||
<button type='submit' name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
"><i class='fa fa-ban' style="color:#ff0000;"></i></button>
|
||
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 8) {?>
|
||
<button type='submit' name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
"><i class='fa fa-check' style="color:#FF8000;"></i></button>
|
||
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 20) {?>
|
||
<button type='submit' name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
"><i class='fa fa-spinner fa-pulse' style="color:#FF8000;"></i></button>
|
||
<?php } elseif ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 99) {?>
|
||
<button type='submit' name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
"><i class='fa fa-question' style="color:#FF8000;"></i></button>
|
||
<?php }?>
|
||
</td>
|
||
-->
|
||
<!-- --------------------------- sms neu 2020
|
||
<td nowrap style="width:20px;font-size:11pt;text-align:right;color:gray" id="smsicon<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
">
|
||
<span class="fa fa-question"></i>
|
||
|
||
<?php echo '<script'; ?>
|
||
>smsicon(<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
);
|
||
<?php echo '</script'; ?>
|
||
>
|
||
|
||
</td>
|
||
-->
|
||
<!-- --------------------------- sms alt -->
|
||
<td nowrap style="width:20px;text-align:right;font-size:11pt;" id="smsstatus<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
">
|
||
<div id="smsstatus<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
" style="text-align:center;">
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['fahrer_id'] == 0 || $_smarty_tpl->tpl_vars['tour']->value['auto_id'] == 0) {?>
|
||
<button type='submit' style="background-color:#333333" name="smssenden" data-toggle="tooltip" title="SMS senden nicht möglich" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
">
|
||
<i class='fa fa-times' style="color:#999999;"></i>
|
||
</button>
|
||
<?php } else { ?>
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 0) {?> <!-- SMS in Warteschleife -->
|
||
<button type='submit' style="background-color:#333333" name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
">
|
||
<i class='fa fa-commenting-o' style="color:#0080FF;"></i>
|
||
</button>
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 20 || $_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 8) {?> <!-- SMS in Warteschleife -->
|
||
<button type='submit' style="background-color:#333333" name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
">
|
||
<i class='fa fa-spinner fa-pulse' style="color:#FF8000;"></i>
|
||
</button>
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 1 || $_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 3 || $_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 4) {?> <!-- SMS in statusbericht abfarge -->
|
||
<button type='submit' name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
">
|
||
<i class='fa fa-check-square-o' style="color:#FF8000;"></i>
|
||
</button>
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 2) {?>
|
||
<button type='submit' style="background-color:#333333" name="smssenden" data-toggle="tooltip" title="zugestellt am: <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['tour']->value['smsstatusdate'],"%d.%m.%Y-%H:%M");?>
|
||
Uhr" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
">
|
||
<i class='fa fa-check-square-o' style="color:#04B404;"></i>
|
||
</button>
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 5) {?>
|
||
<button type='submit' style="background-color:#333333" name="smssenden" data-toggle="tooltip" title="Versand fehlgeschlagen !!" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
">
|
||
<i class='fa fa-ban' style="color:#ff0000;"></i>
|
||
</button>
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 99) {?>
|
||
<button type='submit' style="background-color:#333333" name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
">
|
||
<i class='fa fa-question' style="color:#FF8000;"></i>
|
||
</button>
|
||
<?php }?>
|
||
|
||
<?php }?>
|
||
</div>
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 8 || $_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 20) {?>
|
||
<?php echo '<script'; ?>
|
||
> var tid = '<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
';<?php echo '</script'; ?>
|
||
>
|
||
|
||
<?php echo '<script'; ?>
|
||
>
|
||
timer = 300000;
|
||
var refresh_EDV = setInterval(function() {
|
||
$.ajax({
|
||
type : "POST",
|
||
url : 'ajax.php?s=ssstatus&tpl',
|
||
cache : false,
|
||
data : {
|
||
id: tid,
|
||
},
|
||
dataType : "html",
|
||
success : function(data){
|
||
$("#smsstatus"+tid).html(data);
|
||
},
|
||
})
|
||
},timer);
|
||
|
||
<?php echo '</script'; ?>
|
||
>
|
||
|
||
<?php }?>
|
||
</center>
|
||
</td>
|
||
<!--
|
||
<td nowrap style="width:20px;text-align:right;font-size:11pt;" id="smsstatus<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
">
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] == 0) {?>
|
||
<button type='submit' name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
"><i class='fa fa-comment-o' style="color:#0080FF;"></i></button>
|
||
<?php } else { ?>
|
||
<button type='submit' name="smssenden" value="<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
"><i class='fa fa-question' style="color:#FF8000;"></i></button>
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['tour']->value['smsstatus'] != 0) {?>
|
||
|
||
<?php echo '<script'; ?>
|
||
>
|
||
timer = 50000;
|
||
var refresh_EDV<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
= setInterval(function() {
|
||
$.ajax({
|
||
type : "POST",
|
||
url : 'ajax.php?s=ssstatus&tpl',
|
||
cache : false,
|
||
data : {
|
||
id:<?php echo $_smarty_tpl->tpl_vars['tour']->value['id'];?>
|
||
,
|
||
},
|
||
dataType : "html",
|
||
})
|
||
},timer);
|
||
|
||
<?php echo '</script'; ?>
|
||
>
|
||
|
||
<?php }?>
|
||
</td>
|
||
-->
|
||
|
||
</tr>
|
||
<?php
|
||
}
|
||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<!-- -------------------------------------- -->
|
||
<?php } else { ?>
|
||
<div class="col-md-8">
|
||
<div class="panel panel-danger">
|
||
<div class="panel-body">
|
||
<h3>Keine Daten angelegt ...</h3>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
<!-- -------------------------------------->
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<!-- -------------------------------------->
|
||
|
||
<!-- Sidebar -->
|
||
<aside class="col-md-4">
|
||
<!-- -------------------------------------->
|
||
<div id="rightmenu" class="panel panel-primary">
|
||
<div class="panel-heading"><h2 class="panel-title">Ausgabe <?php echo $_smarty_tpl->tpl_vars['kw']->value;?>
|
||
/<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
||
- <?php echo $_smarty_tpl->tpl_vars['datum']->value;?>
|
||
</h2></div>
|
||
<section class="panel-body">
|
||
<table class="table-condensed">
|
||
<form action="" method="post">
|
||
<input type="submit" class="btn btn-link" value="alle SMS für <?php echo $_smarty_tpl->tpl_vars['datum']->value;?>
|
||
senden " name="smspower" value="kompl. Liste per SMS senden" onclick="return confirm('Möchten sie wirklich alle SMS senden ?')">
|
||
</form>
|
||
</table>
|
||
</section>
|
||
</div>
|
||
<!-- -------------------------------------->
|
||
<div id="rightmenu" class="panel panel-primary">
|
||
<section class="panel-body">
|
||
<table class="table-condensed">
|
||
|
||
<b><i><span style='font-size:12pt;line-height:115%;
|
||
color:#4F81BD'>SaSo 2020 </span></i></b>   
|
||
<b><i><span style='font-size:12pt;line-height:115%;
|
||
color:#4F81BD'><a class="button-blue" href="?s=pss&wahl=1&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
||
&kw=<?php echo $_smarty_tpl->tpl_vars['kw']->value;?>
|
||
">«</a>
|
||
  <?php echo $_smarty_tpl->tpl_vars['kw']->value;?>
|
||
.KW / <?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
||
  
|
||
<a class="button-blue" href="?s=pss&wahl=2&jahr=<?php echo $_smarty_tpl->tpl_vars['jahr']->value;?>
|
||
&kw=<?php echo $_smarty_tpl->tpl_vars['kw']->value;?>
|
||
">»</a></span></i></b>
|
||
</p>
|
||
|
||
</table>
|
||
</section>
|
||
</div>
|
||
<!-- -------------------------------------
|
||
|
||
<!-- -------------------------------------->
|
||
<div id="rightmenu" class="panel panel-default">
|
||
<header class="panel-heading"><h2 class="panel-title"><span style='font-size:12pt; color:#4F81BD'>Kalender für <?php echo $_smarty_tpl->tpl_vars['datum']->value;?>
|
||
</h2></header>
|
||
<section class="panel-body">
|
||
<table class="no-style full">
|
||
<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;
|
||
?>
|
||
<td nowrap style="width:160px;height:10px;font-size:10pt"> <?php echo $_smarty_tpl->tpl_vars['maf']->value['fahrer'];?>
|
||
</td>
|
||
<td nowrap style= "width:30px;height:10px;font-size:10pt"> <img src="/template/images/icon/<?php echo $_smarty_tpl->tpl_vars['maf']->value['icon'];?>
|
||
" width="12" height="12"/></td>
|
||
<td nowrap style="width:150px;height:10px;font-size:10pt"> <?php echo $_smarty_tpl->tpl_vars['maf']->value['bez'];?>
|
||
</td>
|
||
</tbody> <?php
|
||
}
|
||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
||
</table>
|
||
</section>
|
||
</div>
|
||
<!-- -------------------------------------->
|
||
<div id="rightmenu" class="panel panel-success">
|
||
<header class="panel-heading"><h2 class="panel-title">Freie Transporter (tagsüber) am <?php echo $_smarty_tpl->tpl_vars['datum']->value;?>
|
||
</h2></header>
|
||
<section class="panel-body">
|
||
<section>
|
||
<table class="no-style full" id="trp" style="font-size:10pt">
|
||
</table>
|
||
</div>
|
||
</aside>
|
||
</div>
|
||
|
||
|
||
|
||
<?php }
|
||
}
|