-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetproblem.php
More file actions
131 lines (70 loc) · 2.13 KB
/
setproblem.php
File metadata and controls
131 lines (70 loc) · 2.13 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?php
session_start();
if(!isset($_SESSION["un"]))
{
header("Location:login.php");
}
if(isset($_SESSION['un']))
{
$username=$_SESSION['un'];
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Home</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/style.css">
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
<script src="js/vendor/jquery-1.12.0.min.js"></script>
<script src="bootstrap-3.3.7/js/bootstrap.min.js" </script>
<script src="bootstrap-3.3.7/js/bootstrap.js" </script>
<script src="js/jquery.nivo.slider.js" type="text/javascript"></script>
</head>
<body>
<div class="main">
<?php
require_once("header.php");
?>
<div class="row log">
<div class="col-sm-10">
<div class=""><h3 style="text-align:center;">Create New Problem</h3></div>
</div>
<div class="col-sm-1">
</div>
<div class="col-sm-1">
</div>
</div>
<div class="row cspace">
<div class="col-sm-8">
<div class="form-group">
<form action="archive.php" name="f2" method="POST">
<label for="ta">Enter Your Problem Name</label>
<input type="text" name="pname" class="form-control"><br><br>
<label for="in">Enter Problem Description</label>
<textarea name="description" class="form-control" rows="30" cols="80"></textarea><br><br>
<b>Enter Test Cases</b><br>
<textarea class="form-control" name="case" rows="30" cols="80"></textarea><br><br>
<b>Enter Output Of Test Cases</b><br>
<textarea class="form-control" name="result" rows="30" cols="80"></textarea><br><br>
<input type="submit" class="btn btn-success" value="Create Problem">
</form>
</div>
</div>
<div class="col-sm-4">
</div>
</div>
<br><br><br>
<?php
require_once("footer.php");
?>
</div>
</body>
</html>