index.php
8.82 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
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
<?php
require("../../class/connect.php");
if(!defined('InEmpireCMS'))
{
exit();
}
require("../../class/db_sql.php");
require("../../class/q_functions.php");
require "../".LoadLang("pub/fun.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
//分類id
$bid=(int)$_GET['bid'];
$gbr=$empire->fetch1("select bid,bname,groupid from {$dbtbpre}enewsgbookclass where bid='$bid'");
if(empty($gbr['bid']))
{
printerror("EmptyGbook","",1);
}
//權限
if($gbr['groupid'])
{
include("../../member/class/user.php");
$user=islogin();
include("../../data/dbcache/MemberLevel.php");
if($level_r[$gbr[groupid]][level]>$level_r[$user[groupid]][level])
{
echo"<script>alert('您的會員級別不足(".$level_r[$gbr[groupid]][groupname]."),沒有權限提交信息!');history.go(-1);</script>";
exit();
}
}
esetcookie("gbookbid",$bid,0);
$bname=$gbr['bname'];
$search="&bid=$bid";
$page=(int)$_GET['page'];
$page=RepPIntvar($page);
$start=0;
$line=$public_r['gb_num'];//每頁顯示條數
$page_line=10;//每頁顯示鏈接數
$offset=$start+$page*$line;//總偏移量
$totalnum=(int)$_GET['totalnum'];
if($totalnum>0)
{
$num=$totalnum;
}
else
{
$totalquery="select count(*) as total from {$dbtbpre}enewsgbook where bid='$bid' and checked=0";
$num=$empire->gettotal($totalquery);//取得總條數
}
$search.="&totalnum=$num";
$query="select lyid,name,email,`mycall`,lytime,lytext,retext from {$dbtbpre}enewsgbook where bid='$bid' and checked=0";
$query=$query." order by lyid desc limit $offset,$line";
$sql=$empire->query($query);
$listpage=page1($num,$line,$page_line,$start,$page,$search);
$url="<a href='".ReturnSiteIndexUrl()."'>".$fun_r['index']."</a> > ".$fun_r['saygbook'];
?>
<!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>留言板 - Powered by EmpireCMS</title>
<meta name="keywords" content="<?=$bname?>" />
<meta name="description" content="<?=$bname?>" />
<link href="/skin/default/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/skin/default/js/tabs.js"></script>
</head>
<body class="listpage">
<!-- 頁頭 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="top">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="63%">
<!-- 登錄 -->
<script>
document.write('<script src="/e/member/login/loginjs.php?t='+Math.random()+'"><'+'/script>');
</script>
</td>
<td align="right">
<a onclick="window.external.addFavorite(location.href,document.title)" href="#ecms">加入收藏</a> | <a onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('/')" href="#ecms">設為首頁</a> | <a href="/e/member/cp/">會員中心</a> | <a href="/e/DoInfo/">我要投稿</a> | <a href="/e/web/?type=rss2" target="_blank">RSS<img src="/skin/default/images/rss.gif" border="0" hspace="2" /></a>
</td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="10">
<tr valign="middle">
<td width="240" align="center"><a href="/"><img src="/skin/default/images/logo.gif" width="200" height="65" border="0" /></a></td>
<td align="center"><a href="http://www.phome.net/OpenSource/" target="_blank"><img src="/skin/default/images/opensource.gif" width="100%" height="70" border="0" /></a></td>
</tr>
</table>
<!-- 導航tab選項卡 -->
<table width="920" border="0" align="center" cellpadding="0" cellspacing="0" class="nav">
<tr>
<td class="nav_global"><ul>
<li class="curr" id="tabnav_btn_0" onmouseover="tabit(this)"><a href="/">首頁</a></li>
<li id="tabnav_btn_1" onmouseover="tabit(this)"><a href="/news/">新聞中心</a></li>
<li id="tabnav_btn_2" onmouseover="tabit(this)"><a href="/download/">下載中心</a></li>
<li id="tabnav_btn_3" onmouseover="tabit(this)"><a href="/movie/">影視頻道</a></li>
<li id="tabnav_btn_4" onmouseover="tabit(this)"><a href="/shop/">網上商城</a></li>
<li id="tabnav_btn_5" onmouseover="tabit(this)"><a href="/flash/">FLASH頻道</a></li>
<li id="tabnav_btn_6" onmouseover="tabit(this)"><a href="/photo/">圖片頻道</a></li>
<li id="tabnav_btn_7" onmouseover="tabit(this)"><a href="/article/">文章中心</a></li>
<li id="tabnav_btn_8" onmouseover="tabit(this)"><a href="/info/">分類信息</a></li>
</ul></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="10" cellpadding="0">
<tr valign="top">
<td class="list_content"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="position">
<tr>
<td>現在的位置:<a href=../../../>首頁</a> > <?=$bname?>
</td>
</tr>
</table><table width="100%" border="0" cellspacing="0" cellpadding="0" class="box">
<tr>
<td><table width="100%" border="0" cellpadding="3" cellspacing="2">
<tr>
<td align="center" bgcolor="#E1EFFB"><strong><?=$bname?></strong></td>
</tr>
<tr>
<td align="left" valign="top"><table width="100%" border="0" cellpadding="4" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td height="100%" valign="top" bgcolor="#FFFFFF">
<?
while($r=$empire->fetch($sql))
{
$r['retext']=nl2br($r[retext]);
$r['lytext']=nl2br($r[lytext]);
?>
<table width="92%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#F4F9FD" class="tableborder">
<tr class="header">
<td width="55%" height="23">發佈者: <?=$r[name]?> </td>
<td width="45%">發佈時間: <?=$r[lytime]?> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="23" colspan="2"><table border="0" width="100%" cellspacing="1" cellpadding="8" bgcolor='#cccccc'>
<tr>
<td width='100%' bgcolor='#FFFFFF' style='word-break:break-all'> <?=$r[lytext]?> </td>
</tr>
</table>
<?
if($r[retext])
{
?>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td><img src="../../data/images/regb.gif" width="18" height="18" /><strong><font color="#FF0000">回復:</font></strong> <?=$r[retext]?> </td>
</tr>
</table>
<?
}
?> </td>
</tr>
</table>
<br />
<?
}
?>
<table width="92%" border="0" align="center" cellpadding="4" cellspacing="1">
<tr>
<td>分頁: <?=$listpage?></td>
</tr>
</table>
<form action="../../enews/index.php" method="post" name="form1" id="form1">
<table width="92%" border="0" align="center" cellpadding="4" cellspacing="1"class="tableborder">
<tr class="header">
<td colspan="2" bgcolor="#F4F9FD"><strong>請您留言:</strong></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20%">姓名:</td>
<td width="722" height="23"><input name="name" type="text" id="name" />
*</td>
</tr>
<tr bgcolor="#FFFFFF">
<td>聯繫郵箱:</td>
<td height="23"><input name="email" type="text" id="email" />
*</td>
</tr>
<tr bgcolor="#FFFFFF">
<td>聯繫電話:</td>
<td height="23"><input name="mycall" type="text" id="mycall" /></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>留言內容(*):</td>
<td height="23"><textarea name="lytext" cols="60" rows="12" id="lytext"></textarea></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="23"> </td>
<td height="23"><input type="submit" name="Submit3" value="提交" />
<input type="reset" name="Submit22" value="重置" />
<input name="enews" type="hidden" id="enews" value="AddGbook" /></td>
</tr>
</table>
</form></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<footer>
<div class="layout-row cf">
<p class="cr">Copyright © 2017 Renew Gravity Fitness Bay</p>
<ul>
<li>
<a href="https://www.facebook.com/renewgravitybay/" class="facebook"></a>
</li>
<li>
<a href="https://line.me/R/ti/p/%40renewgym" class="line"></a>
</li>
</ul>
</div>
</footer>
<script type="text/javascript" src="/static/lib/mod_4296a9b.js"></script>
<script type="text/javascript" src="/static/lib/jquery_ccb031d.js"></script>
<script type="text/javascript" src="/static/js/slide_ca22c8b.js"></script>
<script type="text/javascript" src="/static/html/footer/footer_a5a1613.js"></script>
<script type="text/javascript">
require('modules/js/slide');
</script>
</body>
</html>
<?php
db_close();
$empire=null;
?>