Fix: W3C syntax error (See firefox module HTML Validator / Tidy)

This commit is contained in:
Laurent Destailleur 2009-12-28 01:52:04 +00:00
parent 380be061f5
commit ddb2e5c4c5
2 changed files with 11 additions and 5 deletions

View File

@ -21,9 +21,8 @@
header("Content-type: text/html; charset=".$conf->file->character_set_client); header("Content-type: text/html; charset=".$conf->file->character_set_client);
{/php} {/php}
<!-- BEGIN SMARTY TEMPLATE -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- BEGIN SMARTY TEMPLATE -->
<html> <html>
<head> <head>
@ -124,6 +123,10 @@ function donnefocus() {ldelim}
{if $forgetpasslink} {if $forgetpasslink}
<a style="color: #888888; font-size: 10px" href="{$dol_url_root}/user/passwordforgotten.php">( <a style="color: #888888; font-size: 10px" href="{$dol_url_root}/user/passwordforgotten.php">(
{$langs->trans('PasswordForgotten')} {$langs->trans('PasswordForgotten')}
{if ! $helpcenterlink}
)
{/if}
</a>
{/if} {/if}
{if $helpcenterlink} {if $helpcenterlink}
@ -133,9 +136,8 @@ function donnefocus() {ldelim}
{else} {else}
( (
{/if} {/if}
{$langs->trans('NeedHelpCenter')} {$langs->trans('NeedHelpCenter')})</a>
{/if} {/if}
)</a>
{/strip} {/strip}
</td></tr> </td></tr>
{/if} {/if}

View File

@ -248,10 +248,13 @@ function dol_loginfunction($langs,$conf,$mysoc)
if (! empty($conf->browser->phone)) print '<tr><td colspan="3">&nbsp;</td></tr>'; // More space with phones if (! empty($conf->browser->phone)) print '<tr><td colspan="3">&nbsp;</td></tr>'; // More space with phones
print '<tr><td colspan="3" align="center">'; print '<tr><td colspan="3" align="center">';
if (empty($conf->global->MAIN_SECURITY_DISABLEFORGETPASSLINK)) if (empty($conf->global->MAIN_SECURITY_DISABLEFORGETPASSLINK))
{ {
print '<a style="color: #888888; font-size: 10px" href="'.DOL_URL_ROOT.'/user/passwordforgotten.php">('; print '<a style="color: #888888; font-size: 10px" href="'.DOL_URL_ROOT.'/user/passwordforgotten.php">(';
print $langs->trans("PasswordForgotten"); print $langs->trans("PasswordForgotten");
if (! empty($conf->global->MAIN_HELPCENTER_DISABLELINK)) print ')';
print '</a>';
} }
if (empty($conf->global->MAIN_HELPCENTER_DISABLELINK)) if (empty($conf->global->MAIN_HELPCENTER_DISABLELINK))
@ -261,8 +264,9 @@ function dol_loginfunction($langs,$conf,$mysoc)
if (! empty($conf->global->MAIN_SECURITY_DISABLEFORGETPASSLINK)) print '('; if (! empty($conf->global->MAIN_SECURITY_DISABLEFORGETPASSLINK)) print '(';
else print ' - '; else print ' - ';
print $langs->trans("NeedHelpCenter"); print $langs->trans("NeedHelpCenter");
print ')</a>';
} }
print ')</a>';
print '</td></tr>'; print '</td></tr>';
} }