Exemple #1
0
        echo constant('LANG_ADMIN_SERVICES_FORM_SUBMIT_' . strtoupper($action));
        ?>
" />
				<?php 
    }
    ?>
			</form>
		<?php 
    /*
    	Modèles utilisés pour le traitement JS des certificats (duplication du code présent ci-dessous lors d'un appuie sur la touche +)
    */
    ?>
		<div style = "display: none;">
		<?php 
    // Récupération de la liste des certificats possible
    $listeCertificats = getCertificatList();
    ?>
			<div id = "certificatFomData">
				<div>
					<select name = "certificat[new][]" class = "<?php 
    if ($action != 'edit' && $action != 'add') {
        echo 'readonlyForm';
    }
    ?>
" <?php 
    if ($action != 'edit' && $action != 'add') {
        echo 'disabled';
    }
    ?>
>
					<?php 
Exemple #2
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;
    }
    $listeCertificats = getCertificatList($order, $desc);
} else {
    if ($action == 'view' || $action == 'delete' || $action == 'edit') {
        // On récupère les données sur la spécialité
        if (count(checkCertificat($_GET['id'], array())) == 0) {
            $certificatData = getCertificatInfo($_GET['id']);
        } else {
            header('Location: ' . ROOT . CURRENT_FILE . '?page=' . $_GET['page']);
        }
    }
}
/**
		2. Traitement des formulaires
	**/
if (isset($_POST) && count($_POST)) {
    /*