You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
119 lines
3.6 KiB
119 lines
3.6 KiB
<?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');
|
|
}
|
|
/**
|
|
* 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>
|
|
|