Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jianminglok committed Jul 29, 2017
1 parent b7374bb commit fc51743
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 8 deletions.
8 changes: 4 additions & 4 deletions search.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
<a name="ads"></a>
<div class="banasell-card-container mdl-grid">

<?php while($row = mysqli_fetch_array($result)) { ?>
<?php while($row = mysqli_fetch_array($result)) { ?>

<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-tablet mdl-cell--4-col-phone mdl-card mdl-shadow--3dp">
<div class="mdl-card__media" style="height: 200px; background-color: #f0eded; position: relative;">
Expand Down Expand Up @@ -211,12 +211,12 @@
display:none;
}</style>

<?php } } ?>
<?php } } else {?>

<p style="color: white; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 17px;">No results were found based on your search.</a></p>
<p style="color: white; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 17px;">No results were found based on your search.</p>

<?php
}

?>
</body>
Expand Down
46 changes: 46 additions & 0 deletions selectbooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,52 @@
height: 57%;
}
}

.test {
margin-top: 4%;
padding-left: 30%;
}
.test2 {
width: 80%;
background-color: #fff;
margin: 0 auto;
}
.test3 {
margin-left: 2em;
}
.test5{
margin-left: 2em;
}
</style>

<div class="mdl-shadow--2dp test2" style=" ">

<!-- Colored raised button -->
<div class="test" >
<form style="padding-top: 1em;" method="post" action="filterbooks.php">
<label class="mdl-textfield--floating-label " for="form" style="position: absolute">Select your form:</label>
<div class="mdl-selectfield mdl-js-selectfield" style="margin-right: 2em;">
<select name="form" required class="mdl-selectfield__select mdl-textfield__input">
<option></option>
<option value="all">All</option>
<option value="form1">Junior 1</option>
<option value="form2">Junior 2</option>
<option value="form3">Junior 3</option>
<option value="form4">Senior 1</option>
<option value="form5">Senior 2</option>
<option value="form6">Senior 3</option>
</select>
<label class="mdl-selectfield__label" for="myselect">Choose your form</label>
</div>

<!-- Colored raised button -->
<button type="submit" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored test5" style="margin-bottom: 1em; ">
Apply
</button>
</form>
</div>
</div>

<div class="banasell-more-section"><div class="banasell-card-container mdl-grid">
<div class="demo-card-wide mdl-cell mdl-cell--4-col mdl-cell--4-col-tablet mdl-cell--4-col-phone mdl-card mdl-shadow--3dp card1">
<div class="mdl-card__title">
Expand Down Expand Up @@ -695,3 +740,4 @@ function r(f){ /in/.test(document.readyState)?setTimeout('r('+f+')',1):f()}
</script>

<script src="js/material.js"></script>
<script src="js/mdl-selectfield.min.js"></script>
5 changes: 1 addition & 4 deletions submitbooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,7 @@
</div>
<div class="mdl-card__actions mdl-card--border">
<button name="signup" type="submit" class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" style="margin-left: 1.5em;">
Sign Up
</button>
<button class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
Need Help?
Post Ad
</button>
</div>
</form>
Expand Down

0 comments on commit fc51743

Please sign in to comment.