当前位置: 首页>>代码示例>>PHP>>正文


PHP Lib_myLog函数代码示例

本文整理汇总了PHP中Lib_myLog函数的典型用法代码示例。如果您正苦于以下问题:PHP Lib_myLog函数的具体用法?PHP Lib_myLog怎么用?PHP Lib_myLog使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了Lib_myLog函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ExecActions

/**
 Cette fonction est un grand switch qui sert à renvoyer vers une action donnée en paramètre. 
 @param Action : Action à accomplir…
*/
function ExecActions($action)
{
    /*=============*/
    Lib_myLog("action: ", $action);
    // On recupere la configuration issue de conf.php
    global $lang, $taille_ecran, $MSG, $secure, $cle, $config;
    // On recupere tous les objet contenant les donnees
    global $data_in, $data_out, $data_srv, $session;
    // Initialization des variables
    global $message, $article;
    switch ($action) {
        /**
         * - Cas Site_Accueil :
         * . 
         *      Le cas (par défaut) Site_Accueil recherche tous les articles, s'occupent des critères de tri, et renvoie vers la vue (page) Site_Accueil.php....
         */
        case "Site_Accueil":
            /*=============*/
            Lib_myLog("Recuperation de l'arborescence");
            $data_out['liste_fils'] = Arbo_construire();
            $data_out['page'] = 'annonces_gestion.php';
            break;
        default:
            ExecActions('Site_Accueil');
            break;
    }
}
开发者ID:xVirusproj3ct,项目名称:site_web_phf,代码行数:31,代码来源:actions.php

示例2: Accueil

function Accueil($data_in = array())
{
    Lib_myLog("action: " . __FUNCTION__);
    foreach ($GLOBALS['tab_globals'] as $global) {
        global ${$global};
    }
    $data_out['page'] = "page_accueil.php";
}
开发者ID:xVirusproj3ct,项目名称:site_web_phf,代码行数:8,代码来源:actions.php

示例3: Site_Accueil

/**
* - Cas Site_Accueil :
* . 
*      Le cas (par défaut) Site_Accueil recherche tous les articles, s'occupent des critères de tri, et renvoie vers la vue (page) Site_Accueil.php....
*/
function Site_Accueil($data_in = array())
{
    Lib_myLog("action: " . $data_in['action']);
    foreach ($GLOBALS['tab_globals'] as $global) {
        global ${$global};
    }
    Lib_myLog("IN: ", $data_in);
    Lib_myLog("FILE: ", __FILE__);
    /*=============*/
    Lib_myLog("Recuperation de l'arborescence");
    $data_out['liste_fils'] = Arbo_construire();
    $data_out['page'] = 'accueil.php';
}
开发者ID:xVirusproj3ct,项目名称:site_web_phf,代码行数:18,代码来源:actions.php

示例4: Formulaires_CSV

function Formulaires_CSV($data_in = array())
{
    Lib_myLog("action: " . $data_in['action']);
    foreach ($GLOBALS['tab_globals'] as $global) {
        global ${$global};
    }
    Lib_myLog("IN: ", $data_in);
    Lib_myLog("FILE: ", __FILE__);
    /*=============*/
    Lib_myLog("Impression de la liste en CSV");
    $time = time();
    $filename = $data_in['form'] . "_" . $time . ".xls";
    $file = '../dilasys/tmp/' . $filename;
    // le fichier doit déjà exister
    if (!($myfile = fopen($file, "w"))) {
        /*=============*/
        Lib_myLog("Erreur lors de la creation du fichier {$file}");
        exit;
    } else {
        /*=============*/
        Lib_myLog("Creation du fichier {$file}");
    }
    $intitules = array("Nom", "Prénom", "Email", "Donneé1", "Donnée2");
    foreach ($intitules as $intitule) {
        $header .= $intitule . "\t ";
    }
    $header .= "\n";
    fputs($myfile, $header);
    $body = '';
    $liste_tmp = Forms_chercher('*');
    foreach ($liste_tmp as $tmp) {
        $body .= utf8_decode($tmp['nom']) . "\t ";
        $body .= utf8_decode($tmp['prenom']) . "\t ";
        for ($id = 1; $id <= 8; $id++) {
            $body .= str_replace(CHR(13) . CHR(10), " ", utf8_decode($tmp['form' . $id])) . "\t ";
        }
        $body .= "\n";
    }
    fputs($myfile, $body);
    fclose($myfile);
    //on ferme le fichier
    $size = filesize($file);
    header("Content-Type: application/octet-stream");
    header("Content-Length: {$size}");
    header("Content-Disposition: attachment; filename=" . $filename);
    header("Content-Transfer-Encoding: binary");
    $fh = fopen($file, "r");
    fpassthru($fh);
}
开发者ID:xVirusproj3ct,项目名称:site_web_phf,代码行数:49,代码来源:actions_formulaires.php

示例5: ExecActions

function ExecActions($action)
{
    /*=============*/
    Lib_myLog("action: ", $action);
    // On recupere la configuration issue de conf.php
    global $lang, $taille_ecran, $MSG, $secure, $cle, $config;
    // On recupere tous les objet contenant les donnees
    global $data_in, $data_out, $data_srv, $session;
    // Initialization des variables
    global $message, $fiche;
    //Cles tri
    global $cle1, $cle2;
    // Si on a un data_in['lang'] qui arrive, on positionne la langue dans la session
    if (isset($data_in['lang'])) {
        $_SESSION['lang'] = $data_in['lang'];
    }
    // Récupération de la langue à partir de la session
    $lang = isset($_SESSION['lang']) ? $_SESSION['lang'] : 'fr';
    switch ($action) {
        //Fusion des news et des articles
        case "NewsArticles_Fusion":
            //On renomme l'ancienne table en articles_date
            //On cree la nouvelle table Articles avec le CREATE TABLE de article.inc.php
            //SQL : On migre les infos de l'ancienne table des articles dans la nouvelle
            /*
            			 INSERT INTO ofj3_articles (id_article, id_newsletter, code, lang, position_une, texte, etat, texte_intro, titre, meta_titre, meta_description, 
            			  meta_mots_clefs, meta_url, titre_canonize, url_vignette, url_image2, categorie, titre_data1, data1, titre_data2, data2, titre_data3, data3, 
            			  titre_data4, data4, titre_data5, data5, titre_data6, data6, date_add, date_upd, info_article) 
            			  SELECT id_article, id_newsletter, code, lang, position_une, texte, etat, texte_intro, titre, meta_titre, meta_description, 
            			  meta_mots_clefs, meta_url, titre_canonize, url_vignette, url_image2, categorie, titre_data1, data1, titre_data2, data2, titre_data3, data3,
            			  titre_data4, data4, titre_data5, data5, titre_data6, data6, date_add, date_upd, info_article FROM ofj3_articles_20140616 WHERE 1 
            */
            //Tous les champs des news existent dans la nouvelle table articles
            //SQL : On migre les infos des news dans la table articles
            /*
             INSERT INTO ofj3_articles (id_new, id_newsletter, code_news, code, lang, etat, position, titre, contenu, texte_intro, image_intro, ofj3_articles.date, 
             titre_data1, data1, titre_data2, data2, titre_data3, data3, titre_data4, data4, titre_data5, data5, titre_data6, data6, 
             url_image, url_image2, date_add, date_upd, info_article) 
             SELECT id_new, id_newsletter, code_news, code, lang, etat, position, titre, contenu, texte_intro, image_intro, ofj3_new.date, 
             titre_data1, data1, titre_data2, data2, titre_data3, data3, titre_data4, data4, titre_data5, data5, titre_data6, data6, 
             url_image, url_image2, date_add, date_upd, info_new FROM ofj3_new WHERE 1
            */
            break;
        default:
            ExecActions("Default");
            break;
    }
}
开发者ID:xVirusproj3ct,项目名称:site_web_phf,代码行数:48,代码来源:actions_maj.php

示例6: Articles_chercher


//.........这里部分代码省略.........
         foreach ($args['tab_codes'] as $code) {
             $nb++;
             $condition .= " code LIKE '" . $code . "' ";
             if ($nb < count($args['tab_codes'])) {
                 $condition .= "OR";
             } else {
                 $condition .= ")";
             }
         }
     }
     if (isset($args['tab_codes_news']) && $args['tab_codes_news'] != "*") {
         $condition .= " AND (";
         $nb = 0;
         foreach ($args['tab_codes_news'] as $code) {
             $nb++;
             $condition .= " code_news LIKE '" . $code . "' ";
             if ($nb < count($args['tab_codes_news'])) {
                 $condition .= "OR";
             } else {
                 $condition .= ")";
             }
         }
     }
     if (!isset($args['etat'])) {
         $condition .= " AND etat != 'supprime' ";
     }
     if (isset($args['order_by']) && $args['order_by'] != "*") {
         $condition .= " ORDER BY " . $args['order_by'] . " ASC ";
     } else {
         $condition .= " ORDER BY id_article ASC ";
     }
     $sql .= $condition;
     /*=============*/
     Lib_myLog("SQL: {$sql}");
     $result = Sql_query($sql);
     if ($result && Sql_errorCode($result) === "00000") {
         while ($row = Sql_fetch($result)) {
             $id = $row['id_article'];
             $tab_result[$id]["id_article"] = $id;
             $tab_result[$id]["code"] = $row['code'];
             $tab_result[$id]["lang"] = $row['lang'];
             $tab_result[$id]["position_une"] = $row['position_une'];
             $tab_result[$id]["position"] = $row['position'];
             $tab_result[$id]["code_news"] = $row['code_news'];
             $tab_result[$id]["libelle"] = Sql_prepareTexteAffichage($row['libelle']);
             $tab_result[$id]["contenu"] = Sql_prepareTexteAffichage($row['contenu']);
             $tab_result[$id]["date"] = $row['date'];
             $tab_result[$id]["texte"] = Sql_prepareTexteAffichage($row['contenu']);
             $tab_result[$id]["etat"] = $row['etat'];
             $tab_result[$id]["image_intro"] = Sql_prepareTexteAffichage($row['image_intro']);
             $tab_result[$id]["texte_intro"] = Sql_prepareTexteAffichage($row['texte_intro']);
             $tab_result[$id]["titre"] = Sql_prepareTexteAffichage($row['titre']);
             $tab_result[$id]["titre_page"] = Sql_prepareTexteAffichage($row['titre_page']);
             $tab_result[$id]["meta_titre"] = Sql_prepareTexteAffichage($row['meta_titre']);
             $tab_result[$id]["meta_description"] = Sql_prepareTexteAffichage($row['meta_description']);
             $tab_result[$id]["meta_mots_clefs"] = Sql_prepareTexteAffichage($row['meta_mots_clefs']);
             $tab_result[$id]["meta_url"] = Sql_prepareTexteAffichage($row['meta_url']);
             $tab_result[$id]["titre_canonize"] = $row['titre_canonize'];
             $tab_result[$id]["url_vignette"] = $row['url_vignette'];
             $tab_result[$id]["url_image"] = $row['url_image'];
             $tab_result[$id]["url_image2"] = $row['url_image2'];
             $tab_result[$id]["categorie"] = $row['categorie'];
             $tab_result[$id]["titre_data1"] = Sql_prepareTexteAffichage($row['titre_data1']);
             $tab_result[$id]["data1"] = Sql_prepareTexteAffichage($row['data1']);
             $tab_result[$id]["titre_data2"] = Sql_prepareTexteAffichage($row['titre_data2']);
             $tab_result[$id]["data2"] = Sql_prepareTexteAffichage($row['data2']);
开发者ID:xVirusproj3ct,项目名称:site_web_phf,代码行数:67,代码来源:article.inc.php

示例7: Selections_chercher

 /**
 Retourne un tableau de selections correspondant aux champs du tableau en argument.
 @param $args
 */
 function Selections_chercher($args)
 {
     $tab_result = array();
     $sql = " SELECT * \n\t\t\t\tFROM " . $GLOBALS['prefix'] . "facture_selections\n\t\t\t\tWHERE 1";
     if (!isset($args['id_selection']) && !isset($args['id_facture']) && !isset($args['type_selection']) && !isset($args['position']) && !isset($args['order_by']) && !isset($args['tab_ids_selections'])) {
         return $tab_result;
     }
     $condition = "";
     if (isset($args['id_selection']) && $args['id_selection'] != "*") {
         $condition .= " AND id_selection = " . $args['id_selection'] . " ";
     }
     if (isset($args['id_facture']) && $args['id_facture'] != "*") {
         $condition .= " AND id_facture = " . $args['id_facture'] . " ";
     }
     if (isset($args['position']) && $args['position'] != "*") {
         $condition .= " AND position = " . $args['position'] . " ";
     }
     if (isset($args['type_selection']) && $args['type_selection'] != "*") {
         $condition .= " AND type_selection LIKE '" . $args['type_selection'] . "' ";
     }
     if (isset($args['tab_ids_selections']) && $args['tab_ids_selections'] != "*") {
         $ids = implode(",", $args['tab_ids_selections']);
         $condition .= " AND id_selection IN (0" . $ids . ") ";
     }
     $sql .= $condition;
     if (isset($args['order_by']) && !isset($args['asc_desc'])) {
         $sql .= " ORDER BY " . $args['order_by'] . " ASC";
     }
     if (isset($args['order_by']) && isset($args['asc_desc'])) {
         $sql .= " ORDER BY " . $args['order_by'] . " " . $args['asc_desc'];
     }
     if (isset($args['limit']) && !isset($args['start'])) {
         $sql .= " LIMIT " . $args['limit'];
     }
     if (isset($args['limit']) && isset($args['start'])) {
         $sql .= " LIMIT " . $args['start'] . "," . $args['limit'];
     }
     /*=============*/
     Lib_myLog("SQL: {$sql}");
     $result = mysql_query($sql);
     if ($result) {
         while ($row = mysql_fetch_array($result)) {
             $id = $row['id_selection'];
             $tab_result[$id]["id_selection"] = $id;
             $tab_result[$id]["position"] = $row['position'];
             $tab_result[$id]["id_facture"] = $row['id_facture'];
             $tab_result[$id]["type_selection"] = $row['type_selection'];
             $tab_result[$id]["designation"] = Lib_prepareTexteAffichage($row['designation']);
             $tab_result[$id]["description"] = Lib_prepareTexteAffichage($row['description']);
             $tab_result[$id]["pu_ht"] = $row['pu_ht'];
             $tab_result[$id]["remise"] = $row['remise'];
             $tab_result[$id]["quantite"] = $row['quantite'];
             $tab_result[$id]["tva"] = $row['tva'];
             $tab_result[$id]["date_add"] = $row['date_add'];
             $tab_result[$id]["date_upd"] = $row['date_upd'];
             $tab_result[$id]["info_selection"] = $row['info_selection'];
         }
     }
     if (count($tab_result) == 1 && ($args['id_selection'] != '' && $args['id_selection'] != '*')) {
         $tab_result = array_pop($tab_result);
     }
     return $tab_result;
 }
开发者ID:xVirusproj3ct,项目名称:site_web_phf,代码行数:67,代码来源:facture_selection.inc.php

示例8: Utilisateurs_chercher

 /**
  Renvoie le nom et l'identifiant des utilisateurs ayant les données passées en argument sous forme d'un tableau
  @param IdUtilisateur
  @param NomUtilisateur
  ...
 */
 function Utilisateurs_chercher($nom_utilisateur = '', $id_utilisateur = '', $id_personne = '', $etat = '', $code_utilisateur = '', $tab_ids = '')
 {
     $tab_result = array();
     $sql = " SELECT *\n\t\t\tFROM " . $GLOBALS['prefix'] . "sys_utilisateurs\n\t\t\tWHERE modifiable = '1'";
     if ($nom_utilisateur == "" && "{$id_utilisateur}" == "" && "{$id_personne}" == "" && $etat == "" && $code_utilisateur == "" && $tab_ids == "") {
         return $tab_result;
     }
     $condition = "";
     if ("{$id_utilisateur}" != "" && "{$id_utilisateur}" != "*") {
         $condition .= " AND id_utilisateur = {$id_utilisateur} ";
     }
     if ($nom_utilisateur != "" && $nom_utilisateur != "*") {
         $condition .= " AND nom_utilisateur = '{$nom_utilisateur}' ";
     }
     if ($etat != "" && $etat != "*") {
         $condition .= " AND etat = '{$etat}' ";
     }
     if ($code_utilisateur != "" && $code_utilisateur != "*") {
         $condition .= " AND code_utilisateur = '{$code_utilisateur}' ";
     }
     if ($tab_ids != "") {
         $ids = implode(",", $tab_ids);
         $condition .= " AND id_utilisateur IN (0" . $ids . ") ";
     }
     $condition .= " ORDER by id_utilisateur ASC";
     $sql .= $condition;
     /*=============*/
     Lib_myLog("SQL: {$sql}");
     $result = Sql_query($sql);
     if ($result && Sql_errorCode($result) === "00000") {
         while ($row = Sql_fetch($result)) {
             $id = $row['id_utilisateur'];
             $tab_result[$id]["id_utilisateur"] = $id;
             $tab_result[$id]["code_utilisateur"] = $row['code_utilisateur'];
             $tab_result[$id]["nom_groupe"] = $row['nom_groupe'];
             $tab_result[$id]["nom_utilisateur"] = $row['nom_utilisateur'];
             $tab_result[$id]["password"] = $row['password'];
             $tab_result[$id]["nb_connect"] = $row['nb_connect'];
             $tab_result[$id]["etat"] = $row['etat'];
             $tab_result[$id]["lang"] = $row['lang'];
             $tab_result[$id]["info_utilisateur"] = $row['info_utilisateur'];
             $tab_result[$id]["modifiable"] = $row['modifiable'];
             $tab_result[$id]["effacable"] = $row['effacable'];
             $tab_result[$id]["type"] = 'utilisateurs';
             // On récupère ensuite les données de la table des droits
             $sql3 = "SELECT *\n\t\t\t\t\tFROM " . $GLOBALS['prefix'] . "sys_utilisateurs_droits\n\t\t\t\t\tWHERE id_utilisateur = {$id}";
             $result3 = Sql_query($sql3);
             if ($result3) {
                 while ($row3 = Sql_fetch($result3)) {
                     $tab_result[$id]['droits'][$row3['champ']] = $row3['droits'];
                 }
             }
         }
     }
     if (count($tab_result) == 1 && ($nom_utilisateur != '' && $nom_utilisateur != '*') || "{$id_utilisateur}" != '' && "{$id_utilisateur}" != '*' || $code_utilisateur != '' && $code_utilisateur != '*') {
         $tab_result = array_pop($tab_result);
     }
     return $tab_result;
 }
开发者ID:xVirusproj3ct,项目名称:site_web_phf,代码行数:65,代码来源:utilisateur.inc.php

示例9: array

//==================================================================================
// Definir ici le nom du module qui sera verifie avec la table des autorisations
//==================================================================================
$module = "";
//==================================================================================
// Si pre.php renvoie 0, on ne doit pas poursuivre l'execution du script!
//==================================================================================
if (!(include '../dilasys/pre.php')) {
    exit;
}
//==================================================================================
// Inclusion librairies n�cessaires aux actions
//==================================================================================
include '../biblio/form.inc.php';
include 'messages.php';
//==================================================================================
// Initialisation des variables globals qui seront utilis�es dans les actions
//==================================================================================
$GLOBALS['tab_globals'] = array('lang', 'taille_ecran', 'MSG', 'secure', 'cle', 'config', 'data_out', 'data_srv', 'session', 'tab_session', 'message', 'article');
// Liste des fichiers contenant les actions
//==================================================================================
include 'actions_formulaires.php';
if (!isset($data_in['action'])) {
    $data_in['action'] = 'Formulaires_Accueil';
}
call_user_func($data_in['action'], $data_in);
/*=============*/
Lib_myLog("OUT: ", $data_out);
include '../dilasys/post.php';
return $data_out;
开发者ID:xVirusproj3ct,项目名称:site_web_phf,代码行数:30,代码来源:actions.php

示例10: Forms_chercher

 /**
  Renvoie le nom, le prénom et l'identifiant des personnes ayant les données passées en argument sous forme d'un tableau
  @param IdForm
  @param NomPersonne
  @param PrenomPersonne
  ...
 */
 function Forms_chercher($id_form = '', $form0 = '')
 {
     $tab_result = array();
     $sql = " SELECT * \n\t\t\tFROM " . $GLOBALS['prefix'] . "forms\n\t\t\tWHERE 1";
     if ("{$id_form}" == "" && $form0 == "") {
         return $tab_result;
     }
     $condition = "";
     if ($id_form != "" && $id_form != "*") {
         $condition .= " AND id_form = {$id_form} ";
     }
     if ($form0 != "" && $form0 != "*") {
         $condition .= " AND form0 = '{$form0}' ";
     }
     $sql .= $condition;
     Lib_myLog("SQL: {$sql}");
     $result = Sql_query($sql);
     if ($result && Sql_errorCode($result) === "00000") {
         while ($row = Sql_fetch($result)) {
             $id = $row['id_form'];
             $tab_result[$id]["id_form"] = $id;
             $tab_result[$id]["nom"] = Sql_prepareTexteAffichage($row['nom']);
             $tab_result[$id]["prenom"] = Sql_prepareTexteAffichage($row['prenom']);
             $tab_result[$id]["date_add"] = $row['date_add'];
             for ($i = 0; $i <= 30; $i++) {
                 $tab_result[$id]['form' . $i] = Sql_prepareTexteAffichage($row['form' . $i]);
             }
         }
     }
     if (count($tab_result) == 1 && ("{$id_form}" != '' && "{$id_form}" != '*')) {
         $tab_result = array_pop($tab_result);
     }
     return $tab_result;
 }
开发者ID:xVirusproj3ct,项目名称:site_web_phf,代码行数:41,代码来源:form.inc.php

示例11: Saveurs_chercher

 /**
 Retourne un tableau de saveurs correspondant aux champs du tableau en argument.
 @param $args
 */
 function Saveurs_chercher($args)
 {
     $count = 0;
     $tab_result = array();
     if (isset($args['count'])) {
         $sql = " SELECT count(*) nb_enregistrements \n\t\t\t\t\tFROM " . $GLOBALS['prefix'] . "saveur\n\t\t\t\t\tWHERE 1";
     } else {
         $sql = " SELECT * \n\t\t\t\t\tFROM " . $GLOBALS['prefix'] . "saveur\n\t\t\t\t\tWHERE 1";
     }
     if (!isset($args['id_saveur']) && !isset($args['pourcent_eth0_dans_arome_pur_1']) && !isset($args['pourcent_eth0_dans_arome_pur_2']) && !isset($args['pourcent_eth0_dans_arome_pur_3']) && !isset($args['pourcent_eth0_dans_arome_pur_4']) && !isset($args['pourcent_eth0_dans_arome_pur_5']) && !isset($args['pourcent_eth0_dans_arome_pur_6']) && !isset($args['pourcent_arome_pur_dans_arome_prod_1']) && !isset($args['pourcent_arome_pur_dans_arome_prod_2']) && !isset($args['pourcent_arome_pur_dans_arome_prod_3']) && !isset($args['pourcent_arome_pur_dans_arome_prod_4']) && !isset($args['pourcent_arome_pur_dans_arome_prod_5']) && !isset($args['pourcent_arome_pur_dans_arome_prod_6']) && !isset($args['pourcent_alcool_prod_dans_arome_prod']) && !isset($args['pourcent_eau_dans_arome_prod']) && !isset($args['pourcent_arome_prod_dans_e_liquide_1']) && !isset($args['pourcent_arome_prod_dans_e_liquide_2']) && !isset($args['pourcent_arome_prod_dans_e_liquide_3']) && !isset($args['etat']) && !isset($args['order_by']) && !isset($args['etat']) && !isset($args['tab_ids_saveurs'])) {
         return $tab_result;
     }
     $condition = "";
     if (isset($args['id_saveur']) && $args['id_saveur'] != "*") {
         $condition .= " AND id_saveur = '" . $args['id_saveur'] . "' ";
     }
     if (isset($args['pourcent_eth0_dans_arome_pur_1']) && $args['pourcent_eth0_dans_arome_pur_1'] != "*") {
         $condition .= " AND pourcent_eth0_dans_arome_pur_1 = '" . strtr($this->pourcent_eth0_dans_arome_pur_1, ",", ".") . "' ";
     }
     if (isset($args['pourcent_eth0_dans_arome_pur_2']) && $args['pourcent_eth0_dans_arome_pur_2'] != "*") {
         $condition .= " AND pourcent_eth0_dans_arome_pur_2 = '" . strtr($this->pourcent_eth0_dans_arome_pur_2, ",", ".") . "' ";
     }
     if (isset($args['pourcent_eth0_dans_arome_pur_3']) && $args['pourcent_eth0_dans_arome_pur_3'] != "*") {
         $condition .= " AND pourcent_eth0_dans_arome_pur_3 = '" . strtr($this->pourcent_eth0_dans_arome_pur_3, ",", ".") . "' ";
     }
     if (isset($args['pourcent_eth0_dans_arome_pur_4']) && $args['pourcent_eth0_dans_arome_pur_4'] != "*") {
         $condition .= " AND pourcent_eth0_dans_arome_pur_4 = '" . strtr($this->pourcent_eth0_dans_arome_pur_4, ",", ".") . "' ";
     }
     if (isset($args['pourcent_eth0_dans_arome_pur_5']) && $args['pourcent_eth0_dans_arome_pur_5'] != "*") {
         $condition .= " AND pourcent_eth0_dans_arome_pur_5 = '" . strtr($this->pourcent_eth0_dans_arome_pur_5, ",", ".") . "' ";
     }
     if (isset($args['pourcent_eth0_dans_arome_pur_6']) && $args['pourcent_eth0_dans_arome_pur_6'] != "*") {
         $condition .= " AND pourcent_eth0_dans_arome_pur_6 = '" . strtr($this->pourcent_eth0_dans_arome_pur_6, ",", ".") . "' ";
     }
     if (isset($args['pourcent_arome_pur_dans_arome_prod_1']) && $args['pourcent_arome_pur_dans_arome_prod_1'] != "*") {
         $condition .= " AND pourcent_arome_pur_dans_arome_prod_1 = '" . strtr($this->pourcent_arome_pur_dans_arome_prod_1, ",", ".") . "' ";
     }
     if (isset($args['pourcent_arome_pur_dans_arome_prod_2']) && $args['pourcent_arome_pur_dans_arome_prod_2'] != "*") {
         $condition .= " AND pourcent_arome_pur_dans_arome_prod_2 = '" . strtr($this->pourcent_arome_pur_dans_arome_prod_2, ",", ".") . "' ";
     }
     if (isset($args['pourcent_arome_pur_dans_arome_prod_3']) && $args['pourcent_arome_pur_dans_arome_prod_3'] != "*") {
         $condition .= " AND pourcent_arome_pur_dans_arome_prod_3 = '" . strtr($this->pourcent_arome_pur_dans_arome_prod_3, ",", ".") . "' ";
     }
     if (isset($args['pourcent_arome_pur_dans_arome_prod_4']) && $args['pourcent_arome_pur_dans_arome_prod_4'] != "*") {
         $condition .= " AND pourcent_arome_pur_dans_arome_prod_4 = '" . strtr($this->pourcent_arome_pur_dans_arome_prod_4, ",", ".") . "' ";
     }
     if (isset($args['pourcent_arome_pur_dans_arome_prod_5']) && $args['pourcent_arome_pur_dans_arome_prod_5'] != "*") {
         $condition .= " AND pourcent_arome_pur_dans_arome_prod_5 = '" . strtr($this->pourcent_arome_pur_dans_arome_prod_5, ",", ".") . "' ";
     }
     if (isset($args['pourcent_arome_pur_dans_arome_prod_6']) && $args['pourcent_arome_pur_dans_arome_prod_6'] != "*") {
         $condition .= " AND pourcent_arome_pur_dans_arome_prod_6 = '" . strtr($this->pourcent_arome_pur_dans_arome_prod_6, ",", ".") . "' ";
     }
     if (isset($args['pourcent_alcool_prod_dans_arome_prod']) && $args['pourcent_alcool_prod_dans_arome_prod'] != "*") {
         $condition .= " AND pourcent_alcool_prod_dans_arome_prod = '" . strtr($this->pourcent_alcool_prod_dans_arome_prod, ",", ".") . "' ";
     }
     if (isset($args['pourcent_eau_dans_arome_prod']) && $args['pourcent_eau_dans_arome_prod'] != "*") {
         $condition .= " AND pourcent_eau_dans_arome_prod = '" . strtr($this->pourcent_eau_dans_arome_prod, ",", ".") . "' ";
     }
     if (isset($args['pourcent_arome_prod_dans_e_liquide_1']) && $args['pourcent_arome_prod_dans_e_liquide_1'] != "*") {
         $condition .= " AND pourcent_arome_prod_dans_e_liquide_1 = '" . strtr($this->pourcent_arome_prod_dans_e_liquide_1, ",", ".") . "' ";
     }
     if (isset($args['pourcent_arome_prod_dans_e_liquide_2']) && $args['pourcent_arome_prod_dans_e_liquide_2'] != "*") {
         $condition .= " AND pourcent_arome_prod_dans_e_liquide_2 = '" . strtr($this->pourcent_arome_prod_dans_e_liquide_2, ",", ".") . "' ";
     }
     if (isset($args['pourcent_arome_prod_dans_e_liquide_3']) && $args['pourcent_arome_prod_dans_e_liquide_3'] != "*") {
         $condition .= " AND pourcent_arome_prod_dans_e_liquide_3 = '" . strtr($this->pourcent_arome_prod_dans_e_liquide_3, ",", ".") . "' ";
     }
     if (isset($args['etat']) && $args['etat'] != "*") {
         $condition .= " AND etat = '" . $args['etat'] . "' ";
     }
     if (isset($args['tab_ids_saveurs']) && $args['tab_ids_saveurs'] != "*") {
         $ids = implode(",", $args['tab_ids_saveurs']);
         $condition .= " AND id_saveur IN (0" . $ids . ") ";
     }
     if (!isset($args['etat'])) {
         $condition .= " AND etat != 'supprime' ";
     }
     $sql .= $condition;
     if (isset($args['order_by']) && !isset($args['asc_desc'])) {
         $sql .= " ORDER BY " . $args['order_by'] . " ASC";
     }
     if (isset($args['order_by']) && isset($args['asc_desc'])) {
         $sql .= " ORDER BY " . $args['order_by'] . " " . $args['asc_desc'];
     }
     if (isset($args['limit']) && !isset($args['start'])) {
         $sql .= " LIMIT " . $args['limit'];
     }
     if (isset($args['limit']) && isset($args['start'])) {
         $sql .= " LIMIT " . $args['start'] . "," . $args['limit'];
     }
     /*=============*/
     Lib_myLog("SQL: {$sql}");
     $result = Sql_query($sql);
     if (isset($args['count'])) {
         if ($result && Sql_errorCode($result) === "00000") {
             $row = Sql_fetch($result);
//.........这里部分代码省略.........
开发者ID:xVirusproj3ct,项目名称:site_web_phf,代码行数:101,代码来源:saveur.inc.php

示例12: AJAX_ModifUtilisateur

function AJAX_ModifUtilisateur($data_in = array())
{
    Lib_myLog("action: " . $data_in['action']);
    foreach ($GLOBALS['tab_globals'] as $global) {
        global ${$global};
    }
    Lib_myLog("IN: ", $data_in);
    Lib_myLog("FILE: ", __FILE__);
    $utilisateur = Utilisateur_recuperer($data_in['id_utilisateur']);
    $data_out = $utilisateur->getTab();
    /*=============*/
    Lib_myLog("Recuperation de la liste des groupes configures");
    $data_out['tab_groupes'] = Groupes_chercher('*');
    $data_out['page'] = 'AJAX_ModifUtilisateur.php';
}
开发者ID:xVirusproj3ct,项目名称:site_web_phf,代码行数:15,代码来源:actions_systeme.php

示例13: SiteDynamique_Vignette_DEL

function SiteDynamique_Vignette_DEL($data_in = array())
{
    Lib_myLog("action: " . $data_in['action']);
    foreach ($GLOBALS['tab_globals'] as $global) {
        global ${$global};
    }
    Lib_myLog("IN: ", $data_in);
    Lib_myLog("FILE: ", __FILE__);
    /*=============*/
    Lib_myLog("Suppression de la vignette de l'article");
    $article = Article_recuperer($data_in['id_article']);
    $vignette = $article->url_vignette;
    $article->url_vignette = '';
    $article->UPD();
    /*=============*/
    Lib_myLog("Suppression physique de {$vignette}");
    unlink('../../img_ftp/' . $vignette);
    $data_out['message_ok'] = $MSG['fr']['%%UPD%%'];
    // On remet à 0 le fichier contenant le "cache" des articles pour l'affichage des blocs
    Lib_writeCache('', "ARTICLES");
    $data_in['action'] = 'SiteDynamique_Apercu';
    call_user_func('SiteDynamique_Apercu', $data_in);
}
开发者ID:xVirusproj3ct,项目名称:site_web_phf,代码行数:23,代码来源:actions_site_dynamique.php

示例14: AJAX_Docs_ModifProjet

function AJAX_Docs_ModifProjet($data_in = array())
{
    Lib_myLog("action: " . $data_in['action']);
    foreach ($GLOBALS['tab_globals'] as $global) {
        global ${$global};
    }
    Lib_myLog("IN: ", $data_in);
    Lib_myLog("FILE: ", __FILE__);
    /*=============*/
    Lib_myLog("Recuperation du pere");
    $arg_projet['id_projet'] = $data_in['id_projet'];
    $data_out = Projets_chercher($arg_projet);
    $data_out['page'] = 'AJAX_ModifProjet.php';
}
开发者ID:xVirusproj3ct,项目名称:site_web_phf,代码行数:14,代码来源:actions_docs.php

示例15: Memos_DEL

function Memos_DEL($data_in = array())
{
    Lib_myLog("action: " . $data_in['action']);
    foreach ($GLOBALS['tab_globals'] as $global) {
        global ${$global};
    }
    Lib_myLog("IN: ", $data_in);
    Lib_myLog("FILE: ", __FILE__);
    /*=============*/
    Lib_myLog("Suppression du memo");
    $memo_del = FicheMemo_recuperer($data_in['id_memo']);
    $memo_del->DEL();
    $data_in['id_fiche'] = $memo_del->id_fiche;
    $data_in['action'] = 'POPUP_Memos_UPD';
    call_user_func('POPUP_Memos_UPD', $data_in);
}
开发者ID:xVirusproj3ct,项目名称:site_web_phf,代码行数:16,代码来源:actions_fiches.php


注:本文中的Lib_myLog函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。