|
|
|
@ -16,7 +16,7 @@ |
|
|
|
|
// | Author: Alexey Borzov <avb@php.net> | |
|
|
|
|
// +----------------------------------------------------------------------+ |
|
|
|
|
// |
|
|
|
|
// $Id: Next.php 6184 2005-09-07 10:08:17Z bmol $ |
|
|
|
|
// $Id: Next.php,v 1.3 2004/03/02 21:15:45 avb Exp $ |
|
|
|
|
|
|
|
|
|
require_once 'HTML/QuickForm/Action.php'; |
|
|
|
|
|
|
|
|
@ -25,7 +25,7 @@ require_once 'HTML/QuickForm/Action.php'; |
|
|
|
|
* |
|
|
|
|
* @author Alexey Borzov <avb@php.net> |
|
|
|
|
* @package HTML_QuickForm_Controller |
|
|
|
|
* @version $Revision: 6184 $ |
|
|
|
|
* @version $Revision: 1.3 $ |
|
|
|
|
*/ |
|
|
|
|
class HTML_QuickForm_Action_Next extends HTML_QuickForm_Action |
|
|
|
|
{ |
|
|
|
@ -45,17 +45,29 @@ class HTML_QuickForm_Action_Next extends HTML_QuickForm_Action |
|
|
|
|
// More pages? |
|
|
|
|
if (null !== ($nextName = $page->controller->getNextName($pageName))) { |
|
|
|
|
$next =& $page->controller->getPage($nextName); |
|
|
|
|
// Modified by Chamilo team, 16-MAR-2010. |
|
|
|
|
//$next->handle('jump'); |
|
|
|
|
return $next->handle('jump'); |
|
|
|
|
// |
|
|
|
|
// Consider this a 'finish' button, if there is no explicit one |
|
|
|
|
} elseif($page->controller->isModal()) { |
|
|
|
|
if ($page->controller->isValid()) { |
|
|
|
|
// Modified by Chamilo team, 16-MAR-2010. |
|
|
|
|
//$page->handle('process'); |
|
|
|
|
return $page->handle('process'); |
|
|
|
|
// |
|
|
|
|
} else { |
|
|
|
|
// this should redirect to the first invalid page |
|
|
|
|
// Modified by Chamilo team, 16-MAR-2010. |
|
|
|
|
//$page->handle('jump'); |
|
|
|
|
return $page->handle('jump'); |
|
|
|
|
// |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
// Modified by Chamilo team, 16-MAR-2010. |
|
|
|
|
//$page->handle('display'); |
|
|
|
|
return $page->handle('display'); |
|
|
|
|
// |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|