forked from extern/egroupware
forms are send now to /etemplate/process_exec.php, which sets the current_app from $HTTP_POST_VAR['app']
This commit is contained in:
parent
37215bffa7
commit
86f9c5ce6a
@ -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,
|
||||
|
24
etemplate/process_exec.php
Normal file
24
etemplate/process_exec.php
Normal 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();
|
Loading…
Reference in New Issue
Block a user