commit 40e1abc01bfa5f0ee15940be9767dabfff04a033
parent c3282e6d209520241f286fc8fc1764de04e4b2fa
Author: dankert <devnull@localhost>
Date: Tue, 15 Feb 2011 21:37:56 +0100
Sitzungsverlauf anzeigen.
Diffstat:
3 files changed, 99 insertions(+), 57 deletions(-)
diff --git a/action/TitleAction.class.php b/action/TitleAction.class.php
@@ -77,17 +77,6 @@ class TitleAction extends Action
//$this->setTemplateVar('profile_url',Html::url( 'profile' ));
//$this->setTemplateVar('logout_url' ,Html::url( 'index','logout' ));
- if ( Session::get('showtree') )
- {
- $this->setTemplateVar('showtree_url' ,Html::url('index','hidetree') );
- $this->setTemplateVar('showtree_text',lang('HIDETREE') );
- }
- else
- {
- $this->setTemplateVar('showtree_url' ,Html::url('index','showtree') );
- $this->setTemplateVar('showtree_text',lang('SHOWTREE') );
- }
-
if ( config('interface','session','auto_extend') )
{
$this->setTemplateVar('ping_url' ,Html::url('title','ping') );
@@ -101,6 +90,35 @@ class TitleAction extends Action
$this->setTemplateVar('ping',true );
$this->setTemplateVar('time',date('r') );
}
+
+
+ public function history()
+ {
+ $resultList = array();
+
+ $history = Session::get('history');
+
+ if ( is_array($history) )
+ {
+ foreach( array_reverse($history) as $objectid )
+ {
+ $o = new Object( $objectid );
+ $o->load();
+ $resultList[$objectid] = array();
+ $resultList[$objectid]['url'] = Html::url($o->getType(),'',$objectid);
+ $resultList[$objectid]['type'] = $o->getType();
+ $resultList[$objectid]['name'] = $o->name;
+ $resultList[$objectid]['lastchange_date'] = $o->lastchangeDate;
+
+ if ( $o->desc != '' )
+ $resultList[$objectid]['desc'] = $o->desc;
+ else
+ $resultList[$objectid]['desc'] = lang('NO_DESCRIPTION_AVAILABLE');
+ }
+ }
+
+ $this->setTemplateVar( 'history',$resultList );
+ }
}
?>
\ No newline at end of file
diff --git a/action/TitleAction.ini.php b/action/TitleAction.ini.php
@@ -8,3 +8,6 @@ guest=true
[ping]
async=true
+
+[history]
+async=true
diff --git a/themes/default/templates/title/show.tpl.src.php b/themes/default/templates/title/show.tpl.src.php
@@ -1,61 +1,83 @@
-part
+part class:title
+
// Datenbank anzeigen
image icon:database align:left
if present:dbname
text title:message:database var:dbname maxlength:25
- text raw:_-_
- part class:dropdown
- list list:databases key:id value:name
- link class:entry action:index subaction:logout var1:dbid value1:var:id target:content
- text var:name
+# text raw:_-_
+# part class:dropdown
+# list list:databases key:id value:name
+# link class:entry action:index subaction:logout var1:dbid value1:var:id target:content
+# text var:name
text var:cms_title title:var:buildinfo
-if present:projectname
- part
- // Titel anzeigen
- image icon:project align:left
- 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
-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: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
+# 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
+
+#if present:dbname
+# part class:logout
+# link title:message:USER_LOGOUT_DESC action:login subaction:logout target:content
+# image icon:close align:left
+# text key:USER_LOGOUT
-if present:languagename
- part
- link action:language subaction:listing target:content
- image icon:language align:left
- text title:message:language var:languagename maxlength:20
+part class:search
+ form
+ image icon:search
+ input name:text value:message:search
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
-
-if present:dbname
- part class:logout
- link title:message:USER_LOGOUT_DESC action:login subaction:logout target:content
- image icon:close align:left
- text key:USER_LOGOUT
+ text raw:
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
+ part class:dropdown
+ link title:message:USER_PROFILE_DESC action:profile subaction: target:content
+ image icon:user align:left
+ text key:profile
-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
+ if true:method:userIsAdmin
+ link class:entry action:tree subaction:show target:tree var1:projectid value1:-1
+ image icon:administration align:left
+ text key:administration
+
+ link class:entry title:message:USER_LOGOUT_DESC action:login subaction:logout target:content
+ image icon:close align:left
+ text key:USER_LOGOUT
+
+part class:history
+ // Benutzer-Funktionen
+ image icon:history align:left
+ text key:history maxlength:20
+ part class:dropdown
+ text raw:
+
+if present:projectname
+ part class:projects
+ // Titel anzeigen
+ image icon:project align:left
+ text title:message:project var:projectname maxlength:20
+ part class:dropdown
+ list list:projects key:id value:name
+ image icon:project
+ link class:entry action:tree subaction:show var1:projectid value1:var:id target:tree
+ text var:name