00001 <?php 00002 // --------------------------------------------------------------------------- 00003 // $Id$ 00004 // --------------------------------------------------------------------------- 00005 // OpenRat Content Management System 00006 // Copyright (C) 2002 Jan Dankert, jandankert@jandankert.de 00007 // 00008 // This program is free software; you can redistribute it and/or 00009 // modify it under the terms of the GNU General Public License 00010 // as published by the Free Software Foundation; either version 2 00011 // of the License, or (at your option) any later version. 00012 // 00013 // This program is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 // GNU General Public License for more details. 00017 // 00018 // You should have received a copy of the GNU General Public License 00019 // along with this program; if not, write to the Free Software 00020 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00021 // --------------------------------------------------------------------------- 00022 // $Log$ 00023 // Revision 1.11 2007-12-21 23:21:40 dankert 00024 // Beim Aufruf von "Administration" oder "Projekt" mit leerer Seite starten. 00025 // 00026 // Revision 1.10 2007/01/21 15:35:44 dankert 00027 // Requestparameter-Namen aus Konstanten lesen. 00028 // 00029 // Revision 1.9 2006/02/27 19:17:50 dankert 00030 // Parameter "targetSubAction" auswerten. 00031 // 00032 // Revision 1.8 2006/01/23 23:10:46 dankert 00033 // *** empty log message *** 00034 // 00035 // Revision 1.7 2006/01/11 22:52:24 dankert 00036 // URLs f?r neue Frames setzen 00037 // 00038 // Revision 1.6 2005/01/14 21:41:23 dankert 00039 // Aufruf von lastModified() fuer Conditional-GET 00040 // 00041 // Revision 1.5 2004/12/19 14:55:50 dankert 00042 // Bestimmte Paramer weiterleiten 00043 // 00044 // Revision 1.4 2004/12/15 23:23:47 dankert 00045 // Html::url()-Parameter angepasst 00046 // 00047 // Revision 1.3 2004/11/27 13:07:05 dankert 00048 // *** empty log message *** 00049 // 00050 // Revision 1.2 2004/05/02 14:49:37 dankert 00051 // Einf?gen package-name (@package) 00052 // 00053 // Revision 1.1 2004/04/24 15:14:52 dankert 00054 // Initiale Version 00055 // 00056 // --------------------------------------------------------------------------- 00057 00058 00066 class MainAction extends Action 00067 { 00068 function show() 00069 { 00070 $doActionName = $this->subActionName; 00071 00072 $user = Session::getUser(); 00073 if ( is_object($user) && isset($user->loginDate) ) 00074 $this->lastModified( $user->loginDate ); 00075 00076 $doSubActionName = $this->getRequestVar( REQ_PARAM_TARGETSUBACTION ); 00077 00078 // Bestimmte Parameter weiterleiten 00079 $params = array(); 00080 00081 foreach( array('elementid') as $p ) 00082 { 00083 if ( $this->getRequestVar( $p ) != '' ) 00084 $params[ $p ] = $this->getRequestVar( $p ); 00085 } 00086 00087 // Variablen fuellen 00088 $this->setTemplateVar('frame_src_main_menu' ,Html::url( 'mainmenu' ,$doActionName ,$this->getRequestId(),$params ) ); 00089 $this->setTemplateVar('frame_src_main_main' ,Html::url( $doActionName,$doSubActionName,$this->getRequestId(),$params ) ); 00090 $this->setTemplateVar('frame_src_border' ,Html::url( 'border' ) ); 00091 $this->setTemplateVar('frame_src_background',Html::url( 'background' ) ); 00092 } 00093 00094 } 00095 00096 00097 ?>
1.5.8