-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathmain.php
More file actions
164 lines (130 loc) · 4.66 KB
/
main.php
File metadata and controls
164 lines (130 loc) · 4.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!--Main PHP file
globals functions to display html Page
dislayPage()
displayTitle($title)
displayMessage($objet, $message)
displayFooter()-->
<?php
function displayPage(){
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8" name="viewport" content= "width=device-width, initial-scale=1.0">
<link href="rsc/bootstrap/css/bootstrap.css" rel="stylesheet" />
<link rel="stylesheet" href="mainStyle.css" />
<title>Site du projet Augustine</title>
<link rel="icon" type="image/png" href="rsc/img/Accueil_footer.png">
</head>
<body>
<!-- Includes for script -->
<script src="rsc/jquery.js"></script>
<script src="rsc/bootstrap/js/bootstrap.js"></script>
<script src="rsc/son.js"></script>
<header class="navbar navbar-default navbar-inverse navbar-fixed-top bs-docs-nav" role="banner">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".bs-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-abr"></span>
</button>
<a class="navbar-brand" href="index.html"><img src="rsc/img/Accueil.png" height="20" width="65" /></a>
</div>
<nav class="collapse navbar-collapse" id="bs-exambple-navbar-collapse-1">
<ul class="nav navbar-nav">
<li>
<a href="presentation.html">Présentation</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Historique<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="historique.html#2011"><span class="glyphicon glyphicon-share-alt"></span>Année 2011</a></li>
<li><a href="historique.html#2012"><span class="glyphicon glyphicon-share-alt"></span>Année 2012</a></li>
<li><a href="historique.html#2013"><span class="glyphicon glyphicon-share-alt"></span>Année 2013</a></li>
<li><a href="historique.html#presse"><span class="glyphicon glyphicon-share-alt"></span>Presse</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav">
<li><a href="galerie.html">Galerie</a></li>
<li><a href="sponsors.html">Sponsors</a></li>
<li><a href="support.html">Support</a></li>
</ul>
<form class="navbar-form navbar-right" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Rechercher">
</div>
<button type="submit"><a href="#"><span class="glyphicon glyphicon-search" ></span></a></button>
</form>
</nav>
</div>
</header>
<!--
navBar's end
page's beginning
-->
<div class="MainDiv">
<?php
} // displayPage end
function displayTitle($title){
?>
<div class="bs-header">
<div class="container">
<p>
<h1><?php echo $title; ?></h1>
</p>
</div>
</div>
<?php
} // displayTitle end
function displayMessage($objet, $message){
?>
<div class="bs-docs-section">
<div class="page-header">
<h2><?php echo $objet; ?></h2>
</div>
<div class="container">
<p><?php echo $message; ?></p>
</div>
</div>
<?php
} // displayMessage end
function displayFooter(){
?>
</div> <!-- MainDiv's end -->
<footer>
<p>
<span class="AlignLeft">
<a href="index.html"><img src="rsc/img/Accueil_footer.png" alt="Logo" class="FooterLogo" />Accueil du site</a>
</span>
<span class="AlignRight">
<a href="http://facebook.com/projetaugustinemelun" target="_blank"><img src="rsc/img/Facebook.png" alt="logo Facebook" />Facebook</a>
<a href="http://twitter.com/ProjetAugustine" target="_blank"><img src="rsc/img/Twitter.png" alt="logo Twitter" />Twitter</a>
<a href="support.html#mail" ><img src="rsc/img/Mail.png" alt="logo Mail" />Nous écrire</a>
</span>
</p>
<div class="FooterEnd"></div>
</footer>
</body>
</html>
<?php
} // displayFooter end
function displayMail($civilite, $nom, $prenom, $objet, $msg){
?>
<div class="bs-docs-section">
<div class="page-header">
<h2>Votre message</h2>
</div>
<div class="container">
<p><?php echo "$civilite $nom $prenom,"; ?></p>
<br>
<p><?php echo "Objet : $objet"; ?></p>
<br>
<p><?php echo "$msg"; ?></p>
</div>
</div>
<?php
} // displayMail end
?>