Пример #1
0
}
/**
		1. Récupération des données
	**/
if ($action == 'list') {
    if (isset($_GET['order'])) {
        $order = $_GET['order'];
    } else {
        $order = 'nom';
    }
    if (isset($_GET['desc'])) {
        $desc = true;
    } else {
        $desc = false;
    }
    $listeHopitaux = getHospitalList($order, $desc);
} else {
    if ($action == 'view' || $action == 'delete' || $action == 'edit') {
        // On récupère les données sur l'hopital
        if (count(checkHopital($_GET['id'], array())) == 0) {
            $hopitalData = getHospitalInfo($_GET['id']);
        } else {
            header('Location: ' . ROOT . CURRENT_FILE . '?page=' . $_GET['page']);
        }
    }
}
/**
		2. Traitement des formulaires
	**/
if (isset($_POST) && count($_POST)) {
    /*
Пример #2
0
    echo LANG_ADMIN_SERVICES_LISTE_TABLE_TITLE_HOPITAL;
    ?>
</label>
					<select id = "hopital" name = "hopital" class = "<?php 
    if ($action == 'view' || $action == 'delete') {
        echo 'readonlyForm';
    }
    ?>
" <?php 
    if ($action == 'view' || $action == 'delete') {
        echo 'disabled';
    }
    ?>
>
						<?php 
    $listeHopitaux = getHospitalList();
    if (isset($_POST['hopital'])) {
        $defaultValue = $_POST['hopital'];
    } else {
        if (isset($serviceInfo['hopital']['id'])) {
            $defaultValue = $serviceInfo['hopital']['id'];
        } else {
            $defaultValue = FALSE;
        }
    }
    foreach ($listeHopitaux as $hopitalId => $hopitalData) {
        ?>
									<option value = "<?php 
        echo $hopitalId;
        ?>
"  <?php 
Пример #3
0
			getHospitalLegaleseTimestamps("1");

		case '1.9.5':
			reportPerson($personXML, $eventShortname, $xmlFormat, $user, $pass);
			createPersonUuid($user, $pass);
			createPersonUuidBatch($number, $user, $pass);
			createNoteUuid($user, $pass);
			createNoteUuidBatch($number, $user, $pass);
			search("test", "t");
			searchWithAuth("test", "t", $user, $pass);
			getSessionTimeout();
			registerUser("testCaseUser", "*****@*****.**", "testPassword99", "testCaseGiven", "testCaseFamily");
			changeUserPassword($user, $pass, $pass);
			forgotUsername($email);
			checkUserAuth($user, $pass);
			getUserStatus($user);
			getUserGroup($user);
			getEventList();
			getEventListUser($user, $pass);
			getGroupList();
			getHospitalList();
			getHospitalData("1");
			getHospitalPolicy("1");
	}
	echo "</table><b>Note: deprecated functions are not listed/tested.</b></body>";
}