-
Notifications
You must be signed in to change notification settings - Fork 0
/
partnerships.php
135 lines (112 loc) · 4.75 KB
/
partnerships.php
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
<!DOCTYPE html>
<html lang="en">
<body bgcolor="#OOOOOO">
<head>
<title>Partnerships</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="popups.css">
<meta name="google-site-verification" content="f7S9blLxu2nJn1EGjPR-bVMyKWewDYFmkrh8eaUEGjs" />
<style>
@font-face { font-family: Lcs; src: url('LucymarSans-Regular.ttf'); }
p {
font-family: Lcs
}
body {
margin: 0;
padding: 0;
background-image: url("media/panorama/panorama1.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
position: relative;
z-index: -1;
}
#main-content {
background-color: rgba(255, 255, 255, 0.1);
padding: 20px;
}
</style>
</head>
<body>
<!--script désactivé-->
<noscript><p align="center"><font color="#FFOOOO"><strong><i>Javascript is disabled. Please re-enable it to enjoy an optimal web experience.<a href="https://support.google.com/admanager/answer/12654?hl=en">How to enable javascript?</a></i></strong></font></p></noscript>
<!--logo-->
<div id="main-content">
<div class="logo-container">
<center><a href="https://www.phoen.org"><img src="media/logo.png" width="300" height="300" alt="Logo" class="logo" /></a></center>
</div><br>
<!--main message-->
<br><p align="center"><font color="#OOOOOO" size="8"><strong>Partnerships and Collaboration</strong></font></p><br>
<!--menu-->
<label for="ch" id="lab"></label>
<input type="checkbox" id="ch">
<nav>
<a href="index.php"><p><font size="5">main</font></p></a>
<a href="articles.html"><p><font size="5">articles</font></p></a>
<a href="media.html"><p><font size="5">media</font></p></a>
<a href="aboutus.html"><p><font size="5">about us</font></p></a>
<a href="contacts.html"><p><font size="5">contacts</font></p></a>
<a href="partnerships.php"><p><font size="5">partnerships</font></p></a>
<a href="tos.html"><p><font size="5">privacy policy</font></p></a>
</nav>
<!--text-->
<p align="center"><font color="#OOOOOO" size="6">If you're interested in partnering with us, we're open to collaborations.</font></p><a class="main-page_buttons" href="mailto:contact@phoen.org">Contact us ➡️ </a></p>
<style>
/* button effects */
.main-page_buttons {
display: inline-block;
padding: 10px 20px;
background-color: #034191;
color: #ffffff;
text-decoration: none;
font-size: 16px;
border-radius: 5px;
transition: background-color 0.3s;
}
.main-page_buttons:hover {
background-color: #010B19;
}
</style>
<!--text-->
<main>
<?php
// Connexion à la base de données
$dsn = 'mysql:host=localhost;dbname=database_name';
$user = 'username';
$password = 'password';
$options = array(
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
);
$dbh = new PDO($dsn, $user, $password, $options);
// Récupération des données
$stmt = $dbh->prepare("SELECT titre, url, description, date FROM partners WHERE date >= DATE_SUB(NOW(), INTERVAL 56 DAY) ORDER BY date DESC");
$stmt->execute();
$partners = $stmt->fetchAll();
// Affichage des données
foreach ($partners as $collab) {
echo '<article class="lien">';
echo '<header>';
echo '<h2>' . $collab['titre'] . '</h2>';
echo '<time>' . date('d/m/Y H:i:s', strtotime($collab['date'])) . '</time>';
echo '</header>';
echo '<p>' . $collab['description'] . '</p>';
echo '<a href="' . $collab['url'] . '" target="_blank">Check out here</a>';
echo '</article>';
}
?>
</main>
<!--footer (bas de page)-->
<footer>
<p align="center"><font color="#FFFFFF"><strong><u>Contacts</u></strong></font></p>
<p align="center"><font color="#FFFFFF"><a href="mailto:contact@phoen.org">contact@phoen.org</a></font></p>
<p align="center"><font color="#FFFFFF"><a href="https://github.com/phoenorg">Github</a></font></p>
<p align="center"><font color="#FFFFFF"><a href="https://mastodon.social/@phoen">Mastodon</a></font></p>
<p align="center"><font color="#FFFFFF"><a href="https://www.facebook.com/profile.php?id=100090404687359">Facebook</a></font></p>
<p align="center"><font color="#FFFFFF"><a href="https://twitter.com/phoenorg">Twitter</a></font></p>
<p align="center"><font color="#FFFFFF"><a href="https://www.instagram.com/phoenorg/">Instagram</a></font></p>
</footer>
</div>
<!-- Ajout du script pour le diaporama aléatoire -->
<script src="background.js"></script>
</body></html>