forms are send now to /etemplate/process_exec.php, which sets the current_app from $HTTP_POST_VAR['app']

This commit is contained in:
Ralf Becker 2002-09-25 23:19:31 +00:00
parent 37215bffa7
commit 86f9c5ce6a
2 changed files with 26 additions and 5 deletions

View File

@ -96,16 +96,13 @@
$GLOBALS['phpgw']->common->phpgw_header();
$id = $this->appsession_id();
$GLOBALS['phpgw_info']['etemplate']['loop'] = False;
$GLOBALS['phpgw_info']['etemplate']['form_options'] = ''; // might be set in show
$html .= $this->html->nextMatchStyles($this->style)."\n\n". // so they get included once
$this->html->form($this->include_java_script() .
$this->show($this->complete_array_merge($content,$changes),$sel_options,$readonlys,'exec'),
array('etemplate_exec_id' => $id),
'/index.php?menuaction=etemplate.etemplate.process_exec&app='.$GLOBALS['phpgw_info']['flags']['currentapp'],
'','eTemplate',$GLOBALS['phpgw_info']['etemplate']['form_options']);
array('etemplate_exec_id' => $id,'app' => $GLOBALS['phpgw_info']['flags']['currentapp']),
'/etemplate/process_exec.php','','eTemplate',$GLOBALS['phpgw_info']['etemplate']['form_options']);
$id = $this->save_appsession($this->as_array(1) + array(
'readonlys' => $readonlys,

View File

@ -0,0 +1,24 @@
<?php
/**************************************************************************\
* phpGroupWare - eTemplates - process_exec *
* http://www.phpgroupware.org *
* Written by Ralf Becker <RalfBecker@outdoor-training.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; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
$GLOBALS['phpgw_info']['flags'] = array(
'currentapp' => $GLOBALS['HTTP_POST_VARS']['app'],
'noheader' => True,
'nonavbar' => True
);
include('../header.inc.php');
ExecMethod('etemplate.etemplate.process_exec');
$GLOBALS['phpgw']->common->phpgw_footer();