Ajout paramètre pour l'affichage du bugtrack
This commit is contained in:
parent
3f750340ff
commit
d85bdd607a
@ -32,14 +32,11 @@ $langs->load("companies");
|
|||||||
$langs->load("products");
|
$langs->load("products");
|
||||||
$langs->load("admin");
|
$langs->load("admin");
|
||||||
|
|
||||||
|
|
||||||
if (!$user->admin)
|
if (!$user->admin)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
|
|
||||||
if (! defined("MAIN_MOTD")) define("MAIN_MOTD","");
|
if (! defined("MAIN_MOTD")) define("MAIN_MOTD","");
|
||||||
|
|
||||||
|
|
||||||
$dirtop = "../includes/menus/barre_top";
|
$dirtop = "../includes/menus/barre_top";
|
||||||
$dirleft = "../includes/menus/barre_left";
|
$dirleft = "../includes/menus/barre_left";
|
||||||
$dirtheme = "../theme";
|
$dirtheme = "../theme";
|
||||||
@ -50,7 +47,6 @@ $searchformconst=array($conf->global->MAIN_SEARCHFORM_SOCIETE,$conf->global->MAI
|
|||||||
$searchformtitle=array($langs->trans("Companies"),$langs->trans("Contacts"),$langs->trans("ProductsAndServices"));
|
$searchformtitle=array($langs->trans("Companies"),$langs->trans("Contacts"),$langs->trans("ProductsAndServices"));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (isset($_POST["action"]) && $_POST["action"] == 'update')
|
if (isset($_POST["action"]) && $_POST["action"] == 'update')
|
||||||
{
|
{
|
||||||
dolibarr_set_const($db, "MAIN_LANG_DEFAULT", $_POST["main_lang_default"]);
|
dolibarr_set_const($db, "MAIN_LANG_DEFAULT", $_POST["main_lang_default"]);
|
||||||
@ -64,6 +60,8 @@ if (isset($_POST["action"]) && $_POST["action"] == 'update')
|
|||||||
dolibarr_set_const($db, "MAIN_SEARCHFORM_SOCIETE",$_POST["main_searchform_societe"]);
|
dolibarr_set_const($db, "MAIN_SEARCHFORM_SOCIETE",$_POST["main_searchform_societe"]);
|
||||||
dolibarr_set_const($db, "MAIN_SEARCHFORM_PRODUITSERVICE",$_POST["main_searchform_produitservice"]);
|
dolibarr_set_const($db, "MAIN_SEARCHFORM_PRODUITSERVICE",$_POST["main_searchform_produitservice"]);
|
||||||
|
|
||||||
|
dolibarr_set_const($db, "MAIN_SHOW_BUGTRACK_LINK", $_POST["bugtrack"]);
|
||||||
|
|
||||||
dolibarr_set_const($db, "MAIN_MOTD", trim($_POST["main_motd"]));
|
dolibarr_set_const($db, "MAIN_MOTD", trim($_POST["main_motd"]));
|
||||||
|
|
||||||
$_SESSION["mainmenu"]=""; // Le gestionnaire de menu a pu changer
|
$_SESSION["mainmenu"]=""; // Le gestionnaire de menu a pu changer
|
||||||
@ -74,13 +72,10 @@ if (isset($_POST["action"]) && $_POST["action"] == 'update')
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
|
|
||||||
print_titre($langs->trans("GUISetup"));
|
print_titre($langs->trans("GUISetup"));
|
||||||
|
|
||||||
print "<br>\n";
|
print "<br>\n";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (isset($_GET["action"]) && $_GET["action"] == 'edit')
|
if (isset($_GET["action"]) && $_GET["action"] == 'edit')
|
||||||
{
|
{
|
||||||
print '<form method="post" action="ihm.php">';
|
print '<form method="post" action="ihm.php">';
|
||||||
@ -118,7 +113,6 @@ if (isset($_GET["action"]) && $_GET["action"] == 'edit')
|
|||||||
print '<option value="'.$file.'">'.$filelib.'</option>';
|
print '<option value="'.$file.'">'.$filelib.'</option>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
print '</select>';
|
print '</select>';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
@ -151,6 +145,11 @@ if (isset($_GET["action"]) && $_GET["action"] == 'edit')
|
|||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'><td>'.$langs->trans("DefaultMaxSizeList").'</td><td><input class="flat" name="size_liste_limit" size="4" value="' . SIZE_LISTE_LIMIT . '"></td></tr>';
|
print '<tr '.$bc[$var].'><td>'.$langs->trans("DefaultMaxSizeList").'</td><td><input class="flat" name="size_liste_limit" size="4" value="' . SIZE_LISTE_LIMIT . '"></td></tr>';
|
||||||
|
|
||||||
|
$var=!$var;
|
||||||
|
print '<tr '.$bc[$var].'"><td width="35%">'.$langs->trans("ShowBugtrakLink").'</td><td>';
|
||||||
|
$html->selectyesnonum('bugtrack',MAIN_SHOW_BUGTRACK_LINK);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
print '</table><br>';
|
print '</table><br>';
|
||||||
|
|
||||||
|
|
||||||
@ -163,7 +162,8 @@ if (isset($_GET["action"]) && $_GET["action"] == 'edit')
|
|||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("PermanentLeftSearchForm").'</td><td>'.$langs->trans("Activated").'</td></tr>';
|
print '<tr class="liste_titre"><td>'.$langs->trans("PermanentLeftSearchForm").'</td><td>'.$langs->trans("Activated").'</td></tr>';
|
||||||
$var=True;
|
$var=True;
|
||||||
foreach ($searchform as $key => $value) {
|
foreach ($searchform as $key => $value)
|
||||||
|
{
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'"><td width="35%">'.$searchformtitle[$key].'</td><td>';
|
print '<tr '.$bc[$var].'"><td width="35%">'.$searchformtitle[$key].'</td><td>';
|
||||||
$html->selectyesnonum($searchform[$key],$searchformconst[$key]);
|
$html->selectyesnonum($searchform[$key],$searchformconst[$key]);
|
||||||
@ -213,6 +213,10 @@ else
|
|||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'><td>'.$langs->trans("DefaultMaxSizeList").'</td><td>' . $conf->global->SIZE_LISTE_LIMIT . '</td></tr>';
|
print '<tr '.$bc[$var].'><td>'.$langs->trans("DefaultMaxSizeList").'</td><td>' . $conf->global->SIZE_LISTE_LIMIT . '</td></tr>';
|
||||||
|
|
||||||
|
|
||||||
|
print '<tr '.$bc[$var].'"><td width="35%">'.$langs->trans("ShowBugtrakLink").'</td><td>';
|
||||||
|
print (MAIN_SHOW_BUGTRACK_LINK?$langs->trans("yes"):$langs->trans("no"))."</td></tr>";
|
||||||
|
|
||||||
print '</table><br>';
|
print '</table><br>';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user