-
Notifications
You must be signed in to change notification settings - Fork 0
/
request_layout.php
166 lines (160 loc) · 5.95 KB
/
request_layout.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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?php
function __autoload($class_name) {
require_once('Database.php');
require_once('User.php');
}
session_start();
if(isset($_SESSION['login'])==true){
if($_SESSION["obj"]->getUserName()=="admin"){
header("Location:profile_admin.php");
}
}
else{
header("Location:login.php");
}
?>
<!DOCTYPE html>
<html>
<title>Financial Grant Management System</title>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.1/css/materialize.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.1/js/materialize.min.js"></script>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
<style>
div.transbox{
margin-top:5%;
margin-left:30%;
width:600px;
align:center;
height:400px;
border-style: solid;
border-color: #000000;
background-color: #ffffff;
opacity: 0.8;
color:#4db6ac;
}
div.transbox h5 {
margin-left: 7.5%;
margin-top:-2%;
font-weight: bold;
color: #009688 ;
}
ul {
list-style-type: none;
margin:auto;
margin-left:0px;
padding: 0;
margin:5%;
overflow: hidden;
background-color: #009688;
color:#ffcdd2;
}
li {
float: left;
width:16.666666%;
}
li a {
display: block;
margin-top:-1.3%;
margin-left:-0.8%;
color: #ef9a9a;
text-align: center;
padding: 16px;
text-decoration: none;
font-family: GillSans, Calibri, Trebuchet, sans-serif;
font-size:16px;
}
li a:hover {
background-color:#00E5EE;
font-weight: bold;
color:#e57373;
}
table{
border-collapse: collapse;
width: 99%;
margin-top:20px;
font-family: GillSans, Calibri, Trebuchet, sans-serif;
}
th, td {
text-align: left;
font-family: GillSans, Calibri, Trebuchet, sans-serif;
height:50px;
}
tr:nth-child(even){background-color: #D0D0D0}
tr:nth-child(odd){background-color: #f0f0f0}
th {
background-color: #009688;
color: white;
}
td{
height:50px;
}
</style>
</head>
<img src="logo.png" style="width:69.84px;height:75.76px; margin-top:0.6%;margin-left:0.6%;"><h1 style="color:black; font-family:Comic Sans MS, cursive, sans-serif; font-size:30px; font-weight: bold; margin-top:-4.75%; margin-left:1.1%;" align ="center">Indian Institute Of Technology,Jodhpur</h1>
<body style="width:100%; height:100%;">
<div class="col s12">
<ul style=" color:#009688;margin-top:3.3%; height:51px;width:89.05%;margin-left:5.6%;">
<li ><a style="color:white;" target="_self" href="profile.php">Home</a></li>
<li ><a style="color:white;" target="_self" href="request_layout.php">Request Grant</a></li>
<li ><a style="color:white;" target="_self" href="pendingGrants.php">Pending Grants</a></li>
<li ><a style="color:white;" target="_self" href="oldApprovedGrants.php">Approved Grants</a></li>
<li ><a style="color:white;" target="_self" href="oldDisapprovedGrants.php">Disapproved Grants</a></li>
<li ><a style="color:white;" target="_self" href="logout.php">Logout</a></li>
</ul>
</div>
</div>
<form class="col s12" action="request.php" method="POST" enctype="multipart/form-data">
<div class="row">
<div class="col l4 s12 m4"></div>
<div class="transbox">
<div class="input-field col s12" style="width:450px; margin-left:12.5%; margin-top:10%;">
<select name="grantType" required>
<option value="Select" selected="selected">Select</option>
<option value="Research Grant" >Research Grant</option>
<option value="Medical Allowances" >Medical Allowances</option>
<option value="Conference Expenses" >Conference Expenses</option>
<option value="Travelling Expenses" >Travelling Expenses</option>
</select>
<label style="color:#009688">Type of Grant :</label>
</div>
<br><br>
<div class="row">
<div class="input-field col s6" style="width:450px; margin-left:12.5%;">
<input type="number" class="validate" name="grantMoney" required>
<label style="color:#009688">Money Required : </label>
</div>
<div class="input-field col s6" style="width:450px; margin-left:12.5%;">
<input style="color:#009688:"id="fileToUpload" type="file" class="validate" name="fileToUpload" required><br>
<p style="color:#009688">Select File to Upload :(Size<2MB)</p>
</div>
</div>
<h6 style="color:red; width:100%;text-align:center;">
<?php if(isset($_SESSION['result'])){
if($_SESSION['result'][0]=='G'){
echo '<div style="color:green; text-align:center">'.$_SESSION['result'].'</div>';
}
else{
echo '<div style="color:red; text-align:center">'.$_SESSION['result'].'</div>';
}
unset($_SESSION['result']);
}
?>
</h6>
<button style="width:20%;margin:0 auto; display:block;" class="btn waves-effect waves-light" type="submit" name="grantButton" value="Submit">Request
<i class="material-icons right"></i>
</button>
</div>
</div>
</form>
</body>
<script>
$(document).ready(function() {
$('select').material_select();
});
</script>
</html>