Simplification des options activation ajax/javascript
This commit is contained in:
parent
7288c61ac8
commit
cce9f482b0
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -75,6 +75,8 @@ if (isset($_POST["action"]) && $_POST["action"] == 'update')
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
|
$html=new Form($db);
|
||||||
|
|
||||||
print_fiche_titre($langs->trans("GUISetup"),'','setup');
|
print_fiche_titre($langs->trans("GUISetup"),'','setup');
|
||||||
|
|
||||||
print $langs->trans("DisplayDesc")."<br>\n";
|
print $langs->trans("DisplayDesc")."<br>\n";
|
||||||
@ -83,8 +85,6 @@ print "<br>\n";
|
|||||||
|
|
||||||
if (isset($_GET["action"]) && $_GET["action"] == 'edit')
|
if (isset($_GET["action"]) && $_GET["action"] == 'edit')
|
||||||
{
|
{
|
||||||
$html=new Form($db);
|
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
||||||
print '<input type="hidden" name="action" value="update">';
|
print '<input type="hidden" name="action" value="update">';
|
||||||
|
|
||||||
@ -150,8 +150,10 @@ if (isset($_GET["action"]) && $_GET["action"] == 'edit')
|
|||||||
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("UsePopupCalendar").'</td><td>';
|
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("UsePopupCalendar").'</td><td>';
|
||||||
$liste_popup_calendar=array(
|
$liste_popup_calendar=array(
|
||||||
'0'=>$langs->trans("No"),
|
'0'=>$langs->trans("No"),
|
||||||
'eldy'=>$langs->trans("Yes").' (style eldy)',
|
'eldy'=>$langs->trans("Yes")
|
||||||
'andre'=>$langs->trans("Yes").' (style andre)');
|
//'eldy'=>$langs->trans("Yes").' (style eldy)',
|
||||||
|
//'andre'=>$langs->trans("Yes").' (style andre)'
|
||||||
|
);
|
||||||
$html->select_array('main_popup_calendar',$liste_popup_calendar,$conf->global->MAIN_POPUP_CALENDAR);
|
$html->select_array('main_popup_calendar',$liste_popup_calendar,$conf->global->MAIN_POPUP_CALENDAR);
|
||||||
print ' ('.$langs->trans("AvailableOnlyIfJavascriptNotDisabled").')';
|
print ' ('.$langs->trans("AvailableOnlyIfJavascriptNotDisabled").')';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@ -238,25 +240,35 @@ else
|
|||||||
$var=true;
|
$var=true;
|
||||||
|
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td>'.$langs->trans("Value").'</td></tr>';
|
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td>'.$langs->trans("Value").'</td><td> </td></tr>';
|
||||||
|
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("DefaultLanguage").'</td><td>' . ($conf->global->MAIN_LANG_DEFAULT=='auto'?$langs->trans("AutoDetectLang"):$conf->global->MAIN_LANG_DEFAULT) . '</td></tr>';
|
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("DefaultLanguage").'</td><td>' . ($conf->global->MAIN_LANG_DEFAULT=='auto'?$langs->trans("AutoDetectLang"):$conf->global->MAIN_LANG_DEFAULT) . '</td>';
|
||||||
|
print '<td width="20"> </td>';
|
||||||
|
print "</tr>";
|
||||||
|
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("EnableMultilangInterface").'</td><td>' . yn($conf->global->MAIN_MULTILANGS) . '</td></tr>';
|
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("EnableMultilangInterface").'</td><td>' . yn($conf->global->MAIN_MULTILANGS) . '</td>';
|
||||||
|
print '<td width="20"> </td>';
|
||||||
|
print "</tr>";
|
||||||
|
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'><td>'.$langs->trans("DefaultMaxSizeList").'</td><td>' . $conf->global->MAIN_SIZE_LISTE_LIMIT . '</td></tr>';
|
print '<tr '.$bc[$var].'><td>'.$langs->trans("DefaultMaxSizeList").'</td><td>' . $conf->global->MAIN_SIZE_LISTE_LIMIT . '</td>';
|
||||||
|
print '<td width="20"> </td>';
|
||||||
|
print "</tr>";
|
||||||
|
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'"><td width="35%">'.$langs->trans("ShowBugTrackLink").'</td><td>';
|
print '<tr '.$bc[$var].'"><td width="35%">'.$langs->trans("ShowBugTrackLink").'</td><td>';
|
||||||
print yn($conf->global->MAIN_SHOW_BUGTRACK_LINK)."</td></tr>";
|
print yn($conf->global->MAIN_SHOW_BUGTRACK_LINK)."</td>";
|
||||||
|
print '<td width="20"> </td>';
|
||||||
|
print "</tr>";
|
||||||
|
|
||||||
// Disable javascript
|
// Disable javascript
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("DisableJavascript").'</td><td>';
|
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("DisableJavascript").'</td><td>';
|
||||||
print yn($conf->global->MAIN_DISABLE_JAVASCRIPT)."</td></tr>";
|
print yn($conf->global->MAIN_DISABLE_JAVASCRIPT)."</td>";
|
||||||
|
print '<td width="20"> </td>';
|
||||||
|
print "</tr>";
|
||||||
|
|
||||||
// Confirm ajax
|
// Confirm ajax
|
||||||
if ($conf->global->MAIN_FEATURES_LEVEL >= 2)
|
if ($conf->global->MAIN_FEATURES_LEVEL >= 2)
|
||||||
@ -264,20 +276,26 @@ else
|
|||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("ConfirmAjax").'</td><td>';
|
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("ConfirmAjax").'</td><td>';
|
||||||
if ($conf->global->MAIN_DISABLE_JAVASCRIPT) print $langs->trans("No").' ('.$langs->trans("JavascriptDisabled").')';
|
if ($conf->global->MAIN_DISABLE_JAVASCRIPT) print $langs->trans("No").' ('.$langs->trans("JavascriptDisabled").')';
|
||||||
else print yn(isset($conf->global->MAIN_CONFIRM_AJAX)?$conf->global->MAIN_CONFIRM_AJAX:0)."</td></tr>";
|
else print yn(isset($conf->global->MAIN_CONFIRM_AJAX)?$conf->global->MAIN_CONFIRM_AJAX:0)."</td>";
|
||||||
|
print '<td width="20">'.$html->textwithhelp('',$langs->trans("FeatureDevelopment")).'</td>';
|
||||||
|
print "</tr>";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calendrier en popup
|
// Calendrier en popup
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("UsePopupCalendar").'</td><td>';
|
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("UsePopupCalendar").'</td><td>';
|
||||||
if ($conf->global->MAIN_DISABLE_JAVASCRIPT) print $langs->trans("No").' ('.$langs->trans("JavascriptDisabled").')';
|
if ($conf->global->MAIN_DISABLE_JAVASCRIPT) print $langs->trans("No").' ('.$langs->trans("JavascriptDisabled").')';
|
||||||
else print ($conf->global->MAIN_POPUP_CALENDAR?$langs->trans("Yes").' (style '.$conf->global->MAIN_POPUP_CALENDAR.')':$langs->trans("No"));
|
else print ($conf->global->MAIN_POPUP_CALENDAR?$langs->trans("Yes"):$langs->trans("No"));
|
||||||
print "</td></tr>";
|
print "</td>";
|
||||||
|
print '<td width="20"> </td>';
|
||||||
|
print "</tr>";
|
||||||
|
|
||||||
// Activer onglet preview
|
// Activer onglet preview
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("UsePreviewTabs").'</td><td>';
|
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("UsePreviewTabs").'</td><td>';
|
||||||
print yn(isset($conf->global->MAIN_USE_PREVIEW_TABS)?$conf->global->MAIN_USE_PREVIEW_TABS:1)."</td></tr>";
|
print yn(isset($conf->global->MAIN_USE_PREVIEW_TABS)?$conf->global->MAIN_USE_PREVIEW_TABS:1)."</td>";
|
||||||
|
print '<td width="20"> </td>';
|
||||||
|
print "</tr>";
|
||||||
|
|
||||||
print '</table><br>';
|
print '</table><br>';
|
||||||
|
|
||||||
|
|||||||
@ -22,8 +22,7 @@ SecuritySetup=Security setup
|
|||||||
ErrorModuleRequirePHPVersion=Error, this module requires PHP version %s or higher
|
ErrorModuleRequirePHPVersion=Error, this module requires PHP version %s or higher
|
||||||
ErrorDecimalLargerThanAreForbidden=Error, precision higher than <b>%s</b> are not supported.
|
ErrorDecimalLargerThanAreForbidden=Error, precision higher than <b>%s</b> are not supported.
|
||||||
DictionnarySetup=Dictionnary setup
|
DictionnarySetup=Dictionnary setup
|
||||||
DisableJavascript=Disable JavaScript functions
|
DisableJavascript=Disable JavaScript and Ajax functions
|
||||||
DisableAjax=Disable Ajax functions
|
|
||||||
ConfirmAjax=Use Ajax confirmation popups
|
ConfirmAjax=Use Ajax confirmation popups
|
||||||
UseSearchToSelectCompany=Use a search form to choose a company (intead of using a list box)
|
UseSearchToSelectCompany=Use a search form to choose a company (intead of using a list box)
|
||||||
ViewFullDateActions=Show full dates actions in the third sheet
|
ViewFullDateActions=Show full dates actions in the third sheet
|
||||||
|
|||||||
@ -15,8 +15,7 @@ SetupArea=Zone de configuration
|
|||||||
SecuritySetup=Configuration de sécurité
|
SecuritySetup=Configuration de sécurité
|
||||||
ErrorModuleRequirePHPVersion=Erreur, ce module nécessite PHP version %s ou supérieure
|
ErrorModuleRequirePHPVersion=Erreur, ce module nécessite PHP version %s ou supérieure
|
||||||
DictionnarySetup=Dictionnaires
|
DictionnarySetup=Dictionnaires
|
||||||
DisableJavascript=Désactiver les fonctions JavaScript
|
DisableJavascript=Désactiver les fonctions JavaScript et Ajax
|
||||||
DisableAjax=Désactiver les fonctions AJAX
|
|
||||||
UseSearchToSelectProduct=Utiliser un formulaire de recherche pour choisir un produit (plutôt que d'utiliser une liste déroulante)
|
UseSearchToSelectProduct=Utiliser un formulaire de recherche pour choisir un produit (plutôt que d'utiliser une liste déroulante)
|
||||||
NotAvailableWhenAjaxDisabled=Non disponible quand AJAX est désactivé
|
NotAvailableWhenAjaxDisabled=Non disponible quand AJAX est désactivé
|
||||||
JavascriptDisabled=JavaScript désactivé
|
JavascriptDisabled=JavaScript désactivé
|
||||||
|
|||||||
@ -22,8 +22,7 @@ SecuritySetup=Configuration de la s
|
|||||||
ErrorModuleRequirePHPVersion=Erreur, ce module requiert une version %s ou supérieure de PHP
|
ErrorModuleRequirePHPVersion=Erreur, ce module requiert une version %s ou supérieure de PHP
|
||||||
ErrorDecimalLargerThanAreForbidden=Erreur, les précisions supérieures à <b>%s</b> ne sont pas supportées.
|
ErrorDecimalLargerThanAreForbidden=Erreur, les précisions supérieures à <b>%s</b> ne sont pas supportées.
|
||||||
DictionnarySetup=Dictionnaires
|
DictionnarySetup=Dictionnaires
|
||||||
DisableJavascript=Désactiver les fonctions Javascript
|
DisableJavascript=Désactiver les fonctions Javascript et Ajax
|
||||||
DisableAjax=Désactiver les fonctions Ajax
|
|
||||||
ConfirmAjax=Utiliser les popups de confirmation Ajax
|
ConfirmAjax=Utiliser les popups de confirmation Ajax
|
||||||
UseSearchToSelectCompany=Utiliser un formulaire de recherche pour choix d'un tiers (plutôt que liste déroulante)
|
UseSearchToSelectCompany=Utiliser un formulaire de recherche pour choix d'un tiers (plutôt que liste déroulante)
|
||||||
ViewFullDateActions=Visualiser les dates des actions en entier dans la fiche tiers
|
ViewFullDateActions=Visualiser les dates des actions en entier dans la fiche tiers
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user