本文整理汇总了PHP中CValue::postOrSession方法的典型用法代码示例。如果您正苦于以下问题:PHP CValue::postOrSession方法的具体用法?PHP CValue::postOrSession怎么用?PHP CValue::postOrSession使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CValue
的用法示例。
在下文中一共展示了CValue::postOrSession方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CSmartyDP
<?php
/**
* $Id$
*
* @category Patients
* @package Mediboard
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
* @link http://www.mediboard.org
*/
CCanDo::checkAdmin();
$step = CValue::postOrSession("step", 100);
$start = CValue::postOrSession("start", 0);
$directory = CValue::postOrSession("directory");
$files_directory = CValue::postOrSession("files_directory");
$smarty = new CSmartyDP();
$smarty->assign("step", $step);
$smarty->assign("start", $start);
$smarty->assign("directory", $directory);
$smarty->assign("files_directory", $files_directory);
$smarty->display("vw_import_patients.tpl");
示例2: CPasswordKeeper
<?php
/**
* $Id$
*
* @category Password Keeper
* @package Mediboard
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @link http://www.mediboard.org */
CPasswordKeeper::checkHTTPS();
CCanDo::checkAdmin();
$password_keeper_id = CValue::postOrSession("password_keeper_id");
$_passphrase = CValue::post("passphrase");
$deletion = CValue::post("deletion");
$user = CMediusers::get();
$keeper = new CPasswordKeeper();
$keeper->load($password_keeper_id);
if ($keeper->_id && $keeper->user_id != $user->_id) {
$msg = "Vous n'avez pas droit d'accéder à ce trousseau.";
CAppUI::stepAjax($msg, UI_MSG_ERROR);
}
// Second passage, après avoir saisi la phrase de passe
if ($keeper->_id && $_passphrase) {
if (!$keeper->testSample($_passphrase)) {
$msg = "Phrase de passe incorrecte.";
CAppUI::stepAjax($msg, UI_MSG_ERROR);
}
// Ecrit la phrase de passe en session
CValue::setSessionAbs("passphrase", $_passphrase);
}
示例3: CSejour
<?php
/**
* $Id$
*
* @package Mediboard
* @subpackage Urgences
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
*/
CCanDo::checkRead();
// Type d'affichage
$uhcd_affichage = CValue::postOrSession("uhcd_affichage", CAppUI::conf("dPurgences default_view"));
// Parametre de tri
$order_way = CValue::getOrSession("order_way", "DESC");
$order_col = CValue::getOrSession("order_col", CAppUI::pref("defaultRPUSort"));
// Selection de la date
$date = CValue::getOrSession("date", CMbDT::date());
$date_tolerance = CAppUI::conf("dPurgences date_tolerance");
$date_before = CMbDT::date("-{$date_tolerance} DAY", $date);
$date_after = CMbDT::date("+1 DAY", $date);
// L'utilisateur doit-il voir les informations médicales
$user = CMediusers::get();
$medicalView = $user->isMedical();
$group = CGroups::loadCurrent();
$listPrats = $user->loadPraticiens(PERM_READ, $group->service_urgences_id);
$sejour = new CSejour();
$where = array();
$ljoin["rpu"] = "sejour.sejour_id = rpu.sejour_id";
$ljoin["patients"] = "sejour.patient_id = patients.patient_id";
示例4: ignore_user_abort
<?php
/**
* $Id: do_file_aed.php 20498 2013-09-29 19:08:17Z phenxdesign $
*
* @category Files
* @package Mediboard
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision: 20498 $
* @link http://www.mediboard.org
*/
CApp::setTimeLimit(600);
ignore_user_abort(1);
CValue::setSession(CValue::postOrSession("private"));
ini_set("upload_max_filesize", CAppUI::conf("dPfiles upload_max_filesize"));
$do = new CFileAddEdit();
$do->doBind();
if (intval(CValue::read($do->request, 'del'))) {
$do->doDelete();
} else {
$do->doStore();
}
$smarty = new CSmartyDP();
$messages = CAppUI::getMsg();
$smarty->assign("messages", $messages);
$smarty->display("../../dPfiles/templates/inc_callback_upload.tpl");
$do->doRedirect();
示例5: array
*
* @category Board
* @package Mediboard
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version SVN: $Id: vw_stats.php 19250 2013-05-23 19:24:15Z rhum1 $
* @link http://www.mediboard.org
*/
CAppUI::requireModuleFile("dPboard", "inc_board");
global $prat;
if (!$prat->_id) {
return;
}
$stats = array("vw_sejours_interventions", "vw_stats_consultations", "vw_prescripteurs");
if (CModule::getActive("dPprescription")) {
$stats[] = "vw_stats_prescriptions";
}
if (CAppUI::conf("dPplanningOp COperation verif_cote")) {
$stats[] = "vw_trace_cotes";
}
$stat = CValue::postOrSession("stat", "vw_sejours_interventions");
if (!in_array($stat, $stats)) {
trigger_error("Unknown stat view '{$stat}'", E_USER_WARNING);
return;
}
// Affichage
$smarty = new CSmartyDP();
$smarty->assign("stats", $stats);
$smarty->assign("stat", $stat);
$smarty->display("vw_stats.tpl");
CAppUI::requireModuleFile("dPboard", "{$stat}");
示例6: CMediusers
* @category Patients
* @package Mediboard
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
* @link http://www.mediboard.org
*/
CCanDo::checkAdmin();
$praticien_id = CValue::postOrSession("praticien_id");
$step = CValue::postOrSession("step", 100);
$start = CValue::postOrSession("start", 0);
$directory = CValue::postOrSession("directory");
$all_prats = CValue::postOrSession("all_prats");
$ignore_files = CValue::postOrSession("ignore_files");
$generate_pdfpreviews = CValue::postOrSession("generate_pdfpreviews");
$date_min = CValue::postOrSession("date_min");
$praticien = new CMediusers();
$praticiens = $praticien->loadPraticiens();
if (!$praticien_id) {
$praticien_id = array();
}
$smarty = new CSmartyDP();
$smarty->assign("praticiens", $praticiens);
$smarty->assign("praticien_id", $praticien_id);
$smarty->assign("all_prats", $all_prats);
$smarty->assign("step", $step);
$smarty->assign("start", $start);
$smarty->assign("directory", $directory);
$smarty->assign("ignore_files", $ignore_files);
$smarty->assign("generate_pdfpreviews", $generate_pdfpreviews);
$smarty->assign("date_min", $date_min);
示例7: CSejour
<?php
/**
* $Id: httpreq_vw_main_courante.php 23921 2014-07-08 14:37:50Z nicolasld $
*
* @package Mediboard
* @subpackage Urgences
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision: 23921 $
*/
CCanDo::checkRead();
// Type d'affichage
$selAffichage = CValue::postOrSession("selAffichage", CAppUI::conf("dPurgences default_view"));
$service_id = CValue::postOrSession("service_id");
// Parametre de tri
$order_way = CValue::getOrSession("order_way", "DESC");
$order_col = CValue::getOrSession("order_col", CAppUI::pref("defaultRPUSort"));
// Selection de la date
$date = CValue::getOrSession("date", CMbDT::date());
$date_tolerance = CAppUI::conf("dPurgences date_tolerance");
$date_before = CMbDT::date("-{$date_tolerance} DAY", $date);
$date_after = CMbDT::date("+1 DAY", $date);
// L'utilisateur doit-il voir les informations médicales
$user = CMediusers::get();
$medicalView = $user->isMedical() || $user->isFromType(array("Aide soignant"));
$group = CGroups::loadCurrent();
$listPrats = $user->loadPraticiens(PERM_READ, $group->service_urgences_id);
$sejour = new CSejour();
$where = array();
$ljoin["rpu"] = "sejour.sejour_id = rpu.sejour_id";
示例8: post
/**
* Get a POST parameter
*
* @param string $name Name of the parameter
* @param string $prop Property specification of the parameter
* @param bool $session Use session for retrieval if undefined
*
* @return any
*/
public static function post($name, $prop, $session = false)
{
return self::checkParam($name, $prop, $session ? CValue::postOrSession($name) : CValue::post($name));
}
示例9: CDiscipline
<?php
/**
* $Id: vw_idx_pathologies.php 20186 2013-08-19 07:47:12Z phenxdesign $
*
* @package Mediboard
* @subpackage Hospi
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision: 20186 $
*/
CAppUI::requireModuleFile("dPhospi", "inc_vw_affectations");
$affichage_patho = CValue::postOrSession("affichage_patho", "non_complet");
$date = CValue::getOrSession("date", CMbDT::date());
$pathos = new CDiscipline();
$heureLimit = "16:00:00";
// Liste des patients à placer
$groupSejourNonAffectes = array();
if (CCanDo::edit()) {
// Admissions de la veille
$dayBefore = CMbDT::date("-1 days", $date);
$where = array("entree_prevue" => "BETWEEN '{$dayBefore} 00:00:00' AND '{$date} 00:00:00'", "type" => "!= 'exte'", "annule" => "= '0'");
$groupSejourNonAffectes["veille"] = loadSejourNonAffectes($where);
// Admissions du matin
$where = array("entree_prevue" => "BETWEEN '{$date} 00:00:00' AND '{$date} " . CMbDT::time("-1 second", $heureLimit) . "'", "type" => "!= 'exte'", "annule" => "= '0'");
$groupSejourNonAffectes["matin"] = loadSejourNonAffectes($where);
// Admissions du soir
$where = array("entree_prevue" => "BETWEEN '{$date} {$heureLimit}' AND '{$date} 23:59:59'", "type" => "!= 'exte'", "annule" => "= '0'");
$groupSejourNonAffectes["soir"] = loadSejourNonAffectes($where);
// Admissions antérieures
$twoDaysBefore = CMbDT::date("-2 days", $date);
示例10: CBloodSalvage
<?php
/**
* $Id:$
*
* @package Mediboard
* @subpackage bloodSalvage
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision:$
*/
CCanDo::checkRead();
$blood_salvage_id = CValue::postOrSession("blood_salvage_id");
$blood_salvage = new CBloodSalvage();
if ($blood_salvage_id) {
$blood_salvage->load($blood_salvage_id);
$blood_salvage->loadRefs();
}
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("blood_salvage", $blood_salvage);
$smarty->display("inc_vw_cell_saver_volumes.tpl");
示例11: CMediusers
*
* @category Patients
* @package Mediboard
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
* @link http://www.mediboard.org
*/
CCanDo::checkAdmin();
$praticien_id = CValue::postOrSession("praticien_id");
$step = CValue::postOrSession("step", 100);
$start = CValue::postOrSession("start", 0);
$directory = CValue::postOrSession("directory");
$all_prats = CValue::postOrSession("all_prats");
$ignore_files = CValue::postOrSession("ignore_files");
$generate_pdfpreviews = CValue::postOrSession("generate_pdfpreviews");
$praticien = new CMediusers();
$praticiens = $praticien->loadPraticiens();
if (!$praticien_id) {
$praticien_id = array();
}
$smarty = new CSmartyDP();
$smarty->assign("praticiens", $praticiens);
$smarty->assign("praticien_id", $praticien_id);
$smarty->assign("all_prats", $all_prats);
$smarty->assign("step", $step);
$smarty->assign("start", $start);
$smarty->assign("directory", $directory);
$smarty->assign("ignore_files", $ignore_files);
$smarty->assign("generate_pdfpreviews", $generate_pdfpreviews);
$smarty->display("vw_export_patients.tpl");
示例12: CUserLog
<?php
/**
* $Id$
*
* @package Mediboard
* @subpackage System
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
*/
CCanDo::checkAdmin();
$log = new CUserLog();
$log->object_class = CValue::postOrSession("object_class");
$log->date = CValue::postOrSession("date");
$log->user_id = CValue::postOrSession("user_id");
$do_it = CValue::post("do_it");
$user = new CMediusers();
$users = $user->loadGroupList();
foreach ($users as $_user) {
$_user->loadRefFunction();
}
$classes = Capp::getInstalledClasses();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("log", $log);
$smarty->assign("users", $users);
$smarty->assign("classes", $classes);
$smarty->assign("do_it", $do_it);
$smarty->display("view_object_restore.tpl");