• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP getpost_variable函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: redirect

}
/*****************************************************************/
if (isset($_SESSION['userlogin'])) {
    $request = "SELECT u_nom, u_passwd, u_prenom, u_is_resp FROM conges_users where u_login = '" . SQL::quote($_SESSION['userlogin']) . "' ";
    $rs = SQL::query($request);
    if ($rs->num_rows != 1) {
        redirect(ROOT_PATH . 'index.php');
    } else {
        $session = session_id();
        $row = $rs->fetch_array();
        $NOM = $row["u_nom"];
        $PRENOM = $row["u_prenom"];
        $is_resp = $row["u_is_resp"];
        // si le login est celui d'un responsable ET on est pas en mode "responsable virtuel"
        // OU on est en mode "responsable virtuel" avec login= celui du resp virtuel
        $return_url = getpost_variable('return_url');
        if (!empty($return_url)) {
            if (strpos($return_url, '?')) {
                redirect(ROOT_PATH . $return_url . '&session=' . $session);
            } else {
                redirect(ROOT_PATH . $return_url . '?session=' . $session);
            }
        } elseif ($is_resp == "Y" && $_SESSION['config']['responsable_virtuel'] == FALSE || $_SESSION['config']['responsable_virtuel'] && $session_username == "conges") {
            // redirection vers responsable/resp_index.php
            redirect(ROOT_PATH . 'responsable/resp_index.php?session=' . $session);
        } else {
            // redirection vers utilisateur/user_index.php
            redirect(ROOT_PATH . 'utilisateur/user_index.php?session=' . $session);
        }
    }
}
开发者ID:kakargias,项目名称:php-conges,代码行数:31,代码来源:index.php


示例17: define

define('_PHP_CONGES', 1);
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 'fonctions_edition.php';
include ROOT_PATH . 'fonctions_conges.php';
include INCLUDE_PATH . 'fonction.php';
include INCLUDE_PATH . 'session.php';
//$DEBUG = TRUE ;
$DEBUG = FALSE;
/*************************************/
// recup des parametres reçus :
// GET / POST
$user_login = getpost_variable('user_login');
$edit_id = getpost_variable('edit_id', 0);
/*************************************/
if ($user_login != $_SESSION['userlogin'] && !is_hr($_SESSION['userlogin']) && !is_resp_of_user($_SESSION['userlogin'], $user_login)) {
    redirect(ROOT_PATH . 'deconnexion.php');
    exit;
}
/************************************/
$css = '<link href="' . TEMPLATE_PATH . 'style_calendar_edition.css" rel="stylesheet" type="text/css">';
header_popup(_('editions_etat_conges') . ' : ' . $user_login, $css);
$session = session_id();
if ($edit_id == 0) {
    // si c'est une nouvelle édition, on insert dans la base avant d'éditer et on renvoit l'id de l'édition
    $edit_id = enregistrement_edition($user_login, $DEBUG);
}
if ($edit_id != "0101010") {
    edition($user_login, $edit_id, $session, $DEBUG);
开发者ID:kakargias,项目名称:php-conges,代码行数:31,代码来源:edition_papier.php


示例18: getpost_variable

$p_num = getpost_variable('p_num');
$onglet = getpost_variable('onglet');
$p_num_to_update = getpost_variable('p_num_to_update');
$p_etat = getpost_variable('p_etat');
$new_debut = getpost_variable('new_debut');
$new_demi_jour_deb = getpost_variable('new_demi_jour_deb');
$new_fin = getpost_variable('new_fin');
$new_demi_jour_fin = getpost_variable('new_demi_jour_fin');
$new_comment = getpost_variable('new_comment');
//conversion des dates
$new_debut = convert_date($new_debut);
$new_fin = convert_date($new_fin);
if ($_SESSION['config']['disable_saise_champ_nb_jours_pris']) {
    $new_nb_jours = compter($user_login, $p_num_to_update, $new_debut, $new_fin, $new_demi_jour_deb, $new_demi_jour_fin, $new_comment, $DEBUG);
} else {
    $new_nb_jours = getpost_variable('new_nb_jours');
}
/*************************************/
// TITRE
echo '<h1>' . _('user_modif_demande_titre') . '</h1>';
if ($p_num != "") {
    confirmer($p_num, $onglet, $DEBUG);
} else {
    if ($p_num_to_update != "") {
        modifier($p_num_to_update, $new_debut, $new_demi_jour_deb, $new_fin, $new_demi_jour_fin, $new_nb_jours, $new_comment, $p_etat, $onglet, $DEBUG);
    } else {
        // renvoit sur la page principale .
        redirect(ROOT_PATH . 'utilisateur/user_index.php', false);
    }
}
/********************************************************************************************************/
开发者ID:coz787,项目名称:Libertempo,代码行数:31,代码来源:user_modif_demande.php


示例19: getpost_variable

    $tab_commentaire_saisie = getpost_variable('tab_commentaire_saisie');
    ajout_conges($tab_champ_saisie, $tab_commentaire_saisie, $DEBUG);
    redirect(ROOT_PATH . 'hr/hr_index.php?session=' . $session, false);
    exit;
} elseif ($ajout_global == "TRUE") {
    $tab_new_nb_conges_all = getpost_variable('tab_new_nb_conges_all');
    $tab_calcul_proportionnel = getpost_variable('tab_calcul_proportionnel');
    $tab_new_comment_all = getpost_variable('tab_new_comment_all');
    ajout_global($tab_new_nb_conges_all, $tab_calcul_proportionnel, $tab_new_comment_all, $DEBUG);
    redirect(ROOT_PATH . 'hr/hr_index.php?session=' . $session, false);
    exit;
} elseif ($ajout_groupe == "TRUE") {
    $tab_new_nb_conges_all = getpost_variable('tab_new_nb_conges_all');
    $tab_calcul_proportionnel = getpost_variable('tab_calcul_proportionnel');
    $tab_new_comment_all = getpost_variable('tab_new_comment_all');
    $choix_groupe = getpost_variable('choix_groupe');
    ajout_global_groupe($choix_groupe, $tab_new_nb_conges_all, $tab_calcul_proportionnel, $tab_new_comment_all, $DEBUG);
    redirect(ROOT_PATH . 'hr/hr_index.php?session=' . $session, false);
    exit;
} else {
    saisie_ajout($tab_type_cong, $DEBUG);
}
/************************************************************************/
/*** FONCTIONS ***/
function saisie_ajout($tab_type_conges, $DEBUG)
{
    //$DEBUG;
    $PHP_SELF = $_SERVER['PHP_SELF'];
    $session = session_id();
    // recup du tableau des types de conges (seulement les congesexceptionnels )
    if ($_SESSION['config']['gestion_conges_exceptionnels']) {
开发者ID:coz787,项目名称:Libertempo,代码行数:31,代码来源:hr_ajout_conges.php


示例20: defined

defined( '_PHP_CONGES' ) or die( 'Restricted access' );



	//var pour resp_ajout_conges_all.php
	$ajout_conges            = getpost_variable('ajout_conges');
	$tab_champ_saisie        = getpost_variable('tab_champ_saisie');
	$tab_commentaire_saisie        = getpost_variable('tab_commentaire_saisie');
	//$tab_champ_saisie_rtt    = getpost_variable('tab_champ_saisie_rtt') ;
	$ajout_global            = getpost_variable('ajout_global');
	$ajout_groupe            = getpost_variable('ajout_groupe');
	$choix_groupe            = getpost_variable('choix_groupe');
	$tab_new_nb_conges_all   = getpost_variable('tab_new_nb_conges_all');
	$tab_calcul_proportionnel = getpost_variable('tab_calcul_proportionnel');
	$tab_new_comment_all     = getpost_variable('tab_new_comment_all');
	
	
	if( $DEBUG ) { echo "tab_new_nb_conges_all = <br>"; print_r($tab_new_nb_conges_all); echo "<br>\n" ;}
	if( $DEBUG ) { echo "tab_calcul_proportionnel = <br>"; print_r($tab_calcul_proportionnel); echo "<br>\n" ;}
	
	
	// titre
	echo "<H2>". _('resp_ajout_conges_titre') ."</H2>\n\n";
	//connexion mysql
	
	if($ajout_conges=="TRUE")
	{
		ajout_conges($tab_champ_saisie, $tab_commentaire_saisie, $DEBUG);
	}
	elseif($ajout_global=="TRUE")
开发者ID:kakargias,项目名称:php-conges,代码行数:30,代码来源:resp_ajout_conges.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getpostinfo函数代码示例发布时间:2022-05-15
下一篇:
PHP getpost_ifset函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap