From 3769c28079bf70f707f3fadef84a489af7b315a9 Mon Sep 17 00:00:00 2001 From: AmarOk Date: Thu, 10 Dec 2015 10:34:24 +0100 Subject: [PATCH 1/3] begin addEvent --- addEvent.php | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 addEvent.php diff --git a/addEvent.php b/addEvent.php new file mode 100644 index 0000000..db38a91 --- /dev/null +++ b/addEvent.php @@ -0,0 +1,87 @@ + + + + Kiwi Calendar : Ajouter un évènement + + + + + + + + + +
+ logo ESIR + +
+ +
+

Ajouter un Évènement

+ +
+ Titre de l'évènement :
+ +
+ Adresse du lieu :
+ +
+ Date de début :
+
+ + + + +
+
+ Date de fin :
+
+ + + + +
+
+ Description de l'évènement :
+ +
+ Site de l'évènement :
+ +
+ Image de l'évènement :
+ +
+ Contact :
+ +
+ + + + + + + + + +
+ + From b2d67782614463e47c128655d565d3802cb4c728 Mon Sep 17 00:00:00 2001 From: AmarOk Date: Thu, 10 Dec 2015 10:39:39 +0100 Subject: [PATCH 2/3] titre->title --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index d2ae3dc..9355bb1 100644 --- a/index.php +++ b/index.php @@ -142,7 +142,7 @@ else '); From 6e792413194afd8173ae7066b622583939c0a6b5 Mon Sep 17 00:00:00 2001 From: AmarOk Date: Thu, 10 Dec 2015 10:43:12 +0100 Subject: [PATCH 3/3] link addEvent page --- index.php | 2 +- makedatabase.sql | 6 +----- populateDatabase.sql | 5 +++++ 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index 9355bb1..4e0d4df 100644 --- a/index.php +++ b/index.php @@ -95,7 +95,7 @@ else } ?> - +
+ Ajouter un Évènement
diff --git a/makedatabase.sql b/makedatabase.sql index 7abdee2..d125125 100644 --- a/makedatabase.sql +++ b/makedatabase.sql @@ -1,11 +1,7 @@ --- categorie of the categorie CREATE TABLE sous_categorie(sous_cat_id INTEGER PRIMARY KEY, sous_cat_tab INTEGER NOT NULL, sous_cat_titre VARCHAR(255) NOT NULL); --- categorie of the event CREATE TABLE categorie(cat_id INTEGER PRIMARY KEY, cat_titre VARCHAR(255) NOT NULL, sous_cat_id INTEGER NOT NULL, FOREIGN KEY(sous_cat_id) REFERENCES sous_categorie(sous_cat_id)); --- event -CREATE TABLE event(event_id INTEGER PRIMARY KEY, event_titre VARCHAR(255) NOT NULL, event_localisation VARCHAR(255) NOT NULL, event_dtstart DATETIME NOT NULL, event_dtend DATETIME NOT NULL, event_description TEXT NOT NULL, event_url VARCHAR(255) NULL); +CREATE TABLE event(event_id INTEGER PRIMARY KEY, event_title VARCHAR(255) NOT NULL, event_localisation VARCHAR(255) NOT NULL, event_dtstart DATETIME NOT NULL, event_dtend DATETIME NOT NULL, event_description TEXT NOT NULL, event_url VARCHAR(255), event_urlImage VARCHAR(255), event_contact VARCHAR(255)); --- table joining events to its categorie CREATE TABLE eventCategorie(event_id INTEGER, cat_id INTEGER, FOREIGN KEY(event_id) REFERENCES event(event_id), FOREIGN KEY(cat_id) REFERENCES categorie(cat_id)); diff --git a/populateDatabase.sql b/populateDatabase.sql index 74f17c8..6bc0dc2 100644 --- a/populateDatabase.sql +++ b/populateDatabase.sql @@ -17,3 +17,8 @@ INSERT INTO categorie(sous_cat_id, cat_titre) VALUES(1, "Association de défence INSERT INTO sous_categorie(sous_cat_id, sous_cat_tab, sous_cat_titre) VALUES(2,1, "Associations"); INSERT INTO categorie(sous_cat_id, cat_titre) VALUES(2, "Labfab"); + + +INSERT INTO event VALUES (1, "Porte Ouverte Inria", "INRIA Rennes", "2015-12-10", "2015-12-10", "L'Inria ouvre ses portes aux étudiants !", "http://po.irisa.fr/", "http://www.lirmm.fr/DEMAR/images/inria_corpo_rvb.jpg", "contact@irisa.fr"); +INSERT INTO event VALUES (2, "Inpol", "ESIR, Rennes", "2015-12-10 09:00:00", "2015-12-10 12:00:00", "Cours d'innovation et politique", NULL, "https://esir.univ-rennes1.fr/sites/esir.univ-rennes1.fr/themes/esir/logo.png", NULL); +INSERT INTO event VALUES (3, "Festival film animation", "Bruz, France", "2015-12-07 09:00:00", "2015-12-13 20:00:00", "Festival national du film d'animation", "http://festival-film-animation.fr/", "http://festival-film-animation.fr/cache/com_unitehcarousel/films_en_bretagne_logo_site_150x150_exact_images-2015.jpg", "communication@afca.asso.fr");