PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Quickform Controller - Preview Step

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTML
View previous topic :: View next topic  
Author Message
chanw1



Joined: 24 Jan 2007
Posts: 4

PostPosted: Mon Apr 09, 2007 6:09 am    Post subject: Quickform Controller - Preview Step Reply with quote

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
View user's profile Send private message
adpaster79



Joined: 30 Apr 2007
Posts: 14

PostPosted: Thu May 03, 2007 2:08 pm    Post subject: Reply with quote

<?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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTML All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software