31,026
edits
| Line 91: | Line 91: | ||
= HTML norms = | = HTML norms = | ||
{{ToTranslate}} | {{ToTranslate}} | ||
* | * All attributes of HTML tags must be in lower case and *quoted* with *"*. | ||
* | * Links href must be absolute and use the function dol_buildpath() to get absolute path from a relative path and img tag must be build using function img_picto(). | ||
For example: | |||
<source lang="php"> | <source lang="php"> | ||
print '<a href="'. | print '<a href="'.dol_buildpath('/mydir/mypage.php').'">'.img_picto('Texte alt','namepictopng','').'</a>'; | ||
</source> | </source> | ||
{{ToTranslate}} | |||
* Le javascript et l'appel aux scripts java dans les pages php est à proscrire. Si toutefois du code javascript est inclus, il doit être conditionné par le test sur "$conf->use_javascript" | * Le javascript et l'appel aux scripts java dans les pages php est à proscrire. Si toutefois du code javascript est inclus, il doit être conditionné par le test sur "$conf->use_javascript" | ||
<source lang="php"> | <source lang="php"> | ||