-
Notifications
You must be signed in to change notification settings - Fork 4
/
help.php
65 lines (60 loc) · 1.96 KB
/
help.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
<?php //STATION PROFILE
session_start();
//include files
require_once("app-includes/app-include.php");
require_once("app-includes/_profile.php");
require_once("app-includes/_help.php");
$userId = 0;
$sbtn = 'block';
$sdiv = 'none';
if(isset($_SESSION['login']) and $_SESSION['login']==1){
$userId = $_SESSION['userId'];
$sbtn = 'none';
$sdiv = 'block';
}
?>
<!doctype html>
<html lang="en">
<head>
<title>IRCTC Help</title>
<?php include('meta-tags.html'); ?>
<link rel="stylesheet" href="/sih/css/main.css"/>
<style>
#smHelp{background:#eee;}
</style>
</head>
<body>
<?php siteHeader(); ?>
<section class="index-section">
<div class="index-box expand-box" style="text-align:left;">
<header class="ex-head">
<h4 class="ex-title">Ask a question</h4>
<button class="ex-plus"><pre> + </pre></button>
<div style="clear:both"></div>
</header>
<hr class="sh-low-hr"/>
<p style="display:<?php echo($sbtn); ?>">Login to ask a question <a href="login.php"><button>Click Here</button></a></p>
<div class="ex-div" style="display:<?php echo($sdiv); ?>">
<form class="ex-form" method="post" action="/sih/php/_ask-question.php?<?php echo('user_id='.$userId); ?>">
<label class="ex-label">Title</label><br/>
<input type="text" class="ex-input" name="title" value="" placeholder="Your title..." required/><br/>
<label class="ex-label">Description</label><br/>
<textarea class="ex-input" name="content" value="" placeholder="Your description..."></textarea><br/>
<button class="ex-button">Ask</button>
</form>
</div>
</div>
<!--OTHER QUESTIONS-->
<div class="index-box expand-box" style="text-align:left;">
<header class="ex-head">
<h4 class="ex-title">Railway Forum</h4>
<div style="clear:both"></div>
</header>
<!--ENQUIRY SCROLL-->
<?php latestQuestions($conn); ?>
<!--<a href="forum.php"><button class="box-foot-button">SHOW MORE</button></a>-->
</div>
</section>
<?php siteFooter(); ?>
</body>
</html>