Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

13513075 - Bimo Aryo Tyasono #77

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
- Fix delete bug
- UI finishing
squilliams committed Oct 16, 2015
commit 2e09bdb8ddf6103c8fdeb10315a74f514bf3b21c
6 changes: 3 additions & 3 deletions answers.php
Original file line number Diff line number Diff line change
@@ -37,9 +37,9 @@
<div class="isipertanyaan"><?php echo $row["content"]; ?></div>
<div class="footerpertanyaan">asked by: <a href="mailto:<?php echo $row["email"]; ?>"><span class="namanya"><?php echo $row["email"]; ?></span></a> at <?php echo $row["datetime"];?> | <form action="edit.php" method="post" class="editnya">
<input type="hidden" name="idnya" value="<?php echo $row["qid"] ?>">
<span class="buttonlink"><button type="submit">edit</button></span>
<div class="buttonlink"><button type="submit">edit</button></div>
</form>
| <a href="delete.php?qid=<?php echo $row["qid"];?>" onclick="hapusquestion()" class="deletenya">delete</a>
| <a href="delete.php?qid=<?php echo $row["qid"];?>" onclick="return confirm('Yakin mau didelete?')" class="deletenya">delete</a>
</div>
</div>
</div>
@@ -85,7 +85,7 @@
?>
<h2 class="anstitle">Let's Answer This Question?</h2>
<div id="askbar">
<form method="post" action="answers.php?id=<?php echo $id; ?>" name="form2" onsubmit="return validateForm()">
<form method="post" action="answers.php?id=<?php echo $id; ?>" name="form2" onsubmit="return validateAnsForm()">
<input type="text" name="Name" placeholder="nama" class="inputask" id="asknama">
<input type="email" name="email" placeholder="email" class="inputask">
<textarea rows="4" columns="30" type="text" name="content" placeholder="content" class="inputask" id="contentpost"></textarea>
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
@@ -82,7 +82,7 @@
<input type="hidden" name="idnya" value="<?php echo $row["qid"] ?>">
<div class="buttonlink"><button type="submit">edit</button></div>
</form>
| <a href="delete.php?qid=<?php echo $row["qid"];?>" onclick="hapusquestion()" class="deletenya">delete</a>
| <a href="delete.php?qid=<?php echo $row["qid"];?>" onclick="return confirm('Yakin mau didelete?')" class="deletenya">delete</a>
</div>

</div>
4 changes: 0 additions & 4 deletions js/script.js
Original file line number Diff line number Diff line change
@@ -21,10 +21,6 @@ function votingans(qid, idnya) {
xmlhttp.send();
}

function hapusquestion() {
confirm("Yakin mau didelete?");
}

function seredirect() {
window.location.href = "index.php"

12 changes: 5 additions & 7 deletions style/main.css
Original file line number Diff line number Diff line change
@@ -204,14 +204,17 @@ p {
}

.votecount {
display: inline;
display: inline-block;
vertical-align: top;
margin-bottom: 15px;
}

#votecountans {
font-family: Dinpro;
font-size: 25px;
margin-left: 6%;
display: grid;
text-align: center;
}
.votebuttup {
display: inline-block;
@@ -235,7 +238,7 @@ font-family: Dinpro;
font-size: 25px;
margin-left: 6%;
display: grid;

text-align: center;
}
.questiontopic {
z-index: 100;
@@ -269,10 +272,6 @@ font-family: Dinpro;

.anstitle {
border-bottom: 1px solid #000;
right: 10%;
position: relative;
margin-left: 10%;
margin-right: -10%;
}

.angka {
@@ -333,7 +332,6 @@ font-family: Dinpro;
display: inline-block;
width:80%;
font-family: Ubuntu;
margin-top: -5%;
}

.footerpertanyaan {