aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-base/www/skin/pda
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/pda
parentc76a004b0135786f2742283f8d5f917106f58bd8 (diff)
downloadmayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.tar.gz
mayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.zip
további rendrakás
Diffstat (limited to 'mayor-orig/mayor-base/www/skin/pda')
-rw-r--r--mayor-orig/mayor-base/www/skin/pda/base/css/base.css182
-rw-r--r--mayor-orig/mayor-base/www/skin/pda/base/html/alert.phtml85
-rw-r--r--mayor-orig/mayor-base/www/skin/pda/base/html/base.phtml240
-rw-r--r--mayor-orig/mayor-base/www/skin/pda/module-auth/css/login.css4
-rw-r--r--mayor-orig/mayor-base/www/skin/pda/module-auth/html/login.phtml60
5 files changed, 571 insertions, 0 deletions
diff --git a/mayor-orig/mayor-base/www/skin/pda/base/css/base.css b/mayor-orig/mayor-base/www/skin/pda/base/css/base.css
new file mode 100644
index 00000000..1a321380
--- /dev/null
+++ b/mayor-orig/mayor-base/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/mayor-base/www/skin/pda/base/html/alert.phtml b/mayor-orig/mayor-base/www/skin/pda/base/html/alert.phtml
new file mode 100644
index 00000000..a7f9ce62
--- /dev/null
+++ b/mayor-orig/mayor-base/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/mayor-base/www/skin/pda/base/html/base.phtml b/mayor-orig/mayor-base/www/skin/pda/base/html/base.phtml
new file mode 100644
index 00000000..b15ad2f3
--- /dev/null
+++ b/mayor-orig/mayor-base/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>";
+}
+
+?>
diff --git a/mayor-orig/mayor-base/www/skin/pda/module-auth/css/login.css b/mayor-orig/mayor-base/www/skin/pda/module-auth/css/login.css
new file mode 100644
index 00000000..47a1610d
--- /dev/null
+++ b/mayor-orig/mayor-base/www/skin/pda/module-auth/css/login.css
@@ -0,0 +1,4 @@
+
+ form.login { padding: 0px 10px; }
+ form.login input.txtbox { width:80%; height:2em;}
+ form.login select { font-size:1em;}
diff --git a/mayor-orig/mayor-base/www/skin/pda/module-auth/html/login.phtml b/mayor-orig/mayor-base/www/skin/pda/module-auth/html/login.phtml
new file mode 100644
index 00000000..03250685
--- /dev/null
+++ b/mayor-orig/mayor-base/www/skin/pda/module-auth/html/login.phtml
@@ -0,0 +1,60 @@
+<?php
+
+ function putLoginForm($userAccount,$toPolicy,$toPSF='',$toSkin='') {
+
+ global $POLICIES, $AUTH, $sessionID;
+ global $SKINSSHOW;
+// echo '<h1>'._GREETING.'</h1>'."\n";
+
+ formBegin(array('method'=>'post',
+ 'class'=>'login',
+ 'action'=>'index.php?policy=public&page=auth&f=login&toPolicy='.$toPolicy.'&toSkin='.$toSkin.'&sessionID='.$sessionID ,
+ 'name'=>"loginablak"));
+
+ echo '<input type="hidden" name="action" value="login" />';
+ echo '<input type="hidden" name="toPSF" value="'.$toPSF.'" />';
+
+ echo '<div class="inputLabel">'._USERNAME.'</div>';
+ echo '<input class="txtbox" id="focus" type="text" accesskey="l" tabindex="1" id="userAccount" name="userAccount" value="'.$userAccount.'" maxlength="36" size="10" />'."\n";
+
+ echo '<div class="inputLabel">'._PASSWORD.'</div>';
+/*
+ echo '<select style="width:40%" class="pp" name="toPolicy">'."\n";
+ $SEL = array($toPolicy => ' selected="selected" ');
+ for ($i=0; $i<count($POLICIES); $i++) {
+ $_policy = $POLICIES[$i];
+ if ($AUTH[$_policy]['authentication'] != 'none') {
+ echo '<option value="'.$_policy.'" '.$SEL[$_policy].'>';
+ echo constant('_'.strtoupper($_policy).'_PASSWORD');
+ echo '</option>'."\n";
+ }
+ }
+ echo '</select>'."\n";
+*/
+ echo '<input class="txtbox" type="password" accesskey="p" tabindex="2" name="userPassword" value="" />'."\n";
+
+ echo '<input type="hidden" name="toPolicy" value="'.$toPolicy.'" />';
+ echo '<input type="hidden" name="toSkin" value="pda" />';
+/*
+ echo '<div class="inputLabel">'._SKIN.'</div>';
+ echo '<select id="toSkin" name="toSkin">'."\n";
+ $SEL = array($toSkin => ' selected="selected" ');
+ for ($i=0; $i<count($SKINSSHOW); $i++) {
+ $_skin = $SKINSSHOW[$i];
+ echo '<option value="'.$_skin.'" '.$SEL[$_skin].'>';
+ echo $_skin;
+ echo '</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</div>'."\n";
+*/
+ echo '<div style="text-align:right; height:1.5em;">';
+ echo '<input type="submit" tabindex="3" name="button" value=" '. _LOGIN .' " class="submit" />'."\n";
+ echo '</div>';
+
+
+ formEnd();
+
+ }
+
+?>