From 0d3899ab2389e6e98b613bccc9883662e496e7ec Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Sun, 9 Jan 2011 15:37:23 +0000 Subject: [PATCH] Fix: W3C errors or warnings --- htdocs/admin/tools/dolibarr_export.php | 2 +- htdocs/core/tpl/freeproductline_edit.tpl.php | 2 +- htdocs/core/tpl/predefinedproductline_edit.tpl.php | 5 +++-- htdocs/ftp/admin/ftpclient.php | 4 ++-- htdocs/install/fileconf.php | 2 +- htdocs/product/canvas/default/tpl/create.tpl.php | 4 ++-- htdocs/societe/canvas/default/tpl/card_create.tpl.php | 2 +- htdocs/societe/canvas/default/tpl/card_edit.tpl.php | 6 +++--- htdocs/societe/canvas/individual/tpl/card_create.tpl.php | 2 +- htdocs/societe/canvas/individual/tpl/card_edit.tpl.php | 6 +++--- 10 files changed, 18 insertions(+), 17 deletions(-) diff --git a/htdocs/admin/tools/dolibarr_export.php b/htdocs/admin/tools/dolibarr_export.php index 4345fb9d17f..2e4fffda27c 100644 --- a/htdocs/admin/tools/dolibarr_export.php +++ b/htdocs/admin/tools/dolibarr_export.php @@ -148,7 +148,7 @@ if ($_GET["msg"]) </div> <div class="formelementrow"><input type="checkbox" name="disable_fk" - value="yes" id="checkbox_disable_fk" checked="true" /> <label + value="yes" id="checkbox_disable_fk" checked="checked" /> <label for="checkbox_disable_fk"> <?php echo $langs->trans("CommandsToDisableForeignKeysForImport"); ?></label> </div> <label for="select_sql_compat"> <?php echo $langs->trans("ExportCompatibility"); ?></label> diff --git a/htdocs/core/tpl/freeproductline_edit.tpl.php b/htdocs/core/tpl/freeproductline_edit.tpl.php index 2cf7d0d8bd2..6ef0df4fe48 100644 --- a/htdocs/core/tpl/freeproductline_edit.tpl.php +++ b/htdocs/core/tpl/freeproductline_edit.tpl.php @@ -68,7 +68,7 @@ <?php } ?> </td> - <td align="center" colspan="5" valign="center"><input type="submit" class="button" name="save" value="<?php echo $langs->trans("Save"); ?>"> + <td align="center" colspan="5" valign="middle"><input type="submit" class="button" name="save" value="<?php echo $langs->trans("Save"); ?>"> <br><input type="submit" class="button" name="cancel" value="<?php echo $langs->trans("Cancel"); ?>"></td> </tr> diff --git a/htdocs/core/tpl/predefinedproductline_edit.tpl.php b/htdocs/core/tpl/predefinedproductline_edit.tpl.php index 07fa0e91456..d94fe2b6c0e 100644 --- a/htdocs/core/tpl/predefinedproductline_edit.tpl.php +++ b/htdocs/core/tpl/predefinedproductline_edit.tpl.php @@ -43,7 +43,8 @@ <?php if ($line->product_type==1) echo img_object($langs->trans('ShowService'),'service'); else print img_object($langs->trans('ShowProduct'),'product'); - echo ' '.$line->ref.'</a>'; + echo ' '.$line->ref; + ?></a><?php echo ' - '.nl2br($line->product_label); echo '<br>'; @@ -76,7 +77,7 @@ <?php } ?> </td> - <td align="center" colspan="5" valign="center"><input type="submit" class="button" name="save" value="<?php echo $langs->trans("Save"); ?>"> + <td align="center" colspan="5" valign="middle"><input type="submit" class="button" name="save" value="<?php echo $langs->trans("Save"); ?>"> <br><input type="submit" class="button" name="cancel" value="<?php echo $langs->trans("Cancel"); ?>"></td> </tr> diff --git a/htdocs/ftp/admin/ftpclient.php b/htdocs/ftp/admin/ftpclient.php index a83c135e192..4825fc52e5d 100644 --- a/htdocs/ftp/admin/ftpclient.php +++ b/htdocs/ftp/admin/ftpclient.php @@ -199,10 +199,10 @@ else <br> - <table class="nobordernopadding" width="100%"> - <?php + print '<table class="nobordernopadding" width="100%">'."\n"; + $sql ="select name, value, note from ".MAIN_DB_PREFIX."const"; $sql.=" WHERE name like 'FTP_SERVER_%'"; $sql.=" ORDER BY name"; diff --git a/htdocs/install/fileconf.php b/htdocs/install/fileconf.php index 8a426c05874..1dfa34fe518 100644 --- a/htdocs/install/fileconf.php +++ b/htdocs/install/fileconf.php @@ -216,7 +216,7 @@ print $dolibarr_main_url_root; if (1 == 2) { // Disabled during install process because HTTPS may not be yet configured in web server and need experienced skills ?> <tr> - <td valign="top" class="label"><?php echo $langs->trans("ForceHttps"); ?> + <td valign="top" class="label"><?php echo $langs->trans("ForceHttps"); ?></td> <td class="label" valign="top"><input type="checkbox" name="main_force_https" <?php if (! empty($force_install_mainforcehttps)) print ' checked="on"'; ?>></td> diff --git a/htdocs/product/canvas/default/tpl/create.tpl.php b/htdocs/product/canvas/default/tpl/create.tpl.php index e90c2566594..8c571678cf2 100644 --- a/htdocs/product/canvas/default/tpl/create.tpl.php +++ b/htdocs/product/canvas/default/tpl/create.tpl.php @@ -60,7 +60,7 @@ <?php } ?> <tr><td valign="top"><?php echo $langs->trans("Description"); ?></td><td> -<?php if (! $this->object->tpl['textarea_description']) { +<?php if (! $this->object->tpl['textarea_description']) { $this->object->tpl['doleditor_description']->Create(); }else{ echo $this->object->tpl['textarea_description']; @@ -95,7 +95,7 @@ echo $this->object->tpl['textarea_description']; <td><?php echo $this->object->tpl['hidden']; ?></td></tr> <tr><td valign="top"><?php echo $langs->trans("NoteNotVisibleOnBill"); ?></td><td> -<?php if (! $this->object->tpl['textarea_note']) { +<?php if (! $this->object->tpl['textarea_note']) { $this->object->tpl['doleditor_note']->Create(); }else{ echo $this->object->tpl['textarea_note']; diff --git a/htdocs/societe/canvas/default/tpl/card_create.tpl.php b/htdocs/societe/canvas/default/tpl/card_create.tpl.php index 384854cca58..1affa4458b3 100644 --- a/htdocs/societe/canvas/default/tpl/card_create.tpl.php +++ b/htdocs/societe/canvas/default/tpl/card_create.tpl.php @@ -98,7 +98,7 @@ <tr> <td valign="top"><?php echo $langs->trans('Address'); ?></td> - <td colspan="3"><textarea name="adresse" cols="40" rows="3" wrap="soft"><?php echo $this->control->tpl['address']; ?></textarea></td> + <td colspan="3"><textarea name="adresse" cols="40" rows="3"><?php echo $this->control->tpl['address']; ?></textarea></td> </tr> <tr> diff --git a/htdocs/societe/canvas/default/tpl/card_edit.tpl.php b/htdocs/societe/canvas/default/tpl/card_edit.tpl.php index cfc5bd511c3..0f9e8ec9be7 100644 --- a/htdocs/societe/canvas/default/tpl/card_edit.tpl.php +++ b/htdocs/societe/canvas/default/tpl/card_edit.tpl.php @@ -48,8 +48,8 @@ <?php } else { ?> <input type="text" size="5" maxlength="5" name="prefix_comm" value="<?php echo $this->control->tpl['prefix_comm']; ?>"> <?php } ?> - <td> -</td> + </td> +</tr> <tr> <td width="25%"><span class="fieldrequired"><?php echo $langs->trans('ProspectCustomer'); ?></span></td> @@ -111,7 +111,7 @@ if ($this->control->tpl['fournisseur']) { <tr> <td valign="top"><?php echo $langs->trans('Address'); ?></td> - <td colspan="3"><textarea name="adresse" cols="40" rows="3" wrap="soft"><?php echo $this->control->tpl['address']; ?></textarea></td> + <td colspan="3"><textarea name="adresse" cols="40" rows="3"><?php echo $this->control->tpl['address']; ?></textarea></td> </tr> <tr> diff --git a/htdocs/societe/canvas/individual/tpl/card_create.tpl.php b/htdocs/societe/canvas/individual/tpl/card_create.tpl.php index 31e15c2f591..3e1ab5a4767 100644 --- a/htdocs/societe/canvas/individual/tpl/card_create.tpl.php +++ b/htdocs/societe/canvas/individual/tpl/card_create.tpl.php @@ -110,7 +110,7 @@ <tr> <td valign="top"><?php echo $langs->trans('Address'); ?></td> - <td colspan="3"><textarea name="adresse" cols="40" rows="3" wrap="soft"><?php echo $this->control->tpl['address']; ?></textarea></td> + <td colspan="3"><textarea name="adresse" cols="40" rows="3"><?php echo $this->control->tpl['address']; ?></textarea></td> </tr> <tr> diff --git a/htdocs/societe/canvas/individual/tpl/card_edit.tpl.php b/htdocs/societe/canvas/individual/tpl/card_edit.tpl.php index 06967cb788f..0b89a67f3a6 100644 --- a/htdocs/societe/canvas/individual/tpl/card_edit.tpl.php +++ b/htdocs/societe/canvas/individual/tpl/card_edit.tpl.php @@ -49,8 +49,8 @@ <?php } else { ?> <input type="text" size="5" maxlength="5" name="prefix_comm" value="<?php echo $this->control->tpl['prefix_comm']; ?>"> <?php } ?> - <td> -</td> + </td> +</tr> <tr> <td width="25%"><span class="fieldrequired"><?php echo $langs->trans('ProspectCustomer'); ?></span></td> @@ -112,7 +112,7 @@ if ($this->control->tpl['fournisseur']) { <tr> <td valign="top"><?php echo $langs->trans('Address'); ?></td> - <td colspan="3"><textarea name="adresse" cols="40" rows="3" wrap="soft"><?php echo $this->control->tpl['address']; ?></textarea></td> + <td colspan="3"><textarea name="adresse" cols="40" rows="3"><?php echo $this->control->tpl['address']; ?></textarea></td> </tr> <tr> -- GitLab