forked from Wavyzz/dolibarr
Replace javascript by jQuery
This commit is contained in:
@@ -565,7 +565,7 @@ class Form
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<select class="flat" name="'.$htmlname.'">';
|
||||
print '<select id="select'.$htmlname.'" class="flat" name="'.$htmlname.'">';
|
||||
if ($showempty) print '<option value="-1"> </option>';
|
||||
$num = $this->db->num_rows($resql);
|
||||
$i = 0;
|
||||
|
||||
@@ -37,6 +37,16 @@ if (! defined('DOL_DOCUMENT_ROOT')) define('DOL_DOCUMENT_ROOT', '..');
|
||||
if (! defined('ADODB_DATE_VERSION')) include_once(DOL_DOCUMENT_ROOT."/includes/adodbtime/adodb-time.inc.php");
|
||||
|
||||
|
||||
/**
|
||||
* \brief Return value of a param into get or post variable
|
||||
* \param paramname Name of parameter to found
|
||||
* \return string Value found
|
||||
*/
|
||||
function GETPOST($paramname)
|
||||
{
|
||||
return isset($_GET[$paramname])?$_GET[$paramname]:(isset($_POST[$paramname])?$_POST[$paramname]:'');
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Create a clone of instance of object (new instance with same properties)
|
||||
* This function works for both PHP4 and PHP5
|
||||
|
||||
@@ -57,7 +57,7 @@ if (function_exists('get_magic_quotes_gpc')) // magic_quotes_* removed in PHP6
|
||||
{
|
||||
$_GET = array_map('stripslashes_deep', $_GET);
|
||||
$_POST = array_map('stripslashes_deep', $_POST);
|
||||
$_REQUEST = array_map('stripslashes_deep', $_REQUEST);
|
||||
// $_REQUEST = array_map('stripslashes_deep', $_REQUEST);
|
||||
$_COOKIE = array_map('stripslashes_deep', $_COOKIE);
|
||||
}
|
||||
@set_magic_quotes_runtime(0);
|
||||
@@ -231,7 +231,8 @@ if (! empty($conf->global->MAIN_SECURITY_CSRF)) // Check validity of token, only
|
||||
}
|
||||
|
||||
// Disable modules (this must be after session_start and after conf has been loaded)
|
||||
if (! empty($_REQUEST["disablemodules"])) $_SESSION["disablemodules"]=$_REQUEST["disablemodules"];
|
||||
if (! empty($_GET["disablemodules"])) $_SESSION["disablemodules"]=$_GET["disablemodules"];
|
||||
if (! empty($_POST["disablemodules"])) $_SESSION["disablemodules"]=$_POST["disablemodules"];
|
||||
if (! empty($_SESSION["disablemodules"]))
|
||||
{
|
||||
$disabled_modules=explode(',',$_SESSION["disablemodules"]);
|
||||
|
||||
Reference in New Issue
Block a user