⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.php

📁 帝国CMS,功能全面的CMS源码,下载试用下
💻 PHP
字号:
<?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;
//分类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("../../class/user.php");
	$user=islogin();
	include("../../class/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'];
$start=(int)$_GET['start'];
$line=12;//每页显示条数
$page_line=12;//每页显示链接数
$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);//取得总条数
}
$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>&nbsp;>&nbsp;".$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> &nbsp;<A 
      style="FONT-SIZE: 12px; COLOR: #000000" 
      href="http://phome.net" target=_blank>官方网站</A>&nbsp;&nbsp;<A 
      style="FONT-SIZE: 12px; COLOR: #000000" 
      href="http://phome.net/product/" target=_blank>帝国产品</A>&nbsp;&nbsp;<A 
      style="FONT-SIZE: 12px; COLOR: #000000" href="http://phome.net/edomain/" 
      target=_blank>域名交易平台</A>&nbsp;&nbsp;<A style="FONT-SIZE: 12px; COLOR: #000000" 
      href="http://bbs.phome.net" target=_blank>官方交流论坛</A>&nbsp;&nbsp;<A style="FONT-SIZE: 12px; COLOR: #000000" 
      href="http://phome.net/site/" target=_blank>网站信息查询</A>&nbsp; </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=帝国软件官方 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="设为首页" style='font-size:12px;color:#000000;'>设为首页</a><br>
        <img src="/deftempimg/li.gif" width="10" height="11"><a href="#" onClick="window.external.addFavorite('http://www.pHome.net','帝国软件')" title="把帝国软件加入收藏夹" style='font-size:12px;color:#000000;'>加入收藏</a><br>
        <img src="/deftempimg/li.gif" width="10" height="11"><a href="http://www.phome.net" title="联系方式" target="_blank" style='font-size:12px;color:#000000;'>关于我们</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">首页</font></a>&nbsp;|&nbsp;<A style="FONT-SIZE: 12px; COLOR: #ffffff" href="/ecms/news/">新闻系统</A>&nbsp;|&nbsp;<A style="FONT-SIZE: 12px; COLOR: #ffffff" href="/ecms/download/">下载系统</A>&nbsp;|&nbsp;<A style="FONT-SIZE: 12px; COLOR: #ffffff" href="/ecms/movie/">电影系统</A>&nbsp;|&nbsp;<A style="FONT-SIZE: 12px; COLOR: #ffffff" href="/ecms/shop/">商城系统</A>&nbsp;|&nbsp;<A style="FONT-SIZE: 12px; COLOR: #ffffff" href="/ecms/flash/">FLASH系统</A>&nbsp;|&nbsp;<A style="FONT-SIZE: 12px; COLOR: #ffffff" href="/ecms/photo/">图片系统</A>&nbsp;|&nbsp;<A style="FONT-SIZE: 12px; COLOR: #ffffff" href="/ecms/article/">文章系统</A>&nbsp;|&nbsp;<A style="FONT-SIZE: 12px; COLOR: #ffffff" href="/ecms/info/">分类信息</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">发布者: <?=$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=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>回复:</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>分页:<?=$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">请您留言:</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">联系邮箱:</td>
                            <td height="23"><input name="email" type="text" id="email">
                              *</td>
                          </tr>
                          <tr bgcolor="#FFFFFF"> 
                            <td height="23">联系电话:</td>
                            <td height="23"><input name="call" type="text" id="name3"></td>
                          </tr>
                          <tr bgcolor="#FFFFFF"> 
                            <td height="23">留言内容(*):</td>
                            <td height="23"><textarea name="lytext" cols="60" rows="12" id="name4"></textarea></td>
                          </tr>
                          <tr bgcolor="#FFFFFF"> 
                            <td height="23">&nbsp;</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="#">网站留言</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="#">信息反馈</A> | <A 
      style="FONT-SIZE: 12px; COLOR: #000000" 
      href="#">合作伙伴</A> | <A 
      style="FONT-SIZE: 12px; COLOR: #000000" 
      href="#">网站地图</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> 版权所有<BR>
          Copyright &copy; 2007 All rights reserved </div></TD>
    </TR></TBODY></TABLE>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -