openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit bbc263266021ace95b440cea427d98d3c8a79421
parent c0769d8b39690438d3243f9bec1f2186a0f449a2
Author: dankert <devnull@localhost>
Date:   Sat, 25 Dec 2010 23:18:42 +0100

Drop-down-MenĂ¼ per CSS in Titelleiste.

Diffstat:
actionClasses/TitleAction.class.php | 23+++++++++++++++++------
themes/default/css/base.css | 145++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------
themes/default/templates/title/show.tpl.src.php | 59+++++++++++++++++++++++++++++++++++++++++------------------
3 files changed, 190 insertions(+), 37 deletions(-)

diff --git a/actionClasses/TitleAction.class.php b/actionClasses/TitleAction.class.php @@ -40,16 +40,27 @@ class TitleAction extends Action $this->setTemplateVar('userfullname',$user->fullname); $project = Session::getProject(); - if ( is_object($project) ) + if ( is_object($project) ) + { $this->setTemplateVar('projectname',$project->name); + $this->setTemplateVar('projects' ,Project::getAll() ); + } + + - $language = Session::getProjectLanguage(); - if ( is_object($language) ) - $this->setTemplateVar('languagename',$language->name); + $language = Session::getProjectLanguage(); + if ( is_object($language) ) + { + $this->setTemplateVar('languagename',$language->name); + $this->setTemplateVar('languages',Language::getAll() ); + } - $model = Session::getProjectModel(); - if ( is_object($model) ) + $model = Session::getProjectModel(); + if ( is_object($model) ) + { $this->setTemplateVar('modelname',$model->name); + $this->setTemplateVar('models' ,Model::getAll() ); + } // Urls zum Benutzerprofil und zum Abmelden //$this->setTemplateVar('profile_url',Html::url( 'profile' )); diff --git a/themes/default/css/base.css b/themes/default/css/base.css @@ -134,10 +134,17 @@ input.ok -moz-box-shadow: 3px 2px 5px gray; box-shadow: 3px 2px 5px gray; cursor:default; + color:black; } + +a.help +{ + float:right; +} + input.ok { - font-weight:bold; + x-font-weight:bold; } a.help @@ -155,6 +162,130 @@ input.ok:hover border-color:white; } +a.action:active, +a.action_active:active, +a.help:active, +div.noaction:active, +input.ok:active +{ + border-color:red; +} + + +a +{ + color:black; +} + + +div.dropdown +{ + display:none; + opacity:0.9; + background-color:white; + position: absolute; + + padding:4px; + border:1px solid grey; + -moz-border-radius:5px; /* Mozilla */ + -webkit-border-radius:5px; /* Webkit */ + -khtml-border-radius:5px; /* Konqui */ + border-radius:5px; + background: -moz-linear-gradient(top, gray, silver); + background: -webkit-gradient(linear, left top, left bottom, from(gray), to(silver)); + font-style:normal; + font-weight:normal; + text-decoration:none; + -webkit-box-shadow: 3px 2px 5px gray; + -moz-box-shadow: 3px 2px 5px gray; + box-shadow: 3px 2px 5px gray; + color:black; +} + +div.dropdown > a +{ + display:block; +} +div.dropdown part.entry:hover +{ + background-color:silver; +} + +/*Dropdown anzeigen!!!*/ +div#header div:hover div.dropdown +{ + display:block; +} + + +topmenu{ + list-style:none; + display:inline; + margin:0; + padding:0; +} +.topmenu li{ + display:inline; + padding:3px 15px 3px 15px; + border:1px solid #ccc; + border-bottom:none; + margin-right:9px; + background:#828080; + -moz-border-radius:5px; + -moz-box-shadow: 0 1px 3px rgba(0,0,0, .3); +} +.topmenu li:hover{ + background: #999898; +} +.topmenu li a{ + color:#fff; + text-decoration:none; +} +/*Dropdown*/ +.topmenu ul{ + display:none; + width:110px; + background-color: #fff; + padding: 5px 5px; + margin-left: 75px; + margin-top:1px; + border: solid 1px #b4b4b4; + -webkit-border-radius: 5px; + -moz-border-radius-bottomleft: 5px; + -moz-border-radius-bottomright: 5px; + -moz-border-radius-topright: 3px; + border-radius: 5px; + -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .3); + -moz-box-shadow: 0 1px 5px rgba(0,0,0, .3); + box-shadow: 0 1px 3px rgba(0,0,0, .3); + position:absolute; + opacity:0.7; +} +/*Dropdown anzeigen!!!*/ +.topmenu li:hover > ul{ + display:inline-table; +} +.topmenu ul li{ + list-style-type: none; + display: block; + padding: 4px 2px 4px 2px; + border:none; + background:none; + -moz-box-shadow:none; + border-bottom:1px solid #ccc; +} +.topmenu ul li:hover{ + background: none; + font-weight: bold; +} +.topmenu ul li:last-child{ + border-bottom:none; +} +.topmenu ul li a{ + color:#000000; +} + + /* Vorschau von Text-Inhalten */ @@ -440,18 +571,6 @@ textarea padding:2px; } -input.submit, -input.ok, -div.cancel -{ - width:110px; - font-weight: bold; -} - -input.reset -{ - text-align:right; -} input.checkbox, input.radio diff --git a/themes/default/templates/title/show.tpl.src.php b/themes/default/templates/title/show.tpl.src.php @@ -1,34 +1,57 @@ part // Datenbank anzeigen image icon:database align:left - text title:message:database var:dbname maxlength:25 - text raw:_-_ + if present:dbname + text title:message:database var:dbname maxlength:25 + text raw:_-_ text var:cms_title title:var:buildinfo -part - // Titel anzeigen - if present:projectname +if present:projectname + part + // Titel anzeigen image icon:project align:left - text title:message:project var:projectname maxlength:20 + text title:message:project var:projectname maxlength:20 + part class:dropdown + list list:projects key:id value:name + link class:entry action:tree subaction:load var1:projectid value1:var:id target:tree + text var:name -part - image icon:model align:left - if present:modelname - text title:message:model var:modelname maxlength:20 +if present:modelname + part + link action:model subaction:listing target:content + image icon:model align:left + text title:message:model var:modelname maxlength:20 + part class:dropdown + list list:models key:id value:name + link class:entry action:tree subaction:load var1:modelid value1:var:id target:tree + text var:name if present:languagename part - image icon:language align:left - text title:message:language var:languagename maxlength:20 + link action:language subaction:listing target:content + image icon:language align:left + text title:message:language var:languagename maxlength:20 + part class:dropdown + list list:languages key:id value:name + link class:entry action:tree subaction:load var1:languageid value1:var:id target:tree + text var:name -part class:logout - link title:message:USER_LOGOUT_DESC action:index subaction:logout target:content - image icon:close align:left - text key:USER_LOGOUT +if present:dbname + part class:logout + link title:message:USER_LOGOUT_DESC action:index subaction:logout target:content + image icon:close align:left + text key:USER_LOGOUT part class:user // Benutzer-Funktionen link title:message:USER_PROFILE_DESC action:profile subaction: target:content image icon:user align:left text var:userfullname maxlength:20 - - \ No newline at end of file + +if true:method:userIsAdmin + part class:user + // Benutzer-Funktionen + link action:tree subaction:load target:tree var1:projectid value1:-1 + image icon:administration align:left + text key:administration + + \ No newline at end of file