openrat-cms

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

commit f26dcb5bcc1eebb97fdb03acb09f5c47539890af
parent d3f7856a839e1928b4427137bb290e6227e080b3
Author: dankert <devnull@localhost>
Date:   Sat, 21 Apr 2007 13:50:50 +0200

Umbenennung von Im- in Export.

Diffstat:
actionClasses/ProjectAction.class.php | 21+++++++++++++++++++--
actionClasses/ProjectAction.ini.php | 8++++----
2 files changed, 23 insertions(+), 6 deletions(-)

diff --git a/actionClasses/ProjectAction.class.php b/actionClasses/ProjectAction.class.php @@ -20,6 +20,9 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // --------------------------------------------------------------------------- // $Log$ +// Revision 1.13 2007-04-21 11:50:50 dankert +// Umbenennung von Im- in Export. +// // Revision 1.12 2007-04-16 21:25:41 dankert // Neuer Men?punkt im Projektmen?: Import. // @@ -202,11 +205,25 @@ class ProjectAction extends Action - function import() + /** + * Projekt exportieren. + */ + function export() { + global $conf; + $dbids = array(); + + foreach( $conf['database'] as $dbname=>$dbconf ) + { + if ( is_array($dbconf) ) + $dbids[$dbname] = $dbconf['comment']; + } + $this->setTemplateVar( 'dbids',$dbids ); + if ( $this->hasRequestVar('ok') ) { - $this->project->import(); + $this->project->export( $this->getRequestVar('dbid') ); + $this->addNotice('project',$this->project->name,'DONE'); $this->setTemplateVar('done',true); } diff --git a/actionClasses/ProjectAction.ini.php b/actionClasses/ProjectAction.ini.php @@ -16,9 +16,9 @@ goto=listing menu=edit target=maintenance -[import] +[export] menu=edit -target=import +target=export [edit] target=save @@ -36,4 +36,4 @@ target=addproject [menu] list=listing,add -edit=edit,remove,import,maintenance- \ No newline at end of file +edit=edit,remove,export,maintenance+ \ No newline at end of file