Jump to content

Modification de authentication.tpl


Recommended Posts

Bonjour,

 

Je souhaites supprimer la partie réservée a la création d'un compte dans le fichier authentication.tpl

 

et je n'y arrive pas jai essayé de oter les codes correspondant mais toujours pareil.

 

Quelqu'un pourrait il m'aider ??

 

Merci d'avance

Link to comment
Share on other sites

Et voila :

 

je n'ai pas supprimer définitivement  le code à enlever (il est commenté)

 

Par contre tu devrait peut-être aussi modifier les fichiers identity.tpl et adresses.tpl pour qu'un client ne puisse pas modifier son compte

 

<h1>{if !isset($email_create)}{l s='Log in'}{else}{l s='Create your account'}{/if}</h1>
<br />
{include file=$tpl_dir./errors.tpl}
{if isset($confirmation)}
<br />
<span class="confirmation">{l s='Your account has been successfully created'}.<br /><br />
<br /><br />
<a href="my-account.php"><img src="{$img_dir}arrow.gif" alt="{l s='Your account'}" title="{l s='Your account'}" class="img_middle" /> {l s='Access your account'}</a>
{else}
{if !isset($email_create)}
<!--
<div class="create_account">
		<form action="{$request_uri}" method="post">
			<h2 class="auth">{l s='Create your account'}</h2>
			<div class="form_field_header">{l s='Enter your e-mail address to create your account'}.</div>
			<div>{l s='E-mail address'}</div>
			<input type="text" name="email_create" value="{if isset($smarty.post.email_create)}{$smarty.post.email_create|escape:'htmlall'|stripslashes}{/if}" class="account_input" />
			<br />
			<input type="image" name="SubmitCreate" src="{$img_dir}{$lang_iso}/btn-create-account.gif" />
		</form>
	</div>
-->
	<div class="login">
		<form action="{$request_uri}" method="post">
			<h2 class="auth">{l s='Already registered ?'}</h2>
			<div class="form_field_header">{l s='Enter your e-mail address and password to access to your account'}.</div>
			<div>{l s='E-mail address'}</div>
			<input type="text" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|escape:'htmlall'|stripslashes}{/if}" class="account_input" />
			<br />
			<span class="form_field_header">{l s='Password'}</span>
			<br />
			<input type="password" name="passwd" value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|escape:'htmlall'|stripslashes}{/if}" class="account_input" />
			<br />
			<input type="image" name="SubmitLogin" src="{$img_dir}{$lang_iso}/btn-login.gif" />
			<br /><br />
			<a href="password.php">{l s='Forgot your password?'}</a>
			<a href="password.php"><img src="{$img_dir}arrow.gif" alt=">" title=">" class="text-top" /></a>
			{if $back}<input type="hidden" name="back" value="{$back}" />{/if}
		</form>
	</div>
{else}
<!--		<form action="{$request_uri}" method="post">
	<fieldset class="account_creation">
		<legend>{l s='Your personal information'}</legend>
		<label>{l s='First name'}</label>
		<div class="margin-form">
			<input onkeyup="getE('surname').value = this.value;" type="text" name="customer_surname" value="{if isset($smarty.post.customer_surname)}{$smarty.post.customer_surname|escape:'htmlall,UTF-8'|stripslashes}{/if}" /> <sup class="red_star">*</sup>
		</div>
		<div class="clear"></div>
		<label>{l s='Last name'}</label>
		<div class="margin-form">
			<input onkeyup="getE('name').value = this.value;" type="text" name="customer_name" value="{if isset($smarty.post.customer_name)}{$smarty.post.customer_name|escape:'htmlall,UTF-8'|stripslashes}{/if}" style="text-transform: uppercase;" /> <sup class="red_star">*</sup>
		</div>
		<div class="clear"></div>
		<label>{l s='E-mail'}</label>
		<div class="margin-form">
			<input type="text" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|escape:'htmlall,UTF-8'|stripslashes}{/if}" /> <sup class="red_star">*</sup>
		</div>
		<div class="clear"></div>
		<label>{l s='Password'}</label>
		<div class="margin-form">
			<input type="password" name="passwd" /> <sup class="red_star">*</sup> {l s='(5 characters min.)'}
		</div>
		<div class="clear"></div>
		<label>{l s='Gender'}</label>
		<div class="margin-form">
			<input type="radio" name="id_gender" class="icon" value="1" {if !isset($smarty.post.id_gender) OR $smarty.post.id_gender == 1}checked="checked"{/if} />
			<img src="{$img_dir}male.gif" class="icon" alt="{l s='Male'}" title="{l s='Male'}" />
			<input type="radio" name="id_gender" class="icon" value="2" {if isset($smarty.post.id_gender) && $smarty.post.id_gender == 2}checked="checked"{/if} />
			<img src="{$img_dir}female.gif" class="icon" alt="{l s='Female'}" title="{l s='Female'}" /> <sup class="red_star">*</sup>
		</div>
		<div class="clear"></div>
		<label>{l s='Birthday'}</label>
		<div class="margin-form">
			<select name="days">
				<option value="">-</option>
				{foreach from=$days item=v}
					<option value="{$v}" {if ($sl_day == $v)} selected="selected"{/if}>{$v}</option>
				{/foreach}
			</select>
			{*
				{l s='January'}
				{l s='February'}
				{l s='March'}
				{l s='April'}
				{l s='May'}
				{l s='June'}
				{l s='July'}
				{l s='August'}
				{l s='September'}
				{l s='October'}
				{l s='November'}
				{l s='December'}
			*}
			<select name="months">
				<option value="">-</option>
				{foreach from=$months key=k item=v}
					<option value="{$k}" {if ($sl_month == $k)} selected="selected"{/if}>{l s="$v"}</option>
				{/foreach}
			</select>
			<select name="years">
				<option value="">-</option>
				{foreach from=$years item=v}
					<option value="{$v}" {if ($sl_year == $v)} selected="selected"{/if}>{$v}</option>
				{/foreach}
			</select>
		</div>
		<div class="clear"></div>
		<div class="margin-form">
			<input type="checkbox" name="newsletter" id="newsletter" value="1" {if isset($smarty.post.newsletter) AND $smarty.post.newsletter == 1} checked="checked"{/if} />
			<label for="newsletter" class="label-checkbox">{l s='Register to our newsletter'}</label>
		</div>
		<div class="clear"></div>
		<div class="margin-form">
			<input type="checkbox" name="optin" id="optin" value="1" {if isset($smarty.post.optin) AND $smarty.post.optin == 1} checked="checked"{/if} />
			<label for="optin" class="label-checkbox">{l s='Receive special offers from our partners'}</label>
		</div>
		<div class="clear"></div>
	</fieldset>
	<fieldset class="account_creation">
		<legend>{l s='Your address'}</legend>
		<label>{l s='Company'}</label>
		<div class="margin-form">
			<input type="text" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company|escape:'htmlall,UTF-8'|stripslashes}{/if}" />
		</div>
		<div class="clear"></div>
		<label>{l s='First name'}</label>
		<div class="margin-form">
			<input type="text" id="surname" name="surname" value="{if isset($smarty.post.surname)}{$smarty.post.surname|escape:'htmlall,UTF-8'|stripslashes}{/if}" /> <sup class="red_star">*</sup>
		</div>
		<div class="clear"></div>
		<label>{l s='Last name'}</label>
		<div class="margin-form">
			<input type="text" id="name" name="name" value="{if isset($smarty.post.name)}{$smarty.post.name|escape:'htmlall,UTF-8'|stripslashes}{/if}" style="text-transform: uppercase;" /> <sup class="red_star">*</sup>
		</div>
		<div class="clear"></div>
		<label>{l s='Address'}</label>
		<div class="margin-form">
			<input type="text" name="address1" size="42" value="{if isset($smarty.post.address1)}{$smarty.post.address1|escape:'htmlall,UTF-8'|stripslashes}{/if}" /> <sup class="red_star">*</sup>
		</div>
		<div class="clear"></div>
		<label>{l s='Address (2)'}</label>
		<div class="margin-form">
			<input type="text" name="address2" size="42" value="{if isset($smarty.post.address2)}{$smarty.post.address2|escape:'htmlall,UTF-8'|stripslashes}{/if}" />
		</div>
		<div class="clear"></div>
		<label>{l s='Postal code / Zip code'}</label>
		<div class="margin-form">
			<input type="text" name="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode|escape:'htmlall,UTF-8'|stripslashes}{/if}" /> <sup class="red_star">*</sup>
		</div>
		<div class="clear"></div>
		<label>{l s='City'}</label>
		<div class="margin-form">
			<input type="text" name="city"  value="{if isset($smarty.post.city)}{$smarty.post.city|escape:'htmlall,UTF-8'|stripslashes}{/if}" /> <sup class="red_star">*</sup>
		</div>
		<div class="clear"></div>
		<label>{l s='Country'}</label>
		<div class="margin-form">
			<select name="id_country">
				<option value="">-</option>
				{foreach from=$countries item=v}
					<option value="{$v.id_country}" {if ($sl_country == $v.id_country)} selected="selected"{/if}>{$v.name}</option>
				{/foreach}
			</select> <sup class="red_star">*</sup>
		</div>
		<div class="clear"></div>
		<label>{l s='Additional information'}</label>
		<div class="margin-form">
			<textarea name="other" cols="26" rows="3">{if isset($smarty.post.other)}{$smarty.post.other|escape:'htmlall,UTF-8'|stripslashes}{/if}</textarea>
		</div>
		<div class="clear"></div>
		<label>{l s='Home phone'}</label>
		<div class="margin-form">
			<input type="text" name="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone|escape:'htmlall,UTF-8'|stripslashes}{/if}" />
		</div>
		<div class="clear"></div>
		<label>{l s='Mobile phone'}</label>
		<div class="margin-form">
			<input type="text" name="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile|escape:'htmlall,UTF-8'|stripslashes}{/if}" />
		</div>
		<div class="clear"></div>
		<br /><label>{l s='Assign an address title for future reference'} !</label>
		<div class="margin-form">
			<input type="text" name="alias" value="{if isset($smarty.post.alias)}{$smarty.post.alias|escape:'htmlall,UTF-8'|stripslashes}{else}{l s='My address'}{/if}" /> <sup class="red_star">*</sup>
		</div>
		<div class="clear"></div>
	</fieldset>
	<p><sup class="red_star">*</sup> {l s='Required field'}</p>
	<div class="center space">
		<input type="submit" name="submitAccount" value="{l s='Register'}" />
	</div>
	<input type="hidden" name="email_create" value="1" />
	</form>
-->
Vous n'avez pas le droit de creer un compte !!!

	{/if}
{/if}

Link to comment
Share on other sites

×
×
  • Create New...