require_once 'class.util.php'; require_once 'class.demande.php'; define('licenseTabName', 'licenseTab'); define('residentialProofTabName', 'residentialProofTab'); define('car1TabName', 'car1Tab'); define('car2TabName', 'car2Tab'); $auth = authentification::instance(); $matricules = util::getParam($_POST, 'matricules'); $section = util::getParam($_GET, 'section'); if ($auth->estIdentifie() && isset($matricules) && isset($section)) { $matricules = json_decode($matricules); $demandCount = count($matricules); $demande = null; if ($demandCount == 1) { $demande = new demande($matricules[0]); $demande->updateDataFromDB(); $options = $demande->getStatus()->getStatusSelectorOptions(); } else { if ($demandCount == 0) { exit(0); } } if ($section == 'status') { if ($demandCount > 1) { generateStatusSectionContentMultiDemands($demandCount); } else { generateStatusSectionContent($demande); } } else { if ($section == 'proof') { generateProofSectionContent($demande);