aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-base/www/skin/teszt
diff options
context:
space:
mode:
authorM.Gergo2019-03-08 21:20:34 +0100
committerM.Gergo2019-03-08 21:20:34 +0100
commitf51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 (patch)
treee13e60e4b94a3b58f1e2bfbe271102c8f04b67bd /mayor-orig/mayor-base/www/skin/teszt
parentc76a004b0135786f2742283f8d5f917106f58bd8 (diff)
downloadmayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.tar.gz
mayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.zip
további rendrakás
Diffstat (limited to 'mayor-orig/mayor-base/www/skin/teszt')
-rw-r--r--mayor-orig/mayor-base/www/skin/teszt/base/css/base.css288
-rw-r--r--mayor-orig/mayor-base/www/skin/teszt/base/html/base.phtml407
-rw-r--r--mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR-star_medium.pngbin0 -> 1548 bytes
-rw-r--r--mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR-star_small.pngbin0 -> 832 bytes
-rw-r--r--mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR_elektronikus_naplo.pngbin0 -> 6623 bytes
-rw-r--r--mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR_rypple.pngbin0 -> 1184 bytes
-rw-r--r--mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR_star.pngbin0 -> 907 bytes
-rw-r--r--mayor-orig/mayor-base/www/skin/teszt/base/img/mayor_small_ssl.pngbin0 -> 6178 bytes
-rw-r--r--mayor-orig/mayor-base/www/skin/teszt/base/img/school_logo.php91
-rw-r--r--mayor-orig/mayor-base/www/skin/teszt/base/img/settings.pngbin0 -> 4335 bytes
-rw-r--r--mayor-orig/mayor-base/www/skin/teszt/module-auth/css/login.css46
11 files changed, 832 insertions, 0 deletions
diff --git a/mayor-orig/mayor-base/www/skin/teszt/base/css/base.css b/mayor-orig/mayor-base/www/skin/teszt/base/css/base.css
new file mode 100644
index 00000000..0b63c918
--- /dev/null
+++ b/mayor-orig/mayor-base/www/skin/teszt/base/css/base.css
@@ -0,0 +1,288 @@
+/*
+ Module: base
+ A rétegek sorrendje: nav2(1), head(2), poz(2), nav1(3), nav(3), logo(3), logobadge(4)
+
+ mayorlayers
+ -help
+ -debug
+ -takaro
+ -updateWindow
+ -keyHelp (table)
+ -mayorerror
+ mayorhead
+ -head
+ -nav1
+ -nav
+ -poz
+ -logo (a+img!)
+ -nav2
+ mayorbody
+ mayorfoot
+*/
+
+@media screen {
+
+ html { height: 100%; }
+ html body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; margin:0px; padding:0px; height: 100%; overflow: auto; }
+ a { text-decoration:none; }
+ .onClickHideShow, .onClickHide, .onClickShow { cursor: pointer; }
+
+
+ /* mayorlayers */
+ #debug {
+ padding: 20px; background: rgba(0,0,0,0.7); color: yellow; border: 0px red solid;
+ position: absolute; z-index: 1000; top: 0px; left: 0px; right: 0px;
+ }
+ #debug pre { background: rgba(240,240,240,0.9); color: #880000; padding: 10px; margin: 0px;}
+
+ #help {
+ border-radius: 2px;
+ box-shadow: 3px 3px 15px 0px rgba(100,100,100,5.0);
+ position: absolute; top: 10px; left: 50%; height: 600px; width: 1000px; z-index: 500; margin: 0 -500px;
+ border: 1px solid #888888; background: white; }
+ #help iframe { width: 1000px; height: 558px; margin: 0; border: none; }
+ #helpHeader { text-align: center; font-size: 16px; width: 992px; height: 20px; margin: 0px; background: #44cbf8; cursor: pointer; color: white; font-weight: bold; padding: 4px;
+ border-bottom: #f3f3f3 solid 4px;
+ }
+ #hideHelp {
+ position: absolute; top:4px; right: 4px;
+ cursor: pointer; background: #822; color: white; padding: 2px 5px; font-size: 12px;
+ border: #822 1px solid; border-radius: 2px; text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
+// box-shadow: inset 0px -3px 1px rgba(0, 0, 0, 0.45), 0px 2px 2px rgba(0, 0, 0, 0.25);
+ }
+ #hideHelp:hover { background-color:red;}
+
+ div.errorMsg { margin: 10px 20%; background: #fee; border: solid 1px red; border-radius: 2px; padding: 10px; box-shadow: 0px 1px 10px rgba(0,0,0,0.5); }
+ div.errorMsg span { font-weight: bold; color: #f00; }
+ div.infoMsg { margin: 10px 20%; background-color: #eee; border: solid 1px rgb(90,133,184); border-radius: 2px; padding: 10px; box-shadow: 0px 1px 10px rgba(0,0,0,0.5); }
+ div.infoMsg span { font-weight: bold; color: rgb(21,71,123); }
+ div.errorMsg span.alertParam, div.infoMsg span.alertParam { font-weight: normal; font-style: italic; color: green; }
+
+
+ /* mayorhead */
+ /* placeholder */
+ #head { z-index: 2; position: absolute; width: 100%; height: 60px; background: #3496B9 no-repeat right center; }
+
+ #mayorhead { }
+
+ #logo { z-index: 3; height: 40px; position: absolute; top: 8px; left: 14px; border: 0px none; }
+ #logobadge { z-index: 4; height: 25px; position: fixed; top: 28px; left: 90px; border: 0px none; }
+
+ #nav, #nav ul { list-style: none; }
+ #nav { z-index: 3; margin: 0; padding-left: 140px; }
+ #nav li { position: relative; }
+ #nav > li { float: left; z-index: 20; text-align: center; padding: 0;
+ background: #3fa79c; border-bottom: 1px solid #D2DFE9; }
+ #nav > li.active { max-width: 160px; }
+ #nav > li:hover { z-index: 22; }
+ #nav > li > ul { top: 50px; left: -1px; /* background: #1A4B5C; */}
+ #nav > li > ul > li > a { margin-left: 10px; }
+
+ #nav li:hover { background: #4fbcd7;}
+ #nav li.active { background: #3496B9; background: #3facc7; }
+
+ #nav li a { display: block; padding: 3px 10px; color: white; }
+ #nav > li > a { padding: 0px 20px; line-height: 60px; vertical-align: middle; display: table-cell; min-width: 100px; }
+ #nav li a:hover { color:#fdb933; }
+ #nav li:hover > ul { display: block; }
+
+ #nav li.nav1szin { background: #3496B9; border-bottom: 1px solid white; }
+ #nav ul.sub { background: #3facc7; }
+
+ #nav ul { display: none; position: absolute; width: 160px; padding: 0px; }
+ #nav ul span { float: left; margin: 6px 5px; color: white; }
+
+ #nav > li > ul { top: 61px; }
+ #nav ul > li { background: #3496B9; }
+ #nav ul li { text-align: left; margin-bottom: 1px; }
+ #nav ul li a { padding: 6px 10px; }
+ #nav ul li.active > a { color:#fdb933; }
+
+ #nav ul ul { top: 0px; left: -145px; z-index: 30; background: #3facc7; background: #3496B9}
+ #nav ul ul a { background: #3facc7; }
+ #nav ul ul a:hover { background: #4fbcd7; color: white; border-right: solid 4px orange;} /* mod */
+
+ #nav li.start { /* fogó */
+ height: 20px; min-width: 0; padding-right: 0px; padding-left: 6px;
+ margin-top:20px;
+ background-color:lightgrey;
+ border-radius: 0px 50px 50px 0px; border-bottom: 0px;
+ z-index: 20;
+ }
+
+ @keyframes moIn {from {padding-left:6px;}to {padding-left:9px;}}
+ @-webkit-keyframes moIn {from {padding-left:6px;}to {padding-left:9px;}}
+ @keyframes moOut {from {padding-left:9px;}to {padding-left:6px;}}
+ @-webkit-keyframes moOut {from {padding-left:9px;}to {padding-left:6px;}}
+
+ #nav:hover li.start {
+ animation: moIn 0.1s; -webkit-animation: moIn 0.1s;
+ }
+
+ #nav li.start:hover {
+ background: #D2DFE9;
+ padding-left:9px;
+ }
+
+ #poz { z-index: 2; padding: 0; list-style: none; background-color: rgb(230,230,230); margin: 0;
+ height: 20px; border-bottom: #f3f3f3 solid 4px; text-shadow: 0px 1px rgba(52, 150, 185, 0.1); }
+ #poz > li { padding: 2px 6px; }
+ #poz > li div.nev { float: right; padding: 2px; width: auto; color: #3496b9; text-align: right; }
+ #poz > li div.nev span { margin-right: 0px; font-size:12px; }
+ #poz > li div.nev span:hover { color:#00c0ff; }
+ #poz > li a { margin-right:5px; margin-left:15px; padding:0px; margin-top:0px; vertical-align: middle;}
+
+ #settings {
+/*
+ width: 311px;
+ margin-top: 5px; position:relative; right: 0px;
+ background: #eeeeee;
+ border-width: 0px 1px 1px 1px;
+ border-style: solid;
+ border-color: rgb(230,230,230);
+ border-top: dotted 1px #dddddd;
+*/
+
+ width: 311px;
+ margin-top: 5px; position:relative; right: 0px;
+ background: #eeeeee;
+ border-width: 0px 1px 1px 1px;
+ border-style: solid;
+ border-color: rgb(230,230,230);
+ border-top: dotted 1px #dddddd;
+
+ }
+ #settings div {
+ padding: 20px 10px;
+ border-bottom: 1px solid rgb(230,230,230);
+ }
+ #settings div p { margin: 0; padding: 0; text-align: center; }
+ #settings div p.name { font-weight: bold; }
+ #settings table { width: 300px; background: rgb(245,245,245);}
+ #settings td { width: 50%; text-align: center; padding: 10px; }
+ #settings td a {
+ display: inline-block;
+ vertical-align: baseline; line-height: 29px;
+ position: static;
+ padding: 0px 8px; height: 29px; margin: 0px 8px;
+ text-align: center; text-decoration: none; font-weight: bold; font-size: 10px;
+ background: white; color: #444;
+ border: solid 1px rgba(0, 0, 0, 0.0976563);
+ border-radius: 2px;
+ }
+ #settings td a:hover { border: white 1px solid; background-color: #44CBF8; color: white; }
+
+ #poz > li span.school {
+ font-variant: small-caps;
+ font-size: 14px;
+ color: white;
+ letter-spacing: 0.4em;
+ overflow: hidden;
+ }
+
+
+ #nav1 { z-index: 3; position: absolute; margin-left: 310px; margin-right: 0px; width: 100%;}
+ #nav1 div { background: rgba(52,150,185,0.6); }
+ #nav1 div a { line-height:60px; padding: 0px 12px 0px 12px; display: inline-block; text-decoration: none; color: #fff;
+ background: #3496b9; margin-top: 0px; }
+ #nav1 div a:hover { color: #fdb933;
+ background-color: ;
+ box-shadow: inset 0px -3px 0px #44CBF8;
+ }
+ #nav1 div a.aktiv { color:#fdb933; }
+ #nav1 div a.aktiv:hover { color: white; }
+
+ #nav1 div span.onClickHideShow {
+ display:none;
+ cursor: pointer; color: white; background: rgba(255,255,255,0.2); line-height:60px;
+ padding: 0px 12px 0px 12px; float: right; margin-right: 310px/* annyi, amennyi a #nav1 bal margója!*/; }
+
+ #nav2.vertical {
+ z-index: 1; width: 140px; margin: 0; height: 100%;
+ background-color: #D2DFE9;
+ margin-top: -25px;
+ padding-top: 25px;
+ position: fixed;
+ overflow: auto;
+ top:83px;
+ background: -webkit-linear-gradient(top, #D2DFE9 0%,#D2DFE9 50%,#ffffff 100%);
+ background: -moz-linear-gradient(top, #D2DFE9 0%,#D2DFE9 50%,#ffffff 100%);
+ background: linear-gradient(top, #D2DFE9 0%,#D2DFE9 50%,#ffffff 100%);
+ }
+ #nav2.vertical ul { margin: 0; padding: 0; list-style: none; }
+ #nav2.vertical ul li { border-bottom: solid 1px rgba(100,100,100,0.4); }
+ #nav2.vertical ul li:first-child { border-top: solid 1px rgba(100,100,100,0.4); }
+ #nav2.vertical ul li a { display: block; color: black; font-size: 11px; width: 128px; padding: 6px 6px; text-decoration: none; }
+ #nav2.vertical ul li a.aktiv { background-color: white; }
+ #nav2.vertical ul li a:hover { color: white; background: #9abcd8; }
+
+ #nav2.horizontal {
+ z-index: 1; width: 100%;
+ margin-top: 0px;
+ top: 83px;
+ text-align: center;
+ padding-top: 5px; padding-bottom: 5px;
+ position: fixed;
+ overflow: none;
+ border-bottom: solid 3px #eeeeee;
+ background-color: #82bfd5;
+ color: white;
+ font-size:x-small;
+ }
+ #nav2.horizontal ul { margin: 0; padding: 0; list-style: none; }
+ #nav2.horizontal ul li { display: inline; border-right: solid 1px #888888; }
+ #nav2.horizontal ul li:last-child { display: inline; border-right: solid 0px #888888; }
+ #nav2.horizontal ul li a {display: inline; color: white; width: 128px; padding: 0px 6px; text-decoration: none; }
+ #nav2.horizontal ul li a.aktiv { color: white; background-color: orange;}
+ #nav2.horizontal ul li a:hover { color: white; background: orange; }
+ #nav2.horizontal:hover {
+
+ }
+
+ div.mayorfoot { text-align: center; font-size:smaller; color: #aaa; }
+ div.mayorfoot a { color: rgba(52, 150, 185, 0.6);}
+ div.mayorfoot:hover a { color: rgba(52, 150, 185, 1);}
+ #mayorfoot.leftpad { margin-top:2em; margin-left: 141px; }
+ #mayorfoot.toppad { margin-top: 40px; margin-left: 0px; }
+
+ #takaro { z-index:150;position: fixed;top:0px; left:0px; right:0px; bottom:0px; background-color: rgba(0,0,0,0.7); }
+ #updateWindow { z-index: 152; position: fixed; background: rgb(255,255,255); min-height: 100px; min-width: 200px; border: #3496B9 3px solid; border-radius: 10px;}
+ #updateWindow #updateHeader { min-height: 20px; min-width: 100px; background: #1a4c5c; color: white; text-align: center; line-height: 20px; position: relative; top: -13px; border-radius: 20px; margin: 0 50px; border: solid 3px #3496b9; }
+ #updateWindow #updateCloseButton { position: absolute; right: -20px; top: -20px; z-index: 0; background : white; border: solid 3px #3496b9; border-radius: 20px;}
+ #updateWindow #updateCloseButton:hover { background : #eeeeee;}
+ #keyHelp { z-index:151;position: absolute; top:200px; left: 200px; right:200px; margin: auto; padding: 20px; width: 400px;
+ border: solid 1px yellow; border-radius: 20px; border-spacing: 15px; background-color: rgba(0,0,0,0.4);
+ }
+ #keyHelp th { color: white; text-align: center; border-bottom: yellow 2px solid; font-size: 20px; font-weight: bold; }
+ #keyHelp td.key { color: yellow; text-align: right; width: 100px; }
+ #keyHelp td.desc { color: white; text-align: left; }
+
+ #logo, #head, #nav1, #nav, #poz { position: fixed; }
+ #head { top: 0; left: 0; }
+ #nav { top: 0; left: 0; }
+ #nav1 { top: 0; }
+ #poz { top: 60px; width: 100%; }
+
+ #mayorbody { padding-top: 1px; padding-right: 0px;
+ /*margin-left:0px;*/ margin-top: 83px;
+ }
+ #mayorbody.leftpad {
+ margin-left: 141px; }
+ #mayorbody.toppad {
+ margin-left: 0px; top:33px; position: relative;
+ }
+
+
+ /* alternates */
+ #mayorhead.small #nav1 div a { line-height:30px; }
+ #mayorhead.small #nav > li > a { line-height:30px;}
+ #mayorhead.small #head { height:30px;}
+ #mayorhead.small #poz { height:20px;}
+
+ /* ------------ */
+
+
+}
+@media print {
+ #nav, #nav1, #nav2, #poz, #head, #logo, #mayorfoot, #logobadge { display: none; }
+}
diff --git a/mayor-orig/mayor-base/www/skin/teszt/base/html/base.phtml b/mayor-orig/mayor-base/www/skin/teszt/base/html/base.phtml
new file mode 100644
index 00000000..77e12bc7
--- /dev/null
+++ b/mayor-orig/mayor-base/www/skin/teszt/base/html/base.phtml
@@ -0,0 +1,407 @@
+<?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()
+*/
+
+ require('skin/blue/base/color_schemes.php');
+ if (!defined('__COLOR_SCHEME') || !is_array($_COLOR_SCHEMES[__COLOR_SCHEME]))
+ $_COLORS = $_COLOR_SCHEMES['blue'];
+ else
+ $_COLORS = $_COLOR_SCHEMES[__COLOR_SCHEME];
+
+
+// -------------------------------------------------------------------
+// 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);
+ _debugLayer();
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin);
+ echo '<div id="mayorerror"></div>';
+ $_defaultPageLayout = ($_SESSION['pageLayout']==0) ? 'leftpad' : 'toppad';
+ echo '<div class="mayorbody '.$_defaultPageLayout.'" id="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, $SSSBB;
+
+ 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');
+ ## -----------------------------------------------
+
+ // debug üzenetek layer-ének lezárása
+// if (defined('__START_DEBUG') && __START_DEBUG === true) echo "</div>\n<!--// debug end //-->";
+
+ echo '<?xml version="1.0" encoding="utf-8"?>'."\n";
+ echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/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 '<title>';
+ if (defined('_SITE')) echo ' - '._SITE.' - ';
+ echo _MAIN_TITLE;
+ echo '.';
+ echo _MAYORREV;
+ echo '</title>'."\n";
+ includeCSS($page,$sub,$f,$skin);
+ includeCSS($page,$sub,$f,$skin,'handheld'); // install css for handheld devices
+ includeJS($page,$sub,$f,$skin);
+ if (is_string($SSSHH) && $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 '<link rel="shortcut icon" href="/skin/blue/base/img/favicon.ico" />'."\n";
+ echo "</head>\n<body>\n";
+ if (is_string($SSSBB) && $SSSBB!='') echo $SSSBB;
+
+}
+
+// -------------------------------------------------------------------
+// mayor_menu(): a menü kiiratása
+// -------------------------------------------------------------------
+
+function mayor_menu($MENU,$sessionID,$lang = _DEFAULT_LANG,$skin = _DEFAULT_SKIN) {
+
+ global $policy, $page, $sub, $f, $LANGUAGES, $SKINSSHOW, $_COLORS;
+
+ echo '<ul id="nav" class="hideShowContainer">'."\n";
+ if (is_array($MENU)) {
+ $active_page=false;
+ foreach ($MENU as $aModule => $pItems) {
+ if ($aModule != 'modules') {
+ for ($i = 0; $i < count($pItems); $i++) {
+ if ($page == $aModule and
+ ( $active_page===false && ( $_SERVER["REQUEST_URI"]=='/' || (!isset($pItems[$i]['url'])) || strpos($_SERVER["REQUEST_URI"],$pItems[$i]['url']) !== false || strpos($pItems[$i]['url'],"page=$page") !== false) )
+ ) {
+ echo '<li class="active">';
+ $active_page=true;
+ } else {
+ echo '<li style="display: none;" class="openable">';
+ }
+ if (isset($pItems[$i]['url']) && $pItems[$i]['url'] != '') {
+ if ($pItems[$i]['url'][0] == '&') $href = href("index.php?page=$aModule".$pItems[$i]['url']);
+ elseif (substr($pItems[$i]['url'],0,4) == 'http') $href = href($pItems[$i]['url'], array());
+ elseif (isset($pItems[$i]['get']) && is_array($pItems[$i]['get'])) $href = href($pItems[$i]['url'], $pItems[$i]['get']);
+ else $href = href($pItems[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aModule");
+ }
+ echo '<a href="'.$href.'"'.((isset($pItems[$i]['target']))?' target="'.$pItems[$i]['target'].'" ':'').'>'
+ .$pItems[$i]['txt']
+ .'</a>'."\n";
+ // --- sub ---
+
+ @$pageArray = $MENU['modules'][$aModule];
+
+ if (is_array($pageArray) && count($pageArray)>0) {
+ echo '<ul class="sub">'."\n";
+ foreach ($pageArray as $aSub => $sItems) {
+ if ($aSub != 'sub') {
+ for ($j=0;$j<count($sItems);$j++) {
+ if (
+ $page == $aModule and
+ (
+ (!isset($sItems[$j]['url']) && $f == $aSub)
+ || (isset($sItems[$j]['url']) && strpos($_SERVER["REQUEST_URI"],$sItems[$j]['url']) !== false)
+ )
+ ) {
+ echo '<li class="active">'; $activeSub = true;
+ } else {
+ echo '<li>'; $activeSub = false;
+ }
+ if (isset($sItems[$j]['url']) && $sItems[$j]['url'] != '') {
+ if ($sItems[$j]['url'][0] == '&') $href = href("index.php?page=$aModule&f=$aSub".$sItems[$j]['url']);
+ elseif (substr($sItems[$j]['url'],0,4) == 'http') $href = href($sItems[$j]['url'], array());
+ elseif (isset($sItems[$j]['get']) && is_array($sItems[$j]['get'])) $href = href($sItems[$j]['url'], $sItems[$j]['get']);
+ else $href = href($sItems[$j]['url']);
+ } else {
+ $href = href("index.php?page=$aModule&f=$aSub",array('policy','sessionID','lang','skin'));
+ }
+ @$subArray = $MENU['modules'][$aModule]['sub'][$aSub];
+ if (!is_array($subArray) || count($subArray) == 0) {
+ echo '<a href="'.$href.'"'.((isset($sItems[$j]['target']))?' target="'.$sItems[$j]['target'].'" ':'').'>'
+ .$sItems[$j]['txt'].'</a>';
+ } else { // vannak al-al menúk (f - menü)
+ echo '<span>&laquo;</span><a href="'.$href.'"'.((isset($sItems[$j]['target']))?' target="'.$sItems[$j]['target'].'" ':'').'>'
+ .$sItems[$j]['txt'].'</a>';
+ // -- f menü --
+ echo '<ul class="fmenu">'."\n";
+
+ foreach ($subArray as $anF => $items) {
+ for ($k=0;$k<count($items);$k++) {
+ if ($aModule == $page and
+ $aSub == $sub and
+ $anF == $f and
+ (!isset($items[$k]['url']) or strpos($_SERVER["REQUEST_URI"],$items[$k]['url']) !== false)
+ ) { echo '<li class="active">'."\n"; }
+ else { echo '<li>'."\n"; }
+
+ if (isset($items[$k]['url']) && $items[$k]['url'] != '') {
+ if ($items[$k]['url'][0] == '&') $href = href("index.php?page=$aModule&sub=$aSub&f=$anF".$items[$k]['url']);
+ elseif (substr($items[$k]['url'],0,4) == 'http') $href = href($items[$k]['url'], array());
+ elseif (isset($items[$k]['get']) && is_array($items[$k]['get'])) $href = href($items[$k]['url'], $items[$k]['get']);
+ else $href = href($items[$k]['url']);
+ } else {
+ $href = href("index.php?page=$aModule&sub=$aSub&f=$anF");
+ }
+ echo '<a href="'.$href.'"'.((isset($items[$k]['target']))?' target="'.$items[$k]['target'].'" ':'').'> '
+ .$items[$k]['txt'].' </a>'."\n";
+
+ echo '</li>'."\n"; // al-al menüpont vége (f)
+ } // for - on items
+ } // foreach - on subArray
+
+ echo '</ul>'."\n"; // fmenu
+ } // vannak al-al menük (f -menü)
+
+ echo '</li>'."\n"; // almenü-pont vége (sub)
+ } // for - on sItems
+ } // ha nem sub == aSub
+ } // foreach pageArray
+ echo '</ul>'."\n"; // submenu
+ } // vannak almenük (sub)
+ echo '</li>'."\n"; // menüpont vége (page)
+ } // for - on pItems
+ } // ha aModule != 'modules'
+ } // foreach on MENU
+ }
+ echo '<li class="start onClickHideShow">&nbsp</li>';
+ echo '</ul>'."\n";
+
+ $loginout_img = _svgLoginout(array('print'=>false, 'color' => $_COLORS['login']));
+ $down_svg = _svgDown(array('print'=>false, 'color' => $_COLORS['login']));
+ // ------------------------
+
+ echo '<ul id="poz">';
+ echo '<li>';
+ if (!defined('_SCHOOL_NAME')) define('_SCHOOL_NAME',_SITE/*.' - '._MAIN_TITLE.'.'._MAYORREV*/);
+ echo '<span class="school">'._SCHOOL_NAME.'</span>';
+
+ if ($policy == 'public') {
+ echo '<div class="nev hideShowContainer">'.$down_svg.'<span class="onClickHideShow" style="padding-left:14px;" > '._LOGIN.'</span>';
+ echo '<a id="logout" title="'._LOGIN.'" href="'.href('index.php?page=auth&f=login&toPolicy=private',array('skin','lang','sessionID')).'">';
+ echo $loginout_img;
+ echo '</a>';
+ echo '<div id="settings" class="openable" style="display: none">';
+ echo '<table>';
+ echo '<tr>';
+ echo '<td><a href="'.href('index.php?page=auth&f=login&toPolicy=parent').'">'.str_replace(' ','&nbsp;',_PARENT_LOGIN).'</a></td>';
+ echo '<td><a href="'.href('index.php?page=auth&f=login&toPolicy=private').'">'._LOGIN.'</a></td>';
+ echo '</tr>';
+ echo '</table>';
+ formBegin();
+ formEnd();
+ echo '</div>';
+ echo '</div>';
+ } else {
+ echo '<div class="nev hideShowContainer">'.$down_svg.'<span class="onClickHideShow" style="padding-left:14px;" > '._USERCN.'</span>';
+ echo '<a id="logout" title="'._LOGOUT.'" href="'.href('index.php?page=session&f=logout&policy=public',array('skin','lang','sessionID')).'">';
+ echo $loginout_img;
+ echo '</a>';
+ echo '<div id="settings" class="openable" style="display: none">';
+ echo '<div>';
+ echo '<p class="name">'._USERCN.'</p>';
+ echo '<p class="account">'._USERACCOUNT.'</p>';
+ echo '</div>';
+ echo '<table>';
+ echo '<tr>';
+ echo '<td><a href="'.href('index.php?page=password&f=changeMyPassword&userAccount='._USERACCOUNT.'&policy=public',array('skin','lang','sessionID')).'">'._PASSWORD.'</a></td>';
+ echo '<td><a href="'.href('index.php?page=session&f=logout&policy=public',array('skin','lang','sessionID')).'">'._LOGOUT.'</a></td>';
+ echo '</tr>';
+ echo '</table>';
+ formBegin();
+ /* 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 '<input type="text" id="SESSION_MAX_IDLE_TIME" value="'.$sessionMaxIdleTime.'" />';
+ echo '<input type="text" id="SESSION_ALERT_TIME" value="'.$sessionAlertTime.'" />';
+ /* --- */
+ formEnd();
+ echo '</div>';
+ echo '</div>';
+ } // policy != punlic
+//var_dump(substr($_SERVER["REQUEST_URI"],0,strpos($_SERVER["REQUEST_URI"],'sessionID=')));
+
+ echo '</li>';
+ echo '</ul>';
+
+
+}
+
+// -------------------------------------------------------------------
+// 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, $SCHOOL_LOGO, $SCHOOL_IDENTITY, $SCHOOL_URL, $NAV;
+
+ _updateWindow();
+ _keyHelp();
+
+ echo '<div id="mayorhead">';
+
+ //if (date('m')==12) $imgextra = '-santa'; else $imgextra = '';
+ if (defined('_HOME_LOGO') && file_exists(_HOME_LOGO)) $HOME_LOGO=_HOME_LOGO;
+ elseif (!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 (defined('_HOME_LOGO_BADGE') && file_exists(_HOME_LOGO_BADGE)) $HOME_LOGO_BADGE=_HOME_LOGO_BADGE;
+// elseif (!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';
+
+ echo '<div id="head"></div><!-- we are holding some place here -->';
+
+ echo "<!--// NAV1 start //-->\n";
+ echo '<div id="nav1">';
+ echo '<div class="hideShowContainer">';
+
+ $db = 0; $max = __MAX_MENU; // Az egy sorba megjeleníthető menüpontok maximális száma
+ if (is_array($NAV[1])) foreach ($NAV[1] as $N1) {
+ $txt = '';
+ $i = intval($N1['index']);
+ if (isset($N1['sub'])) {
+ if (!isset($N1['f'])) {
+ $M = $MENU['modules'][ $N1['page'] ][ $N1['sub'] ][ $i ];
+ } else {
+ $M = $MENU['modules'][ $N1['page'] ]['sub'][ $N1['sub'] ][ $N1['f'] ][ $i ];
+ }
+ } elseif (isset($N1['f'])) {
+ $M = $MENU['modules'][ $N1['page'] ][ $N1['f'] ][ $i ];
+ } else {
+ $M = $MENU[$N1['page']][ $i ];
+ }
+ $txt = $M['txt'];
+ $url = $M['url'];
+ $get = $M['get'];
+ if (isset($get)) $href = href( isset($url)?$url:'index.php?page='.$N1['page'].'&sub='.$N1['sub'].'&f='.$N1['f'], $get);
+ else $href = href( isset($url)?$url:'index.php?page='.$N1['page'].'&sub='.$N1['sub'].'&f='.$N1['f']);
+
+ if ($db<$max) {
+ if ($page == $N1['page'] && $sub == $N1['sub'] && (!isset($N1['f']) || $f == $N1['f'])) $class = ' class="aktiv" '; else $class = '';
+ } else {
+ if ($page == $N1['page'] && $sub == $N1['sub'] && (!isset($N1['f']) || $f == $N1['f'])) $class = ' class="openable aktiv" '; else $class = ' class="openable" ';
+ $style = ' style="display: none;" ';
+ }
+
+ if ($txt != '') { // Hibás hivatkozás ne rontsa el a menüt!
+ if ($db == $max) echo '<span class="onClickHideShow openable">&nabla;</span><span class="onClickHideShow openable" style="display: none;">&Delta;</span><br />';
+ echo '<a href="'.$href.'"'.$class.$style.'>';
+ echo $txt;
+ echo '</a>';
+ $db++;
+ }
+
+
+ }
+ echo '</div>';
+ echo '</div>'."\n<!--// NAV1 end //-->\n";
+
+ mayor_menu($MENU,$sessionID,$lang,$skin);
+
+ echo '<div class="mayorLogo">';
+ echo '<a href="'.href('index.php').'">';
+ echo '<img src="'.$HOME_LOGO.'" alt="MaYoR" id="logo" />';
+ if ($HOME_LOGO_BADGE!='') echo '<img src="'.$HOME_LOGO_BADGE.'" alt="" id="logobadge" />';
+ echo '</a>';
+ echo '</div>';
+
+
+ echo "<!--// NAV2 start //-->\n";
+ $_defaultPageLayout = ($_SESSION['pageLayout']==0) ? 'vertical' : 'horizontal';
+ echo '<div id="nav2" class="'.$_defaultPageLayout.'">';
+// echo '<span id="hideNav2:tavtarto" class="onClickHide">X</span>';
+ if (is_array($NAV[2])) {
+ echo '<ul>';
+ foreach ($NAV[2] as $N2) {
+ $txt = '';
+ $i = intval($N2['index']);
+ if (isset($N2['sub'])) {
+ if (!isset($N2['f'])) {
+ $M = $MENU['modules'][ $N2['page'] ][ $N2['sub'] ][ $i ];
+ } else {
+ $M = $MENU['modules'][ $N2['page'] ]['sub'][ $N2['sub'] ][ $N2['f'] ][ $i ];
+ }
+ } elseif (isset($N2['f'])) {
+ $M = $MENU['modules'][ $N2['page'] ][ $N2['f'] ][ $i ];
+ } else {
+ $M = $MENU[$N2['page']][ $i ];
+ }
+ $txt = $M['txt'];
+ $url = $M['url'];
+ $get = $M['get'];
+ if (isset($get)) $href = href( isset($url)?$url:'index.php?page='.$N2['page'].'&sub='.$N2['sub'].'&f='.$N2['f'], $get);
+ else $href = href( isset($url)?$url:'index.php?page='.$N2['page'].'&sub='.$N2['sub'].'&f='.$N2['f']);
+
+ if ($page == $N2['page'] && $sub == $N2['sub'] && (!isset($N2['f']) || $f == $N2['f'])) $class = ' class="aktiv" '; else $class = '';
+ if ($txt != '') {
+ echo '<li>';
+ echo '<a href="'.$href.'"'.$class.'>';
+ echo $txt;
+ echo '</a>';
+ echo '</li>';
+ }
+ }
+ echo '</ul>';
+ }
+ echo '</div>'."\n<!--// NAV2 end //-->\n";
+
+ echo '</div>'."\n";
+
+}
+
+
+// -------------------------------------------------------------------
+// html_mayor_foot() : lablec kiirasa ( )
+// -------------------------------------------------------------------
+
+function html_mayor_foot() {
+ $_defaultPageLayout = ($_SESSION['pageLayout']==0) ? 'leftpad' : 'toppad';
+ echo '<div class="mayorfoot '.$_defaultPageLayout.'" id="mayorfoot">'._MAIN_FOOTER.'</div>'."\n\n";
+ echo "</body>\n</html>";
+}
+
+
+?>
diff --git a/mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR-star_medium.png b/mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR-star_medium.png
new file mode 100644
index 00000000..50ea66a7
--- /dev/null
+++ b/mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR-star_medium.png
Binary files differ
diff --git a/mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR-star_small.png b/mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR-star_small.png
new file mode 100644
index 00000000..b503f4de
--- /dev/null
+++ b/mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR-star_small.png
Binary files differ
diff --git a/mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR_elektronikus_naplo.png b/mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR_elektronikus_naplo.png
new file mode 100644
index 00000000..a6d02c3b
--- /dev/null
+++ b/mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR_elektronikus_naplo.png
Binary files differ
diff --git a/mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR_rypple.png b/mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR_rypple.png
new file mode 100644
index 00000000..8bbdfad9
--- /dev/null
+++ b/mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR_rypple.png
Binary files differ
diff --git a/mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR_star.png b/mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR_star.png
new file mode 100644
index 00000000..d701f106
--- /dev/null
+++ b/mayor-orig/mayor-base/www/skin/teszt/base/img/MaYoR_star.png
Binary files differ
diff --git a/mayor-orig/mayor-base/www/skin/teszt/base/img/mayor_small_ssl.png b/mayor-orig/mayor-base/www/skin/teszt/base/img/mayor_small_ssl.png
new file mode 100644
index 00000000..ca42a8d0
--- /dev/null
+++ b/mayor-orig/mayor-base/www/skin/teszt/base/img/mayor_small_ssl.png
Binary files differ
diff --git a/mayor-orig/mayor-base/www/skin/teszt/base/img/school_logo.php b/mayor-orig/mayor-base/www/skin/teszt/base/img/school_logo.php
new file mode 100644
index 00000000..19f74ba0
--- /dev/null
+++ b/mayor-orig/mayor-base/www/skin/teszt/base/img/school_logo.php
@@ -0,0 +1,91 @@
+<?php
+/*
+ Előállít egy megadott képből egy 200px széles, adott színre átszínezett képet - vagy ha a kép nem érhető el, akkor az alapértelmezett képet adja
+*/
+
+//error_reporting(E_ALL);
+//ini_set('display_errors', 1);
+ require('/etc/mayor/main-config.php');
+ require(_CONFIGDIR.'/skin-teszt/config.php');
+ if(!function_exists('imagefilter')) require(_BASEDIR.'/include/share/gd/imagefilter.php');
+
+ if (!defined('_CACHEDIR')) define('_CACHEDIR','/tmp');
+ $defaultImgUrl = _BASEDIR.'/skin/teszt/base/img/mayor_small_ssl.png';
+ $imgUrl = ($_GET['imgUrl'] != '')?$_GET['imgUrl']:$defaultImgUrl;
+ $red = 242;
+ $green = 54;
+ $blue = 104;
+ $maxWidth = 200;
+ $maxHeight = 80;
+
+$h=0.5;
+$red = 242*$h;
+$green = 54*$h;
+$blue = 104*$h;
+
+ $fileName = basename($imgUrl);
+ $cacheFile = _CACHEDIR.'/'.$fileName;
+ header('Content-Type: image/png');
+ if (!_SCHOOL_LOGO_COLORIZE && !_SCHOOL_LOGO_RESIZE) {
+ // A képet nem kell átalakítani - közvetlenül adjuk át
+ $fp = fopen($imgUrl, 'rb');
+ fpassthru($fp);
+ exit;
+ } elseif ((!file_exists($cacheFile)) || (_SCHOOL_LOGO_FORCE_GENERATE === true)) { // Ha nincs elkeselve még a kép, vagy kényszerítjük a generálást
+ // beolvassuk
+ $im = imagecreatefrompng($imgUrl);
+ // Ha nem sikerül, akkor az alapértelmezettet vesszük
+ if (!$im && $imgUrl != $defaultImgUrl) {
+ $imgUrl = $defaultImgUrl;
+ $fileName = basename($imgUrl);
+ $cacheFile = _CACHEDIR.'/'.$fileName;
+ // Ha már el van cache-elve, akkor kiadjuk
+ if (file_exists($cacheFile)) {
+ $fp = fopen($cacheFile, 'rb');
+ fpassthru($fp);
+ exit;
+ }
+ // ha nincs a cache-ben, akkor beolvassuk
+ $im = imagecreatefrompng($defaultImgUrl);
+ }
+
+ // Ha sikerült
+ if ($im) {
+ // Átszínezzük
+ if (_SCHOOL_LOGO_COLORIZE !== false) {
+ // Szüreke árnyalatossá tesszük
+ imagefilter($im, IMG_FILTER_GRAYSCALE);
+ // Majd az adott színárnyalatra átszínezzük
+ imagefilter($im, IMG_FILTER_COLORIZE, $red, $green, $blue);
+ }
+ // Átméretezzük
+ list($width, $height) = getimagesize($imgUrl);
+ if (_SCHOOL_LOGO_RESIZE !== false) {
+ // Új méretek meghatározása
+ $percent = min($maxWidth / $width, $maxHeight / $height);
+ $newHeight = intval($height * $percent);
+ $newWidth = intval($width * $percent);
+ } else {
+ $newHeight = $height;
+ $newWidth = $width;
+ }
+ // Ha nem kell átméretezni, akkor is átméretezzük - különben csúnya pixeles lesz :(
+ $imNew = imagecreatetruecolor($newWidth, $newHeight);
+
+ imagealphablending($imNew, false); // setting alpha blending on
+ imagecopyresampled($imNew, $im, 0, 0, 0, 0, $newWidth, $newHeight, $width, $height);
+ imagesavealpha($imNew, true); // save alphablending setting (important)
+ // A képet a cache-be mentjük
+ imagepng($imNew, $cacheFile);
+ imagedestroy($imNew);
+ imagedestroy($im);
+
+ }
+
+ }
+ $fp = fopen($cacheFile, 'rb');
+ fpassthru($fp);
+ exit;
+
+
+?>
diff --git a/mayor-orig/mayor-base/www/skin/teszt/base/img/settings.png b/mayor-orig/mayor-base/www/skin/teszt/base/img/settings.png
new file mode 100644
index 00000000..272d4c5f
--- /dev/null
+++ b/mayor-orig/mayor-base/www/skin/teszt/base/img/settings.png
Binary files differ
diff --git a/mayor-orig/mayor-base/www/skin/teszt/module-auth/css/login.css b/mayor-orig/mayor-base/www/skin/teszt/module-auth/css/login.css
new file mode 100644
index 00000000..872d000f
--- /dev/null
+++ b/mayor-orig/mayor-base/www/skin/teszt/module-auth/css/login.css
@@ -0,0 +1,46 @@
+@media screen {
+
+div.mayorbody img { border-width: 0px; }
+div.mayorbody h1 {text-align: center; margin:10px; font-size:20px; }
+div.mayorbody h2 {text-align: center; margin:10px; font-size: 15px; }
+div.mayorbody table { font-size: 12px; }
+div.mayorbody table.main {width: 100%; border-width: 0px;}
+div.mayorbody table.loginablak {
+ background-color: #ffffff;
+ border-width: 1px;
+ border-style: solid;
+ border-color: #555550;
+ width:400px}
+div.mayorbody td { padding: 2px }
+div.mayorbody form { margin: 30px;padding: 0px; }
+div.mayorbody input { font-size: 12px; font-family:Verdana,Arial; background-color: #fffff0; border: solid 1px #666690;}
+div.mayorbody select.pp { padding: 0px; margin: 0px; border: none 0px #778890; font-size: 12px; background-color: #eeeee0; font-family: Verdana,Arial; }
+div.mayorbody select.pp>option { border: none 0px black; }
+div.mayorbody input.submit { border: solid 1px #776650; }
+div.mayorbody table.loginablak thead td {
+ background-color: #666690;
+ text-align: center;
+ font-family: Verdana,arial;
+ font-size: 10pt;
+ font-weight: bold;
+ color: white;
+ border-bottom: solid 1px white;
+div.mayorbody }
+div.mayorbody table.loginablak tbody tr.top td { border-top: solid 1px #666690; }
+
+div.mayorbody tfoot td { background-color: #888880; text-align: center; }
+div.mayorbody td.co { text-align: center; vertical-align: bottom; font-family: Verdana,arial; font-size:8pt; }
+div.mayorbody img.aauthImg {
+ border-top: solid 1px #666690;
+ border-bottom: solid 1px #888880;
+ border-left: solid 1px #666690;
+ border-right: solid 1px #888880;
+}
+#warning { height: 40px; }
+#capsLockWarning {
+ background: #ffffaa; color: #ffaaaa;
+ text-align: center; font-size: 20px; font-weight: bold;
+ padding: 20px; margin: 10px auto; width: 300px;
+}
+
+} \ No newline at end of file