aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/skin/pda/base
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/www/skin/pda/base')
-rw-r--r--mayor-orig/www/skin/pda/base/css/base.css182
-rw-r--r--mayor-orig/www/skin/pda/base/html/alert.phtml85
-rw-r--r--mayor-orig/www/skin/pda/base/html/base.phtml240
3 files changed, 507 insertions, 0 deletions
diff --git a/mayor-orig/www/skin/pda/base/css/base.css b/mayor-orig/www/skin/pda/base/css/base.css
new file mode 100644
index 00000000..1a321380
--- /dev/null
+++ b/mayor-orig/www/skin/pda/base/css/base.css
@@ -0,0 +1,182 @@
+/*
+ Module: base
+*/
+ html { margin:0px; padding:0px; }
+ html body {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ margin:0px;
+ padding:0px;
+ font-size: 11px;
+ }
+
+ form { margin: 0px; }
+ div.mayorbody {
+ padding: 0px;
+ background-color: white;
+ margin-top:0em;
+ margin-bottom:2em;
+ }
+ div.mayorfoot {
+ text-align: center;
+ position: bottom;
+ width:100%;
+ font-size:x-small;
+ color: #888888;
+ }
+ div.mayorfoot a { color:#888888; text-decoration: none; }
+/* - Alert - */
+
+ form.mayorAlert { margin: 0px; padding: 0px; }
+ form.mayorAlert input { display: none; }
+ div.errorMsg {
+ background-color: #eeffd0;
+ border: solid 2px #C71585;
+ padding: 1px;
+ text-align:center;
+ margin:10px;
+ }
+ div.errorMsg span {
+ font-style: italic;
+ }
+ div.infoMsg {
+ background-color: #eeffd0;
+ border: solid 2px #0000ff;
+ padding: 1px;
+ }
+ div.infoMsg span {
+ font-style: italic;
+ }
+
+ span.alertParam {
+ color: green;
+ }
+
+/* Module: base */
+
+ div.namepolicy {
+ background-color: rgb(52, 150, 185);
+// background: rgb(241, 241, 241);
+ border-bottom: 2px solid rgb(247, 197, 14);
+ margin: 0px;
+ padding:0px;
+ min-height:40px;
+ width:100%;
+ }
+
+ div.namepolicy a#home
+ {
+ display: table-cell;
+ height:40px;
+ width:200px;
+ text-align: left;
+ vertical-align: middle;
+ font-size: normal; margin:0px; padding-left:1em; text-decoration: none;
+ color: white;
+ }
+
+/* Menü */
+
+ ul#pagemenu {
+ padding: 0px;
+ text-align: left;
+ background-color: #040562;
+ list-style-type: none;
+ margin:1px;
+
+ }
+ ul#pagemenu li {
+ display: inline;
+ border-width: 0px 0px 0px 1px;
+ border-color: #8485a2;
+ border-style: dotted;
+ padding: 0px;
+ }
+ ul#pagemenu li a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ padding: 0px 5px;
+ margin: 0px;
+ }
+ ul#pagemenu li a:hover {
+ background-color: rgb(100,100,140);
+ text-decoration: underline;
+ }
+ ul#pagemenu li.active a {
+ background-color: #620405;
+ }
+ ul#pagemenu li.active a:hover {
+ background-color: rgb(140,100,100);
+ }
+
+/* SUB */
+
+ ul#submenu {
+ padding: 1px;
+ text-align: left;
+ background-color: #040582;
+ list-style-type: none;
+ margin:1px 1px 1px 1px;
+ }
+ ul#submenu li {
+ display: inline;
+ border-width: 0px 0px 0px 1px;
+ border-color: #8485a2;
+ border-style: dotted;
+ padding: 0px;
+ }
+ ul#submenu li a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ padding: 0px 5px;
+ margin: 0px;
+ }
+ ul#submenu li a:hover {
+ background-color: rgb(100,100,140);
+ text-decoration: underline;
+ }
+ ul#submenu li.active a {
+ background-color: #620405;
+ }
+ ul#submenu li.active a:hover {
+ background-color: rgb(140,100,100);
+ }
+
+/* f */
+
+ ul#fmenu {
+ padding: 1px;
+ text-align: left;
+ background-color: #0405a2;
+ list-style-type: none;
+ margin:1px 1px 1px 0px;
+ }
+ ul#fmenu li {
+ display: inline;
+ border-width: 0px 0px 0px 1px;
+ border-color: #8485a2;
+ border-style: dotted;
+ padding: 0px;
+ }
+ ul#fmenu li a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ padding: 0px 5px;
+ margin: 0px;
+ }
+ ul#fmenu li a:hover {
+ background-color: rgb(100,100,140);
+ text-decoration: underline;
+ }
+ ul#fmenu li.active a {
+ background-color: #620405;
+ }
+ ul#fmenu li.active a:hover {
+ background-color: rgb(140,100,100);
+ }
+
+
+ #changeSkin {
+ display: none;
+ }
+ #changeSkin .onChangeSubmit {
+ }
diff --git a/mayor-orig/www/skin/pda/base/html/alert.phtml b/mayor-orig/www/skin/pda/base/html/alert.phtml
new file mode 100644
index 00000000..a7f9ce62
--- /dev/null
+++ b/mayor-orig/www/skin/pda/base/html/alert.phtml
@@ -0,0 +1,85 @@
+<?php
+/*
+ Module: base
+
+ js_alert()
+ html_alert()
+*/
+
+// ------------------------------------------------------------------- //
+// Az $_SESSION['alert'] két részből áll: típus:hiba //
+// típus: alert : javaScript alert //
+// message : hibaüzenet után az oldal betöltődik //
+// page : hibaüzenet után az oldal nem töltődik be //
+// info : információs üzenet //
+// ------------------------------------------------------------------- //
+
+// ---------------------------------------------------------------- //
+// Hibaüzenet kiiratása
+// visszatérési érték: legyen-e utána megjelenítve a lap?
+// --------------------------------------------------------------- //
+
+ function html_alert() {
+
+ global $ALERT_MSG;
+
+ if (!isset($_SESSION['alert']) || count($_SESSION['alert'])==0) {
+ return true;
+ exit;
+ }
+
+ $showPage = true;
+ echo '<form method="post" action="" class="mayorAlert" id="mayorAlert">';
+ for ($j = 0; $j < count($_SESSION['alert']); $j++) {
+
+ // Nincs mindig paraméter - ezért a $param nem kap értéket! - így az explode Notice üzenetet váltana ki...
+ $param = array();
+ $tmp = explode(':',$_SESSION['alert'][$j]);
+ $aType = $tmp[0]; $aCode = $tmp[1];
+ for ($p = 2; $p < count($tmp); $p++) $param[] = $tmp[$p];
+ $pstr = '';
+ if ($aType == 'popup') {
+ if ($aCode == '' ) $msg = $ALERT_MSG['default'];
+ elseif ($ALERT_MSG[$aCode] == '') $msg = $aCode;
+ else $msg = $ALERT_MSG[$aCode];
+ // paraméter behelyettesítés
+ for($i = 1; $i < count($param); $i++) {
+ $msg = str_replace("%$i%",$param[$i],$msg,$count);
+ if ($param[$i] != '' and $count == 0) $pstr .= $param[$i].',';
+ }
+ if ($pstr != '') $msg .= ' (' . substr($pstr,0,-1) . ')';
+
+ echo '<input type="hidden" name="jsAlert" value="'.$msg.'" />';
+ } else {
+ if ($aCode == '') $msg = $ALERT_MSG['default'];
+ elseif (!isset($ALERT_MSG[$aCode]) || $ALERT_MSG[$aCode] == '') $msg = $ALERT_MSG['default'].' (<span class="alertParam">'.$aType.':'.$aCode.')</span>';
+ else $msg = $ALERT_MSG[$aCode];
+ // paraméter behelyettesítés
+ for($i = 0; $i < count($param); $i++) {
+ $_msg = $msg;
+ $msg = @str_replace("%$i%",'<span class="alertParam">'.$param[$i].'</span>',$msg);
+ if ($param[$i] != '' and $_msg == $msg) $pstr .= '<span class="alertParam">'.$param[$i].'</span>,';
+ }
+ if ($pstr != '') $msg .= ' (' . substr($pstr,0,-1) . ')';
+
+ if (($aType == 'message') or ($aType == 'page')) {
+ $title = _ERROR;
+ $class = 'errorMsg';
+ if ($aType == 'page') $showPage = false;
+ } else {
+ $title = _INFORMATION;
+ $class = 'infoMsg';
+ }
+ $msg = '<span>'.$title.':</span> ' . $msg;
+ echo '<div class="'.$class.'">'.$msg.'</div>'."\n";
+
+ }
+ $_SESSION['alert'] = array();
+ }
+ echo '</form>';
+
+ return $showPage;
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/pda/base/html/base.phtml b/mayor-orig/www/skin/pda/base/html/base.phtml
new file mode 100644
index 00000000..b15ad2f3
--- /dev/null
+++ b/mayor-orig/www/skin/pda/base/html/base.phtml
@@ -0,0 +1,240 @@
+<?php
+/*
+ Module: base
+
+ html_base($sessionID,$page,$sub,$f,$lang,$skin,$MENU)
+ html_head($page,$f,$lang,$skin)
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = 'default')
+ html_mayor_foot()
+ //page($page,$sub,$f,$lang,$skin) --> base.php
+ putValidXHTML()
+*/
+
+
+// -------------------------------------------------------------------
+// html_base() : a html oldal szerkezete
+// -------------------------------------------------------------------
+
+function html_base($sessionID,$policy,$page,$sub,$f,$lang,$skin,$MENU) {
+// Huston! This is for IE-shit
+
+ _httpheader();
+
+ html_head($page,$sub,$f,$lang,$skin);
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin);
+
+ echo '<div class="mayorbody">';
+ page($page,$sub,$f,$lang,$skin,$policy);
+ echo '</div>';
+
+ html_mayor_foot();
+}
+
+// -------------------------------------------------------------------
+// html_head() : html fejlec kiirasa
+// -------------------------------------------------------------------
+
+function html_head($page,$sub,$f,$lang,$skin) {
+
+ global $INCLUDES, $SSSHH;
+
+ if ($f == '') $f = $page;
+ ## ----------------------------------------------
+ ## Note http://hixie.ch/advocacy/xhtml
+ ## But this is crazy! Using Doctype sniffing instead...
+ ## Also read: http://www.mozilla.org/docs/web-developer/faq.html
+ ## header('Content-type: application/xhtml+xml');
+ ## -----------------------------------------------
+ echo '<?xml version="1.0" encoding="utf-8"?>'."\n";
+ echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">'."\n";
+ echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="hu">'."\n";
+ echo '<head>'."\n";
+ echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'."\n";
+ echo '<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0"/>'."\n";
+ echo '<title>';
+ if (defined('_SITE')) echo ' - '._SITE.' - ';
+ echo _MAIN_TITLE;
+ echo '</title>'."\n";
+ if ($SSSHH!=null && $SSSHH!='') echo $SSSHH;
+
+ includeCSS($page,$sub,$f,$skin);
+ includeCSS($page,$sub,$f,$skin,'handheld'); // install css for handheld devices
+// includeJS($page,$sub,$f,$skin); // now, we are not using javascript - right now
+
+ if (is_array(@$INCLUDES['html_head']['global'])) foreach ($INCLUDES['html_head']['global'] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ if (is_array(@$INCLUDES['html_head'][$page])) foreach ($INCLUDES['html_head'][$page] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ echo "</head>\n<body>\n";
+
+}
+
+// -------------------------------------------------------------------
+// mayor_menu(): a menü kiiratása
+// -------------------------------------------------------------------
+
+function mayor_menu($MENU,$sessionID,$lang = _DEFAULT_LANG,$skin = _DEFAULT_SKIN) {
+
+ global $page, $sub, $f;
+
+ echo '<ul id="pagemenu">';
+ // --------------------------------------------------------
+ if (is_array($MENU)) {
+ foreach ($MENU as $aModule => $items) {
+ if ($aModule != 'modules') {
+ for ($i = 0; $i < count($items); $i++) {
+
+ if ($page == $aModule and
+ (!isset($items[$i]['url']) or strpos($_SERVER["REQUEST_URI"],$items[$i]['url']) !== false)
+ ) echo '<li class="active">';
+ else echo '<li>';
+
+ if (isset($items[$i]['url']) && $items[$i]['url'] != '') {
+ if ($items[$i]['url'][0] == '&') $href = href("index.php?page=$aModule".$items[$i]['url']);
+ elseif (substr($items[$i]['url'],0,4) == 'http') $href = href($items[$i]['url'], array());
+ elseif (isset($items[$i]['get']) && is_array($items[$i]['get'])) $href = href($items[$i]['url'], $items[$i]['get']);
+ else $href = href($items[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aModule");
+ }
+ echo '<a href="'.$href.'">'.$items[$i]['txt'].'</a>';
+
+ echo '</li>';
+ }
+ }
+ }
+ }
+ // ---------------------------------------------------
+ echo '</ul>';
+
+ // II: SZINT
+ @$pageArray = $MENU['modules'][$page];
+ $aPage = $page;
+
+ if (is_array($pageArray)) {
+ echo '<ul id="submenu">';
+ foreach ($pageArray as $anF => $items) {
+ if ($anF != 'sub') {
+ for ($i=0;$i<count($items);$i++) {
+ if (
+ $page == $aPage and
+ (
+ (
+ !isset($items[$i]['url'])
+ and $f == $anF
+ )
+ or
+ (
+ isset($items[$i]['url']) and
+ strpos($_SERVER["REQUEST_URI"],$items[$i]['url']) !== false
+ )
+ )
+ ) echo '<li class="active">';
+ else echo '<li>';
+
+ if (isset($items[$i]['url']) && $items[$i]['url'] != '') {
+ if ($items[$i]['url'][0] == '&') $href = href("index.php?page=$aPage&f=$anF".$items[$i]['url']);
+ elseif (substr($items[$i]['url'],0,4) == 'http') $href = href($items[$i]['url'], array());
+ elseif (isset($items[$i]['get']) && is_array($items[$i]['get'])) $href = href($items[$i]['url'], $items[$i]['get']);
+ else $href = href($items[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aPage&f=$anF",array('policy','sessionID','lang','skin'));
+ }
+ echo '<a href="'.$href.'">'.$items[$i]['txt'].'</a>';
+ echo '</li>';
+ }
+ }
+ }
+ echo '</ul>'."\n";
+ }
+
+ // III: SZINT
+ @$subArray = $MENU['modules'][$page]['sub'][$sub];
+ $aSub = $sub;
+
+ if (is_array($subArray)) {
+ echo '<ul id="fmenu">';
+
+ foreach ($subArray as $anF => $items) {
+ for ($i=0;$i<count($items);$i++) {
+ if ($aPage == $page and
+ $aSub == $sub and
+ $anF == $f and
+ (!isset($items[$i]['url']) or strpos($_SERVER["REQUEST_URI"],$items[$i]['url']) !== false)
+ ) echo '<li class="active">';
+ else echo '<li>';
+
+ if (isset($items[$i]['url']) && $items[$i]['url'] != '') {
+ if ($items[$i]['url'][0] == '&') $href = href("index.php?page=$aPage&sub=$aSub&f=$anF".$items[$i]['url']);
+ elseif (substr($items[$i]['url'],0,4) == 'http') $href = href($items[$i]['url'], array());
+ elseif (isset($items[$i]['get']) && is_array($items[$i]['get'])) $href = href($items[$i]['url'], $items[$i]['get']);
+ else $href = href($items[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aPage&sub=$aSub&f=$anF");
+ }
+ echo '<a href="'.$href.'"> '.$items[$i]['txt'].' </a>';
+
+ echo '</li>';
+ }
+ }
+
+ echo '</ul>'."\n";
+ }
+
+}
+
+// -------------------------------------------------------------------
+// html_mayor_head() : fejlec kiirasa (logo+menu+lastupdated)
+// -------------------------------------------------------------------
+
+function html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = _DEFAULT_SKIN) {
+
+ global $INCLUDES, $INSTALLED_MODULES, $LANGUAGES, $SKINS, $SKINSSHOW, $policy;
+
+ _updateWindow();
+
+ ## Név, Oldal info, Policy
+ echo '<div class="namepolicy">'."\n";
+
+ echo '<a id="home" href="'.href('index.php').'">';
+// echo '<img src="'.$HOME_LOGO.'" alt="MaYoR" style="border-width: 0;" />';
+ echo 'MaYoR';
+ echo '</a>';
+
+ echo '</div>'."\n";
+
+}
+
+
+
+// -------------------------------------------------------------------
+// html_mayor_foot() : lablec kiirasa ( )
+// -------------------------------------------------------------------
+
+function html_mayor_foot() {
+
+ global $AUTH, $SKINS;
+
+ echo '<div class="mayorfoot">';
+ if ($AUTH[_POLICY]['skin'] != '' && in_array($AUTH[_POLICY]['skin'], $SKINS)) $_skin=$AUTH[_POLICY]['skin'];
+ else $_skin = _DEFAULT_SKIN;
+ echo _MAIN_FOOTER;
+ echo '<a title="'._FULL_HTML.'" href="'.href("index.php?page=$page&sub=$sub&f=$f&skin=".$_skin, array('policy','sessionID','lang')).'">';
+ echo ' - HTML nézet';
+ echo '</a>';
+
+ echo '</div>';
+ echo "</body>\n</html>";
+}
+
+?>