-
Notifications
You must be signed in to change notification settings - Fork 0
/
lawmakers.php
47 lines (35 loc) · 1.48 KB
/
lawmakers.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
<?php
$thisPage="Lawmakers";
include 'top.php';
require_once("lib/classes/dao.php"); ?>
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
<script src="js/shapeshift.min.js" type="text/javascript"></script>
<div class="maincontainer">
<?php include 'dash.php'; ?>
<div class="billmain">
<div class="lawmaker">
<?php $dao = new Dao();
$legislators = $dao->getLegislators();
foreach ($legislators as $legislator) { ?>
<div>
<div class="leg_img">
<img src="<?php echo $legislator["photo_url"]; ?>" alt="<?php echo $legislator["last_name"]; ?>" />
<h2><span><?php echo $legislator["first_name"] . " " . $legislator["last_name"] . ", " . $legislator["party"] . " (". $legislator["district"] . ")"; ?></span></h2>
</div>
</div>
<?php } ?>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('.lawmaker').shapeshift(
{
align:'left',
minColumns:3
});
$(".ss-container").trigger("ss-shuffle")
});</script>
</div>
</div>
<?php include 'footer.php'; ?>