Source for file pgsql.inc.php
Documentation is available at pgsql.inc.php
* @package linea21.modules
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
//////////// Check Inclusion de pages ////////////
include_once("../lib/lib_common.php");
$req_add = "SELECT scale_id, scale_denomination FROM " . T_SCALE . " WHERE scale_statut<>'E' AND scale_dependencies<". (MAX_SCALE_LEVEL- 1). " ORDER BY scale_id;";
$req_quickbox_list = "SELECT sdii_id, sdii_name, to_char(sdii_last_modify, '". toStringSqlDate('long'). "') AS sdii_last_modify, sdii_date_crea AS sdii_date_crea2, to_char(sdii_date_crea, '". toStringSqlDate(). "') AS sdii_date_crea
ORDER BY sdii_date_crea2 DESC
$req_quickbox_mod_list = "SELECT sdii_id, sdii_name, to_char(sdii_last_modify, '". toStringSqlDate('long'). "') AS sdii_last_modify, sdii_last_modify AS sdii_last_modify2, to_char(sdii_date_crea, '". toStringSqlDate(). "') AS sdii_date_crea
ORDER BY sdii_last_modify2 DESC
$req_list_theme= "SELECT T.theme_id, T.theme_name, T.theme_statut, SDT.sdtheme_name, SDT.sdtheme_id FROM " . T_THEME . " AS T LEFT OUTER JOIN ". T_SD_THEME . " AS SDT ON SDT.sdtheme_id=T.theme_sd_theme WHERE T.theme_statut <> 'E' ORDER BY sdtheme_range DESC, sdtheme_name ASC, theme_name ASC;";
$req_Onesdiname= "SELECT sdii_name FROM " . T_SDI_INFO . " WHERE sdii_id=$id ;";
$req_Onetheme= "SELECT theme_name FROM " . T_THEME . " WHERE theme_id=$theme_id ;";
$req_Allsditheme= "SELECT COUNT(sdii_id) AS countsdi FROM " . T_SDI_INFO . " WHERE sdii_theme=$theme_id AND sdii_statut <> 'E';";
$requete = "SELECT II.sdii_id, II.sdii_name, II.sdii_description, II.sdii_max_value, II.sdii_min_value, II.sdii_threshold_value, II.sdii_threshold_relative, II.sdii_unit, T.theme_name, II.sdii_range, IP.sdip_name,II.sdii_statut, II.sdii_theme
FROM ". T_SDI_INFO . " AS II LEFT OUTER JOIN " . T_THEME . " as T on II.sdii_theme=T.theme_id
LEFT OUTER JOIN " . T_SDI_PROVIDER . " as IP on II.sdii_provider=IP.sdip_id";
$requete.= " WHERE II.sdii_statut<>'E';";
$requete.= " WHERE T.theme_name LIKE'". $valueparam. "'";
$requete.= "AND II.sdii_statut<>'E';";
$requete.= " WHERE II.sdii_statut='". $valueparam. "'";
$requete.= " WHERE II.sdii_statut<>'E'
ORDER BY II.sdii_theme DESC
$requete = "SELECT II.sdii_id, II.sdii_name, II.sdii_description, II.sdii_comment, T.theme_name, II.sdii_theme,
II.sdii_range, II.sdii_goal, II.sdii_consulting, II.sdii_unit, II.sdii_max_value, II.sdii_min_value,
II.sdii_threshold_value, II.sdii_threshold_relative, II.sdii_frequency, II.sdii_provider, IP.sdip_name, II.sdii_evaluation, II.sdii_reglementation,
to_char(II.sdii_date_crea, '". toStringSqlDate('long'). "' ) AS date_c, II.sdii_statut
FROM ". T_SDI_INFO . " AS II LEFT OUTER JOIN " . T_THEME . " as T on II.sdii_theme=T.theme_id
LEFT OUTER JOIN " . T_SDI_PROVIDER . " as IP on II.sdii_provider=IP.sdip_id";
$requete.= " WHERE II.sdii_id=". $id. ";";
$sdi_object_func= new sdi;
$data= $sdi_object_func -> _GetKeysSdi($id_idd,$sql_object);
$ID= $data[0]['sdii_reglementation'];
$requete = "SELECT sdir_id, sdir_title, sdir_body, sdir_referer_uri, sdir_mask_uri,
FROM ". T_SDI_RULES . " WHERE sdir_id=". $ID. ";";
$sdi_object_func= new sdi;
$data= $sdi_object_func -> _GetKeysSdi($id_idd,$sql_object);
$ID= $data[0]['sdii_provider'];
$requete = "SELECT sdip_id, sdip_name, sdip_service, sdip_description, sdip_incharge,
sdip_address, sdip_phone, sdip_fax, sdip_email, to_char(sdip_date_crea, '". toStringSqlDate('long'). "' ) AS date_c, to_char(sdip_last_modify, '". toStringSqlDate('long'). "' ) AS date_m
FROM ". T_SDI_PROVIDER . " WHERE sdip_id=". $ID. ";";
$sdi_object_func= new sdi;
$data= $sdi_object_func -> _GetKeysSdi($id_idd,$sql_object);
$ID= $data[0]['sdii_evaluation'];
$requete = "SELECT sdie_id, sdie_scale_compare, sdie_fiability, sdie_accessibility, sdie_lisibility,
sdie_relevance, sdie_global_performance, to_char(sdie_date_crea, '". toStringSqlDate('long'). "' ) AS date_c, to_char(sdie_last_modify, '". toStringSqlDate('long'). "' ) AS date_m
FROM ". T_SDI_EVAL . " WHERE sdie_id=". $ID. ";";
|