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

PHP CFunctions类代码示例

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

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



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

示例1: loadRefAddress

 /**
  * Load postal address object
  *
  * @return CGroups|CFunctions|CBlocOperatoire
  */
 function loadRefAddress()
 {
     $this->_ref_address = $this->loadFwdRef("address_id", true);
     if ($this->address_class == "CFunctions" || $this->address_class == "CBlocOperatoire") {
         $this->_ref_address->loadRefGroup();
     }
     return $this->_ref_address;
 }
开发者ID:fbone,项目名称:mediboard4,代码行数:13,代码来源:CProductOrder.class.php


示例2: getImportFunction

 /**
  * Get import function
  *
  * @return CFunctions
  */
 function getImportFunction()
 {
     static $function;
     if ($function) {
         return $function;
     }
     $function_name = CAppUI::conf($this->_import_function_name_conf);
     $function = new CFunctions();
     $function->text = $function_name;
     $function->loadMatchingObjectEsc();
     if (!$function->_id) {
         $function->group_id = CGroups::loadCurrent()->_id;
         $function->type = "cabinet";
         $function->compta_partagee = 0;
         $function->color = "#CCCCCC";
         if ($msg = $function->store()) {
             CAppUI::setMsg($msg, UI_MSG_WARNING);
         }
     }
     return $function;
 }
开发者ID:fbone,项目名称:mediboard4,代码行数:26,代码来源:CExternalDBImport.class.php


示例3: CFunctions

 * @category Mediusers
 * @package  Mediboard
 * @author   SARL OpenXtrem <[email protected]>
 * @license  GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version  SVN: $Id:$
 * @link     http://www.mediboard.org
 */
CCanDo::checkRead();
$user_id = CValue::getOrSession("user_id");
// Récupération des fonctions
$group = CGroups::loadCurrent();
if ($group->_id) {
    $functions = $group->loadFunctions();
} else {
    // Cas du admin qui n'a pas de mediuser, et donc pas de group_id
    $function = new CFunctions();
    $where = array("actif" => "='1'");
    $functions = $function->loadListWithPerms(PERM_READ, $where);
}
// Récupération du user à ajouter/editer
$object = new CMediusers();
if (CValue::get("no_association")) {
    $object->user_id = $user_id;
    $object->updateFormFields();
    $object->_user_id = $user_id;
    $object->_id = null;
    $object->actif = CValue::get("ldap_user_actif", 1);
    $object->deb_activite = CValue::get("ldap_user_deb_activite");
    $object->fin_activite = CValue::get("ldap_user_fin_activite");
} else {
    $object->load($user_id);
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:ajax_edit_mediuser.php


示例4: CSejour

$filterOp->salle_id = CValue::getOrSession("salle_id");
$filterOp->_date_min = CValue::get("_date_min", $now);
$filterOp->_date_max = CValue::get("_date_max", $now);
$filterOp->_prat_id = CValue::getOrSession("_prat_id");
$filterOp->_plage = CValue::getOrSession("_plage");
$filterOp->_ranking = CValue::getOrSession("_ranking");
$filterOp->_cotation = CValue::getOrSession("_cotation");
$filterOp->_specialite = CValue::getOrSession("_specialite");
$filterOp->_codes_ccam = CValue::getOrSession("_codes_ccam");
$filterOp->_ccam_libelle = CValue::getOrSession("_ccam_libelle");
$filterSejour = new CSejour();
$filterSejour->type = CValue::getOrSession("type");
$filterSejour->ald = CValue::getOrSession("ald");
$yesterday = CMbDT::date("-1 day", $now);
$mediuser = new CMediusers();
$listPrat = $mediuser->loadPraticiens(PERM_READ);
$function = new CFunctions();
$listSpec = $function->loadSpecialites(PERM_READ);
// Récupération des salles
$listBlocs = CGroups::loadCurrent()->loadBlocs(PERM_EDIT);
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("chir", $user->_id);
$smarty->assign("filter", $filterOp);
$smarty->assign("filterSejour", $filterSejour);
$smarty->assign("now", $now);
$smarty->assign("yesterday", $yesterday);
$smarty->assign("listPrat", $listPrat);
$smarty->assign("listSpec", $listSpec);
$smarty->assign("listBlocs", $listBlocs);
$smarty->display("print_plannings/vw_print_planning.tpl");
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:vw_print_planning.php


示例5: CFunctions

CCanDo::checkRead();
$user = CMediusers::get();
$user->loadRefFunction();
$selCabinet = CValue::getOrSession("selCabinet", $user->function_id);
$droit = true;
// si on affecte a selCabinet le function_id du user, on verifie si le user a le droit de creer des categories
if ($selCabinet == $user->function_id) {
    // Chargement de la liste de tous la cabinets
    $cabinet = new CFunctions();
    $listCabinets = $cabinet->loadSpecialites();
    if (!array_key_exists($selCabinet, $listCabinets)) {
        $droit = false;
    }
}
// Chargement de la liste des cabinets auquel le user a droit
$function = new CFunctions();
$listFunctions = $function->loadSpecialites(PERM_EDIT);
// Creation d'une categorie
$categorie = new CConsultationCategorie();
$categorie_id = CValue::getOrSession("categorie_id");
// Chargement des categories pour le cabinet selectionné ou pour le cabinet auquel appartient le user
if ($selCabinet) {
    $whereCategorie["function_id"] = " = '{$selCabinet}'";
} else {
    $whereCategorie["function_id"] = " = '{$user->function_id}'";
}
$orderCategorie = "nom_categorie ASC";
$categories = $categorie->loadList($whereCategorie, $orderCategorie);
// Chargement de la categorie selectionnee
if ($categorie_id) {
    $categorie = new CConsultationCategorie();
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:vw_categories.php


示例6: COperation

<?php

/**
 * $Id: vw_idx_materiel.php 27325 2015-02-26 09:30:02Z aurelie17 $
 *
 * @package    Mediboard
 * @subpackage dPbloc
 * @author     SARL OpenXtrem <[email protected]>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision: 27325 $
 */
CCanDo::checkEdit();
$filter = new COperation();
$filter->_date_min = CValue::getOrSession("_date_min", CMbDT::date("-7 day"));
$filter->_date_max = CValue::getOrSession("_date_max", CMbDT::date());
$listBlocs = CGroups::loadCurrent()->loadBlocs(PERM_READ, null, "nom");
$bloc_id = CValue::getOrSession("bloc_id", reset($listBlocs)->_id);
$praticien = new CMediusers();
$praticiens = $praticien->loadPraticiens();
$function = new CFunctions();
$functions = $function->loadSpecialites();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("filter", $filter);
$smarty->assign("bloc_id", $bloc_id);
$smarty->assign("listBlocs", $listBlocs);
$smarty->assign("praticiens", $praticiens);
$smarty->assign("functions", $functions);
$smarty->assign("function_id", CValue::getOrSession("function_id"));
$smarty->assign("praticien_id", CValue::getOrSession("praticien_id"));
$smarty->display("vw_idx_materiel.tpl");
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:vw_idx_materiel.php


示例7: utf8_encode

						  echo utf8_encode($__text);
						  if($user['resp_ent'] != $__text) {
						  ?>
						  <div class="bulle">
							  <?php echo utf8_encode($user['resp_ent']); ?>
						  </div>
              	  <?php 
              }
              ?>			  
			  </td>
			  
              <td class="zinfo"> 
			  
			  <?php
			  //--------------- Owen 01/2011 Limitation de caractère
              $__text = CFunctions::cut_string($user['nom_ent'], $max_input_text+3);
              echo utf8_encode($__text);
              if($user['nom_ent'] != $__text) {
              	?>
              	 <div class="bulle">
			         <?php echo utf8_encode($user['nom_ent']); ?>
			     </div>
              	<?php 
              }
              ?>
			  </td>
			  <td class="zinfo"> 
			  <?php 
				echo $user['id_sec'];
				$sql_nomSec='select nom_sec FROM secteur WHERE id_sec='.$user['id_sec'];
				$nomSec=CBdd::select_one($sql_nomSec, 'nom_sec');
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:user_groupeUtilitaire.php


示例8: CFunctions

<?php

/**
 * $Id: vw_edit_packs.php 19285 2013-05-26 13:10:13Z phenxdesign $
 *
 * @package    Mediboard
 * @subpackage Labo
 * @author     SARL OpenXtrem <[email protected]>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision: 19285 $
 */
CCanDo::checkRead();
$user = CMediusers::get();
// Chargement des fontions
$function = new CFunctions();
$listFunctions = $function->loadListWithPerms(PERM_EDIT);
// Chargement du pack demandé
$pack = new CPackExamensLabo();
$pack->load(CValue::getOrSession("pack_examens_labo_id"));
if ($pack->_id && $pack->getPerm(PERM_EDIT)) {
    $pack->loadRefs();
} else {
    $pack = new CPackExamensLabo();
}
//Chargement de tous les packs
$where = array("function_id IS NULL OR function_id " . CSQLDataSource::prepareIn(array_keys($listFunctions)));
$where["obsolete"] = " = '0'";
$order = "libelle";
$listPacks = $pack->loadList($where, $order);
foreach ($listPacks as $key => $curr_pack) {
    $listPacks[$key]->loadRefs();
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:vw_edit_packs.php


示例9: 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 = CTableGroupeCommune::get_iNbrContact($_SESSION['groupe']);
$iMaxPerPage1 = $i-1;
// FIN COMPTEUR
$iNbPage    = ceil(($iMaxPerPage1/$iMaxPerPage)) ;

$zListeGetParam  = '' ;



/*--------------------------------------------------------------------
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:user_groupeCommune.php


示例10: createDoctor

 /**
  * Create the mediuser
  *
  * @param CMediusers $mediuser mediuser
  *
  * @return int
  */
 function createDoctor(CMediusers $mediuser)
 {
     $sender = $this->_ref_sender;
     $function = new CFunctions();
     $function->text = CAppUI::conf("hl7 importFunctionName");
     $function->group_id = $sender->group_id;
     $function->loadMatchingObjectEsc();
     if (!$function->_id) {
         $function->type = "cabinet";
         $function->compta_partagee = 0;
         $function->color = "ffffff";
         $function->store();
     }
     $mediuser->function_id = $function->_id;
     $mediuser->makeUsernamePassword($mediuser->_user_first_name, $mediuser->_user_last_name, null, true);
     $mediuser->_user_type = 13;
     // Medecin
     $mediuser->actif = CAppUI::conf("hl7 doctorActif") ? 1 : 0;
     $user = new CUser();
     $user->user_last_name = $mediuser->_user_last_name;
     $user->user_first_name = $mediuser->_user_first_name;
     // On recherche par le seek
     $users = $user->seek("{$user->user_last_name} {$user->user_first_name}");
     if (count($users) == 1) {
         $user = reset($users);
         $user->loadRefMediuser();
         $mediuser = $user->_ref_mediuser;
     } else {
         // Dernière recherche si le login est déjà existant
         $user = new CUser();
         $user->user_username = $mediuser->_user_username;
         if ($user->loadMatchingObject()) {
             // On affecte un username aléatoire
             $mediuser->_user_username .= rand(1, 10);
         }
         $mediuser->store();
     }
     return $mediuser->_id;
 }
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:46,代码来源:CHL7v2MessageXML.class.php


示例11:

 <h2>Informations personnelles</h2>
 <p>
   <label>Civilit&eacute;</label>
   <input type="radio" value="3" <?php echo CForm::get_checked($civilite, 3) ?> name="civilite"/>
   M.
   <input type="radio" value="1" <?php echo CForm::get_checked($civilite, 1) ?> name="civilite"/>
   Mme
   <input type="radio" value="2" <?php echo CForm::get_checked($civilite,2) ?> name="civilite"/>
   Mlle</p>
 <p>
   <label>Nom </label>
   <input name="nom" type="text" value="<?php echo  $nom?>" />
 </p>
 <p>
   <label>Pr&eacute;nom </label>
   <input name="prenom" type="text" value="<?php echo  CFunctions::clean($prenom)?>" />
 </p>
 <p>
   <label>Soci&eacute;t&eacute;</label>
   <input name="societe" type="text" value="<?php echo $societe?>" />
 </p>
 <p>
   <label>Adresse</label>
   <input name="adresse" type="text" value="<?php echo  $adresse?>" />
 </p>
 <p>
   <label>Code postal</label>
   <input name="cp" type="text" value="<?php echo  $cp?>" />
 </p>
 <p>
   <label>Ville </label>
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:user.php


示例12: CFunctions

<?php

/**
 * $Id$
 *  
 * @category ihe
 * @package  Mediboard
 * @author   SARL OpenXtrem <[email protected]>
 * @license  GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version  $Revision$
 * @link     http://www.mediboard.org
 */
CCanDo::checkAdmin();
$function = new CFunctions();
$functions = $function->loadList();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("functions", $functions);
$smarty->display("configure.tpl");
开发者ID:fbone,项目名称:mediboard4,代码行数:19,代码来源:configure.php


示例13: CUser

     $unfound["user"][$mediuser->_user_last_name] = true;
 }
 // Profil
 if ($profil_name = $results[$i]["profil_name"]) {
     $profil = new CUser();
     $profil->user_username = $profil_name;
     $profil->loadMatchingObject();
     if ($profil->_id) {
         $mediuser->_profile_id = $profil->_id;
     } else {
         $unfound["profil_name"][$profil_name] = true;
     }
 }
 $group_id = CGroups::loadCurrent()->_id;
 // Fonction
 $function = new CFunctions();
 $function->group_id = $group_id;
 $function->text = $results[$i]["function_name"];
 $function->loadMatchingObject();
 if (!$function->_id) {
     if (in_array($results[$i]["type"], array("3", "4", "13"))) {
         $function->type = "cabinet";
     } else {
         $function->type = "administratif";
     }
     $function->color = "ffffff";
     $function->compta_partagee = 0;
     $function->consults_partagees = 1;
     $function->unescapeValues();
     $msg = $function->store();
     if ($msg) {
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:user_import_csv.php


示例14: 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;
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:moul_groupe_mail.php


示例15: mysql_query

			  $zResSQLUser = mysql_query($zSqlInfoUser);
			  $zResUsers = mysql_fetch_assoc($zResSQLUser);

				$civilite = CFunctions::clean($zResUsers["civilite"]);
				$nom = CFunctions::clean($zResUsers["nom"]);
				$prenom = CFunctions::clean($zResUsers["prenom"]);
				$adresse = CFunctions::clean($zResUsers["adresse"]);
				$cp = CFunctions::clean($zResUsers["cp"]);
				$ville = CFunctions::clean($zResUsers["ville"]);
				$pays = CFunctions::clean($zResUsers["pays"]);
				$email = CFunctions::clean($zResUsers["email"]);
				$telephone = trim($zResUsers["telephone"]);
				$mobile = trim($zResUsers["mobile"]);
				$societe = CFunctions::clean($zResUsers["societe"]);
				$web = CFunctions::clean($zResUsers["web"]);
				$commentaire = CFunctions::clean($zResUsers["commentaire"]);

		  //-- Enregistrement des données de la table user dans la table gr_user pour le contact d'id donné
		    $zQuery = "INSERT INTO gr_user (user_id, civilite, nom, prenom, adresse, cp, ville, pays, email, telephone, mobile, societe, web, commentaire) VALUES (
		    	'" . $zUser . "',
		    	'" . $civilite . "',
		    	'" . str_replace ("'", "''", $nom) . "',
		    	'" . str_replace ("'", "''", $prenom) . "',
		    	'" . str_replace ("'", "''", $adresse) . "',
		    	'" . $cp . "',
		    	'" . str_replace ("'", "''", $ville) . "',
		    	'" . str_replace ("'", "''", $pays) . "',
		    	'" . $email . "',
		    	'" . $telephone . "',
		    	'" . $mobile . "',
		    	'" . str_replace ("'", "''", $societe) . "',
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:gestion_retour.php


示例16: loadRefsForDay

 /**
  * Charge la liste de plages et opérations pour un jour donné
  * Analogue à CMediusers::loadRefsForDay
  *
  * @param string $date Date to look for
  * @param bool   $second_chir Use chir_2, chir_3 and chir_4
  *
  * @return void
  */
 function loadRefsForDay($date, $second_chir = false)
 {
     // Liste des utilisateurs
     $user = new CMediusers();
     $listPrats = $user->loadPraticiens(PERM_READ);
     // Liste des fonctions
     $function = new CFunctions();
     $listFunctions = $function->loadListWithPerms(PERM_READ);
     // Plages d'opérations
     $plage = new CPlageOp();
     $conf_chambre_operation = $plage->conf("chambre_operation");
     $ljoin = array();
     $add_where = "";
     $add_or_where = "";
     if ($second_chir) {
         $ljoin["operations"] = "plagesop.plageop_id = operations.plageop_id";
         $prepare_prats = CSQLDataSource::prepareIn(array_keys($listPrats));
         $add_where = "operations.chir_id " . $prepare_prats . " OR operations.chir_2_id " . $prepare_prats . " OR operations.chir_3_id " . $prepare_prats . " OR operations.chir_4_id " . $prepare_prats;
         $add_or_where = " OR {$add_where}";
     }
     $where = array();
     $where["plagesop.date"] = "= '{$date}'";
     $where["plagesop.salle_id"] = "= '{$this->_id}'";
     $where[] = "`plagesop`.`chir_id` " . CSQLDataSource::prepareIn(array_keys($listPrats)) . " OR `plagesop`.`spec_id` " . CSQLDataSource::prepareIn(array_keys($listFunctions)) . $add_or_where;
     $order = "debut";
     $this->_ref_plages = $plage->loadList($where, $order, null, "plageop_id", $ljoin);
     // Chargement d'optimisation
     CMbObject::massLoadFwdRef($this->_ref_plages, "chir_id");
     CMbObject::massLoadFwdRef($this->_ref_plages, "anesth_id");
     CMbObject::massLoadFwdRef($this->_ref_plages, "spec_id");
     CMbObject::massLoadFwdRef($this->_ref_plages, "salle_id");
     CMbObject::massCountBackRefs($this->_ref_plages, "notes");
     CMbObject::massCountBackRefs($this->_ref_plages, "affectations_personnel");
     foreach ($this->_ref_plages as $_plage) {
         /** @var CPlageOp $_plage */
         $_plage->loadRefChir();
         $_plage->loadRefAnesth();
         $_plage->loadRefSpec();
         $_plage->loadRefSalle();
         $_plage->makeView();
         $_plage->loadRefsOperations();
         $_plage->loadRefsNotes();
         $_plage->loadAffectationsPersonnel();
         $_plage->_unordered_operations = array();
         // Chargement d'optimisation
         CMbObject::massLoadFwdRef($_plage->_ref_operations, "chir_id");
         $sejours = CMbObject::massLoadFwdRef($_plage->_ref_operations, "sejour_id");
         CMbObject::massLoadFwdRef($sejours, "patient_id");
         foreach ($_plage->_ref_operations as $operation) {
             $operation->loadRefAnesth();
             $operation->loadRefChirs();
             $operation->loadRefPatient();
             $operation->loadExtCodesCCAM();
             $operation->loadRefPlageOp();
             if ($conf_chambre_operation) {
                 $operation->loadRefAffectation();
             }
             // Extraire les interventions non placées
             if ($operation->rank == 0) {
                 $_plage->_unordered_operations[$operation->_id] = $operation;
                 unset($_plage->_ref_operations[$operation->_id]);
             }
         }
     }
     // Interventions déplacés
     $deplacee = new COperation();
     $ljoin = array();
     $ljoin["plagesop"] = "operations.plageop_id = plagesop.plageop_id";
     $where = array();
     $where["operations.plageop_id"] = "IS NOT NULL";
     $where["plagesop.salle_id"] = "!= operations.salle_id";
     $where["plagesop.date"] = "= '{$date}'";
     $where["operations.salle_id"] = "= '{$this->_id}'";
     $where[] = "`plagesop`.`chir_id` " . CSQLDataSource::prepareIn(array_keys($listPrats)) . " OR `plagesop`.`spec_id` " . CSQLDataSource::prepareIn(array_keys($listFunctions)) . $add_or_where;
     $order = "operations.time_operation";
     $this->_ref_deplacees = $deplacee->loadList($where, $order, null, "operation_id", $ljoin);
     // Chargement d'optimisation
     CMbObject::massLoadFwdRef($this->_ref_deplacees, "chir_id");
     $sejours_deplacees = CMbObject::massLoadFwdRef($this->_ref_deplacees, "sejour_id");
     CMbObject::massLoadFwdRef($sejours_deplacees, "patient_id");
     foreach ($this->_ref_deplacees as $_deplacee) {
         /** @var COperation $_deplacee */
         $_deplacee->loadRefChirs();
         $_deplacee->loadRefPatient();
         $_deplacee->loadExtCodesCCAM();
         $_deplacee->loadRefPlageOp();
     }
     // Hors plage
     $urgence = new COperation();
     $ljoin = array();
     $ljoin["plagesop"] = "operations.plageop_id = plagesop.plageop_id";
//.........这里部分代码省略.........
开发者ID:fbone,项目名称:mediboard4,代码行数:101,代码来源:CSalle.class.php


示例17: CFunctions

        $operation->loadRefsActes();
    }
    // Chargement des affectation
    $_sejour->loadRefsAffectations();
    if ($maternite_active && $_sejour->grossesse_id) {
        $_sejour->_sejours_enfants_ids = CMbArray::pluck($_sejour->loadRefsNaissances(), "sejour_enfant_id");
    }
    // Chargement des modes de sortie
    $_sejour->loadRefEtablissementTransfert();
    $_sejour->loadRefServiceMutation();
    // Chargement des appels
    $_sejour->loadRefsAppel('sortie');
}
// Si la fonction selectionnée n'est pas dans la liste des fonction, on la rajoute
if ($filterFunction && !array_key_exists($filterFunction, $functions)) {
    $_function = new CFunctions();
    $_function->load($filterFunction);
    $functions[$filterFunction] = $_function;
}
$list_mode_sortie = array();
if (CAppUI::conf("dPplanningOp CSejour use_custom_mode_sortie")) {
    $mode_sortie = new CModeSortieSejour();
    $where = array("actif" => "= '1'");
    $list_mode_sortie = $mode_sortie->loadGroupList($where);
}
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("hier", $hier);
$smarty->assign("demain", $demain);
$smarty->assign("date_min", $date_min);
$smarty->assign("date_max", $date_max);
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:httpreq_vw_sorties.php


示例18: if

				<?php 
				}
				}
				endwhile; 
				}?>
       </select>

    </p>
  </div>
  <div class="floatleft">
    <p>
      <label>Cat&eacute;gorie</label>
      <select onchange="this.form.submit();" name="filtre_categorie" id="filtre_categorie" style="width:145px;">
        <option value="%%">Tout</option>
		<?php
		$filtre_commune_=CFunctions::remove($filtre_commune);
		$zSql  = " SELECT DISTINCT cat.* FROM cat INNER JOIN entreprise on  cat.id_cat = entreprise.categorie_ent  where id_cat <> 0 ".$filtre_groupe." AND commune_alias LIKE '" . $filtre_commune_ . "' AND secteur_cat LIKE '".$filtre_secteur."' ORDER BY nom_cat"; 
		$oRes_ = CBdd::select($zSql) ;
		while ($oCat = mysql_fetch_assoc($oRes_)): ?>
		<option value="<?php echo $oCat['id_cat'] ?>" <?php if ($filtre_categorie!='%%%') { 
																	if($filtre_categorie == $oCat['id_cat'])  echo "selected"; 
																	}?>><?php echo utf8_encode($oCat['nom_cat']) ?></option>
         <?php endwhile; ?>
       </select>	   

    </p>
  </div>  
  <div class="floatleft">
    <p>
      <label style="width:80px;">Abonnement</label>
      <select onchange="this.form.submit();" name="filtre_vignette" id="filtre_vignette" style="width:145px;">
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:contact.php


示例19: CMediusers

 * @license  GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version  $Revision$
 * @link     http://www.mediboard.org
 */
global $date, $chir_id, $print;
$print = 1;
$function_id = CValue::get("function_id");
$date = CValue::get("date");
$start = CMbDT::date("this monday", $date);
if ($start > $date) {
    $start = CMbDT::date("last monday", $date);
}
$end = CMbDT::date("next sunday", $start);
$muser = new CMediusers();
$musers = $muser->loadProfessionnelDeSanteByPref(PERM_READ, $function_id);
$function = new CFunctions();
$function->load($function_id);
echo "<h1>" . $function->_view . " (" . CMbDT::format($start, CAppUI::conf('longdate')) . " - " . CMbDT::format($end, CAppUI::conf('longdate')) . ")</h1>";
$pconsult = new CPlageconsult();
$ds = $pconsult->getDS();
$where = array();
$where[] = "chir_id " . $ds->prepareIn(array_keys($musers)) . " OR remplacant_id " . $ds->prepareIn(array_keys($musers));
$where["date"] = " BETWEEN '{$start}' AND '{$end}' ";
/** @var CPlageconsult[] $pconsults */
$pconsults = $pconsult->loadList($where, "date", null, "chir_id");
$pconsults_by_date_and_prat = array();
if (!count($pconsults)) {
    echo "<div class='small-info'>Les praticiens de ce cabinet n'ont pas de plages de consultations sur cette période</div>";
    CApp::rip();
}
foreach ($pconsults as $_pc) {
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:print_planning_function.php


示例20: 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;
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:29,代码来源:opportunite.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP CGlobal类代码示例发布时间:2022-05-23
下一篇:
PHP CFriendsHelper类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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