 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
chanw1
Joined: 24 Jan 2007 Posts: 4
|
Posted: Mon Apr 09, 2007 6:09 am Post subject: Quickform Controller - Preview Step |
|
|
Hi
I'm a newbie to Quickform Controlller and I am trying to create a multistep form with a preview step before submitting the form.
I need help creating the preview step in the form wizard.
I have look at the examples and googled for a solution but I can't seem to locate any examples.
If anyone can help me with a solution. I would GREATLY appreciate it.
Thanks in advance. |
|
| Back to top |
|
 |
adpaster79
Joined: 30 Apr 2007 Posts: 14
|
Posted: Thu May 03, 2007 2:08 pm Post subject: |
|
|
<?php
class foo extends HTML_QuickForm_Page {
var freeze = false;
function buildFormPage1 () {
The form of // 1st page
}
function buildFormPage2 () {
The form of // 2nd page
}
function buildFormPage3 () {
The form of // 3rd page
}
}
class FormPage1 extends foo {
function buildForm () {
$this->buildFormPage1 ();
// Prev/Next and the like is made
}
}
class FormPage2 extends foo {
It makes //FormPage1 like
}
class FormPage3 extends foo {
It makes //FormPage1 like
}
class FormConfirm extends foo {
function buildForm () {
$this->freeze = true;
$this->buildForm1 ();
$this->buildForm2 ();
$this->buildForm3 ();
}
}
class ActionDisplay HTML_QuickForm_Action {
function _renderForm (&$page) {
if ($page->isFreeze == true) {
$page->freeze ();
}
// usual processing
<? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|