génération d'un code html plus facile à relire pour s'y retrouver en debug et petites améliorations visuelles (utilisation des classes pair et impair pour les td)
This commit is contained in:
parent
34b6ed46f2
commit
5d86101845
@ -85,7 +85,7 @@ print '<td>'.$langs->trans("OptionMode").'</td><td>'.$langs->trans("Description"
|
||||
print '<td><input type="submit" value="'.$langs->trans("Modify").'"></td>';
|
||||
print "</tr>\n";
|
||||
print "<tr ".$bc[True]."><td width=\"200\"><input type=\"radio\" name=\"compta_mode\" value=\"RECETTES-DEPENSES\"".($compta_mode != "CREANCES-DETTES"?" checked":"")."> ".$langs->trans("OptionModeTrue")."</td>";
|
||||
print "<td colspan=\"2\">".$langs->trans("OptionModeTrueDesc")."</td></tr>\n";
|
||||
print "<td colspan=\"2\">".nl2br($langs->trans("OptionModeTrueDesc"))."</td></tr>\n";
|
||||
print "<tr ".$bc[False]."><td width=\"200\"><input type=\"radio\" name=\"compta_mode\" value=\"CREANCES-DETTES\"".($compta_mode == "CREANCES-DETTES"?" checked":"")."> ".$langs->trans("OptionModeVirtual")."</td>";
|
||||
print "<td colspan=\"2\">".$langs->trans("OptionModeVirtualDesc")."</td></tr>\n";
|
||||
print "</form>";
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004 Éric Seigne <eric.seigne@ryxeo.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -138,15 +139,15 @@ else
|
||||
|
||||
|
||||
|
||||
print '<br>';
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Family").'</td>';
|
||||
print '<td>'.$langs->trans("Module").'</td>';
|
||||
print '<td>'.$langs->trans("Description").'</td>';
|
||||
print '<td align="center">'.$langs->trans("Activated").'</td>';
|
||||
print '<td align="center">'.$langs->trans("Action").'</td>';
|
||||
print '<td> </td>';
|
||||
print "<br>\n";
|
||||
print "<table class=\"noborder\" width=\"100%\">\n";
|
||||
print "<tr class=\"liste_titre\">\n";
|
||||
print " <td>".$langs->trans("Family")."</td>\n";
|
||||
print " <td>".$langs->trans("Module")."</td>\n";
|
||||
print " <td>".$langs->trans("Description")."</td>\n";
|
||||
print " <td align=\"center\">".$langs->trans("Activated")."</td>\n";
|
||||
print " <td align=\"center\">".$langs->trans("Action")."</td>\n";
|
||||
print " <td> </td>\n";
|
||||
print "</tr>\n";
|
||||
|
||||
|
||||
@ -212,7 +213,7 @@ foreach ($orders as $key => $value)
|
||||
$const_value = $objMod->const_config;
|
||||
|
||||
if ($oldfamily && $family!=$oldfamily && $atleastoneforfamily) {
|
||||
print '<tr class="liste_titre"><td colspan="6"></td></tr>';
|
||||
print "<tr class=\"liste_titre\">\n <td colspan=\"6\"></td>\n</tr>\n";
|
||||
$atleastoneforfamily=0;
|
||||
}
|
||||
|
||||
@ -221,24 +222,24 @@ foreach ($orders as $key => $value)
|
||||
$atleastoneforfamily=1;
|
||||
$var=!$var;
|
||||
|
||||
print "<tr $bc[$var]>";
|
||||
print "<tr $bc[$var]>\n";
|
||||
|
||||
print "<td class='body'>";
|
||||
print " <td class=\"body\">";
|
||||
if ($family!=$oldfamily)
|
||||
{
|
||||
print '<div class="titre">'.$familylib[$family].'</div>';
|
||||
print "<div class=\"titre\">".$familylib[$family]."</div>";
|
||||
$oldfamily=$family;
|
||||
}
|
||||
else
|
||||
{
|
||||
print ' ';
|
||||
}
|
||||
print "</td>";
|
||||
print "<td>";
|
||||
print "</td>\n";
|
||||
print " <td>";
|
||||
print $objMod->name;
|
||||
print "</td><td>\n";
|
||||
print "</td>\n <td>";
|
||||
print $objMod->description;
|
||||
print '</td><td align="center">';
|
||||
print "</td>\n <td align=\"center\">";
|
||||
|
||||
if ($const_value == 1)
|
||||
{
|
||||
@ -249,18 +250,18 @@ foreach ($orders as $key => $value)
|
||||
print " ";
|
||||
}
|
||||
|
||||
print '</td><td align="center">';
|
||||
print "</td>\n <td align=\"center\">";
|
||||
|
||||
|
||||
if ($const_value == 1)
|
||||
{
|
||||
print '<a href="modules.php?action=reset&value='.$modName.'&spe='.$_GET["spe"].'">'.$langs->trans("Disable").'</a></td>';
|
||||
print "<a href=\"modules.php?action=reset&value=" . $modName . "&spe=" . $_GET["spe"] . "\">" . $langs->trans("Disable") . "</a></td>\n";
|
||||
|
||||
|
||||
if ($objMod->config_page_url)
|
||||
{
|
||||
if (is_array($objMod->config_page_url)) {
|
||||
print '<td>';
|
||||
print " <td>";
|
||||
$i=0;
|
||||
foreach ($objMod->config_page_url as $page)
|
||||
{
|
||||
@ -273,29 +274,29 @@ foreach ($orders as $key => $value)
|
||||
print '<a href="'.$page.'">'.$langs->trans("Setup").'</a> ';
|
||||
}
|
||||
}
|
||||
print '</td>';
|
||||
print "</td>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td><a href="'.$objMod->config_page_url.'">'.$langs->trans("Setup").'</a></td>';
|
||||
print ' <td><a href="'.$objMod->config_page_url.'">'.$langs->trans("Setup").'</a></td>';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
print "<td> </td>";
|
||||
print " <td> </td>";
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<a href="modules.php?action=set&value='.$modName.'&spe='.$_GET["spe"].'">'.$langs->trans("Activate").'</a></td><td> </td>';
|
||||
print "<a href=\"modules.php?action=set&value=" . $modName . "&spe=" . $_GET["spe"] . "\">" . $langs->trans("Activate") . "</a></td>\n <td> </td>\n";
|
||||
}
|
||||
|
||||
print '</tr>';
|
||||
print "</tr>\n";
|
||||
}
|
||||
|
||||
}
|
||||
print "</table></div>";
|
||||
print "</table></div>\n";
|
||||
|
||||
llxFooter();
|
||||
?>
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
/* Copyright (C) 2004 Éric Seigne <eric.seigne@ryxeo.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -59,12 +60,12 @@ print "<br>";
|
||||
|
||||
print_titre("Module de vérification des codes client");
|
||||
|
||||
print '<table class="noborder" cellpadding="3" cellspacing="0" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>Nom</td>';
|
||||
print '<td>Info</td>';
|
||||
print '<td align="center">Activé</td>';
|
||||
print '<td> </td>';
|
||||
print "<table class=\"noborder\" cellpadding=\"3\" cellspacing=\"0\" width=\"100%\">\n";
|
||||
print "<tr class=\"liste_titre\">\n";
|
||||
print " <td>Nom</td>\n";
|
||||
print " <td>Info</td>\n";
|
||||
print " <td align=\"center\">Activé</td>\n";
|
||||
print " <td> </td>\n";
|
||||
print "</tr>\n";
|
||||
|
||||
clearstatcache();
|
||||
@ -82,29 +83,32 @@ if ($handle)
|
||||
require_once(DOL_DOCUMENT_ROOT ."/includes/modules/societe/".$file.".php");
|
||||
|
||||
$modCodeClient = new $file;
|
||||
|
||||
print '<tr class="pair"><td width="140">'.$modCodeClient->nom."</td><td>\n";
|
||||
if($pair == "pair")
|
||||
$pair = "impair";
|
||||
else
|
||||
$pair = "pair";
|
||||
print "<tr class=\"$pair\">\n <td width=\"140\">".$modCodeClient->nom."</td>\n <td>\n";
|
||||
print $modCodeClient->info();
|
||||
print '</td>';
|
||||
print "</td>\n";
|
||||
|
||||
if ($codeclient_addon_var == "$file")
|
||||
{
|
||||
print '<td align="center">';
|
||||
print " <td align=\"center\">\n";
|
||||
print '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/tick.png" border="0"></a>';
|
||||
print '</td><td> </td>';
|
||||
print "</td>\n <td> </td>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td> </td>';
|
||||
print '<td align="center"><a href="societe.php?action=setmod&value='.$file.'">activer</a></td>';
|
||||
print " <td> </td>\n";
|
||||
print " <td align=\"center\"><a href=\"societe.php?action=setmod&value=".$file."\">activer</a></td>\n";
|
||||
}
|
||||
|
||||
print '</tr>';
|
||||
print "</tr>\n";
|
||||
}
|
||||
}
|
||||
closedir($handle);
|
||||
}
|
||||
print '</table>';
|
||||
print "</table>\n";
|
||||
|
||||
$db->close();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user