123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <?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
- **/
- 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');
- 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
- */
- /*
- $renderer = & $content['form']->defaultRenderer();
- $form_template = <<<EOT
- <form {attributes}>
- {content}
- <div class="clear">
-
- </div>
- <p><a href="#" class="btn btn-primary" 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><?php echo custompages_get_lang('Registration');?></title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link href="/custompages/css/vendor/bootstrap.min.css" rel="stylesheet">
- <!--[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]-->
- <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
- <!--[if lt IE 9]>
- <script src="js/vendor/html5shiv.js"></script>
- <script src="js/vendor/respond.min.js"></script>
- <![endif]-->
- <script type="text/javascript" src="/main/inc/lib/javascript/jquery.min.js"></script>
- </head>
- <body>
- <img id="backgroundimage" src="/custompages/images/page-background.png"">
- <section id="registration">
- <div class="container">
- <div class="row">
- <div class="col-xs-12">
- <div class="form-wrap">
- <div class="logo">
- <img src="/custompages/images/header.png">
- </div>
- <?php if (isset($content['error']) && !empty($content['error'])) {
- echo '<div id="registration-form-error" class="alert alert-danger">'.$content['error'].'</div>';
- }?>
- <div id="registration-form-box" class="form-box">
- <div class="block-form-login">
- <?php
- $content['form']->display();
- ?>
- </div>
- <div id="links">
- <!--<a href="mailto: support@cblue.be"><?php echo custompages_get_lang('NeedContactAdmin')?></a><br />-->
- </div>
- </div>
- <div id="footer">
- <img src="/custompages/images/footer.png" />
- </div> <!-- #footer -->
- </div>
- </div>
- </div>
- </div>
- </section>
- </body>
- </html>
|