123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- <?php
- /* For licensing terms, see /license.txt */
- /**
- * This script allows for specific registration rules (see CustomPages feature of Chamilo)
- * Please contact CBlue regarding any licences issues.
- * Author: noel@cblue.be
- * Copyright: CBlue SPRL, 20XX (GNU/GPLv3)
- * @package chamilo.custompages
- **/
- /**
- * Initialization
- */
- require_once('language.php');
- require_once('../inc/global.inc.php');
- /**
- * Removes some unwanted elementend of the form object
- */
- $content['form']->removeElement('extra_mail_notify_invitation');
- $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('status');
- $content['form']->removeElement('status');
- /**
- * Code to change the way QuickForm render html
- */
- /*
- $renderer = & $content['form']->defaultRenderer();
- $form_template = <<<EOT
- <form {attributes}>
- {content}
- <div class="clear">
-
- </div>
- <p><a href="#" class="btn" onclick="$('#registration-form').submit()"><span>S'inscrire</span></a></p>
- </form>
- EOT;
- $renderer->setFormTemplate($form_template);
- $element_template = <<<EOT
- <div class="field decalle">
- <label>
- <!-- BEGIN required --><span class="form_required">*</span> <!-- END required -->{label}
- </label>
- <div class="formw">
- <!-- BEGIN error --><span class="form_error">{error}</span><br /><!-- END error --> {element}
- </div>
- </div>
- EOT;
- $element_template_wimage = <<<EOT
- <div class="field decalle display">
- <label>
- <!-- BEGIN required --><span class="form_required">*</span> <!-- END required -->{label}
- </label>
- <div class="formw">
- <!-- BEGIN error --><span class="form_error">{error}</span><br /><!-- END error --> {element}
- <img src="/custompages/images/perso.jpg" alt="" />
- </div>
- </div>
- EOT;
- $renderer->setElementTemplate($element_template_wimage,'pass1');
- $renderer->setElementTemplate($element_template);
- $header_template = <<<EOT
- <div class="row">
- <div class="form_header">{header}</div>
- </div>
- EOT;
- */
- ?>
- <html>
- <head>
- <title>Registration</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <!--[if !IE 6]><!-->
- <link rel="stylesheet" type="text/css" href="../../custompages/style.css" />
- <!--<![endif]-->
- <!--[if IE 6]>
- <link rel="stylesheet" type="text/css" href="../../custompages/style-ie6.css" />
- <![endif]-->
- <script type="text/javascript" src="../../main/inc/lib/javascript/jquery.min.js"></script>
- </head>
- <body>
- <div id="backgroundimage">
- <img src="/custompages/images/page-background.png" class="backgroundimage" />
- </div>
- <div id="wrapper">
- <div id="header">
- <img src="../../custompages/images/header.png" alt="Ambassador logo" />
- </div> <!-- #header -->
- <div id="registration-form-box" class="form-box">
- <?php if (isset($form_error) && !empty($form_error)) {
- echo '<div id="registration-form-error" class="form-error"><ul>'.$form_error.'</ul></div>';
- }?>
- <?php
- $content['form']->display();
- ?>
- <div id="registration-form-submit" class="form-submit" onclick="document.forms['registration'].submit();">
- <span><?php echo custompages_get_lang('Subscribe');?></span>
- </div> <!-- #form-submit -->
- <div id="links">
- <!--<a href="mailto: support@cblue.be"><?php echo custompages_get_lang('NeedContactAdmin')?></a><br />-->
- </div>
- </div> <!-- #form -->
- <div id="footer">
- <img src="../../custompages/images/footer.png" />
- </div> <!-- #footer -->
- </div> <!-- #wrapper -->
- </body>
- </html>
|