Look: Modification esthtique mineure
This commit is contained in:
parent
6be8588b74
commit
9fe6226ae4
@ -64,7 +64,7 @@ if ($_GET["action"] == 'delete')
|
||||
|
||||
|
||||
|
||||
print '<table class="noborder" cellpadding="2" cellspacing="0" width="100%">';
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Name").'</td>';
|
||||
print '<td>'.$langs->trans("Value").'</td>';
|
||||
@ -82,19 +82,19 @@ $var=!$var;
|
||||
print '<form action="const.php" method="POST">';
|
||||
print '<input type="hidden" name="action" value="add">';
|
||||
|
||||
print "<tr $bc[$var] class=value><td><input type=\"text\" size=\"15\" name=\"constname\" value=\"\"></td>\n";
|
||||
print "<tr $bc[$var] class=value><td><input type=\"text\" class=\"flat\" size=\"15\" name=\"constname\" value=\"\"></td>\n";
|
||||
|
||||
print '<td>';
|
||||
print '<input type="text" size="30" name="constvalue" value="">';
|
||||
print '<input type="text" class="flat" size="30" name="constvalue" value="">';
|
||||
print '</td><td>';
|
||||
|
||||
$form->select_array('consttype',array('yesno','texte','chaine'),2);
|
||||
print '</td><td>';
|
||||
|
||||
print '<input type="text" size="15" name="constnote" value="">';
|
||||
print '<input type="text" class="flat" size="15" name="constnote" value="">';
|
||||
print '</td><td>';
|
||||
|
||||
print '<input type="Submit" value="'.$langs->trans("Add").'" name="Button"><BR>';
|
||||
print '<input type="submit" class="button" value="'.$langs->trans("Add").'" name="Button"><br>';
|
||||
print "</td>\n";
|
||||
|
||||
print '</tr>';
|
||||
@ -136,7 +136,7 @@ if ($result)
|
||||
}
|
||||
elseif ($obj->type == 'texte')
|
||||
{
|
||||
print '<textarea name="constvalue" cols="35" rows="4" wrap="soft">';
|
||||
print '<textarea name="constvalue" cols="32" rows="3" wrap="soft">';
|
||||
print $obj->value;
|
||||
print "</textarea>\n";
|
||||
print '</td><td>';
|
||||
@ -144,16 +144,16 @@ if ($result)
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<input type="text" size="30" name="constvalue" value="'.stripslashes($obj->value).'">';
|
||||
print '<input type="text" class="flat" size="30" name="constvalue" value="'.stripslashes($obj->value).'">';
|
||||
print '</td><td>';
|
||||
$form->select_array('consttype',array('yesno','texte','chaine'),2);
|
||||
}
|
||||
print '</td><td>';
|
||||
|
||||
// Note
|
||||
print '<input type="text" size="30" name="constnote" value="'.stripslashes(nl2br($obj->note)).'">';
|
||||
print '<input type="text" class="flat" size="30" name="constnote" value="'.stripslashes(nl2br($obj->note)).'">';
|
||||
print '</td><td>';
|
||||
print '<input type="Submit" value="'.$langs->trans("Modify").'" name="Button"> ';
|
||||
print '<input type="submit" class="button" value="'.$langs->trans("Modify").'" name="button"> ';
|
||||
print '<a href="const.php?rowid='.$obj->rowid.'&action=delete">'.img_delete().'</a>';
|
||||
print "</td></tr>\n";
|
||||
|
||||
|
||||
@ -251,12 +251,13 @@ if ($_GET["action"] == $acts[1]) // disable
|
||||
llxHeader();
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Affichage d'un dictionnaire particulier
|
||||
*/
|
||||
if ($_GET["id"])
|
||||
{
|
||||
print_titre($langs->trans("DictionnarySetup"));
|
||||
print_titre($langs->trans("DictionnarySetup").' - '.$tablib[$_GET["id"]]);
|
||||
print '<br>';
|
||||
|
||||
if ($msg) {
|
||||
@ -282,7 +283,6 @@ if ($_GET["id"])
|
||||
|
||||
// Ligne d'ajout
|
||||
if ($tabname[$_GET["id"]]) {
|
||||
print_titre($tablib[$_GET["id"]]);
|
||||
$var=False;
|
||||
$fieldlist=split(',',$tabfield[$_GET["id"]]);
|
||||
print '<table class="noborder" width="100%">';
|
||||
@ -334,10 +334,10 @@ if ($_GET["id"])
|
||||
print '</td>';
|
||||
}
|
||||
else {
|
||||
print '<td><input type="text" value="" name="'.$fieldlist[$field].'"></td>';
|
||||
print '<td><input type="text" class="flat" value="" name="'.$fieldlist[$field].'"></td>';
|
||||
}
|
||||
}
|
||||
print '<td colspan=3><input type="submit" name="actionadd" value="'.$langs->trans("Add").'"></td>';
|
||||
print '<td colspan=3><input type="submit" class="button" name="actionadd" value="'.$langs->trans("Add").'"></td>';
|
||||
print "</tr>";
|
||||
|
||||
print '<tr><td colspan="'.(count($fieldlist)+2).'">* Label used by default if no translation can be found for code.</td></tr>';
|
||||
@ -422,18 +422,21 @@ else
|
||||
/*
|
||||
* Affichage de la liste des dictionnaires
|
||||
*/
|
||||
|
||||
print_titre($langs->trans("DictionnarySetup"));
|
||||
print '<br>';
|
||||
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre"><td>'.$langs->trans("Dictionnary").'</td><td>'.$langs->trans("Table").'</td></tr>';
|
||||
|
||||
foreach ($taborder as $i) {
|
||||
$var=!$var;
|
||||
if ($i) {
|
||||
$value=$tabname[$i];
|
||||
print '<a href="dict.php?id='.$i.'">'.$tablib[$i].'</a> (Table '.$tabname[$i].')<br>';
|
||||
print '<tr '.$bc[$var].'><td width="30%"><a href="dict.php?id='.$i.'">'.$tablib[$i].'</a></td><td>'.$tabname[$i].'</td></tr>';
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<br>';
|
||||
print '<tr '.$bc[$var].'><td width="30%"> </td><td> </td></tr>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user