From 32272842fcb1111ddb2ba098a18eb091e4ebb7df Mon Sep 17 00:00:00 2001 From: Imanol Losada Date: Fri, 27 Mar 2015 09:03:39 -0500 Subject: [PATCH] Add corrected custom pages - refs BT#8538 --- custompages/registration-dist.php | 92 +++++++++++++--------- custompages/registration-feedback-dist.php | 63 +++++++++------ 2 files changed, 92 insertions(+), 63 deletions(-) diff --git a/custompages/registration-dist.php b/custompages/registration-dist.php index 1f6a52258e..ef66213542 100644 --- a/custompages/registration-dist.php +++ b/custompages/registration-dist.php @@ -7,10 +7,14 @@ * Copyright: CBlue SPRL, 20XX (GNU/GPLv3) * @package chamilo.custompages **/ - +/** + * Initialization + */ require_once('language.php'); require_once('../inc/global.inc.php'); - +require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php'; +require_once api_get_path(LIBRARY_PATH).'usermanager.lib.php'; +require_once api_get_path(CONFIGURATION_PATH).'profile.conf.php'; /** * Removes some unwanted elementend of the form object */ @@ -19,11 +23,12 @@ $content['form']->removeElement('extra_mail_notify_message'); $content['form']->removeElement('extra_mail_notify_group_message'); $content['form']->removeElement('official_code'); $content['form']->removeElement('phone'); -$content['form']->removeElement('submit'); +//$content['form']->removeElement('submit'); if (isset($content['form']->_elementIndex['status'])) { $content['form']->removeElement('status'); $content['form']->removeElement('status'); } +// Deprecated since 2015-03-26 /** * Code to change the way QuickForm render html */ @@ -79,41 +84,54 @@ EOT; ?> - Registration - - - - - - + <?php echo custompages_get_lang('Registration');?> + + + + + + + + + + + -
- -
-
- -
-
    '.$form_error.'
'; - }?> - display(); - ?> -
- -
- -
- - + +
+
+
+
+
+ + '.$content['error'].'
'; + }?> +
+ + +
+ +
+
+
+ +
diff --git a/custompages/registration-feedback-dist.php b/custompages/registration-feedback-dist.php index 57775f231b..dfd7a1a310 100644 --- a/custompages/registration-feedback-dist.php +++ b/custompages/registration-feedback-dist.php @@ -3,39 +3,50 @@ /** * Quick display for user registration * @package chamilo.custompages - */ + */ /** * HTML output */ +require_once('language.php'); ?> - Registration - - - - - - + <?php echo custompages_get_lang('Registration');?> + + + + + + + + + -
- -
-
- -
- -
- -
+ +
+
+
+
+
+ +
+ +
+ +
+
+
+
+