?? index.php
字號(hào):
<?php
@require("../../class/connect.php");
if(!defined('InEmpireCMS'))
{
exit();
}
include("../../class/db_sql.php");
include("../../class/config.php");
include("../../class/q_functions.php");
include "../".LoadLang("pub/fun.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
//分類(lèi)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);
}
//權(quán)限
if($gbr['groupid'])
{
include("../../class/user.php");
$user=islogin();
include("../../class/MemberLevel.php");
if($level_r[$gbr[groupid]][level]>$level_r[$user[groupid]][level])
{
echo"<script>alert('您的會(huì)員級(jí)別不足(".$level_r[$gbr[groupid]][groupname]."),沒(méi)有權(quán)限提交信息!');history.go(-1);</script>";
exit();
}
}
esetcookie("gbookbid",$bid,0);
$bname=$gbr['bname'];
$search="&bid=$bid";
$page=(int)$_GET['page'];
$start=(int)$_GET['start'];
$line=12;//每頁(yè)顯示條數(shù)
$page_line=12;//每頁(yè)顯示鏈接數(shù)
$offset=$start+$page*$line;//總偏移量
$totalnum=(int)$_GET['totalnum'];
if($totalnum)
{
$num=$totalnum;
}
else
{
$totalquery="select count(*) as total from {$dbtbpre}enewsgbook where bid='$bid' and checked=0";
$num=$empire->gettotal($totalquery);//取得總條數(shù)
}
$search="&totalnum=$num";
$query="select lyid,name,email,`call`,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=../../../>".$fun_r['index']."</a> > ".$fun_r['saygbook'];
?>
<HTML>
<HEAD>
<TITLE>留言 - Powered by EmpireCMS</TITLE>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META content="留言" name="keywords">
<META content="留言" name="description">
<LINK href="/deftempimg/style.css" type=text/css rel=stylesheet>
</HEAD>
<BODY topmargin="0">
<TABLE style="BORDER-RIGHT: #dcdcdc 1px solid; BORDER-TOP: #dcdcdc 1px solid; BORDER-LEFT: #dcdcdc 1px solid; BORDER-BOTTOM: #dcdcdc 1px solid" cellSpacing=0 cellPadding=0 width=780 align=center bgColor=#ededed border=0>
<TBODY>
<TR>
<TD width="384" height=25 align=left>
<IFRAME frameBorder=0 name=loginiframe scrolling=no src="//e/member/iframe" style="HEIGHT:100%;VISIBILITY:inherit;WIDTH:100%;Z-INDEX:2"></IFRAME>
</TD>
<TD width="394" height=23 align=right> <A
style="FONT-SIZE: 12px; COLOR: #000000"
href="http://phome.net" target=_blank>官方網(wǎng)站</A> <A
style="FONT-SIZE: 12px; COLOR: #000000"
href="http://phome.net/product/" target=_blank>帝國(guó)產(chǎn)品</A> <A
style="FONT-SIZE: 12px; COLOR: #000000" href="http://phome.net/edomain/"
target=_blank>域名交易平臺(tái)</A> <A style="FONT-SIZE: 12px; COLOR: #000000"
href="http://bbs.phome.net" target=_blank>官方交流論壇</A> <A style="FONT-SIZE: 12px; COLOR: #000000"
href="http://phome.net/site/" target=_blank>網(wǎng)站信息查詢(xún)</A> </TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=2 width=780 align=center border=0>
<TBODY>
<TR>
<TD width=190><A href="http://PHome.net/"><IMG
src="/deftempimg/logo.jpg" alt=帝國(guó)軟件官方 width="180" height="65" border=0></A></TD>
<TD align=middle><div align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="468" height="60">
<param name="movie" value="/deftempimg/ecms.swf">
<param name="quality" value="high">
<embed src="/deftempimg/ecms.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="468" height="60"></embed></object>
</div></TD>
<TD align=middle> <img src="/deftempimg/li.gif" width="10" height="11"><a href="#" onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.pHome.net');" title="設(shè)為首頁(yè)" style='font-size:12px;color:#000000;'>設(shè)為首頁(yè)</a><br>
<img src="/deftempimg/li.gif" width="10" height="11"><a href="#" onClick="window.external.addFavorite('http://www.pHome.net','帝國(guó)軟件')" title="把帝國(guó)軟件加入收藏夾" style='font-size:12px;color:#000000;'>加入收藏</a><br>
<img src="/deftempimg/li.gif" width="10" height="11"><a href="http://www.phome.net" title="聯(lián)系方式" target="_blank" style='font-size:12px;color:#000000;'>關(guān)于我們</a></TD>
</TR></TBODY></TABLE>
<TABLE
style="BORDER-RIGHT: #4c93bc 1px solid; BORDER-TOP: #4c93bc 1px solid; BORDER-LEFT: #4c93bc 1px solid; BORDER-BOTTOM: #4c93bc 1px solid"
cellSpacing=0 cellPadding=0 width=780 align=center bgColor=1F80CB>
<TBODY>
<TR>
<TD style="PADDING-LEFT: 20px" align=left height=24><FONT
color="#ffffff"><a href="/ecms/"><FONT color="#ffffff">首頁(yè)</font></a> | <A style="FONT-SIZE: 12px; COLOR: #ffffff" href="/ecms/news/">新聞系統(tǒng)</A> | <A style="FONT-SIZE: 12px; COLOR: #ffffff" href="/ecms/download/">下載系統(tǒng)</A> | <A style="FONT-SIZE: 12px; COLOR: #ffffff" href="/ecms/movie/">電影系統(tǒng)</A> | <A style="FONT-SIZE: 12px; COLOR: #ffffff" href="/ecms/shop/">商城系統(tǒng)</A> | <A style="FONT-SIZE: 12px; COLOR: #ffffff" href="/ecms/flash/">FLASH系統(tǒng)</A> | <A style="FONT-SIZE: 12px; COLOR: #ffffff" href="/ecms/photo/">圖片系統(tǒng)</A> | <A style="FONT-SIZE: 12px; COLOR: #ffffff" href="/ecms/article/">文章系統(tǒng)</A> | <A style="FONT-SIZE: 12px; COLOR: #ffffff" href="/ecms/info/">分類(lèi)信息</A></FONT></TD>
<TD align=right></TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=780 align=center border=0>
<TBODY>
<TR>
<TD bgColor=#ffffff height=1></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=780 align=center border=0>
<TBODY>
<TR>
<TD bgColor=#ffffff height=1></TD></TR></TBODY></TABLE>
<TABLE height=8 cellSpacing=0 cellPadding=0 width=780 align=center border=0>
<TBODY>
<TR>
<TD align=middle></TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=780 align=center border=0>
<TBODY>
<TR>
<TD vAlign=top width=780> <TABLE
style="BORDER-RIGHT: #1F80CB 1px solid; BORDER-TOP: #4c93bc 1px solid; BORDER-LEFT: #1F80CB 1px solid; BORDER-BOTTOM: #1F80CB 1px solid"
cellSpacing=0 cellPadding=0 width="100%" bgColor=#E8F5FB border=0>
<TBODY>
<TR>
<TD> <TABLE cellSpacing=0 cellPadding=6 width="100%" border=0>
<TR>
<TD><?=$url?></TD>
</TR>
</TABLE></TD>
</TR>
</TBODY>
</TABLE>
<TABLE height=8 cellSpacing=0 cellPadding=0 width="90%" align=center
border=0>
<TBODY>
<TR>
<TD align=middle></TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD
style="BORDER-RIGHT: #1F80CB 1px solid; BORDER-TOP: #1F80CB 1px solid; BORDER-LEFT: #1F80CB 1px solid; BORDER-BOTTOM: #1F80CB 1px solid" bgColor=E8F5FB height=24>
<div align="center"><strong><?=$bname?></strong></div></TD>
</TR>
<TR>
<TD
style="BORDER-RIGHT: #1F80CB 1px solid; BORDER-LEFT: #1F80CB 1px solid; BORDER-BOTTOM: #1F80CB 1px solid"
vAlign=top><table width="780" border="0" align="center" cellpadding="4" cellspacing="0" bgcolor="ffffff">
<tr>
<td height="100%" valign="top">
<?
while($r=$empire->fetch($sql))
{
$r['retext']=nl2br($r[retext]);
$r['lytext']=nl2br($r[lytext]);
?>
<table width="600" border="0" align="center" cellpadding="3" cellspacing="1" class=tableborder>
<tr class=header>
<td width="55%" height="23">發(fā)布者: <?=$r[name]?> </td>
<td width="45%">發(fā)布時(shí)間: <?=$r[lytime]?> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="23" colspan="2"> <table border=0 width=100% cellspacing=1 cellpadding=10 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>回復(fù):</font></strong>
<?=$r[retext]?> </td>
</tr>
</table>
<?
}
?> </td>
</tr>
</table>
<br>
<?
}
db_close();
$empire=null;
?>
<table width="600" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td>分頁(yè):<?=$listpage?></td>
</tr>
</table>
<form name="form1" method="post" action="../../enews/index.php">
<table width="600" border="0" align="center" cellpadding="3" cellspacing="1"class=tableborder>
<tr class=header>
<td height="23" colspan="2">請(qǐng)您留言:</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="142" height="23">姓名:</td>
<td width="443" height="23"><input name="name" type="text" id="name">
*</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="23">聯(lián)系郵箱:</td>
<td height="23"><input name="email" type="text" id="email">
*</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="23">聯(lián)系電話(huà):</td>
<td height="23"><input name="call" type="text" id="name3"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="23">留言?xún)?nèi)容(*):</td>
<td height="23"><textarea name="lytext" cols="60" rows="12" id="name4"></textarea></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="23"> </td>
<td height="23"><input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置"> <input name="enews" type="hidden" id="enews" value="AddGbook"></td>
</tr>
</table>
</form></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE>
<TABLE height=8 cellSpacing=0 cellPadding=0 width=780 align=center border=0>
<TBODY>
<TR>
<TD align=middle></TD></TR></TBODY></TABLE>
<HR width=780 SIZE=2>
<TABLE cellSpacing=2 cellPadding=0 width=780 align=center border=0>
<TBODY>
<TR>
<TD align=middle height=24><div align="center"><A style="FONT-SIZE: 12px; COLOR: #000000"
href="#">網(wǎng)站留言</A> | <A
style="FONT-SIZE: 12px; COLOR: #000000"
href="#">關(guān)于我們</A> | <A
style="FONT-SIZE: 12px; COLOR: #000000"
href="#">廣告業(yè)務(wù)</A> | <A
style="FONT-SIZE: 12px; COLOR: #000000"
href="#">信息反饋</A> | <A
style="FONT-SIZE: 12px; COLOR: #000000"
href="#">合作伙伴</A> | <A
style="FONT-SIZE: 12px; COLOR: #000000"
href="#">網(wǎng)站地圖</A></div></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=780 align=center bgColor=#ffffff
border=0>
<TBODY>
<TR>
<TD align=middle><div align="center"><A href="http://phome.net"
target=_blank><FONT face=Verdana, sans-serif=""><B><font color="#ff0000">PHome</font><FONT
color=#000000>.Net</FONT></B></FONT></A> 版權(quán)所有<BR>
Copyright © 2007 All rights reserved </div></TD>
</TR></TBODY></TABLE>
</BODY>
</HTML>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -