diff options
author | Sanmugasundaram | 2015-01-19 14:52:52 +0530 |
---|---|---|
committer | Root | 2015-01-19 15:50:05 +0530 |
commit | 2e3bccd87c7000abc653eb51a04fd7f34c773198 (patch) | |
tree | d74ee0edec9f6328c4d911e05b206a53ab048910 | |
parent | b34018ca5761c9c359477bb3e176b3bb6f9fa3ee (diff) | |
download | scilab_cloud_interface-2e3bccd87c7000abc653eb51a04fd7f34c773198.tar.gz scilab_cloud_interface-2e3bccd87c7000abc653eb51a04fd7f34c773198.tar.bz2 scilab_cloud_interface-2e3bccd87c7000abc653eb51a04fd7f34c773198.zip |
include general type in feedback bug option
-rwxr-xr-x | acknowledge.php | 8 | ||||
-rw-r--r-- | comment.js | 3 | ||||
-rwxr-xr-x | index.php | 8 |
3 files changed, 12 insertions, 7 deletions
diff --git a/acknowledge.php b/acknowledge.php index bce022d..e13401e 100755 --- a/acknowledge.php +++ b/acknowledge.php @@ -1,10 +1,12 @@ <?php - $book_id = $preference_id; + require_once('db-connect.php'); + $book_id = $_POST['book_id']; + // $book_id = $preference_id; $output = ""; - $query = "select * from textbook_companion_preference where id = {$book_id}"; + $query = "SELECT * FROM textbook_companion_preference WHERE id = {$book_id}"; $result = mysql_query($query); $preference =mysql_fetch_array($result); - $query = "select * from textbook_companion_proposal where id = {$preference['proposal_id']}"; + $query = "SELECT * FROM textbook_companion_proposal WHERE id = {$preference['proposal_id']}"; $result = mysql_query($query); $proposal = mysql_fetch_array($result); $output .= "<div class='contributor'><b>Contributor:</b> {$proposal['full_name']} </div>"; @@ -30,8 +30,9 @@ $(document).ready(function(){ safe($comment_type); safe($comment_body); safe($comment_email); + $error_msg.hide(); - if(!$("#example").val()) { + if(!$("#example").val() && $comment_type.val() != "7") { $error_msg.html("Please select a category, book, chapter and an example before reporting a bug.") $error_msg.show(); errors = 1; @@ -386,8 +386,9 @@ <div id="comment-form-wrapper"> <form id="comment-form" id="comment_form"> - <p>Please fill the details.</p> + <p><u>Please fill the details.</u></p> + <label>Feedback/Bug type:</label><br> <select id="comment-type"> <option value=''>-- Select Type of issue --</option> <option value=1> Blank Code / Incorrect code</option> @@ -395,7 +396,7 @@ <option value=3>Execution error</option> <option value=4>Missing example(s)</option> <option value=6>Blank output</option> - <option value=7>Any other</option> + <option value=7>Any other / General</option> </select> <br><br> @@ -404,7 +405,7 @@ <input id="comment-notify" type="checkbox"> I want to be notified. <br> <br> <div id="comment-email-wrapper"> - <label>Email (optional):</label><br> + <label>Email:</label><br> <input id="comment-email" type="text" name='email'> <br><br> </div> @@ -424,6 +425,7 @@ </div> <div class="footer white-text"> <p class="test-footer" style="font-size: 10px;color: lightgoldenrodyellow;text-align: center;margin: 0px 0px 0px 0px;">Disclaimer: Scilab is a trademark of <a href="http://www.inria.fr/en/" target="_blank" class="ext" style="color:#FFFFFF;">Inria</a><span class="ext"></span> (registered at the INPI for France and the rest of the World) and <a href="http://www.scilab-enterprises.com/" target="_blank" class="ext" style="color:#FFFFFF;">Scilab Enterprises</a><span class="ext"></span> is granted exclusive rights for Scilab Trademark. + <br>Powered by Garuda cloud - <a href="http://>megha.garudaindia.in" target="_blank" class="ext" style="color:#FFFFFF;">megha.garudaindia.in</a> </p> <h3 style="margin:3px 0px 0px 0px;">Copyright © IIT Bombay</h3> </div> |