-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathan_info.php
149 lines (118 loc) · 5.22 KB
/
an_info.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JobWalla</title>
<meta name="keywords" content="Welcome to JobWalla" />
<meta name="description" content="database project" />
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/coda-slider.css" type="text/css" media="screen" charset="utf-8" />
<script src="js/jquery-1.6.2.js" type="text/javascript"></script>
<script src="js/jquery.scrollTo-1.3.3.js" type="text/javascript"></script>
<script src="js/jquery.localscroll-1.2.5.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.serialScroll-1.2.1.js" type="text/javascript" charset="utf-8"></script>
<script src="js/coda-slider.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.easing.1.3.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id="slider">
<div id="templatemo_sidebar">
<div id="templatemo_header">
<a href="" target="_parent"><img src="images/templatemo_logo.png" alt="JobWalla" /></a>
</div> <!-- end of header -->
<ul class="navigation">
<li><a href="#an">Information<span class="ui_icon home"></span></a></li>
</ul>
</div> <!-- end of sidebar -->
<div id="templatemo_main">
<ul id="social_box">
<li><a href="http://www.facebook.com/"><img src="images/facebook.png" alt="facebook" /></a></li>
<li><a href="http://www.twitter.com/"><img src="images/twitter.png" alt="twitter" /></a></li>
<li><a href="http://www.linkedin.com/"><img src="images/linkedin.png" alt="linkin" /></a></li>
<li>
<?php
require_once('db_fns.php');
session_start();
if (!isset($_SESSION["valid_user"]))// 0 is student,1 is company
{
die("deny!");
{header('location:index.php');}
}
echo "Welcome! Student:".$_SESSION['valid_user'];
echo "<br/>";
//check_valid_user();
//$sid=$_GET['q'];
//echo "Welcome:".urldecode($sid);
//if(!$sid)
//{header('location:index.php');}
?>
</li>
<li> <a href="logout.php">Logout</a> </li>
</ul>
<div id="content">
<!-- scroll -->
<div class="scroll">
<div class="scrollContainer">
<div class="panel" id="no">
<h1>Notify</h1>
<?php
require_once('db_fns.php');
$con = db_connect();
mysql_select_db("jobwalla",$con);
$aid=$_GET['q'];
$result=mysql_query("select *
from announcement
where aid='$aid'")
or die(mysql_error());
while($row=mysql_fetch_array($result))
{echo "Information:<br/>";
echo "<br/>";
echo "Title:".$row['job_title'];
echo "<br/>";
echo "Postr date is: ".$row['post_time'];
echo "<br/>";
echo "End date is: ".$row['end_time'];
echo "<br/>";
echo "Location :".$row['location'];
echo "<br/>";
echo "Salary: ".$row['salary'];
echo "<br/>";
echo "Required Background: ".$row['background'];
echo "<br/>";
echo "Descriptions: ";
echo "<br/>";
echo $row['description'];
echo "<br/>";
echo "<br/>";
echo "<a href='forward_select.php?q=".$row['aid']."'>forward to friends</a> ";
echo "<br/>";
echo "<br/>";
}
$username=$_SESSION['valid_user'];
$result=mysql_query("select *
from apply A,student S
where A.sid=S.sid and S.username='$username' and A.aid ='$aid' ")
or die(mysql_error());
if(mysql_num_rows($result)<1)
{
echo "<a href='apply.php?q=".$aid."'>"."apply</a>";
}
else{
echo "<h4>Applied</h4>";
}
echo "<br/>";
echo "<br/>";
echo "<h2><a href='home_S.php'>"."back to home</a></h2>";
?>
</div>
</div>
</div>
<!-- end of scroll -->
</div> <!-- end of content -->
<div id="templatemo_footer">
Database project <a href="#">Runye Zhang and Yan Yan</a>
</div> <!-- end of templatemo_footer -->
</div> <!-- end of main -->
</div>
</body>
</html>