Skip to content

Commit

Permalink
added jplist dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
paleomedia committed Aug 30, 2015
1 parent 1eb686e commit c7c39dd
Show file tree
Hide file tree
Showing 14 changed files with 1,070 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.c9
/lib/sql_logins.php
1 change: 1 addition & 0 deletions css/jplist-core.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions css/jplist-pagination-bundle.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions css/jplist-textbox-control.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ label[for="rememberme"] {
.leg_img {
position: relative;
width: 100%;

z-index: auto;
}
.leg_img h2 {
position: absolute;
Expand Down
127 changes: 127 additions & 0 deletions index.1.php
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'; ?>
Loading

0 comments on commit c7c39dd

Please sign in to comment.