-
Notifications
You must be signed in to change notification settings - Fork 0
/
recommend3.php
executable file
·238 lines (206 loc) · 7.86 KB
/
recommend3.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
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<?php
include ("./Util/DButil.php");
if ($_GET["delete"] != null){
$stmt = $dbh->prepare("Delete FROM recommend where rid = ?");
$stmt->bindParam(1, $_GET["delete"]);
$stmt->execute();
}
?>
<!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>About, Secured Theme</title>
<meta name="keywords"
content="about page, 4 columns, secured theme, free template, templatemo, red layout" />
<meta name="description"
content="About Page, 4-column fixed layout, Secured Theme by templatemo.com" />
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
});
</script>
<link rel="stylesheet" type="text/css" href="css/ddsmoothmenu.css" />
<script type="text/javascript" src="js/ddsmoothmenu.js">
/***********************************************
* Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<script type="text/javascript">
ddsmoothmenu.init({
mainmenuid: "templatemo_menu", //menu DIV id
orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
classname: 'ddsmoothmenu', //class added to menu's outer DIV
//customtheme: ["#1c5a80", "#18374a"],
contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})
function clearText(field)
{
if (field.defaultValue == field.value) field.value = '';
else if (field.value == '') field.value = field.defaultValue;
}
</script>
<link rel="stylesheet" href="css/slimbox2.css" type="text/css"
media="screen" />
<script type="text/JavaScript" src="js/slimbox2.js"></script>
</head>
<body>
<div id="templatemo_wrapper">
<div id="templatemo_header">
<div id="site_title">
<a href="http://www.cssmoban.com/">模板之家</a>
</div>
<div id="templatemo_search">
<form action="#" method="get">
<input type="text" value="Enter a keyword" name="keyword"
id="keyword" title="keyword" onfocus="clearText(this)"
onblur="clearText(this)" class="txt_field" /> <input type="submit"
name="Search" value="" alt="Search" id="searchbutton"
title="Search" class="sub_btn" />
</form>
<ul id="social">
<li><a href="#" title="照片" class="social_other" target="_blank"></a>
</li>
<li><a href="#"><img src="images/rss.png" alt="RSS" /> </a></li>
<li><a href="#/templatemo"><img src="images/facebook.png"
alt="facebook" /> </a></li>
<li><a href="#"><img src="images/twitter.png" alt="twitter" /> </a>
</li>
<li><a href="#"><img src="images/flickr.png" alt="flickr" /> </a></li>
<li><a href="#"><img src="images/skype.png" alt="skype" /> </a></li>
</ul>
</div>
</div>
<!-- END of header -->
<div id="templatemo_menu" class="ddsmoothmenu">
<ul>
<li><a href="index.php" class="selected">Home</a></li>
<?php if ($_SESSION[level] != 1 && $_SESSION[level] != 3){?>
<li><a href="concert.php">Concert</a></li>
<li><a href="artists.php">Artist</a></li>
<li><a href="recommend.php">Recommend</a></li>
<?php }?>
<?php
if ($_SESSION[username]==null){
?>
<li><a href="" onClick="window.open('login.php','','height=550,width=620,scrollbars=yes,status =yes')">Log In</a></li>
<li><a href="create-account.php">Sign Up</a></li>
<?php
}else if($_SESSION[level] == 0){
?>
<li><a href="personal.php">Personal</a></li>
<li><a href="./Service/logout_cfg.php" >Log Out</a></li>
<?php
}else if($_SESSION[level] == 3){
?>
<li><a href="personal2.php">Personal</a></li>
<li><a href="./Service/logout_cfg.php" >Log Out</a></li>
<?php
}else if($_SESSION[level] == 1){
?>
<li><a href="manage.php">Manage</a></li>
<li><a href="./Service/logout_cfg.php" >Log Out</a></li>
<?php
}
?>
<li class="last"><a href="contact.html" class="last">Contact</a></li>
</ul>
<br style="clear: left" />
</div>
<!-- end of templatemo_menu -->
<div id="templatemo_main">
<div class="content_wrapper content_mb_60">
<div class="col_2">
</div>
</form>
<div class="col_2 no_margin_right">
</div>
<div class="clear"></div>
</div>
<div class="content_wrapper">
<?php
$stmt = $dbh->prepare("SELECT * FROM recommend,type where recommend.username = ? and recommend.typeid = type.typeid");
$stmt->bindParam(1, $_GET["username"]);
$stmt->execute();
while($row = $stmt->fetch()){
?>
<div class="col_3">
<h2><?=$row[rname] ?></h2>
<ul class="list_bullet">
<?php
echo "Type: ";
echo $row[typename];
echo "</br>";
echo $row[rtime];
?>
</ul>
<a href="" class="more"
onClick="window.open('recommend2.php?rid=<?=$row[rid] ?>&rname=<?=$row[rname] ?>','','height=550,width=620,scrollbars=yes,status =yes')">More</a>
</div>
<?php
}
?>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<!-- END of templatemo_main -->
<div id="templatemo_footer">
<div class="col_4">
<h4>Pages</h4>
<ul class="nobullet bottom_list">
<li><a href="index.html">Home</a></li>
<li><a href="news.html">News</a></li>
<li><a href="gallery.html">Gallery</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.php">Contact</a></li>
</ul>
</div>
<div class="col_4">
<h4>Partners</h4>
<ul class="nobullet bottom_list">
<li><a href="#">Morbi eget lacus sem</a></li>
<li><a href="#">Vivamus dolor dolor</a></li>
<li><a href="#">Nunc auctor viverra</a></li>
<li><a href="#">Phasellus eget blandit</a></li>
<li><a href="#">Sed id tincidunt ipsum</a></li>
</ul>
</div>
<div class="col_4">
<h4>Links</h4>
<ul class="nobullet bottom_list">
<li><a href="#">Flash Templates</a></li>
<li><a href="#">Phasellus eget blandit</a></li>
<li><a href="#">Vestibulum laoreet</a></li>
<li><a href="#">Sed placerat est sit</a></li>
<li><a href="#">Class aptent taciti</a></li>
</ul>
</div>
<div class="col_4 no_margin_right">
<h4>Twitter</h4>
<p>
"Lorem ipsum dolor sit amet consectetur adipiscing elit <a href="#">#Donec</a>
ante nibh sagittis ut lobortis a, posuere vel sem"
</p>
<a href="#">Follow us on Twitter</a>
</div>
<div class="clear"></div>
</div>
<!-- END of templatemo_footer -->
</div>
<!-- END of templatemo_wrapper -->
<div id="templatemo_copyright_wrapper">
<div id="templatemo_copyright">
Copyright © 2072 <a href="#">Company Name</a> | <a
href="http://www.cssmoban.com/">模板之家</a> Collect from <a
href="http://www.cssmoban.com">网页模板</a>
</div>
</div>
</body>
</html>