本文整理汇总了PHP中CFunctions::getUserParam方法的典型用法代码示例。如果您正苦于以下问题:PHP CFunctions::getUserParam方法的具体用法?PHP CFunctions::getUserParam怎么用?PHP CFunctions::getUserParam使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CFunctions
的用法示例。
在下文中一共展示了CFunctions::getUserParam方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$error_signe = array('nom'=>"", 'rang'=>"", 'etat'=>"");
/*---------------------------------------------------------------------
VARIABLES HTTP
----------------------------------------------------------------------*/
if ( $_SERVER['REQUEST_METHOD'] == "GET" ) {
$a = @$_GET["a"];
if(!empty($_GET['order'])) $order = $_GET['order'];
}
else if ( $_SERVER['REQUEST_METHOD'] == "POST" ) {
$a = @$_POST["a"];
if(!empty($_POST['order'])) $order = $_POST['order'];
}
$pieId = CFunctions::getUserParam('pieId', 0) ;
$texId = CFunctions::getUserParam('texId', 0) ;
/*--------------------------------------------------------------------
TRAITEMENTS
----------------------------------------------------------------------*/
switch ($a) {
case 0 : // Afficher
break;
case 1 : // Diminuer rang
if(!empty($_GET['id'])) $id = $_GET['id'];
$cat = new CTableOpportunite(array('id'=>$id));
$cat->down_rang();
break;
示例2: if
}
else if ( $_SERVER['REQUEST_METHOD'] == "POST" ) {
$a = @$_POST["a"];
if(!empty($_POST['order'])) $order = $_POST['order']; else $order = @$_SESSION['order'];
}
// SESSION VARIABLE
if (isset($_GET['alphaA'])) $_SESSION['alphaA'] = $_GET['alphaA'];
// RECUPERATION VALEUR
$zSortField = 'id' ;
$zSortDirection = CFunctions::getUserParam('zSortDirection', 'ASC') ;
$pagecourant = CFunctions::getUserParam('zSortField', '0') ;
$iCurrentPage = CFunctions::getUserParam('iPage', '1') ;
$iMaxPerPage = CConfiguration::get_valeur('MAX_ITEM_PER_PAGE', 10) ;
$iStart = $iCurrentPage - 1 ;
//COMPTEUR D'ENREGISTREMENT
$i = CTableGroupeUtilitaire::get_iNbrContact($_SESSION['groupe']);
$iMaxPerPage1 = $i-1;
// FIN COMPTEUR
$iNbPage = ceil(($iMaxPerPage1/$iMaxPerPage)) ;
$zListeGetParam = '' ;
/*--------------------------------------------------------------------
TRAITEMENTS
示例3: forceGetOrPost
}
function forceGetOrPost ($_zVarName, $_zDefault = '') {
if (isset ($_GET[$_zVarName])) {
return $_GET[$_zVarName];
}
elseif (isset ($_POST[$_zVarName])) {
return $_POST[$_zVarName];
}
else {
CSession::get($_zVarName, $_zDefault);
}
}
$id_groupe = isset($id_groupe) ? $id_groupe : CFunctions::getUserParam($id_groupe, 0) ;
$filtre_etat_contact = forceGetOrPost('filtre_etat_contact', $etat_contact);
$filtre_date_debut = CDate::date_switch(forceGetOrPost ('filtre_date_debut'));
$filtre_date_fin = CDate::date_switch(forceGetOrPost ('filtre_date_fin'));
$filtre_id_groupe = forceGetOrPost ('filtre_id_groupe', $id_groupe);
$filtre_email = forceGetOrPost ('filtre_email', -1);
$filtre_nom = forceGetOrPost ('filtre_nom', '%%');
$filtre_prenom = forceGetOrPost ('filtre_prenom', '%%');
$filtre_societe = forceGetOrPost ('filtre_societe', '%%');
if (isset($_GET['alphaA'])) $_SESSION['alphaA'] = $_GET['alphaA'];
$filtre_idopportunite = forceGetOrPost ('filtre_idopportunite', array(0));
if (empty ($filtre_idopportunite)) {
$filtre_idopportunite = array (0);
}
?>
<script type="text/javascript">
示例4:
break;
case 55 : // Modifier 2
//user
if(!empty($_POST['id'])) $id = $_POST['id'];
// PARTIE GAUCHE
if(!empty($_POST['login'])) $login = CFunctions::formate_chaine(trim($_POST['login']),'');
if(!empty($_POST['passe'])) $passe = CFunctions::formate_chaine(trim($_POST['passe']),'');
if(!empty($_POST['etat'])) $etat = $_POST['etat'];
if(!empty($_POST['type'])) $type = $_POST['type'];
$paiement_abo = CFunctions::getUserParam('paiement_abo', 0) ;
$ent = CFunctions::getUserParam('ent', 0) ;
$paye_p = CFunctions::getUserParam('paye_p', 0) ;
$montant_vignette = CFunctions::formate_chaine(CFunctions::getUserParam('montant_vignette', '')) ;
$montant_p = CFunctions::formate_chaine(CFunctions::getUserParam('montant_p', '')) ;
if(isset($_POST['url'])) {
$url_2 = $_POST['url'];
$url_3=str_replace("http://","",$url_2);
$url_4=str_replace("www.","",$url_3);
www.
$url_1='http://'.$url_4;
}
// PARTIE CENTRE
if(!empty($_POST['nom_sec'])) $nom_sec = CFunctions::clean($_POST['nom_sec']);
if(!empty($_POST['nom_cat'])) $nom_cat = CFunctions::clean($_POST['nom_cat']);
if(!empty($_POST['responsable'])) $responsable = CFunctions::clean($_POST['responsable']);
if(!empty($_POST['adresse'])) $adresse = CFunctions::clean($_POST['adresse']);
if(!empty($_POST['cp'])) $cp = CFunctions::clean($_POST['cp']);
示例5: array
/*--------------------------------------------------------------------
INITIALISATIONS
----------------------------------------------------------------------*/
//$a = 0;
$fic = '';
/*---------------------------------------------------------------------
VARIABLES HTTP
----------------------------------------------------------------------*/
$a = CFunctions::getUserParam('a', 0) ;
$nom_grp = CFunctions::getUserParam('nom_grp', '') ;
$id = CFunctions::getUserParam('id', 0) ;
$etat = CFunctions::getUserParam('etat', 0) ;
$fic = CFunctions::getUserParam('fic', array()) ;
$tab_fic = CFunctions::getUserParam('tab_fic',array());
$igp = CFunctions::getUserParam('igp', 0);
/*--------------------------------------------------------------------
TRAITEMENTS
----------------------------------------------------------------------*/
switch ($a)
{
case 0 : // Afficher
break;
case 2 :
if(!empty($_GET['id'])) $id = $_GET['id'];
$gpml = new CTableGrpMl(array('id'=>$id));
$gpml ->reverse_etat();
break;
示例6: array
<!-- InstanceBeginEditable name="php" -->
<?php
/*---------------------------------------------------------------------
PROTECTION : permet de proteger la page avec session
----------------------------------------------------------------------*/
CLogin::page_protect();
/*--------------------------------------------------------------------
INITIALISATIONS
----------------------------------------------------------------------*/
$a = CFunctions::getUserParam('a', 0) ;
$fic = '';
$tab_fic = CFunctions::getUserParam('tab_fic', array()) ;
$igrp = CFunctions::getUserParam('igrp', '') ;
$order = CFunctions::getUserParam('order', 'mlt_iListId') ;
$msginfo = "";
/*--------------------------------------------------------------------
TRAITEMENTS
----------------------------------------------------------------------*/
switch ($a) {
case 0 : // Afficher
break;
case 3 : // Suppr
if(!empty($_GET['fic'])) $fic = $_GET['fic'];
break;
示例7: include
<?php
include("../inc/init.php");
$iOppId = CFunctions::getUserParam('iOppId', 0) ;
$iOppTypeId = CFunctions::getUserParam('iOppTypeId', 0) ;
//$zTableUtilite = ($iOppTypeId) ? 'opportunite' : 'hbopportunites' ;
$zTableUtilite = 'opportuniteContact';
$zSqlText = " SELECT texte.* FROM texte" ;
$zSqlText .= " INNER JOIN " . $zTableUtilite . " ON texId = texte.id" ;
$zSqlText .= " WHERE " . $zTableUtilite . ".id = " . $iOppId ;
$toTextes = CBdd::select_row($zSqlText) ;
$zSqlPj = " SELECT hbpiecesjointes.* FROM hbpiecesjointes" ;
$zSqlPj .= " INNER JOIN " . $zTableUtilite . " ON pieId = hbpiecesjointes.id" ;
$zSqlPj .= " WHERE " . $zTableUtilite . ".id = " . $iOppId ;
$toPieces = CBdd::select_row($zSqlPj) ;
$zHtml = '' ;
if ($toTextes)
{
$zTxtCut = CFunctions::cut_string($toTextes['nom'], 15) ;
$zHtml .= '<p>' ;
$zHtml .= ' <label class="info">' . $zTxtCut ;
$zHtml .= ($zTxtCut != $toTextes['nom']) ? ' <span class="bulle">' . $toTextes['nom'] . '</span>' : '' ;
$zHtml .= ' </label>' ;
示例8: define
/*---------------------------------------------------------------------
PROTECTION : permet de proteger la page avec session
----------------------------------------------------------------------*/
CLogin::page_protect();
/*--------------------------------------------------------------------
INITIALISATIONS
----------------------------------------------------------------------*/
define('NOM_TABLE', 'moul_tables');
/*---------------------------------------------------------------------
VARIABLES HTTP
----------------------------------------------------------------------*/
$a = CFunctions::getUserParam('a', 0) ;
$iMltListId = CFunctions::getUserParam('iMltListId', '') ;
/*--------------------------------------------------------------------
TRAITEMENTS
----------------------------------------------------------------------*/
switch ($a)
{
case 0 : // Afficher
break;
case 2 : // reverse_etat
break;
case 3 :
if(!empty($_GET['id'])) $id = $_GET['id'];
示例9:
$error_type = 0;
$msginfo = "";
$url_base = SS_ADMIN_TO_USERFILE . "/userfiles/file";
$url_dest = SS_ADMIN_TO_USERFILE . "/userfiles/pieces_jointes";
$unzip = '0';
//$error_signe = array('nom'=>"", 'text'=>"", 'page'=>"");
/*---------------------------------------------------------------------
VARIABLES HTTP
----------------------------------------------------------------------*/
$a = CFunctions::getUserParam('a', 0) ;
$id = CFunctions::getUserParam('id', 0) ;
$piece = CFunctions::getUserParam('piece', '') ;
$etat = CFunctions::getUserParam('etat', 0) ;
$order = CFunctions::getUserParam('order', 'id') ;
/*--------------------------------------------------------------------
TRAITEMENTS
----------------------------------------------------------------------*/
switch ($a) {
case 0 : //Affichage
break;
case 2 : // Modifier etat
$etat = CBdd::select_one("SELECT etat FROM hbpiecesjointes WHERE id = " . $id, 'etat') ;
$InverseEtat = ($etat) ? 0 : 1 ;
$Sql = "UPDATE hbpiecesjointes SET etat = '" . $InverseEtat . "' WHERE id = '" . $id . "'";
CBdd::update($Sql) ;