From aabb85b03ec503586d3a1c0bd1612bbf279de14b Mon Sep 17 00:00:00 2001
From: TheMrNomis
Date: Thu, 15 Oct 2015 11:58:39 +0200
Subject: [PATCH] PHP & HTML issues
---
index.css | 157 ++++++++++++++++++------------------
index.html | 230 ++++++++++++++++++++++++++---------------------------
index.php | 117 +++++++++++++++++++++++++++
main.css | 61 ++------------
4 files changed, 319 insertions(+), 246 deletions(-)
create mode 100644 index.php
diff --git a/index.css b/index.css
index 5601a7d..9c9b8a4 100755
--- a/index.css
+++ b/index.css
@@ -56,23 +56,23 @@ nav .onglet:hover
#hamburgerMenu
{
- background-color:#fff;
- height:100%;
+ background-color:#fff;
+ height:100%;
}
#hamburgerMenu h2
{
- font-size:22px;
- color:#2b2b2b;
- margin-left:5%;
- margin-top:5%;
+ font-size:22px;
+ color:#2b2b2b;
+ margin-left:5%;
+ margin-top:5%;
}
form
{
- margin-top:-20px;
- margin-left:20%;
- margin-bottom:-20px;
+ margin-top:-20px;
+ margin-left:20%;
+ margin-bottom:-20px;
}
input[type="checkbox"] {
@@ -93,47 +93,47 @@ input[type="checkbox"]:checked + label span {
#AddEvent
{
- margin:0;
- margin-top:45px;
- text-align:center;
- font-size: 20px;
- padding-top:15px;
- height: 40px;
- width: 100%;
- position:absolute;
- color: #ffffff;
- background-color: #2b2b2b;
+ margin:0;
+ margin-top:45px;
+ text-align:center;
+ font-size: 20px;
+ padding-top:15px;
+ height: 40px;
+ width: 100%;
+ position:absolute;
+ color: #ffffff;
+ background-color: #2b2b2b;
}
#container
{
- margin-top:120px;
+ margin-top:120px;
}
#AddEvent:hover
{
- color: #2b2b2b;
- background-color: #40c1e6;
+ color: #2b2b2b;
+ background-color: #40c1e6;
}
#calendar
{
- height:100%;
- margin:0;
- margin-left:-10px;
- background-color:#f1f1f1;
+ height:100%;
+ margin:0;
+ margin-left:-10px;
+ background-color:#f1f1f1;
}
#footer
{
- position:fixed;
- background-color:#f1f1f1;
- bottom:0px;
- height:54px;
- color:#2b2b2B;
- margin:0;
- width:100%;
- border:1px solid #2b2b2b;
+ position:fixed;
+ background-color:#f1f1f1;
+ bottom:0px;
+ height:54px;
+ color:#2b2b2B;
+ margin:0;
+ width:100%;
+ border:1px solid #2b2b2b;
}
#Export
@@ -145,18 +145,18 @@ input[type="checkbox"]:checked + label span {
#exMois
{
- margin-top:-10px;
- height:30px;
- width:30%;
- margin-left:auto;
- margin-right:auto;
+ margin-top:-10px;
+ height:30px;
+ width:30%;
+ margin-left:auto;
+ margin-right:auto;
}
#Mois
{
- text-align:center;
- font-size: 30px;
- margin-top:-45px;
+ text-align:center;
+ font-size: 30px;
+ margin-top:-45px;
}
#exLess
@@ -176,54 +176,55 @@ input[type="checkbox"]:checked + label span {
/*Calendar*/
-table
-{
- width:100%;
- margin:0;
- padding:0;
- border-style:none;
- table-layout: fixed;
+#calendar {
+ margin-top:60px;
}
-tr
-{
- height:250px;
- border-style:none;
- margin:0;
- width:100%;
- padding:0;
+#calendar .week {
+ padding: 0;
+ margin: 0;
+ list-style: none;
+
+ display: -webkit-box;
+ display: -moz-box;
+ display: -ms-flexbox;
+ display: -webkit-flex;
+ display: flex;
+
+ -webkit-flex-flow: row wrap;
+ flex-wrap: wrap;
+ justify-content: center;
}
-td
-{
- border-style:none;
- height:100%;
+#calendar .week .day {
+ padding: 5px;
+ width: 200px;
+ height: 200px;
margin:0;
padding:0;
+
+ border:1px solid #2b2b2b;
}
-td:hover
-{
- background-color: #40c1e6;
+#calendar .week .today {
+ background-color: #a5dff0;
}
-tr #date
-{
- font-size:30px;
- margin:20px;
- color:#2b2b2b;
+#calendar .week .day:hover {
+ background-color: #65ccea;
}
-#calendar #event
-{
- margin:0;
- border:1px solid #2b2b2b;
- height:100%;
- width:100%;
+#calendar .week .day h2 {
+ font-size: 30px;
+ margin: 20px;
+ color: #2B2B2B;
}
-#link
-{
- margin-left:10px;
- font-size:12px;
+#calendar .week .otherMonth h2 {
+ color: #4B4B4B;
+}
+
+#calendar .week .day ul {
+ margin-left: -20px;
+ font-size:12px;
}
diff --git a/index.html b/index.html
index 877d7dc..ad2b457 100755
--- a/index.html
+++ b/index.html
@@ -32,41 +32,41 @@
@@ -75,90 +75,90 @@
- 6
-
10h : Conférence - Domotique
-
7
-
-
8
-
-
9
-
20h : Club tricot
-
10
-
21h : Soirée ISATI
-
11
-
-
12
-
8h : Invasion de kakapos
-
6
-
10h : Conférence - Sécurité
-
14h : Conférence - Cryptographie
-
7
-
-
8
-
-
9
-
20h : Club Jeux
-
10
-
21h : Soirée ISATI
-
11
-
-
12
-
8h : Invasion de zombies
-
6
-
10h : Conférence - Compilation
-
7
-
-
8
-
-
9
-
20h : Club robotique
-
10
-
21h : Soirée ISATI
-
11
-
-
12
-
8h : Invasion de bananes
-
6
-
10h : Conférence - Imagerie numérique
-
7
-
-
8
-
-
9
-
20h : Club tarot
-
10
-
21h : Soirée ISATI
-
11
-
-
12
-
8h : Invasion de kakapos
-
6
-
10h : Conférence - Communication
-
7
-
-
8
-
-
9
-
20h : Club Saucisson
-
10
-
21h : Soirée ISATI
-
11
-
-
12
-
8h : Invasion de nuages
-
+
6
+
10h : Conférence - Domotique
+
7
+
+
8
+
+
9
+
20h : Club tricot
+
10
+
21h : Soirée ISATI
+
11
+
+
12
+
8h : Invasion de kakapos
+
6
+
10h : Conférence - Sécurité
+
14h : Conférence - Cryptographie
+
7
+
+
8
+
+
9
+
20h : Club Jeux
+
10
+
21h : Soirée ISATI
+
11
+
+
12
+
8h : Invasion de zombies
+
6
+
10h : Conférence - Compilation
+
7
+
+
8
+
+
9
+
20h : Club robotique
+
10
+
21h : Soirée ISATI
+
11
+
+
12
+
8h : Invasion de bananes
+
6
+
10h : Conférence - Imagerie numérique
+
7
+
+
8
+
+
9
+
20h : Club tarot
+
10
+
21h : Soirée ISATI
+
11
+
+
12
+
8h : Invasion de kakapos
+
6
+
10h : Conférence - Communication
+
7
+
+
8
+
+
9
+
20h : Club Saucisson
+
10
+
21h : Soirée ISATI
+
11
+
+
12
+
8h : Invasion de nuages
+
-
+
+
+
+
+
+
+
+
+
+ ');
+ for($date = strtotime('last monday +'.$week.' weeks'); $date < strtotime('next monday +'.$week.' weeks'); $date = strtotime('+1 day', $date))
+ {
+ $class = '';
+ if(date('m', $date) != date('m'))
+ $class .= ' otherMonth';
+
+ if(date('Y-m-d', $date) == date('Y-m-d'))
+ $class .= ' today';
+
+ echo('
+
+ '.date("d", $date).'
+
+ - 10h : Conférence - Domotique
+
+ ');
+ }
+ echo('
+ '."\n");
+ }
+ ?>
+
+
diff --git a/index.php b/index.php
new file mode 100644
index 0000000..60e75b1
--- /dev/null
+++ b/index.php
@@ -0,0 +1,117 @@
+
+
+