-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsuggest.php
78 lines (62 loc) · 2.68 KB
/
suggest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/* contains the view class used for view elements. */
require_once($_SERVER['DOCUMENT_ROOT'] . '/CVH/includes/View.php');
/* create View for page */
$suggest = new View('Add Card');
?>
<?= $suggest->displayHead(); ?>
<div id="wrapper">
<?= $suggest->displayHeader(); ?>
<div id="main">
<article>
<h2>Add Question</h2>
<form action="add.php" method="post">
<input type="hidden" name="type" value="question" />
<section class="card question">
<h3>Question Details</h3>
<select class='NSFW' name="NSFW">
<option value="SFW" class="SFW">SFW</option>
<option value="NSFW">NSFW</option>
</select>
<textarea name="text" placeholder="Enter Question Text" required></textarea>
<address>
<input class="" name="source" placeholder="Enter Your Name" required><br />
<input class="" type="url" name="url" placeholder="Enter Credit URL">
</address>
</section>
<section>
<h3>Question Submit</h3>
<input type="submit" name="submit" value="Submit" />
</section>
</form>
<section>
<h3>Instructions</h3>
<p>Questions should be in a form which can be answered by a single noun.</p>
</section>
</article>
<section>
<h2>Add Answer</h2>
<form action="add.php" method="post">
<input type="hidden" name="type" value="answer" />
<div class="card answer">
<select class='NSFW' name="NSFW">
<option value="SFW" class="SFW">SFW</option>
<option value="NSFW">NSFW</option>
</select>
<textarea name="text" placeholder="Enter Answer Text"></textarea>
<address>
<input class="" name="source" placeholder="Enter Your Name" /><br />
<input class="" type="url" name="url" placeholder="Enter Credit URL (optional)" />
</address>
</div>
<input type="submit" name="submit" value="Submit" />
</form>
</section>
<section class="instructions">
<h2>Instructions</h2>
<p>Please mark your question Safe For Work (SFW) or <span class="NSFW">Not Safe For Work (NSFW)</span> as appropriate.</p>
</section>
<div class="clear"></div>
</div> <!-- End of #main -->
</div> <!-- End of #wrapper -->
<?= $suggest->displayFooter(); ?>