public function lockInterface() { if (!isset($_GET['SubjectKey']) || !isset($_GET['StudyEventOID']) || !isset($_GET['StudyEventRepeatKey']) || !isset($_GET['FormOID']) || !isset($_GET['FormRepeatKey']) || !isset($_GET['FormStatus'])) { $this->m_ctrl->addLog(__METHOD__ . " Missing keys in " . print_r($_GET, true), FATAL); } require_once 'class.uisubject.inc.php'; $SubjectKey = $_GET['SubjectKey']; $StudyEventOID = $_GET['StudyEventOID']; $StudyEventRepeatKey = $_GET['StudyEventRepeatKey']; $FormOID = $_GET['FormOID']; $FormRepeatKey = $_GET['FormRepeatKey']; $formStatus = $_GET['FormStatus']; if ($formStatus == "FILLED") { $bLock = true; //freeze asked } else { $bLock = false; //unfreeze } //On commence par modifier les statuts des itemgroups demand�s $this->m_ctrl->bocdiscoo()->setLock($SubjectKey, $StudyEventOID, $StudyEventRepeatKey, $FormOID, $FormRepeatKey, $bLock); //On retourne ensuite le formulaire demand� global $configEtude; $ui = new uisubject($configEtude, $this->m_ctrl); $this->create_header(); echo $ui->getInterface(); $this->create_footer(); }
public function lockInterface() { require_once 'class.uisubject.inc.php'; $SubjectKey = $_GET['SubjectKey']; $StudyEventOID = $_GET['StudyEventOID']; $StudyEventRepeatKey = $_GET['StudyEventRepeatKey']; $FormOID = $_GET['FormOID']; $FormRepeatKey = $_GET['FormRepeatKey']; $formStatus = $_GET['FormStatus']; if ($formStatus == "FILLED") { $bLock = true; //on demande le gel du formulaire } else { $bLock = false; //on demande le degel du formulaire } //On commence par modifier les statuts des itemgroups demandés $this->m_ctrl->bocdiscoo()->setLock($SubjectKey, $StudyEventOID, $StudyEventRepeatKey, $FormOID, $FormRepeatKey, $bLock); //On retourne ensuite le formulaire demandé global $configEtude; $ui = new uisubject($configEtude, $this->m_ctrl); $this->create_header(); echo $ui->getInterface(); $this->create_footer(); }