-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSecretariat.php
More file actions
executable file
·69 lines (55 loc) · 2.34 KB
/
Secretariat.php
File metadata and controls
executable file
·69 lines (55 loc) · 2.34 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
<?php
include 'html/header.html';
include 'html/navbar.html'
?>
<div class="container">
<div class="col-md-10 col-md-offset-1 content bgimg">
<h1 class="content-heading">Secretariat</h2>
<hr>
<?php
$secretariats = fopen("./Bios/SecretariatBios.csv", "r");
while (! feof($secretariats)) {
$secretariat = fgetcsv($secretariats);
$secretariat_name = $secretariat[0];
$secretariat_major = $secretariat[1];
$secretariat_year = $secretariat[2];
$filename = ".\Headshots\\" . str_replace(' ', '', $secretariat_name) . ".jpg";
echo "<div class=\"row front\">";
echo "<div class=\"col-md-3\" >
<ul>
<li><b>Name: </b>$secretariat_name</li>
<li><b>Major: </b>$secretariat_major</li>
<li><b>Year: </b>$secretariat_year</li>
</ul>
</div>
<div class=\"col-md-3\">
<img class=\"featurette-image img-responsive\" style=\"margin:7px\" src=$filename height=300 width=200>
</div>";
if (feof($secretariats)) {
echo "</div>";
break;
}
$secretariat = fgetcsv($secretariats);
$secretariat_name = $secretariat[0];
$secretariat_major = $secretariat[1];
$secretariat_year = $secretariat[2];
$filename = ".\Headshots\\" . str_replace(' ', '', $secretariat_name) . ".jpg";
echo "<div class=\"col-md-3\" >
<ul>
<li><b>Name: </b>$secretariat_name</li>
<li><b>Major: </b>$secretariat_major</li>
<li><b>Year: </b>$secretariat_year</li>
</ul>
</div>
<div class=\"col-md-3\">
<img class=\"featurette-image img-responsive\" style=\"margin:7px\" src=$filename height=300 width=200>
</div>";
echo "</div>";
}
?>
<br>
</div>
</div>
<?php
include 'html/footer.html';
?>