From 43de9af71f7f4ca5731b94a06d688ae8412ba427 Mon Sep 17 00:00:00 2001
From: M.Gergo
Date: Fri, 6 Jul 2018 11:14:41 +0200
Subject: 2018/Feb/28 -i állapot hozzáadva, mint a módosítások kiindulási
állapota
---
mayor-orig/www/skin/sza2010/base/html/alert.phtml | 68 +++++
mayor-orig/www/skin/sza2010/base/html/base.phtml | 310 ++++++++++++++++++++++
2 files changed, 378 insertions(+)
create mode 100644 mayor-orig/www/skin/sza2010/base/html/alert.phtml
create mode 100644 mayor-orig/www/skin/sza2010/base/html/base.phtml
(limited to 'mayor-orig/www/skin/sza2010/base/html')
diff --git a/mayor-orig/www/skin/sza2010/base/html/alert.phtml b/mayor-orig/www/skin/sza2010/base/html/alert.phtml
new file mode 100644
index 00000000..138ac3f3
--- /dev/null
+++ b/mayor-orig/www/skin/sza2010/base/html/alert.phtml
@@ -0,0 +1,68 @@
+'.$aType.':'.$aCode.')';
+ else $msg = $ALERT_MSG[$aCode];
+
+ // paraméter behelyettesítés
+ for($i = 0; $i < count($param); $i++) {
+ $_msg = $msg;
+ $msg = @str_replace("%$i%",''.($param[$i]).'',$msg);
+ if ($param[$i] != '' and $_msg == $msg) $pstr .= ''.($param[$i]).',';
+ }
+ 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 = ''.$title.': ' . $msg;
+ echo '
'.str_replace('***','
',$msg).'
'."\n";
+ }
+
+ return $showPage;
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/sza2010/base/html/base.phtml b/mayor-orig/www/skin/sza2010/base/html/base.phtml
new file mode 100644
index 00000000..215a21a4
--- /dev/null
+++ b/mayor-orig/www/skin/sza2010/base/html/base.phtml
@@ -0,0 +1,310 @@
+ base.php
+ putValidXHTML()
+*/
+
+
+// -------------------------------------------------------------------
+// html_base() : a html oldal szerkezete
+// -------------------------------------------------------------------
+
+function html_base($sessionID,$policy,$page,$sub,$f,$lang,$skin,$MENU) {
+
+ _httpHeader();
+
+ if ($MENU['set'][$policy][$page][$sub][$f]['refresh'] > 0) {
+ @header("Refresh:".intval($MENU['set'][$policy][$page][$sub][$f]['refresh']));
+ }
+
+ html_head($page,$sub,$f,$lang,$skin);
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin);
+ echo '';
+
+ echo '';
+ page($page,$sub,$f,$lang,$skin,$policy);
+ echo '
';
+ 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 ''."\n";
+ echo ''."\n";
+ echo ''."\n";
+ echo ''."\n";
+ echo ''."\n";
+ echo '';
+ if (defined('_SITE')) echo ' - '._SITE.' - ';
+ echo _MAIN_TITLE;
+ echo '.';
+ echo _MAYORREV;
+ echo ''."\n";
+ includeCSS($page,$sub,$f,$skin);
+ includeCSS($page,$sub,$f,$skin,'handheld'); // install css for handheld devices
+ includeJS($page,$sub,$f,$skin);
+ if ($SSSHH!=null && $SSSHH!='') echo $SSSHH;
+
+ 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 ''."\n";
+ echo "\n\n";
+
+}
+
+// -------------------------------------------------------------------
+// mayor_menu(): a menü kiiratása
+// -------------------------------------------------------------------
+
+function mayor_menu($MENU,$sessionID,$lang = _DEFAULT_LANG,$skin = _DEFAULT_SKIN) {
+
+ global $page, $sub, $f;
+
+ echo '';
+
+ // II: SZINT
+ @$pageArray = $MENU['modules'][$page];
+ $aPage = $page;
+
+ if (is_array($pageArray)) {
+ echo ''."\n";
+ }
+
+ // III: SZINT
+ @$subArray = $MENU['modules'][$page]['sub'][$sub];
+ $aSub = $sub;
+
+ if (is_array($subArray)) {
+ echo ''."\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();
+
+ //$imgextra = '-marc15';
+
+ if (!file_exists($HOME_LOGO = 'skin/'.$skin.'/base/img/mayor_small_ssl'.$imgextra.'.png'))
+ $HOME_LOGO = 'skin/'._DEFAULT_SKIN.'/base/img/mayor_small_ssl'.$imgextra.'.png';
+ //if (!file_exists($HOME_LOGO = 'skin/'.$skin.'/base/img/mayor_small_ssl.gif'))
+ // $HOME_LOGO = 'skin/'._DEFAULT_SKIN.'/base/img/mayor_small_ssl.gif';
+ if (!file_exists($HELP_LOGO = 'skin/'.$skin.'/module-help/img/help_small.jpg'))
+ $HELP_LOGO = 'skin/'._DEFAULT_SKIN.'/module-help/img/help_small.jpg';
+ ## Név, Oldal info, Policy
+ echo ''."\n";
+ echo '
'."\n";
+ echo ''."\n";
+
+ echo ''."\n";
+
+ echo '';
+ for ($i = 0;$i < count($LANGUAGES); $i++) {
+ if ($LANGUAGES[$i]!=$lang) echo '';
+ }
+ echo '';
+
+ formBegin(array('id'=>'changeSkin','action'=>href('index.php', array('sessionID','lang'))));
+ echo '';
+ echo '';
+ global $POLICIES;
+ echo '';
+ /* Némi javascipt támogatás a session kezelésre ebben a formban */
+ $sessionMaxIdleTime=$sessionAlertTime=0;
+ if ((_SESSIONID!='' && _POLICY!='public') && defined('_SESSION_MAX_IDLE_TIME') && _SESSION_MAX_IDLE_TIME>0) {
+ $sessionMaxIdleTime=((_SESSION_MAX_IDLE_TIME*1000*60*60)+1000);
+ if (defined('_SESSION_ALERT_TIME')) $sessionAlertTime = ((_SESSION_MAX_IDLE_TIME*1000*60*60)-(_SESSION_ALERT_TIME*1000*60));
+ }
+ echo '';
+ echo '';
+ /* --- */
+ formEnd();
+ echo ' | '."\n";
+ echo '';
+ //echo $page;
+ //if ($sub!='') echo ' » '.$sub;
+ if (is_array(@$INCLUDES['html_mayor_head']['global']['center'])) foreach ($INCLUDES['html_mayor_head']['global']['center'] 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 _SITE;
+ echo ' | ';
+ echo '';
+ echo ''._USERCN.'';
+ echo ' | ';
+ echo '';
+ echo ' | ';
+ echo '';
+ if (isset($sub) && $sub != '') $psf = "$page:$sub:$f"; else $psf = "$page:$f";
+ echo '?';
+ echo ' |
';
+ echo '
';
+ echo '
'."\n";
+ ## ------------------------
+ echo ''."\n";
+ echo '';
+ echo '';
+ echo ' | '."\n";
+ echo '';
+ mayor_menu($MENU,$sessionID,$lang,$skin);
+ echo ' | ';
+ if (in_array('help',$INSTALLED_MODULES)) {
+ $link = "index.php?page=help&hpage=$page&hsub=$sub&hf=$f";
+ echo '';
+ echo '';
+ echo '';
+ echo '';
+
+ echo ' | ';
+ }
+ echo "
\n
\n";
+
+}
+
+// -------------------------------------------------------------------
+// html_mayor_foot() : lablec kiirasa ( )
+// -------------------------------------------------------------------
+
+function html_mayor_foot() {
+ echo ''."\n\n";
+ echo "\n";
+}
+
+?>
--
cgit v1.2.3