Fix: Respect W3C

This commit is contained in:
Laurent Destailleur 2005-10-14 21:05:13 +00:00
parent 13ff44a6d0
commit 573bd4f625
7 changed files with 91 additions and 89 deletions

View File

@ -55,17 +55,9 @@ if ($_POST["action"] == 'add')
} }
Header("Location: boxes.php"); Header("Location: boxes.php");
exit;
} }
llxHeader();
print_titre($langs->trans("Boxes"));
print "<br>".$langs->trans("BoxesDesc")."<br>\n";
if ($_GET["action"] == 'delete') if ($_GET["action"] == 'delete')
{ {
$sql = "DELETE FROM ".MAIN_DB_PREFIX."boxes WHERE rowid=".$_GET["rowid"]; $sql = "DELETE FROM ".MAIN_DB_PREFIX."boxes WHERE rowid=".$_GET["rowid"];
@ -120,6 +112,13 @@ if ($_GET["action"] == 'switch')
} }
llxHeader();
print_fiche_titre($langs->trans("Boxes"));
print $langs->trans("BoxesDesc")."<br>\n";
/* /*
* Recherche des boites actives par position possible * Recherche des boites actives par position possible
* On stocke les boites actives par $boxes[position][id_boite]=1 * On stocke les boites actives par $boxes[position][id_boite]=1

View File

@ -35,14 +35,6 @@ if (!$user->admin)
accessforbidden(); accessforbidden();
llxHeader();
print_titre($langs->trans("OtherSetup"));
//print_r(get_defined_constants());
print "<br>\n";
$typeconst=array('yesno','texte','chaine'); $typeconst=array('yesno','texte','chaine');
@ -63,6 +55,9 @@ if ($_GET["action"] == 'delete')
} }
llxHeader();
print_fiche_titre($langs->trans("OtherSetup"));
print '<table class="noborder" width="100%">'; print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">'; print '<tr class="liste_titre">';

View File

@ -26,6 +26,7 @@
\brief Page d'administration des d?lais de retard \brief Page d'administration des d?lais de retard
\version $Revision$ \version $Revision$
*/ */
require("./pre.inc.php"); require("./pre.inc.php");
$langs->load("admin"); $langs->load("admin");
@ -65,9 +66,9 @@ $form = new Form($db);
$countrynotdefined='<font class="error">'.$langs->trans("ErrorSetACountryFirst").' ('.$langs->trans("SeeAbove").')</font>'; $countrynotdefined='<font class="error">'.$langs->trans("ErrorSetACountryFirst").' ('.$langs->trans("SeeAbove").')</font>';
print_titre($langs->trans("DelaysOfToleranceBeforeWarning")); print_fiche_titre($langs->trans("DelaysOfToleranceBeforeWarning"));
print "<br>".$langs->transnoentities("DelaysOfToleranceDesc",img_warning())."<br>\n"; print $langs->transnoentities("DelaysOfToleranceDesc",img_warning())."<br>\n";
print "<br>\n"; print "<br>\n";

View File

@ -78,9 +78,8 @@ if (isset($_POST["action"]) && $_POST["action"] == 'update')
llxHeader(); llxHeader();
print_titre($langs->trans("GUISetup")); print_fiche_titre($langs->trans("GUISetup"));
print "<br>\n";
if (isset($_GET["action"]) && $_GET["action"] == 'edit') if (isset($_GET["action"]) && $_GET["action"] == 'edit')
{ {

View File

@ -71,17 +71,17 @@ $form = new Form($db);
$countrynotdefined='<font class="error">'.$langs->trans("ErrorSetACountryFirst").' ('.$langs->trans("SeeAbove").')</font>'; $countrynotdefined='<font class="error">'.$langs->trans("ErrorSetACountryFirst").' ('.$langs->trans("SeeAbove").')</font>';
print_titre($langs->trans("GlobalSetup")); print_fiche_titre($langs->trans("GlobalSetup"));
print "<br>\n";
if ((isset($_GET["action"]) && $_GET["action"] == 'edit') if ((isset($_GET["action"]) && $_GET["action"] == 'edit')
|| (isset($_POST["action"]) && $_POST["action"] == 'updateedit') ) || (isset($_POST["action"]) && $_POST["action"] == 'updateedit') )
{ {
/* /**
* Edition des paramètres * Edition des paramètres
*/ */
if ($conf->use_javascript)
{
print ' print '
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
<!-- <!--
@ -94,6 +94,7 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit')
--> -->
</script> </script>
'; ';
}
print '<form method="post" action="index.php" name="form_index">'; print '<form method="post" action="index.php" name="form_index">';
print '<input type="hidden" name="action" value="update">'; print '<input type="hidden" name="action" value="update">';
@ -112,7 +113,7 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit')
$var=!$var; $var=!$var;
print '<tr '.$bc[$var].'><td>'.$langs->trans("Country").'</td><td>'; print '<tr '.$bc[$var].'><td>'.$langs->trans("Country").'</td><td>';
$form->select_pays($conf->global->MAIN_INFO_SOCIETE_PAYS,'pays_id',' onChange="save_refresh()"'); $form->select_pays($conf->global->MAIN_INFO_SOCIETE_PAYS,'pays_id',($conf->use_javascript?' onChange="save_refresh()"':''));
print '</td></tr>'; print '</td></tr>';
$var=!$var; $var=!$var;
@ -487,6 +488,7 @@ else
print '<a class="tabAction" href="index.php?action=edit">'.$langs->trans("Edit").'</a>'; print '<a class="tabAction" href="index.php?action=edit">'.$langs->trans("Edit").'</a>';
print '</div>'; print '</div>';
print '<br>';
} }

View File

@ -327,5 +327,11 @@ foreach ($orders as $key => $value)
} }
print "</table></div>\n"; print "</table></div>\n";
// Pour eviter bug mise en page IE
print '<div class="tabsAction">';
print '</div>';
llxFooter('$Date$ - $Revision$'); llxFooter('$Date$ - $Revision$');
?> ?>

View File

@ -51,9 +51,9 @@ if ($_GET["action"] == 'remove')
llxHeader(); llxHeader();
print_titre($langs->trans("DefaultRights")); print_fiche_titre($langs->trans("DefaultRights"));
print "<br>".$langs->trans("DefaultRightsDesc")."<br><br>\n"; print $langs->trans("DefaultRightsDesc")."<br><br>\n";
print '<table class="noborder" width="100%">'; print '<table class="noborder" width="100%">';