31,024
edits
| Line 98: | Line 98: | ||
</source> | </source> | ||
* 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" | |||
* | |||
<source lang="php"> | <source lang="php"> | ||
if ($conf->use_javascript) | if ($conf->use_javascript) | ||
{ | { | ||
... // | ... // generated php code with javascript here | ||
} | } | ||
</source> | </source> | ||
* | * Popups windows must not be used, except for tooltips (and must have a condition as explained before). | ||
* | * External scripts must be written into Perl if they can't be written into PHP. Usage of another language is not forbidden but must be argue before onto development mailing-list. | ||
= Normes Dolibarr et squelettes de code = | = Normes Dolibarr et squelettes de code = | ||