openrat-cms

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

commit 3f77caf634abebd0dd12023c6bdd5f532a45d7a4
parent f239e07a33a7e6087a852f44298a06009961cbb2
Author: dankert <devnull@localhost>
Date:   Tue,  8 Aug 2006 22:10:23 +0200

Neue Funktionen f?r Im- und Export

Diffstat:
actionClasses/PageelementAction.class.php | 30+++++++++++++++++++++++++++++-
actionClasses/PageelementAction.ini.php | 10+++++++++-
2 files changed, 38 insertions(+), 2 deletions(-)

diff --git a/actionClasses/PageelementAction.class.php b/actionClasses/PageelementAction.class.php @@ -20,7 +20,10 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // --------------------------------------------------------------------------- // $Log$ -// Revision 1.20 2006-07-17 18:13:25 dankert +// Revision 1.21 2006-08-08 20:10:23 dankert +// Neue Funktionen f?r Im- und Export +// +// Revision 1.20 2006/07/17 18:13:25 dankert // Neue Funktion "show()" // // Revision 1.19 2006/01/29 17:18:59 dankert @@ -1370,6 +1373,31 @@ class PageelementAction extends Action $this->afterSave($value); } + + + function exportlongtext() + { + $types = array(); + + foreach( array('odf','plaintext') as $type ) + { + $types[$type] = lang('FILETYPE_'.$type); + } + + $this->setTemplateVar('types',$types); + } + + + function importlongtext() + { + $types = array(); + + foreach( array('odf','plaintext') as $type ) + { + $types[$type] = lang('FILETYPE_'.$type); + } + $this->setTemplateVar('types',$types); + } } ?> \ No newline at end of file diff --git a/actionClasses/PageelementAction.ini.php b/actionClasses/PageelementAction.ini.php @@ -26,6 +26,14 @@ menu=list target=savelongtext menu=longtext +[importlongtext] +target=doimportlongtext +menu=longtext + +[exportlongtext] +target=doexpportlongtext +menu=longtext + [editdate] target=savedate menu=date @@ -121,7 +129,7 @@ goto=showselect goto=shownumber [menu] -longtext=showlongtext,editlongtext,archivelongtext +longtext=showlongtext,editlongtext,importlongtext,exportlongtext,archivelongtext text=showtext,edittext,archivetext link=showlink,editlink,archivelink list=showlist,editlist,archivelist