diff --git a/addEvent.css b/addEvent.css index 2ac5949..ca4c0ff 100644 --- a/addEvent.css +++ b/addEvent.css @@ -24,6 +24,10 @@ max-height: 300px; } +.bad-checkbox { + box-shadow: 0px 0px 5px red; +} + #buttonDiv { width:80%; text-align: center; diff --git a/addEvent.php b/addEvent.php index 8b8d5dd..791830c 100644 --- a/addEvent.php +++ b/addEvent.php @@ -10,8 +10,6 @@ include_once('databaseOperations.php'); include('datetimeOperations.php'); $db = connect(); -//TODO: js at least check one categorie to submit form - $edit = (isset($_GET['id']) && is_numeric($_GET['id'])); if(!$edit) @@ -26,10 +24,10 @@ if(!$edit) 'debut-annee'=>date('Y'), 'debut-heure'=>date('G'), 'debut-minutes'=>'0', - 'fin-jour'=>date('j'), - 'fin-mois'=>date('n'), - 'fin-annee'=>date('Y'), - 'fin-heure'=>date('G'), + 'fin-jour'=>date('j', strtotime('+1 hour')), + 'fin-mois'=>date('n', strtotime('+1 hour')), + 'fin-annee'=>date('Y', strtotime('+1 hour')), + 'fin-heure'=>date('G', strtotime('+1 hour')), 'fin-minutes'=>'0', 'description'=>'', 'site'=>'', @@ -229,7 +227,6 @@ else