-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathask.php
More file actions
69 lines (63 loc) · 2.81 KB
/
ask.php
File metadata and controls
69 lines (63 loc) · 2.81 KB
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
<?php include 'config.php'; ?>
<!DOCTYPE html>
<html>
<head>
<title>Ask <?php include 'includes/title.php'; ?></title>
<link href="assets/css/bootstrap.css" rel='stylesheet' type='text/css' />
<!-- Custom Theme files -->
<link href="assets/css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- Custom Theme files -->
<?php include 'includes/stylesheets.php'; ?>
</head>
<body>
<?php include 'includes/header.php'; ?>
<div class="container">
<div class="total-info">
<?php include 'includes/left_panel.php'; ?>
<div class="col-md-5 grid_2">
<!--From-->
<form method="post">
<input type="text" name="tittle" class="form-control" placeholder="Question Tittle">
<input type="hidden" name="xAction" value="ask_question">
<textarea name="description" id="editor1" rows="10" cols="80" required /></textarea>
<script> CKEDITOR.replace( 'description' );</script> <br>
<select data-placeholder="Tags" name="ftagID[]" class="form-control chzn-select" multiple="multiple" tabindex="4" style="height:25px;">
<?php
$sql_tags=mysqli_query($dbconfig,"SELECT * FROM forum_tags ORDER BY tagName ASC");
while($row_tags=mysqli_fetch_assoc($sql_tags)){
?>
<option value="<?php echo $row_tags['ftagID']; ?>" ><?php echo $row_tags['tagName']; ?></option>
<?php } ?>
</select>
<br><div class="div-title"></div>
<div class=" inline-display fright">
<div id="message" style="margin-right: 15px;margin-top: 10px;"></div>
<input type="submit" onClick="CKupdate()" value="Post Question" class="btn btn-info btn-xl click_ask_question">
</div>
</form>
<div class="div-title"></div>
</div><!--end col-md-4-->
<div class="col-md-2 grid_2"></div><!--end col-md-3-->
<?php include 'includes/right_panel.php'; ?>
<!--Container Ends Here-->
<div class="clearfix"></div>
</div>
<script src="assets/js/myscript.js"></script>
<script src="assets/my-js/forum.js"></script>
<!--For Tags-->
<link href="assets/css/jquery-ui.css" rel="stylesheet" />
<link rel="stylesheet" href="assets/plugins/inputlimiter/jquery.inputlimiter.1.0.css" />
<link rel="stylesheet" href="assets/plugins/chosen/chosen.min.css" />
<link rel="stylesheet" href="assets/plugins/tagsinput/jquery.tagsinput.css" />
<script src="assets/plugins/tagsinput/jquery.tagsinput.min.js"></script>
<script src="assets/js/formsInit.js"></script>
<script>
$(function () { formInit(); });
</script>
<script src="assets/js/jquery-ui.min.js"></script>
<script src="assets/plugins/inputlimiter/jquery.inputlimiter.1.3.1.min.js"></script>
<script src="assets/plugins/chosen/chosen.jquery.min.js"></script>
<script src="assets/plugins/autosize/jquery.autosize.min.js"></script>
</div>
</body>
</html>