-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathOfficers.php
executable file
·49 lines (43 loc) · 1.75 KB
/
Officers.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
<?php
include 'html/header.html';
include 'html/navbar.html';
ini_set("auto_detect_line_endings", true);
?>
<div class="container">
<div class="col-md-10 col-md-offset-1 content bgimg">
<h1 class="content-heading">Officers</h2>
<hr>
<?php
$officers = fopen("./Bios/OfficerBios.csv", "r");
while (! feof($officers)) {
$officer = fgetcsv($officers);
$officer_name = $officer[0];
$officer_position = $officer[1];
$officer_major = $officer[2];
$officer_year = $officer[3];
$officer_role = $officer[4];
$officer_delegates = $officer[5];
$filename = "./OfficerPics\\".str_replace(' ', '', $officer_name).".jpg";
echo "<div class=\"row front\">
<div class=\"col-md-6\" >
<ul>
<li><b>Name: </b>$officer_name</li>
<li><b>Position: </b>$officer_position</li>
<li><b>Major: </b>$officer_major</li>
<li><b>Year: </b>$officer_year</li>
<li><b>Their Role in Bmun: </b>$officer_role</li>
<li><b>Message to Delegates: </b>$officer_delegates</li>
</ul>
</div>
<div class=\"col-md-6\">
<img class=\"featurette-image img-responsive\" style=\"margin:7px\" src=$filename height=600 width=400>
</div>
</div>";
}
?>
<br>
</div>
</div>
<?php
include './html/footer.html';
?>