コード例 #1
0
ファイル: demarrage.php プロジェクト: R3mi66/systemGestion
     }
     break;
 case 'Mensuel':
     $tache->mensuel($base, $nom_intervention, $nom_ouvrage, $year);
     break;
 case 'Saisonnier':
     for ($i = $debutcampagne; $i < $fincampagne + 1; $i++) {
         $retour = get_monday_friday_week($i, $year);
         $tache->saisonnier($base, $nom_intervention, $nom_ouvrage, $year, $i, $retour[0], $retour[1]);
     }
     break;
 case 'Semestriel':
     $tache->semestriel($base, $nom_intervention, $nom_ouvrage, $year);
     break;
 case 'Annuel':
     $tache->annuel($base, $nom_intervention, $nom_ouvrage, $year);
     break;
 case 'Annuelp':
     if ($year % 2 == 0) {
         $tache->annuel($base, $nom_intervention, $nom_ouvrage, $year);
     }
     break;
 case 'Annueli':
     if ($year % 2 != 0) {
         $tache->annuel($base, $nom_intervention, $nom_ouvrage, $year);
     }
     break;
 case 'Janvier':
     $requete = $base->query('INSERT INTO tache_' . $year . ' VALUES (NULL, \'' . $nom_intervention . ' - Année ' . $year . ' - ' . $nom_ouvrage . '\', \'' . $year . '-01-01 00:00:00\', \'' . $year . '-01-31 23:59:59\', NULL, NULL)');
     break;
 case 'Fevrier':