jb-data.de/template/tpl/ue_home_v1.tpl
2025-08-11 22:23:30 +02:00

403 lines
14 KiB
Smarty

{literal}
<script type="text/javascript">
$.ajax({
type : "POST",
url : 'ajax.php?s=login_edv&tpl',
cache : false,
data : {
},
dataType : "html",
success : function(data){
$("#maonline").html(data);
},
});
$.ajax({
type : "POST",
url : 'ajax.php?s=tuerlog&tpl',
cache : false,
data : {
},
dataType : "html",
success : function(data){
$("#tlog").html(data);
},
});
$.ajax({
type : "POST",
url : 'ajax.php?s=a_tour&tpl',
cache : false,
data : {
},
dataType : "html",
success : function(data){
$("#atour").html(data);
},
});
$.ajax({
type : "POST",
url : 'ajax.php?s=x_tour&tpl',
cache : false,
data : {
},
dataType : "html",
success : function(data){
$("#xtour").html(data);
},
});
$.ajax({
type : "POST",
url : 'ajax.php?s=n_tour&tpl',
cache : false,
data : {
},
dataType : "html",
success : function(data){
$("#ntour").html(data);
},
});
var refreshId = setInterval(function() {
$.ajax({
type : "POST",
url : 'ajax.php?s=tuerlog&tpl',
cache : false,
data : {
},
dataType : "html",
success : function(data){
$("#tlog").html(data);
},
})
}, 10000);
var refresh_EDV = setInterval(function() {
$.ajax({
type : "POST",
url : 'ajax.php?s=login_edv&tpl',
cache : false,
data : {
},
dataType : "html",
success : function(data){
$("#maonline").html(data);
},
})
}, 30000);
var refresh_EDV = setInterval(function() {
$.ajax({
type : "POST",
url : 'ajax.php?s=a_tour&tpl',
cache : false,
data : {
},
dataType : "html",
success : function(data){
$("#atour").html(data);
},
})
}, 30000);
var refresh_EDV = setInterval(function() {
$.ajax({
type : "POST",
url : 'ajax.php?s=x_tour&tpl',
cache : false,
data : {
},
dataType : "html",
success : function(data){
$("#xtour").html(data);
},
})
}, 3000);
var refresh_EDV = setInterval(function() {
$.ajax({
type : "POST",
url : 'ajax.php?s=n_tour&tpl',
cache : false,
data : {
},
dataType : "html",
success : function(data){
$("#ntour").html(data);
},
})
}, 3000);
</script>
{/literal}
<div class="container">
<div class="row">
<section class="col-md-8">
<!-- Planungskontrolle -->
<!-- heute Tag !!!!!!!!!!!! offene Tourenplanung -->
{if $wichtiga1>0}
<div class="panel panel-danger">
<div class="panel-heading">Tourenplanung Heute ({$tag1})</div>
<table class="table-condensed">
<tbody> {foreach from=$tw1 item=tw1 }
<td> <strong>{$tag1}</strong></td>
<td> <strong>{$tw1.tour}</strong></td>
<td> <strong><span style='color:#FF0000'>{$tw1.fahrer}</strong></td>
<td><strong> <span style='color:#FF0000'>{$tw1.kennz}</strong></td>
<td> <strong><span style='color:#FF0000'>{$tw1.info}</strong></td>
</tbody> {/foreach}
</table>
</div>
{else}
<div class="panel panel-success">
<div class="panel-heading">Tourenplanung Heute ({$tag1})</div>
</div>
{/if}
<!--Nächster Tag !!!!!!!!!!!! offene Tourenplanung -->
{if $wichtiga2>0}
<div class="panel panel-danger">
<div class="panel-heading">Tourenplanung Morgen ({$tag2})</div>
<table class="table-condensed">
<tbody> {foreach from=$tw2 item=tw2 }
<td nowrap style="width:100px;font-size:11pt"> <strong>{$tag2}</strong></td>
<td nowrap style="width:100px;font-size:11pt"> <strong>{$tw2.tour}</strong></td>
<td nowrap style="width:180px;font-size:11pt"> <strong><span style='color:#FF0000'>{$tw2.fahrer}</strong></td>
<td nowrap style="width:120px;font-size:11pt"> <strong> <span style='color:#FF0000'>{$tw2.kennz}</strong></td>
<td nowrap style="width:200px;font-size:11pt"> <strong><span style='color:#FF0000'>{$tw2.info}</strong></td>
</tbody> {/foreach}
</table>
</div>
{else}
<div class="panel panel-success">
<div class="panel-heading">Tourenplanung Morgen ({$tag2})</div>
</div>
{/if}
<!-- -------------------------------- Status Login -->
<div class="row sortable">
<div class="col-md-6">
<div class="panel panel-default collapsible">
<div class="panel-heading"><h2 class="panel-title">Login edv-System</h2></div>
<div class="panel-body">
<table class="no-style full">
<tbody>
<div id="maonline" style="text-align:center;"></div>
<!-- {foreach from=$abfrage_online item=mao }
{if $mao.session_update<$zeit_online}
<tr>
<td nowrap style="width:160px;font-size:11pt">{$mao.name}</td>
<td nowrap style="width:170px;font-size:11pt" align="right">{$mao.session_update|date_format:"%d.%m.%Y - %H:%M Uhr"}</td>
</tr>
{else}
<tr>
<td nowrap style="width:160px;font-size:11pt"><span style='color:#0000FF'>{$mao.name}</td>
<td nowrap style="width:170px;font-size:11pt" align="right"><span style='color:#0000FF'>{$mao.session_update|date_format:"%d.%m.%Y - %H:%M Uhr"}</td>
</tr>
{/if}
{/foreach}
-->
</tbody>
</table>
</div>
</div>
</div>
<!-- -------------------------------- Status Zutritt Tür -->
<div class="col-md-6">
<div class="panel panel-default collapsible">
<div class="panel-heading"><h2 class="panel-title">Türkontrolle</h2></div>
<div class="panel-body">
<div id="tlog" style="text-align:center;"></div>
</div>
</div>
</div>
<!-- -------------------------------- Status Login -->
<div class="col-md-6">
<div class="panel panel-default collapsible">
<div class="panel-heading"><h2 class="panel-title">System Check:</a></h2></div>
<div class="panel-body">
<table class="no-style full">
<tbody>
<tr>
<td nowrap style="width:160px;font-size:11pt">Tuer ist {$tuer}</td>
</tr>
{if $online>0}
<tr>
<td nowrap style="width:160px;font-size:11pt">Tuer ist <strong><span style='color:#0000FF'>online</strong></td>
</tr>
{else}
<tr>
<td nowrap style="width:160px;font-size:11pt">Tuer ist <strong><span style='color:#FF0000'>offline</strong></td>
</tr>
{/if}
<tr>
<td nowrap style="width:160px;font-size:11pt">Basis B76 ist <strong><span style='color:#0000FF'>online</strong></td>
</tr>
<tr>
<td nowrap style="width:160px;font-size:11pt"><span style='color:#0000FF'><strong>letzte Zugangskarte:</strong></td>
</tr>
<tr>
<td nowrap style="width:160px;font-size:11pt">letzte Syncronisation:</td>
<td nowrap style="width:180px;font-size:11pt">{$smarty.now|date_format:"%d.%m.%Y - %H:%M Uhr"}</strong></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default collapsible">
<div class="panel-heading"><h2 class="panel-title">Fehler Türsystem</h2></div>
<div class="panel-body">
<table class="no-style full">
<tbody>
{foreach from=$estatus item=estatus}
<tr></strong>
<td nowrap style="width:160px;font-size:11pt">{$estatus.karte}</td>
<td nowrap style="width:170px;font-size:11pt" align="right">{$estatus.zeit|date_format:"%d.%m.%Y - %H:%M Uhr"}</td>
<!-- <td> <span style='color:#FF0000'>{$status.zeit2}</td> -->
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
<!-- -------------------------------- Status gesperrte Login -->
<div class="col-md-12">
<div class="panel panel-default collapsible">
<div class="panel-heading"><h2 class="panel-title">Sperre Türsystem</h2></div>
<div class="panel-body">
<table class="no-style full">
<tbody>
{foreach from=$ustatus item=ustatus}
<tr></strong>
<td nowrap style="width:220px;font-size:11pt">{$ustatus.user}</td>
<td nowrap style="width:290px;font-size:11pt">{$ustatus.grund}</td>
<td nowrap style="width:180px;font-size:11pt" align="right">{$ustatus.zeit|date_format:"%d.%m.%Y - %H:%M Uhr"}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
<!-- Main Section End -->
<!-- Sidebar ----------------------------------------------------------------------------------------------------------------->
<aside class="col-md-4">
<div id="rightmenu" class="panel panel-default">
<div class="panel-heading"><h2 class="panel-title">laufende Touren</h2></div>
<section class="panel-body">
<table class="table-condensed">
<div id="atour" style="text-align:center;"></div>
</table>
</section>
</div>
<div id="rightmenu" class="panel panel-default">
<div class="panel-heading"><h2 class="panel-title">Touren nicht losgefahren.</h2></div>
<section class="panel-body">
<table class="table-condensed">
<div id="xtour" style="text-align:center;"></div>
</table>
</section>
</div>
<div id="rightmenu" class="panel panel-default">
<div class="panel-heading"><h2 class="panel-title">Touren demnächst</h2></div>
<section class="panel-body">
<table class="table-condensed">
<div id="ntour" style="text-align:center;"></div>
</table>
</section>
</div>
<div id="rightmenu" class="panel panel-default">
<div class="panel-heading"><h2 class="panel-title">{$day1} ( {$tna1} )</h2></div>
<section class="panel-body">
<table class="table-condensed">
<tbody> {foreach from=$maf1 item=maf1 }
<td nowrap style="width:25px;font-size:11pt"><img src="/template/images/icon/{$maf1.icon}" width="24" height="24"/></td>
<td nowrap style="width:170px;font-size:11pt">{$maf1.fahrer}</td>
<td nowrap style="width:120px;font-size:11pt">{$maf1.bez}</td>
</tbody> {/foreach}
</table>
</section>
</div>
<div id="rightmenu" class="panel panel-default">
<div class="panel-heading"><h2 class="panel-title">{$day2} ( {$tna2} )</h2></div>
<section class="panel-body">
<table class="table-condensed">
<tbody> {foreach from=$maf2 item=maf1 }
<td nowrap style="width:25px;font-size:11pt"><img src="/template/images/icon/{$maf1.icon}" width="24" height="24"/></td>
<td nowrap style="width:170px;font-size:11pt">{$maf1.fahrer}</td>
<td nowrap style="width:120px;font-size:11pt">{$maf1.bez}</td>
</tbody> {/foreach}
</table>
</section>
</div>
</div>
</section>
</div>
</aside>
<!-- Sidebar End -->
</div>
</div>
<div id="push"></div>