-
Notifications
You must be signed in to change notification settings - Fork 0
/
document.php
92 lines (89 loc) · 2.36 KB
/
document.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
<?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"){
if(isset($_POST['document'])){
$grantId = $_POST['grantId'];
$grantMoney = $_POST['grantMoney'];
$grantType = $_POST['grantType'];
$userName = $_POST['userName'];
}
else{
header("Location:profile.php");
}
}
else{
header("Location:profile_admin.php");
}
}
else{
header("Location:login.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Grant Acceptance Service IIT Jodhpur</title>
<style>
html, body {
padding: 0;
background-color: gray;
}
#container {
width: inherit;
height: inherit;
margin: 0;
padding: 0;
background-color: white;
}
h3 {
margin-left: 150px;
padding: 0;
}
pre.custompgh{
margin-left:-20px;
font-size:18px;
}
h4.custom1{
margin-left:20px;
font-size:20px;
}
h3.custom2{
margin-left:30px;
font-size:24px;
}
h4.custom3{
margin-right:-400px;
margin-top: -50px;
font-size:20px;
}
h2.custom2{
margin-left:400px;
font-size:20px;
}
img.custom4{
margin-right:10px;
}
</style>
</head>
<body>
<div id="container">
<br>
<img class="custom4" align="right" src="Logo_IITJ.png" alt="college logo" style="width:70px;height:70px;"><h3 class="custom2" align ="left">Indian Institute Of Technology,<br>Jodhpur</h3></p><br>
<h2 class="custom2" align="center">Grant acceptance letter</h2><br>
<h4 class="custom1">Grant ID: <?php echo $grantId?></h4><br>
<h4 class="custom1">Dear Applicant,</h4>
<pre class="custompgh">
We are pleased to inform you that your request for <?php echo $grantType?> has been accepted by us.So you
can collect your money ( Rs.<?php echo $grantMoney?> ) from admin office by showing this acceptance letter.<br>
</pre>
<br><br><br><br><br><br>
<h4 class="custom1" align="left">Signature of applicant
<h4 class="custom3" align="right">Signature of admin</h4>
</div>
</body>
</html>