openrat-cms

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

commit bc058d0ceec4057ee9d5ddbd49b7b402a80d9121
parent eae6f5f5980c99604fafbe94ed58810542f8ca10
Author: dankert <devnull@localhost>
Date:   Thu, 11 Sep 2008 20:59:22 +0200

Falls Edit-Mode vorhanden, aber nicht aktiv, dann Formular-Ziel auf Bearbeiten-Modus setzen.

Diffstat:
themes/default/include/html/form.inc.php | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/themes/default/include/html/form.inc.php b/themes/default/include/html/form.inc.php @@ -5,12 +5,20 @@ $attr_subaction = $targetSubActionName; if (empty($attr_id)) $attr_id = $this->getRequestId(); + + if ($this->isEditable() && $this->getRequestVar('mode')!='edit') + $attr_subaction = $subActionName; ?><form name="<?php echo $attr_name ?>" target="<?php echo $attr_target ?>" action="<?php echo Html::url( $attr_action,$attr_subaction,$attr_id ) ?>" method="<?php echo $attr_method ?>" enctype="<?php echo $attr_enctype ?>" style="margin:0px;padding:0px;"> + +<?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') { ?> +<input type="hidden" name="mode" value="edit" /> +<?php } ?> + <input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr_action ?>" /> <input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr_subaction ?>" /> <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_id ?>" /><?php