Reply for default theme

This commit is contained in:
Pòsweg 2020-05-31 05:53:02 +02:00
parent 06368a3fe9
commit 889a48b971
3 changed files with 24 additions and 1 deletions

View File

@ -44,14 +44,18 @@ $question = $db->query("SELECT * FROM questions WHERE id = '" . $_GET["q"] . "';
?> ?>
<!DOCTYPE html>
<html> <html>
<head> <head>
<?php include("../themes/$theme_name/reply.php"); ?>
</head> </head>
<body> <body>
<h3><?= $question["question"] ?></h3> <div class="main-container">
<h3 class="question"><?= $question["question"] ?></h3>
<form action="" method="post"> <form action="" method="post">
<textarea cols=100 rows=10 name="answer_body" placeholder="Write your answer."></textarea><br/> <textarea cols=100 rows=10 name="answer_body" placeholder="Write your answer."></textarea><br/>
<input type="submit" name="answered"/> <input type="submit" name="answered"/>
</form> </form>
</div>
</body> </body>
</html> </html>

View File

@ -0,0 +1,14 @@
.main-container{
margin: 20px;
padding: 10px;
}
.question{
margin-bottom: 20px;
font-weight: bold;
font-size: 1.25pc;
}
input[type="submit"]{
margin-top: 20px;
}

View File

@ -0,0 +1,5 @@
<?php
chdir("..");
include("main.php");
include_css("css/reply.css");
?>