-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathallresumes.php
More file actions
204 lines (197 loc) · 7.83 KB
/
allresumes.php
File metadata and controls
204 lines (197 loc) · 7.83 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
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<meta http-equiv="Content-Type" content="text/html">
<title>All Resumes</title>
<?php
include("header.php");
?>
</head>
<body>
<marquee direction="left"><<<<<</marquee>
<div id="main">
<!-- JiaThis Button BEGIN -->
<script type="text/javascript" src="http://v2.jiathis.com/code/jiathis_r.js?btn=r2.gif" charset="utf-8"></script>
<!-- JiaThis Button END -->
<div id="top">
<div id="top_one">
<?php
@session_start();
if($_SESSION['admin'] !=null)
{
if($_GET['changepw'] == "ola")
{
echo "<h2><font color='#cc0033'>Password Successfully Changed!</font><br>Resuda, just show you up in seconds. <font size='-1'><a href='index.php'>Go to Index</a> || <a href='uresume.php'>Go to your resume</a> || <a href='out.php?page=allresumes'>Logout</a></font> </h2>";
}
else
{
echo "<h2>Resuda, just show you up in seconds. <font size='-1'><a href='index.php'>Go to Index</a> || <a href='uresume.php'>Go to your resume</a> || <a href='out.php?page=allresumes'>Logout</a></font> </h2>";
}
}
else
{
echo "<h2><a href='index.php'>Resuda</a>, just show you up in seconds. <font size='-0.4'><a href='generate.php'>Get yours now!</a></font></h2>";
}
?>
</div>
<div id="top_two">
<?php
echo "<div id='search'><form action='search.php' method='post'><input type='text' name='keywords' size='15'> <span><input type='submit' value='search for'></span></form></div>";
?>
</div>
</div>
<div id="content">
<div id="left">
<div id="left_one2">
<?php
date_default_timezone_set('Asia/Shanghai');
if($_SESSION['admin'] != null)
{
if($_GET['key'] == "change")
{
echo "<form action='changepw.php?page=all' method='post'>";
echo "<table class='change'>";
echo "<tr><th><font size='-2'>Last Password</font></th><td><div id='input2'><input type='password' name='lastpw'></div></td></tr>";
echo "<tr><th><font size='-2'>New Password</font></th><td><div id='input2'><input type='password' name='newpw'></div></td></tr>";
echo "<tr><th><font size='-2'>Confirm Password</font></th><td><div id='input2'><input type='password' name='cfpw'></div></td></tr>";
echo "<tr><td colspan='2'><div id='button'><input type='submit' value='OK'></div></td></tr>";
echo "</table>";
echo "</form>";
if ($_GET['reason'] == "!val")
{
echo "<font color='red'>Input should not be null!</a></font>";
}
elseif ($_GET['reason'] == "!pw")
{
echo "<font color='red'>Your password is wrong!</a></font>";
}
elseif ($_GET['reason'] == "!same")
{
echo "<font color='red'>Your new password is not confirmed!</a></font>";
}
}
else
{
echo "<h3><table><tr><th><h3>Hello</h3></th><td class='td'><font color='#cc0033' size='+1'>".$_SESSION['name1']."</font></td></tr></table><br>Today is 20".date('y/m/j')."<br><br></h3><h4>How are you?Be happy or be sad,wanna <a href='writting.php'>write down</a> your mood?</h4><div id='key'><font size='-1'><a href='allresumes.php?key=change'>Change Your Password?</a></font></div>";
}
}
else
{
echo "<form action='checklogin.php' method='post'>";
echo "<table>";
echo "<tr><th>Email</th><td><div id='input'><input type='text' name='email' value='".$_GET['email']."'></div></td></tr>";
echo "<tr><th>Password</th><td><div id='input'><input type='password' name='password'></div><input type='hidden' value='toall' name='anhao'></td></tr>";
echo "<tr><td colspan='2'><div id='button'><input type='submit' value='Login'></div></td></tr>";
echo "</table>";
echo "</form>";
if ($_GET['login'] == "fail")
{
echo "<font color='red'>You Are Not Allow!</a></font>";
}
}
?>
</div>
<div id="left_two3">
<font size='+2'>So</font> many people all around the world, who know you? who will realize you? who can realize you?No matter what job you do,no matter if you have a job,the point is you should make others realize that who you are and what you are able to do, maybe while you are doing, the world is changing for you, you may find a good job or you may do better job, cuz you have made yourself better known.
<br><br>
<font size='+2'>Resuda</font> displays informations of dears,no more decorations,no more sweet words,just for come to the point in seconds.If you are standout, if you are potential, if you are serious enouth in the working time, people can contact you with your left email or phonenumber, then you may get a good job.
</div>
</div>
<div id="center">
<div id="center_all">
<?php
include("mysql_connection.php");
$pageSize = 4;
$pageNumber = $_GET['pageNumber'];
if ($pageNumber == null)
{
$pageNumber = 1;
}
$rs = mysql_fetch_row(mysql_query("select count(*) from informations"));
$totalCount = $rs[0];
$mysql_command = "select * from informations limit ".(($pageNumber - 1)*$pageSize).",".$pageSize;
$result = mysql_query($mysql_command);
echo "<br><br>";
if($totalCount > $pageSize)
{
if ($pageNumber > 1)
{
echo "<span class='tags'><a href='allresumes.php?pageNumber=".($pageNumber - 1)."'>Last Page</a> ";
}
else
{
echo "<span class='tags'>Last Page ";
}
if ($pageNumber < $totalCount / $pageSize)
{
echo "<a href='allresumes.php?pageNumber=".($pageNumber + 1)."'>Next Page</a></span>";
}
else
{
echo "Next Page</span>";
}
}
while ($rs = mysql_fetch_object($result))
{
$names = $rs->name;
$genders = $rs->gender;
$focuss = $rs->focus;
$jobs = $rs->job;
$emails = $rs->email;
$ids = $rs->id;
?>
<br><br>
<div id="box">
<h3><a href="#"><?=$names?></a></h3>
<table>
<tr bgcolor="#CACACA"><td>Gender</td><td><?=$genders?></td></tr>
<tr bgcolor="#E6E6E6"><td>Focus On</td><td><?=$focuss?></td></tr>
<tr bgcolor="#CACACA"><td>Job</td><td><?=$jobs?></td></tr>
<tr><td colspan="2" style="text-align:right">>><a href="uresume.php?email=<?=$emails?>&id=<?=$ids?>">More</a></td></tr>
</table>
</div>
<?php
}
echo "<br><br>";
if($totalCount > $pageSize)
{
if ($pageNumber > 1)
{
echo "<span class='tags'><a href='allresumes.php?pageNumber=".($pageNumber - 1)."'>Last Page</a> ";
}
else
{
echo "<span class='tags'>Last Page ";
}
if ($pageNumber < $totalCount / $pageSize)
{
echo "<a href='allresumes.php?pageNumber=".($pageNumber + 1)."'>Next Page</a></span>";
}
else
{
echo "Next Page</span>";
}
}
echo "<br><br>";
mysql_close();
?>
</div>
</div>
<div id="right2">
<div id="right_one2">
<img src="bajun.jpg" width="100%">
</div>
<div id="right_two2">
<h3>I need a chance to change the world.</h3><br><br>
Feuda Nan  <span class="x"><a href="http://www.feudanan.com" target="_blank">http://www.feudanan.com</a></span><br>
Follow Feuda  <span class="x"><a href="http://t.qq.com/feudanan" target="_blank">http://t.qq.com/feudanan</a></span>
</div>
</div>
</div>
</div>
</body>
<br><br>
<?php
include("footer.php");
?>
</html>