示例#1
0
<?php

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage PlanningOp
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkEdit();
$praticien = new CMediusers();
$praticien_id = CValue::get("praticien_id");
$praticien->load($praticien_id);
if (!$praticien->canEdit() || !$praticien->isPraticien()) {
    $praticien_id = null;
}
$patient = new CPatient();
$patient_id = CValue::get("patient_id", CValue::post("patient_id"));
$patient->nom = CValue::get("patient_nom", CValue::post("patient_nom"));
$patient->prenom = CValue::get("patient_prenom", CValue::post("patient_prenom"));
$patient->naissance = CValue::get("patient_date_naissance", CValue::post("patient_date_naissance"));
$patient->sexe = CValue::get("patient_sexe", CValue::post("patient_sexe"));
$patient->adresse = CValue::get("patient_adresse", CValue::post("patient_adresse"));
$patient->cp = CValue::get("patient_code_postal", CValue::post("patient_code_postal"));
$patient->ville = CValue::get("patient_ville", CValue::post("patient_ville"));
$patient->tel = CValue::get("patient_telephone", CValue::post("patient_telephone"));
$patient->tel2 = CValue::get("patient_mobile", CValue::post("patient_mobile"));
$sejour = new CSejour();
$sejour_id = CValue::get("sejour_id", CValue::post("sejour_id"));