<script type="text/javascript">
function showOwner (ownerbox, box, regform) {
var vis = (box.checked) ? "block" : "none";
var vis2 = (box.checked) ? "none" : "block";
document.getElementById(ownerbox).style.display = vis;
document.getElementById(regform).style.display = vis2;
}
function onSubmitButton(){
document.getElementById("submitButtonDiv").style.display = "none";
if (navigator.appName == "Microsoft Internet Explorer") {
document.getElementById("progressBar").innerHTML = "";
document.getElementById("progressBar").style.display = "block";
document.getElementById("progressBar").innerHTML = "<img src='{$list_url}/progressbar.gif' alt='Progress Bar' />";
} else {
document.getElementById("progressBar").style.display = "block";
}
}
function checkPass(){
//Store the password field objects into variables ...
var password1 = document.getElementById('join_password');
var confirm_password = document.getElementById('join_confirm_password');
var message = document.getElementById('confirmMessage');
var goodColor = "#66cc66";
var badColor = "#ff6666";
if(password1.value == confirm_password.value){
confirm_password.style.backgroundColor = goodColor;
message.style.color = goodColor;
message.innerHTML = "{$lng->join_password_match}"
}else{
confirm_password.style.backgroundColor = badColor;
message.style.color = badColor;
message.innerHTML = "{$lng->join_password_match_error}"
}
}
</script>
<fieldset>
<legend><b>Déjà un Membre?</b></legend>
{$lng->g_already}<input type="checkbox" id="owner" name="owner" onclick="showOwner('ownerbox', this, 'regform')"/>
<div id="ownerbox" style="display: none;">
<br />
<b>Connexion avec votre nom d'utilisateur topsite existant et mot de passe:</b><br /><br />
<form action="{$list_url}/index.php?a=user_cpl" method="post">
{$lng->g_username}<br />
<input name="u" size="20" type="text" /><br />
{$lng->g_password}<br/>
<input name="password" size="20" type="password"><br/><br/>
<input value="Login" type="submit"><br/><br/>
<a href="{$list_url}/index.php?a=lost_pw">A oublié votre mot de passe?</a>
</form>
<br /><br />
</div>
</fieldset>
<p class="{$error_style_top}">{$error_top}</p>
<form action="{$list_url}/{$url_helper_a}join{$url_tail}" method="post" name="join_form" class="uiform"{multi_form}">
<div id="regform" style="display: block">
<fieldset>
<legend>{$lng->join_user}</legend>
<div class="{$error_style_username}">
<label for="join_username">{$lng->g_username}</label><br />
<input type="text" name="u" size="20" value="{$username}" class="ui-state-hover ui-corner-all"/>
{$error_username}
</div><br />
<div class="{$error_style_password}">
<div style="float: left; margin-right: 2em;">
<label for="join_password">{$lng->g_password}</label><br />
<input type="password" name="password" size="20" onkeyup="checkPass(); return false;" id="join_password" />
</div>
<div>
<label for="join_confirm_password">{$lng->join_confirm_password}</label><br />
<input type="password" name="confirm_password" size="20" onkeyup="checkPass(); return false;" id="join_confirm_password" /> <span id="confirmMessage" class="confirmMessage"></span>
{$error_password}
</div>
</div>
{$join_user_extra}
</fieldset>
<fieldset>
<legend>{$lng->join_website}</legend>
<div class="{$error_style_url}">
<label for="join_url">{$lng->g_url}</label><br />
<input type="text" name="url" size="50" value="{$url}" id="join_url" />
{$error_url}
</div><br />
<div class="{$error_style_title}">
<label for="join_title">{$lng->g_title}</label><br />
<input type="text" name="title" size="50" value="{$title}" id="join_title" />
{$error_title}
</div><br />
<label for="join_description">{$lng->g_description}</label><br />
<textarea cols="40" rows="5" name="description" id="join_description">{$description}</textarea><br /><br />
<label>{$lng->g_category}<br />
{$categories_menu}
</label><br />
<div class="{$error_style_email}">
<label for="join_email">{$lng->g_email}</label><br />
<input type="text" name="email" size="50" value="{$email}" id="join_email" />
{$error_email}
</div><br />
{$join_website_extra}
{$join_captcha}
{$join_recaptcha}
{$join_adscaptcha}
{$join_question}
{$join_security_extra}
<div>
<div id="capbag"> </div>
<div id="capops"> </div>
</div>
<div id="submitButtonDiv"><br /><input name="submit" type="submit" value="{$lng->join_header}" onclick="onSubmitButton(); wswgEditor.doCheck();" /></div>
<div id="progressBar" style="display:none">
<br /><img src="{$list_url}/progressbar.gif" alt="Progress Bar"/>
</div>
</fieldset>
</div>
</form>