Line 103:
Line 103:
= HTML norms =
= HTML norms =
−
* All attributes of HTML tags must be in lower case and *quoted* with *"*.
+
* HTML used must be HTML compliant and not XHTML. 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().
* 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().
Line 110:
Line 110:
print '<a href="'.dol_buildpath('/mydir/mypage.php').'">'.img_picto('Texte alt','namepictopng','').'</a>';
print '<a href="'.dol_buildpath('/mydir/mypage.php').'">'.img_picto('Texte alt','namepictopng','').'</a>';
</source>
</source>
+
+
* HTML tables must have columns with no forced width, except for columns that contains data we know the length. For example, a column with a picto only can be forced to with="20px".
+
Otherwise, we must avoid forcing the column width. Reason is that, in most cases, the browser make a better works to define column width automatically than forced values, and it works whatever is the resolution.
* javascript code and call to javascripts file into php pages must be avoid. Howevr, if you need to include javascript code, you must add a condition on "$conf->use_javascript"
* javascript code and call to javascripts file into php pages must be avoid. Howevr, if you need to include javascript code, you must add a condition on "$conf->use_javascript"