-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmembers.php
217 lines (194 loc) · 9.46 KB
/
members.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
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<?php require_once ('includes/php/include-header-meta.php'); ?>
<title>WISDM Lab: Members</title>
<?php require_once ('includes/php/include-header-ext.php'); ?>
<style>
/**** MOVE THIS TO PHP GENERATED FILE ****/
h4 + ul { margin-left: 0; }
h4 + ul > li { list-style-type: none; }
.panel.member div > p { font-size: 0.875em; margin-bottom: 0.25em; }
.panel.member div > p:first-child { font-weight: bold; }
.panel.member div > p:nth-child(2) { font-style: italic; }
</style>
</head>
<body id="gold">
<!-- Header and Nav -->
<header>
<?php require_once ('includes/php/include-nav.php'); ?>
<div class="row hide-for-small" id="page-banner">
<div id="title-box"><h1 class="page-title" id="members">Members</h1></div>
</div>
<div class="row hide-for-medium-up">
<div class="large-12 small-12 columns text-center"><h1 class="page-title" id="members">Members</h1></div>
</div>
</header>
<!-- End Header and Nav -->
<div class="row">
<div class="large-8 large-offset-2 columns">
<div class="row">
<div class="large-6 small-12 columns">
<h4>Director</h4>
<p><a href="#Gary_Weiss">Dr. Gary Weiss</a></p>
<h4>Associated Members</h4>
<p>
Dr. Roger Tsai<br />
<a href="#Joachim_Leonfellner">Joachim Leonfellner</a><br />
<a href="#Gregor_Pichler">Gregor Pichler</a><br />
</p>
<h4>WISDM Alumni</h4>
<p><a href="#WISDM-Alumni">Click for the full list</a></p>
</div>
<div class="large-6 small-12 columns">
<h4>Graduate Students (M.S.)</h4>
<p>
<a href="#Shaun_Gallagher">Shaun Gallagher</a><br />
<a href="#Jeff_Lockhart">Jeff Lockhart</a><br />
<a href="#Tony_Pulickal">Tony Pulickal</a><br />
</p>
<h4>Undergraduate Students</h4>
<ul>
<li><a href="#Michael_Brown">Michael Brown</a></li>
<li><a href="#Tausif_Hasan">M. Tausif Hasan</a></li>
<li><a href="#Sean_Keegan">Sean Keegan</a></li>
<li><a href="#Sam_Koll">Sam Koll</a></li>
<li><a href="#Joseph_Leroy">Joseph Leroy</a></li>
<li><a href="#Meredith_Lukas">Meredith Lukas</a></li>
<li><a href="#Amell_Peralta-Ramos">Amell Peralta Ramos</a></li>
<li><a href="#Greg_Rigatti">Greg Rigatti</a></li>
<li><a href="#Isaac_Ronan">Isaac Ronan</a></li>
<li><a href="#Emily_Santo-Donato">Emily Santo-Donato</a></li>
<li><a href="#Jessica_Timko">Jessica Timko</a></li>
<li><a href="#Kedwein_Valdez">Kedwein Valdez</a></li>
</ul>
</div>
<hr />
<div class="panel callout text-center">
<h5>More Info Below! And Pictures!</h5>
</div>
<hr />
</div>
<!-- Director -->
<div class="row">
<div class="large-12 columns">
<h3>Director</h3>
<div class="panel">
<a name="Gary_Weiss"><h3>Dr. Gary Weiss</h3></a>
<div class="row">
<div class="large-2 small-4 columns"><img src="includes/img/members/gary.png" /></div>
<div class="large-10 small-8 columns"><p>
Lab Director, WISDM Lab<br />
Associate Professor, Department of Computer & Information Science
</p></div>
</div> <!-- END PANEL ROW -->
</div> <!-- END PANEL -->
<hr />
</div>
</div>
<!-- Students -->
<?php
$path = dirname(__FILE__) . "/includes/files/members.csv";
if( ($handle = fopen( $path, 'r' )) !== false) {
$counter=1;
$output = '<h3>Current Members</h3>';
while(($data = fgetcsv( $handle, 1000, "|" )) !== false){
if ($counter%2!=0) $output .= '<div class="row">'; # Begin Member Row
$output .='<div class="large-6 small-12 columns"><div class="panel member">'; # ALL THE DIVS!
$output .= '<a name="'.$data[0].'_'.$data[1].'"><h4>'.$data[0].' '.$data[1].'</h4></a>'; # name and anchor link
$output .= '<div class="row"><div class="large-4 small-4 columns"><img src="includes/img/members/'.$data[2].'" /></div>'; # member headshot
$output .= '<div class="large-8 small-8 columns"><p>'.$data[3].'</p><p>'.$data[4].'</p>'; # role and school year
if (isset($data[5]) && isset($data[6])) {
$output .= '<p class="text-right"><a data-reveal-id="'.$data[0].$data[1].'">More</a></p>'; # if detailed info exists, add it in
$output .= '<div id="'.$data[0].$data[1].'" class="reveal-modal">
<h2 class="inline">'.$data[0].' '.$data[1].', '.$data[4].'</h2>
<h4>'.$data[3].'</h4>
<p class="lead"><a href="'.$data[5].'">'.$data[5].'</a></p>
<div class="row"><div class="large-4 small-12 columns">';
if (file_exists('includes/img/members/bios/'.$data[1].'.png'))
$output .= '<img src="includes/img/members/bios/'.$data[1].'.png">';
else $output .= '<img src="includes/img/members/bios/nopicture.png">';
$output .= '</div><div class="large-8 small-12 columns">
<blockquote>'.$data[6].'</blockquote>
</div></div>
<a class="close-reveal-modal">×</a>
</div>';
}
$output .= '</div></div></div></div>'; # END ALL THE DIVS!!
if ($counter%2==0) $output .= '</div>'; # Ends Member Row
$counter++;
}
fclose( $handle );
if ($counter%2==0) $output .= '</div>';
}
echo $output;
echo '<hr />';
?>
<?php
# Associated Members
$path = dirname(__FILE__)."/includes/files/members-assoc.csv";
if( ($handle = fopen( $path, 'r' )) !== false) {
$counter=1;
$output = '<h3>Associated Members</h3>';
while(($data = fgetcsv( $handle, 1000, "|" )) !== false){
if ($counter%2!=0) $output .= '<div class="row">'; # Begin Member Row
$output .='<div class="large-6 small-12 columns"><div class="panel member">'; # ALL THE DIVS!
$output .= '<a name="'.$data[0].'_'.$data[1].'"><h4>'.$data[0].' '.$data[1].'</h4></a>'; # name and anchor link
$output .= '<div class="row"><div class="large-4 small-4 columns"><img src="includes/img/members/'.$data[2].'" /></div>'; # member headshot
$output .= '<div class="large-8 small-8 columns"><p>'.$data[3].'</p><p>'.$data[4].'</p>'; # role and school year
if (isset($data[5]) && isset($data[6])) {
$output .= '<p class="text-right"><a data-reveal-id="'.$data[0].$data[1].'">More</a></p>'; # if detailed info exists, add it in
$output .= '<div id="'.$data[0].$data[1].'" class="reveal-modal">
<h2 class="inline">'.$data[0].' '.$data[1].', '.$data[4].'</h2>
<h4>'.$data[3].'</h4>
<p class="lead"><a href="'.$data[5].'">'.$data[5].'</a></p>
<div class="row"><div class="large-4 small-12 columns">';
if (file_exists('includes/img/members/bios/'.$data[1].'.png'))
$output .= '<img src="includes/img/members/bios/'.$data[1].'.png">';
else $output .= '<img src="includes/img/members/bios/nopicture.png">';
$output .= '</div><div class="large-8 small-12 columns">
<blockquote>'.$data[6].'</blockquote>
</div></div>
<a class="close-reveal-modal">×</a>
</div>';
}
$output .= '</div></div></div></div>'; # END ALL THE DIVS!!
if ($counter%2==0) $output .= '</div>'; # Ends Member Row
$counter++;
}
fclose( $handle );
if ($counter%2==0) $output .= '</div>';
}
echo $output;
echo '<hr />';
?>
<!-- Alumni -->
<?php
$path = dirname(__FILE__) . "/includes/files/members-alumni.csv";
if( ($handle = fopen( $path, 'r' )) !== false) {
$counter=1;
$output = '<a name="WISDM-Alumni"><h3>WISDM Alumni</h3></a><h6>Members who made significant contributions over the course of at least one year</h6>';
while(($data = fgetcsv( $handle, 1000, "|" )) !== false){
if ($counter%2!=0) $output .= '<div class="row">'; # Begin Member Row
$output .='<div class="large-6 small-12 columns"><div class="panel member">'; # ALL THE DIVS!
$output .= '<h4>'.$data[0].' '.$data[1].'</h4>'; # name and anchor link
$output .= '<div class="row"><div class="large-4 small-4 columns"><img src="includes/img/members/'.$data[2].'" /></div>'; # member headshot
$output .= '<div class="large-8 small-8 columns"><p>'.$data[3].'</p><p><i>'.$data[4].'</i></p>'; # role and school year
$output .= '</div></div></div></div>'; # END ALL THE DIVS!!
if ($counter%2==0) $output .= '</div>'; # Ends Member Row
$counter++;
}
fclose( $handle );
if ($counter%2==0) $output .= '</div>';
}
echo $output;
?>
</div>
</div>
<?php require_once ('includes/php/include-footer.php'); ?>
<!-- MODAL WINDOWS -->
<div id="gary_weiss" class="reveal-modal">
<h2>Dr. Gary Weiss</h2>
<p class="lead">Lab Director, WISDM Lab<br />Associate Professor, Computer & Information Science</p>
<p>Website: <a href="</p>
<a class="close-reveal-modal">×</a>
</div>
</body>
</html>