jb-data.de/ilonexs.php
2025-08-11 22:23:30 +02:00

85 lines
4.4 KiB
PHP

<meta name="robots" content="noindex,nofollow">
<meta http-equiv="refresh" content="180; url=ilonexs.php" />
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="expires" content="0">
<?php
/*
// echo'<pre>'; print_r($tag_tour5); echo'</pre>';
header('Content-Type: text/html; charset=utf-8');
require('lib/config.php');
include('lib/class.mysms.php');
require('lib/mysql.class.php');
require('lib/core.class.php');
session_name(CONFIG_SESSION);
session_start();
//------------------------------------------------------------------
if(!isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'on') {
header('Location: https://'.$_SERVER['SERVER_NAME']);
exit();
}
//------------------------------------------------------------------
date_default_timezone_set('Europe/Berlin'); // Default Time Zone
$GLOBALS['mysql'] = new mysql(CONFIG_MYSQL_HOST,CONFIG_MYSQL_USER,CONFIG_MYSQL_PW,CONFIG_MYSQL_DB); mysqli_set_charset($mysql, 'utf8');
require('lib/smarty/Smarty.class.php');
$GLOBALS['core'] = new core;
$template = new smarty();
$template->template_dir = './template/';
$template->compile_dir = './template/compile';
$template->compile_check = TRUE;
$template->debugging = false;
$template->debug_output = "html";
$template->plugins_dir[] = 'lib/smarty/plugins/';
$template->force_compile = true;
//------------------------------------------------------ prüfen und in eine inc
$wochentag=date('w');
$tagname = array("Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag");
//------------------------------------------------------ Status
//$dbdata=$GLOBALS['mysql']->query_array("SELECT * FROM ilonexs_status ORDER BY id");
//$template->assign('status', $dbdata);
//------------------------------------------------------ Eingang
$dbdata=$GLOBALS['mysql']->query_single("SELECT * FROM ilonexs WHERE status in (210,290,505,506,507) and kunde=0 ORDER BY datum");
if($dbdata['num_rows'] != 0) {
$dbdata=$GLOBALS['mysql']->query_array("SELECT * FROM ilonexs WHERE status in (210,290,505,506,507) and kunde=0 ORDER BY status,datum");
$template->assign('eingang', $dbdata);
$template->assign('einganganz', 1);
}
//------------------------------------------------------ sonstige Sendungen
$dbdata=$GLOBALS['mysql']->query_array("SELECT * FROM ilonexs WHERE status in(800,902,936) and kunde=0 ORDER BY status,label");
$template->assign('imlager', $dbdata);
//------------------------------------------------------ offene Sendungen
$dbdata=$GLOBALS['mysql']->query_array("SELECT * FROM ilonexs WHERE status not in(0,9,50,193,210,290,800) and kunde=0 ORDER BY datum");
$template->assign('offen', $dbdata);
//------------------------------------------------------ Status geliefert
$date=date('d').'.'.date('m').'.'.date('Y').'%';
$dbdata=$GLOBALS['mysql']->query_array("SELECT * FROM ilonexs WHERE datum like '".$date."' and kunde=0 and status=0 ORDER BY name");
$template->assign('update', $dbdata);
//------------------------------------------------------ Ankündigung Sendungen
$date=date('d').'.'.date('m').'.'.date('Y').'%';
$dbdata=$GLOBALS['mysql']->query_array("SELECT * FROM ilonexs WHERE status in (9,210,290,50) and kunde=0 ORDER BY datum");
$template->assign('incomming', $dbdata);
//------------------------------------------------------ letzte Meldungen x10
$date=date('d').'.'.date('m').'.'.date('Y').'%';
$dbdata=$GLOBALS['mysql']->query_array("SELECT * FROM ilonexs WHERE kunde=0 ORDER BY datum DESC Limit 10");
$template->assign('lastdata', $dbdata);
//------------------------------------------------------ storno
$dbdata=$GLOBALS['mysql']->query_single("SELECT * FROM ilonexs WHERE kunde=0 and status=193 ORDER BY datum");
if($dbdata['num_rows'] != 0) {
$dbdata=$GLOBALS['mysql']->query_array("SELECT * FROM ilonexs WHERE kunde=0 and status=193 ORDER BY datum");
$template->assign('storno', $dbdata);
$template->assign('stornoanz', 1);
}
//-------------------------------------------------------------------------------------------------------------------------------------------
// echo'<pre>'; print_r($dbdata); echo'</pre>';
//----------------------------------------------------------------------------------------------------------------------------------
//$GLOBALS['template']->display('index_display.tpl');
$GLOBALS['template']->display('ilonexs.tpl');
//----------------------------------------------------------------------------------------------
*/
?>