commit da07c0a0668941f49551700c00b04acf04f5513f
parent 1242df9169b1dcbde79113cb35a63d2f6fcde941
Author: dankert <devnull@localhost>
Date: Sat, 22 Dec 2007 00:23:55 +0100
Statusleiste anzeigen.
Diffstat:
3 files changed, 87 insertions(+), 2 deletions(-)
diff --git a/actionClasses/StatusAction.class.php b/actionClasses/StatusAction.class.php
@@ -0,0 +1,77 @@
+<?php
+// ---------------------------------------------------------------------------
+// $Id$
+// ---------------------------------------------------------------------------
+// OpenRat Content Management System
+// Copyright (C) 2002-2007 Jan Dankert, jandankert@jandankert.de
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; version 2.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+// ---------------------------------------------------------------------------
+
+
+/**
+ * Action-Klasse fuer die Statusleiste
+ * @author $Author$
+ * @version $Revision$
+ * @package openrat.actions
+ */
+
+class StatusAction extends Action
+{
+ /**
+ */
+ function show()
+ {
+ global $conf;
+ $metaList = array();
+
+ $user = Session::getUser();
+ if ( is_object($user) )
+ {
+ // Projekte ermitteln
+ $projects = $user->projects;
+ $this->setTemplateVar('projects',$projects);
+ }
+
+ $project = Session::getProject();
+ if ( is_object($project) )
+ {
+ if ( $project->projectid > 0 )
+ {
+ $this->setTemplateVar('projectid',$project->projectid);
+ $this->setTemplateVar('languages',$project->getLanguages());
+ $language = Session::getProjectLanguage();
+ if ( is_object($language) )
+ $this->setTemplateVar('languageid',$language->languageid);
+ $this->setTemplateVar('models' ,$project->getModels() );
+ $model = Session::getProjectModel();
+ if ( is_object($model) )
+ $this->setTemplateVar('modelid',$model->modelid);
+
+ // TODO: Nur Projekt-Admins
+ $this->setTemplateVar('templates',$project->getTemplates());
+ }
+ else
+ {
+ $this->setTemplateVar('users' ,User::listAll() );
+ $this->setTemplateVar('groups',Group::getAll() );
+ }
+ }
+
+ }
+
+}
+
+
+?>+
\ No newline at end of file
diff --git a/actionClasses/StatusAction.ini.php b/actionClasses/StatusAction.ini.php
@@ -0,0 +1,7 @@
+
+admin=false
+
+[default]
+goto=show
+
+[show]
diff --git a/themes/default/templates/index/show.tpl.src.php b/themes/default/templates/index/show.tpl.src.php
@@ -16,7 +16,7 @@ frameset-page
frame file:var:frame_src_main name:cms_main
else
- frameset rows:23,3,*,3,5
+ frameset rows:23,3,*,3,20
frame file:var:frame_src_title name:cms_title
frame file:var:frame_src_border
#frame file:var:frame_src_background
@@ -32,5 +32,5 @@ frameset-page
frame file:var:frame_src_tree name:cms_tree scrolling:auto
frame file:var:frame_src_main name:cms_main
frame file:var:frame_src_border
- frame file:var:frame_src_background
+ frame file:var:frame_src_status