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


PHP getpost_variable函数代码示例

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


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

示例1: exportVCalendarModule

 /**
  * Encapsule le comportement du module de l'export VCALENDAR
  *
  * @param string $session
  *
  * @return void
  * @access public
  * @static
  */
 public static function exportVCalendarModule($session)
 {
     /*** initialisation des variables ***/
     $session = session_id();
     /************************************/
     /*************************************/
     // recup des parametres reçus :
     // SERVER
     $PHP_SELF = $_SERVER['PHP_SELF'];
     // GET	/ POST
     $action = getpost_variable('action');
     $user_login = getpost_variable('user_login');
     $date_debut = getpost_variable('date_debut');
     $date_fin = getpost_variable('date_fin');
     $choix_format = getpost_variable('choix_format');
     /*************************************/
     \export\Fonctions::form_saisie($user_login, $date_debut, $date_fin);
 }
开发者ID:TexGG,项目名称:Libertempo,代码行数:27,代码来源:Fonctions.php

示例2: isset

require_once ROOT_PATH . 'define.php';
$session = isset($_GET['session']) ? $_GET['session'] : (isset($_POST['session']) ? $_POST['session'] : session_id());
include_once ROOT_PATH . 'fonctions_conges.php';
include_once INCLUDE_PATH . 'fonction.php';
include_once INCLUDE_PATH . 'session.php';
/*** initialisation des variables ***/
$session = session_id();
/************************************/
/*************************************/
// recup des parametres reçus :
// SERVER
$PHP_SELF = $_SERVER['PHP_SELF'];
// GET	/ POST
$action = getpost_variable('action');
$new_mois = getpost_variable('new_mois', date("m"));
$new_year = getpost_variable('new_year', date("Y"));
/*************************************/
form_saisie($action, $new_mois, $new_year);
/*******************************************************************************/
/**********  FONCTIONS  ********************************************************/
function form_saisie($action, $new_mois, $new_year)
{
    $PHP_SELF = $_SERVER['PHP_SELF'];
    $session = session_id();
    header_popup();
    if ($action == "imprim") {
        ouvre_calendrier($new_mois, $new_year);
    }
    echo "<center>\n";
    echo "<h3>" . _('imprim_calendrier_titre') . "</h3>\n";
    echo "<form action=\"{$PHP_SELF}?session={$session}\" method=\"POST\">\n";
开发者ID:TexGG,项目名称:Libertempo,代码行数:31,代码来源:imprim_calendrier.php

示例3: defined

defined('_PHP_CONGES') or die('Restricted access');
$session = isset($_GET['session']) ? $_GET['session'] : (isset($_POST['session']) ? $_POST['session'] : session_id());
include ROOT_PATH . 'fonctions_conges.php';
include INCLUDE_PATH . 'fonction.php';
include INCLUDE_PATH . 'session.php';
include ROOT_PATH . 'fonctions_calcul.php';
$DEBUG = FALSE;
//$DEBUG = TRUE ;
// verif des droits du user à afficher la page
verif_droits_user($session, 'is_admin', $DEBUG);
/*************************************/
// recup des parametres reçus :
// SERVER
$PHP_SELF = $_SERVER['PHP_SELF'];
// GET / POST
$onglet = getpost_variable('onglet', 'admin-users');
/*********************************/
/*   COMPOSITION DES ONGLETS...  */
/*********************************/
$onglets = array();
$onglets['admin-users'] = _('admin_onglet_gestion_user');
$onglets['ajout-user'] = _('admin_onglet_add_user');
if ($_SESSION['config']['gestion_groupes']) {
    $onglets['admin-group'] = _('admin_onglet_gestion_groupe');
    $onglets['admin-group-users'] = _('admin_onglet_groupe_user');
    if (!$_SESSION['config']['responsable_virtuel']) {
        $onglets['admin-group-responsables'] = _('admin_onglet_groupe_resp');
    }
}
if (!isset($onglets[$onglet]) && !in_array($onglet, array('chg_pwd_user', 'modif_group', 'modif_user', 'suppr_group', 'suppr_user'))) {
    $onglet = 'admin-users';
开发者ID:coz787,项目名称:Libertempo,代码行数:31,代码来源:admin_index.php

示例4: define

Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*************************************************************************************************/
define('ROOT_PATH', '../');
require_once ROOT_PATH . 'define.php';
$session = isset($_GET['session']) ? $_GET['session'] : (isset($_POST['session']) ? $_POST['session'] : session_id());
include_once ROOT_PATH . 'fonctions_conges.php';
include_once INCLUDE_PATH . 'fonction.php';
include_once INCLUDE_PATH . 'session.php';
include_once ROOT_PATH . 'fonctions_calcul.php';
if ($_SESSION['config']['where_to_find_user_email'] == "ldap") {
    include CONFIG_PATH . 'config_ldap.php';
}
// SERVER
$PHP_SELF = $_SERVER['PHP_SELF'];
// GET / POST
$onglet = getpost_variable('onglet');
/*********************************/
/*   COMPOSITION DES ONGLETS...  */
/*********************************/
$onglets = array();
if ($_SESSION['config']['user_saisie_demande'] || $_SESSION['config']['user_saisie_mission']) {
    $onglets['nouvelle_absence'] = _('divers_nouvelle_absence');
}
if ($_SESSION['config']['user_echange_rtt']) {
    $onglets['echange_jour_absence'] = _('user_onglet_echange_abs');
}
if ($_SESSION['config']['user_saisie_demande']) {
    $onglets['demandes_en_cours'] = _('user_onglet_demandes');
}
$onglets['historique_conges'] = _('user_onglet_historique_conges');
$onglets['historique_autres_absences'] = _('user_onglet_historique_abs');
开发者ID:TexGG,项目名称:Libertempo,代码行数:31,代码来源:user_index.php

示例5: defined

Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, États-Unis.
*************************************************************************************************
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 the Free Software Foundation; either
version 2 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*************************************************************************************************/
defined('_PHP_CONGES') or die('Restricted access');
//var pour resp_traite_demande_all.php
$tab_bt_radio = getpost_variable('tab_bt_radio');
$tab_text_refus = getpost_variable('tab_text_refus');
// titre
echo '<h2>' . _('resp_traite_demandes_titre') . '</h2>';
// si le tableau des bouton radio des demandes est vide , on affiche les demandes en cours
if ($tab_bt_radio == '') {
    affiche_all_demandes_en_cours($tab_type_cong, $DEBUG);
} else {
    traite_all_demande_en_cours($tab_bt_radio, $tab_text_refus, $DEBUG);
    redirect(ROOT_PATH . 'hr/hr_index.php?session=' . $session . '&onglet=' . $onglet, false);
    exit;
}
/********************************************/
/*   FONCTIONS   */
function affiche_all_demandes_en_cours($tab_type_conges, $DEBUG = FALSE)
{
    $PHP_SELF = $_SERVER['PHP_SELF'];
开发者ID:kakargias,项目名称:php-conges,代码行数:31,代码来源:hr_traitement_demandes.php

示例6: getpost_variable

    $tab_new_user[0]['is_hr'] = getpost_variable('new_is_hr');
    $tab_new_user[0]['see_all'] = getpost_variable('new_see_all');
    if ($_SESSION['config']['how_to_connect_user'] == "dbconges") {
        $tab_new_user[0]['password1'] = getpost_variable('new_password1');
        $tab_new_user[0]['password2'] = getpost_variable('new_password2');
    }
    $tab_new_user[0]['email'] = getpost_variable('new_email');
    $tab_new_jours_an = getpost_variable('tab_new_jours_an');
    $tab_new_solde = getpost_variable('tab_new_solde');
    $tab_checkbox_sem_imp = getpost_variable('tab_checkbox_sem_imp');
    $tab_checkbox_sem_p = getpost_variable('tab_checkbox_sem_p');
    $tab_new_user[0]['new_jour'] = getpost_variable('new_jour');
    $tab_new_user[0]['new_mois'] = getpost_variable('new_mois');
    $tab_new_user[0]['new_year'] = getpost_variable('new_year');
}
$checkbox_user_groups = getpost_variable('checkbox_user_groups');
/* FIN de la recup des parametres    */
/*************************************/
if ($saisie_user == "ok") {
    if ($_SESSION['config']['export_users_from_ldap']) {
        foreach ($tab_login as $login) {
            ajout_user($tab_new_user[$login], $tab_checkbox_sem_imp, $tab_checkbox_sem_p, $tab_new_jours_an, $tab_new_solde, $checkbox_user_groups, $DEBUG);
        }
    } else {
        ajout_user($tab_new_user[0], $tab_checkbox_sem_imp, $tab_checkbox_sem_p, $tab_new_jours_an, $tab_new_solde, $checkbox_user_groups, $DEBUG);
    }
} else {
    affiche_formulaire_ajout_user($tab_new_user[0], $tab_new_jours_an, $tab_new_solde, $onglet, $DEBUG);
}
/*********************************************************************************/
/*  FONCTIONS   */
开发者ID:HadoDokis,项目名称:Libertempo,代码行数:31,代码来源:admin_ajout-user.php

示例7: verif_droits_user

// verif des droits du user à afficher la page
verif_droits_user($session, "is_admin", $DEBUG);
if ($DEBUG) {
    echo "SESSION = ";
    print_r($_SESSION);
    echo "<br>\n";
}
/*** initialisation des variables ***/
/************************************/
/*************************************/
// recup des parametres reçus :
// SERVER
$PHP_SELF = $_SERVER['PHP_SELF'];
// GET / POST
$action = getpost_variable('action', "");
$login_par = getpost_variable('login_par', "");
/*************************************/
header_popup('CONGES : Configuration');
if ($action == "suppr_logs") {
    confirmer_vider_table_logs($session, $DEBUG);
} elseif ($action == "commit_suppr_logs") {
    commit_vider_table_logs($session, $DEBUG);
} else {
    affichage($login_par, $session, $DEBUG);
}
bottom();
/**************************************************************************************/
/**********  FONCTIONS  ***************************************************************/
function affichage($login_par, $session, $DEBUG = FALSE)
{
    $PHP_SELF = $_SERVER['PHP_SELF'];
开发者ID:kakargias,项目名称:php-conges,代码行数:31,代码来源:config_logs.php

示例8: ajoutUtilisateurModule

 /**
  * Encapsule le comportement du module d'ajout d'utilisateurs
  *
  * @param string $onglet
  *
  * @return void
  * @access public
  * @static
  */
 public static function ajoutUtilisateurModule($onglet)
 {
     $saisie_user = getpost_variable('saisie_user');
     $return = '';
     // si on recupere les users dans ldap et qu'on vient d'en créer un depuis la liste déroulante
     if ($_SESSION['config']['export_users_from_ldap'] && isset($_POST['new_ldap_user'])) {
         $index = 0;
         // On lance une boucle pour selectionner tous les items
         // traitements : $login contient les valeurs successives
         foreach ($_POST['new_ldap_user'] as $login) {
             $tab_login[$index] = $login;
             $index++;
             // cnx à l'annuaire ldap :
             $ds = ldap_connect($_SESSION['config']['ldap_server']);
             ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
             // Support Active Directory
             ldap_set_option($ds, LDAP_OPT_REFERRALS, 0);
             if ($_SESSION['config']['ldap_user'] == "") {
                 $bound = ldap_bind($ds);
             } else {
                 $bound = ldap_bind($ds, $_SESSION['config']['ldap_user'], $_SESSION['config']['ldap_pass']);
             }
             // recherche des entrées :
             $filter = "(" . $_SESSION['config']['ldap_login'] . "=" . $login . ")";
             $sr = ldap_search($ds, $_SESSION['config']['searchdn'], $filter);
             $data = ldap_get_entries($ds, $sr);
             foreach ($data as $info) {
                 $tab_new_user[$login]['login'] = $login;
                 $ldap_libelle_prenom = $_SESSION['config']['ldap_prenom'];
                 $ldap_libelle_nom = $_SESSION['config']['ldap_nom'];
                 $tab_new_user[$login]['prenom'] = utf8_decode($info[$ldap_libelle_prenom][0]);
                 $tab_new_user[$login]['nom'] = utf8_decode($info[$ldap_libelle_nom][0]);
                 $ldap_libelle_mail = $_SESSION['config']['ldap_mail'];
                 $tab_new_user[$login]['email'] = $info[$ldap_libelle_mail][0];
             }
             $tab_new_user[$login]['quotite'] = getpost_variable('new_quotite');
             $tab_new_user[$login]['is_resp'] = getpost_variable('new_is_resp');
             $tab_new_user[$login]['resp_login'] = getpost_variable('new_resp_login');
             $tab_new_user[$login]['is_admin'] = getpost_variable('new_is_admin');
             $tab_new_user[$login]['is_hr'] = getpost_variable('new_is_hr');
             $tab_new_user[$login]['see_all'] = getpost_variable('new_see_all');
             if ($_SESSION['config']['how_to_connect_user'] == "dbconges") {
                 $tab_new_user[$login]['password1'] = getpost_variable('new_password1');
                 $tab_new_user[$login]['password2'] = getpost_variable('new_password2');
             }
             $tab_new_jours_an = getpost_variable('tab_new_jours_an');
             $tab_new_solde = getpost_variable('tab_new_solde');
             $tab_checkbox_sem_imp = getpost_variable('tab_checkbox_sem_imp');
             $tab_checkbox_sem_p = getpost_variable('tab_checkbox_sem_p');
             $tab_new_user[$login]['new_jour'] = getpost_variable('new_jour');
             $tab_new_user[$login]['new_mois'] = getpost_variable('new_mois');
             $tab_new_user[$login]['new_year'] = getpost_variable('new_year');
         }
     } else {
         $tab_new_user[0]['login'] = getpost_variable('new_login');
         $tab_new_user[0]['nom'] = getpost_variable('new_nom');
         $tab_new_user[0]['prenom'] = getpost_variable('new_prenom');
         $tab_new_user[0]['quotite'] = getpost_variable('new_quotite');
         $tab_new_user[0]['is_resp'] = getpost_variable('new_is_resp');
         $tab_new_user[0]['resp_login'] = getpost_variable('new_resp_login');
         $tab_new_user[0]['is_admin'] = getpost_variable('new_is_admin');
         $tab_new_user[0]['is_hr'] = getpost_variable('new_is_hr');
         $tab_new_user[0]['see_all'] = getpost_variable('new_see_all');
         if ($_SESSION['config']['how_to_connect_user'] == "dbconges") {
             $tab_new_user[0]['password1'] = getpost_variable('new_password1');
             $tab_new_user[0]['password2'] = getpost_variable('new_password2');
         }
         $tab_new_user[0]['email'] = getpost_variable('new_email');
         $tab_new_jours_an = getpost_variable('tab_new_jours_an');
         $tab_new_solde = getpost_variable('tab_new_solde');
         $tab_checkbox_sem_imp = getpost_variable('tab_checkbox_sem_imp');
         $tab_checkbox_sem_p = getpost_variable('tab_checkbox_sem_p');
         $tab_new_user[0]['new_jour'] = getpost_variable('new_jour');
         $tab_new_user[0]['new_mois'] = getpost_variable('new_mois');
         $tab_new_user[0]['new_year'] = getpost_variable('new_year');
     }
     $checkbox_user_groups = getpost_variable('checkbox_user_groups');
     /* FIN de la recup des parametres    */
     /*************************************/
     if ($saisie_user == "ok") {
         if ($_SESSION['config']['export_users_from_ldap']) {
             foreach ($tab_login as $login) {
                 $return .= \admin\Fonctions::ajout_user($tab_new_user[$login], $tab_checkbox_sem_imp, $tab_checkbox_sem_p, $tab_new_jours_an, $tab_new_solde, $checkbox_user_groups);
             }
         } else {
             $return .= \admin\Fonctions::ajout_user($tab_new_user[0], $tab_checkbox_sem_imp, $tab_checkbox_sem_p, $tab_new_jours_an, $tab_new_solde, $checkbox_user_groups);
         }
     } else {
         $return .= \admin\Fonctions::affiche_formulaire_ajout_user($tab_new_user[0], $tab_new_jours_an, $tab_new_solde, $onglet);
     }
     return $return;
//.........这里部分代码省略.........
开发者ID:TexGG,项目名称:Libertempo,代码行数:101,代码来源:Fonctions.php

示例9: defined

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*************************************************************************************************/
defined('_PHP_CONGES') or die('Restricted access');
$session = isset($_GET['session']) ? $_GET['session'] : (isset($_POST['session']) ? $_POST['session'] : session_id());
/*************************************/
// recup des parametres reçus :
$group = getpost_variable('group');
$group_to_update = getpost_variable('group_to_update');
$new_groupname = getpost_variable('new_groupname');
$new_comment = getpost_variable('new_comment');
$new_double_valid = getpost_variable('new_double_valid');
/*************************************/
// TITRE
echo "<H1>" . _('admin_modif_groupe_titre') . "</H1>\n\n";
if ($group != "") {
    modifier($group, $onglet, $DEBUG);
} elseif ($group_to_update != "") {
    commit_update($group_to_update, $new_groupname, $new_comment, $new_double_valid, $DEBUG);
} else {
    // renvoit sur la page principale .
    redirect(ROOT_PATH . 'admin/admin_index.php?session=' . $session . '&onglet=admin-group', false);
}
/**************************************************************************************/
/**********  FONCTIONS  ***************************************************************/
function modifier($group, $onglet, $DEBUG = FALSE)
{
开发者ID:kakargias,项目名称:php-conges,代码行数:31,代码来源:admin_modif_group.php

示例10: configurationModule

 /**
  * Encapsule le comportement du module d'affichage des logs
  *
  * @param string $session
  *
  * @return void
  * @access public
  * @static
  */
 public static function configurationModule($session)
 {
     // verif des droits du user à afficher la page
     verif_droits_user($session, "is_admin");
     $return = '';
     /*** initialisation des variables ***/
     $action = "";
     $tab_new_values = array();
     /************************************/
     /*************************************/
     // recup des parametres reçus :
     // SERVER
     $PHP_SELF = $_SERVER['PHP_SELF'];
     // GET / POST
     $action = getpost_variable('action');
     $tab_new_values = getpost_variable('tab_new_values');
     /*************************************/
     if ($action == "commit") {
         $return .= \config\Fonctions::commit_saisie($tab_new_values, $session);
     } else {
         $return .= '<div class="wrapper configure">';
         $return .= \config\Fonctions::affichage_configuration($session);
         $return .= '<div>';
     }
     return $return;
 }
开发者ID:TexGG,项目名称:Libertempo,代码行数:35,代码来源:Fonctions.php

示例11: define

define('ROOT_PATH', '../');
include ROOT_PATH . 'define.php';
defined('_PHP_CONGES') or die('Restricted access');
$session = isset($_GET['session']) ? $_GET['session'] : (isset($_POST['session']) ? $_POST['session'] : session_id());
include ROOT_PATH . 'fonctions_conges.php';
include INCLUDE_PATH . 'fonction.php';
include INCLUDE_PATH . 'session.php';
include 'fonctions_edition.php';
//$DEBUG = TRUE ;
$DEBUG = FALSE;
/*************************************/
// recup des parametres reçus :
// SERVER
$PHP_SELF = $_SERVER['PHP_SELF'];
// GET / POST
$user_login = getpost_variable('user_login', $_SESSION['userlogin']);
/*************************************/
if ($user_login != $_SESSION['userlogin'] && !is_hr($_SESSION['userlogin']) && !is_resp_of_user($_SESSION['userlogin'], $user_login)) {
    redirect(ROOT_PATH . 'deconnexion.php');
    exit;
}
/************************************/
header_popup(_('editions_titre') . ' : ' . $user_login);
affichage($user_login, $DEBUG);
bottom();
/**************************************************************************************/
/********  FONCTIONS      ******/
/**************************************************************************************/
function affichage($login, $DEBUG = FALSE)
{
    $PHP_SELF = $_SERVER['PHP_SELF'];
开发者ID:kakargias,项目名称:php-conges,代码行数:31,代码来源:edit_user.php

示例12: verif_droits_user

include ROOT_PATH . 'fonctions_conges.php';
include INCLUDE_PATH . 'fonction.php';
include INCLUDE_PATH . 'session.php';
$DEBUG = FALSE;
//$DEBUG=TRUE ;
// verif des droits du user à afficher la page
verif_droits_user($session, "is_admin", $DEBUG);
/*** initialisation des variables ***/
/*************************************/
// recup des parametres reçus :
// SERVER
$PHP_SELF = $_SERVER['PHP_SELF'];
// GET / POST
$choix_action = getpost_variable('choix_action');
$type_sauvegarde = getpost_variable('type_sauvegarde');
$commit = getpost_variable('commit');
$fichier_restaure_name = "";
$fichier_restaure_tmpname = "";
$fichier_restaure_size = 0;
$fichier_restaure_error = 4;
if (isset($_FILES['fichier_restaure'])) {
    $fichier_restaure_name = $_FILES['fichier_restaure']['name'];
    $fichier_restaure_size = $_FILES['fichier_restaure']['size'];
    $fichier_restaure_tmpname = $_FILES['fichier_restaure']['tmp_name'];
    $fichier_restaure_error = $_FILES['fichier_restaure']['error'];
}
/*************************************/
if ($DEBUG) {
    echo "_FILES = <br>\n";
    print_r($_FILES);
    echo "<br>\n";
开发者ID:kakargias,项目名称:php-conges,代码行数:31,代码来源:admin_db_sauve.php

示例13: session_id

$session = session_id();
$user = "";
$date_debut = "";
$date_fin = "";
$p_num = "";
/*************************************/
// recup des parametres reçus :
// SERVER
$PHP_SELF = $_SERVER['PHP_SELF'];
// GET  / POST
$user = getpost_variable('user');
$date_debut = getpost_variable('date_debut');
$date_fin = getpost_variable('date_fin');
$opt_debut = getpost_variable('opt_debut');
$opt_fin = getpost_variable('opt_fin');
$p_num = getpost_variable('p_num');
/*************************************/
if ($user != "" && $date_debut != "" && $date_fin != "" && $opt_debut != "" && $opt_fin != "") {
    affichage($user, $date_debut, $date_fin, $opt_debut, $opt_fin, $p_num);
}
/**********  FONCTIONS  ****************************************/
function affichage($user, $date_debut, $date_fin, $opt_debut, $opt_fin, $p_num = "")
{
    $PHP_SELF = $_SERVER['PHP_SELF'];
    $session = session_id();
    $comment = "&nbsp;";
    // calcul :
    $nb_jours = compter($user, $p_num, $date_debut, $date_fin, $opt_debut, $opt_fin, $comment);
    $tab['nb'] = $nb_jours;
    $tab['comm'] = $comment;
    if (!$_SESSION['config']['rempli_auto_champ_nb_jours_pris']) {
开发者ID:TexGG,项目名称:Libertempo,代码行数:31,代码来源:calcul_nb_jours_pris.php

示例14: defined

*************************************************************************************************
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 the Free Software Foundation; either
version 2 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*************************************************************************************************/
defined('_PHP_CONGES') or die('Restricted access');
/*************************************/
// recup des parametres reçus :
$u_login = getpost_variable('u_login');
$u_login_to_delete = getpost_variable('u_login_to_delete');
/*************************************/
// TITRE
if ($u_login != "") {
    $login_titre = $u_login;
} elseif ($u_login_to_delete != "") {
    $login_titre = $u_login_to_delete;
}
echo "<H1>" . _('admin_suppr_user_titre') . " : {$login_titre} .</H1>\n\n";
if ($u_login != "") {
    confirmer($u_login, $onglet, $DEBUG);
} elseif ($u_login_to_delete != "") {
    suppression($u_login_to_delete, $DEBUG);
    redirect(ROOT_PATH . 'admin/admin_index.php?session=' . $session . '&onglet=admin-users', false);
    exit;
} else {
开发者ID:kakargias,项目名称:php-conges,代码行数:31,代码来源:admin_suppr_user.php

示例15: traitementDemandesModule

 /**
  * Encapsule le comportement du module de traitement des congés des utilisateurs sous la responsabilité du responsable
  *
  * @return void
  * @access public
  * @static
  */
 public static function traitementDemandesModule($tab_type_cong)
 {
     //var pour resp_traite_demande_all.php
     $tab_bt_radio = getpost_variable('tab_bt_radio');
     $tab_text_refus = getpost_variable('tab_text_refus');
     $return = '';
     // titre
     $return .= '<h1>' . _('resp_traite_demandes_titre') . '</h1>';
     // si le tableau des bouton radio des demandes est vide , on affiche les demandes en cours
     if ($tab_bt_radio == "") {
         $return .= \responsable\Fonctions::affiche_all_demandes_en_cours($tab_type_cong);
     } else {
         $return .= \responsable\Fonctions::traite_all_demande_en_cours($tab_bt_radio, $tab_text_refus);
     }
     return $return;
 }
开发者ID:TexGG,项目名称:Libertempo,代码行数:23,代码来源:Fonctions.php


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