-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1eb686e
commit c7c39dd
Showing
14 changed files
with
1,070 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.c9 | ||
/lib/sql_logins.php |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
<?php | ||
$thisPage = 'Home'; | ||
require_once "lib/classes/dao.php"; | ||
include 'lib/api_functions.php'; | ||
|
||
$dao = new Dao(); | ||
|
||
include 'top.php'; ?> | ||
|
||
<body> | ||
|
||
<div class="maincontainer"> | ||
|
||
<?php include 'dash.php'; ?> | ||
|
||
<div class="billmain"> | ||
|
||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | ||
<script src="js/ajax.js" type="text/javascript"></script> | ||
|
||
<!-- demo --> | ||
<div id="demo"> | ||
|
||
<!-- panel --> | ||
<div class="jplist-panel"> | ||
|
||
<!-- ios button: show/hide panel --> | ||
<div class="jplist-ios-button"> | ||
<i class="fa fa-sort"></i> | ||
jPList Actions | ||
</div> | ||
|
||
<!-- add here jPList controls and bundles --> | ||
... | ||
|
||
</div> | ||
|
||
<!-- HTML data --> | ||
<div class="list"> | ||
|
||
<!-- item 1 --> | ||
<div class="list-item"> | ||
... | ||
</div> | ||
|
||
<!-- item 2 --> | ||
<div class="list-item"> | ||
... | ||
</div> | ||
|
||
... | ||
|
||
</div> | ||
|
||
<!-- no results found --> | ||
<div class="jplist-no-results"> | ||
<p>No results found</p> | ||
</div> | ||
|
||
</div> | ||
|
||
<?php | ||
|
||
$bill_list = $dao->getBills(); | ||
|
||
foreach ($bill_list as $bill) { | ||
$action_date = last_action($bill["bill_id"]) ?> | ||
<div class="active"> | ||
<p>Active Bills</p> | ||
<div class="billimage"><span><?php echo $bill["bill_name"]; ?></span></div> | ||
<div class="lastaction">Last Action: <?php echo $action_date; ?> </div> | ||
<div class="billsummary"><?php echo $bill["title"]; ?></div> | ||
|
||
<div class="comments"> | ||
<div class="commentbox"> | ||
<form name="commentForm" action="lib/handler.php" method="POST"> | ||
<textarea name="comment" rows="4" id="comment" placeholder="Write comments or testimony here, select pro, neutral or anti, and press Submit."></textarea> | ||
<label>Yea, Nay or Neutral?</label> | ||
<label> | ||
<input type="radio" name="vote" value="pro" id="pro" /><img class="prolabel" src="images/thumbs_up.png" /> | ||
</label> | ||
<label> | ||
<input type="radio" name="vote" value="anti" id="anti" /><img class="antilabel" src="images/thumbs_down.png" /> | ||
</label> | ||
<label class="neutrallabel"> | ||
<input type="radio" name="vote" value="neutral" id="neutral" checked="checked" />?</label> | ||
<input type="submit" name="commentButton" value="Submit" /> | ||
<input type="hidden" name="form" value="comment" /> | ||
<input type="hidden" name="bill" value="<?php echo $bill["bill_id"]; ?>" /> | ||
</form> | ||
</div> | ||
|
||
<div class="pro"><h3>Yea</h3> | ||
<?php $comments = $dao->getComments($bill["bill_id"], "pro"); | ||
foreach ($comments as $comment) { | ||
?> | ||
<span><?php echo $comment["username"]; ?> says:</span> <?php echo $comment["comment"] . "<br />"; | ||
echo "DATE:" . $comment["date"] . "<br />"; ?> | ||
<?php } ?> | ||
</div> | ||
|
||
<div class="neutral"><h3>Neutral</h3> | ||
<?php $comments = $dao->getComments($bill["bill_id"], "neutral"); | ||
foreach ($comments as $comment) { ?> | ||
<span><?php echo $comment["username"]; ?> says:</span> <?php echo $comment["comment"] . "<br />"; | ||
echo "DATE:" . $comment["date"] . "<br />"; ?> | ||
<?php } ?> | ||
</div> | ||
|
||
<div class="anti"><h3>Nay</h3> | ||
<?php $comments = $dao->getComments($bill["bill_id"], "anti"); | ||
foreach ($comments as $comment) { ?> | ||
<span><?php echo $comment["username"]; ?> says:</span> <?php echo $comment["comment"] . "<br />"; | ||
echo "DATE:" . $comment["date"] . "<br />"; ?> | ||
<?php } ?> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<?php } ?> | ||
|
||
</div> | ||
</div> | ||
|
||
|
||
|
||
<?php include 'footer.php'; ?> |
Oops, something went wrong.