无为清净楼资源网 Design By www.qnjia.com
1.guestbook.php(留言程序)
<html>
<head>
<script language="JavaScript">
<!--
<!--
var hellotext="为了您的最佳浏览效果请您使用IE4.0以上的版本和800*600分辨率"
var thetext=""
var started=false
var step=0
var times=1
function welcometext()
{
times--
if (times==0)
{
if (started==false)
{
started = true;
window.status = hellotext;
setTimeout("anim()",1);
}
thetext = hellotext;
}
}
function showstatustext(txt)
{
thetext = txt;
setTimeout("welcometext()",4000)
times++
}
function anim()
{
step++
if (step==7) {step=1}
if (step==1)
{window.status='>==='+thetext+'===<'}
if (step==2)
{window.status='=>=='+thetext+'==<='}
if (step==3)
{window.status='>=>='+thetext+'=<=<'}
if (step==4)
{window.status='=>=>'+thetext+'<=<='}
if (step==5)
{window.status='==>='+thetext+'=<=='}
if (step==6)
{window.status='===>'+thetext+'<==='}
setTimeout("anim()",200);
}
// -->
welcometext();
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<title>天地网络留言版</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<style type="text/css">
<!--
a:link { font-size: 9pt; color: #FFFFFF}
-->
</style>
<body>
<?
$PAGESIZE=5;
$db=mysql_connect("localhost","root","");
mysql_select_db("lyanban",$db);
$result=mysql_query("SELECT * FROM message order by date desc",$db);
$rowcount=mysql_num_rows($result);
$PAGES=CEIL($rowcount/$PAGESIZE);
if($rowcount==0)
{echo "目前没有留言!<a href=guestbook.htm>欢迎您留言!</a>";}
if($rownum == "")
{
$rownum = 1;
}
$AA=CEIL($rownum/5);
$i=0 ;
echo "<TABLE WIDTH=100%><td><div align=center><font size=2 color=#000000><B>共有留言:$rowcount 条 共:$PAGES 页 <right>现在是第 $AA 页</right></B></font></div></td>";
echo "<hr size=1 color=#ccccff width=75%>";
while ($myrow=mysql_fetch_array($result)){
$i++;
if(($i>=$rownum)&&($i<$rownum+5)){
echo "<table width=75% border=1 cellspacing=0 cellpadding=0 align=center bordercolordark=#FFFFFF bordercolorlight=#000000 background=15.JPG>";
echo "<tr><td width=15%><div align=center><font size=2 color=#FFFFFF>姓 名</font></div></td><td width=85%><font size=2 color=#FFFFFF>$myrow[username]</font></td></tr>";
echo "<tr><td width=15%><div align=center><font size=2 color=#FFFFFF>电子信箱</font></div></td><td width=85%><font size=2 color=#FFFFFF><a href="mailto:$myrow[email]">$myrow[email]</font></a></td></tr>";
echo "<tr><td width=15%><div align=center><font size=2 color=#FFFFFF>公司主页</font></div></td><td width=85%><font size=2 color=#FFFFFF><a href=$myrow[homepage] target=_blank>$myrow[homepage]</font></a></td></tr>";
echo "<tr><td width=15%><div align=center><font size=2 color=#FFFFFF>留言主题</font></div></td><td width=85%><font size=2 color=#FFFFFF>$myrow[topic]</font></td></tr>";
echo "<tr><td width=15%><div align=center><font size=2 color=#FFFFFF>留言内容</font></div></td><td width=85%><font size=2 color=#FFFFFF>$myrow[content]</font></td></tr>";
echo "<tr><td width=15%><div align=center><font size=2 color=#FFFFFF>留言时间</font></div></td><td width=85%><font size=2 color=#FFFFFF>$myrow[date]</font></td></tr>";
echo "</table><hr size=1 color=#ccccff width=75%>";}
}
echo "<table width=100%><tr><td width=87%>";
#判断是否有上一页或下一页(10行换页)
echo "<form name="hiddenform" method="post" action="guestbook.php">";
echo "<div align=center><input type="hidden" name="rownum" value="">";
echo "<input type="hidden" name="rowcount" value="$rowcount">";
#显示上一页
if ($rownum>=5)
echo "<input type="submit" value="上一页" onclick="document.hiddenform.rownum.value=".($rownum-5)."">";
#显示下一页
if ($rownum+5<=$rowcount) {
echo "<input type="submit" value="下一页" onclick="document.hiddenform.rownum.value=".($rownum+5).""></div>";
}
echo "</form>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<table width=100% ><tr><td><div align=center><font color=#ffffff size=2><a href=guestbook.htm>返回继续发言</a></font></div></td></tr></table>";
?>
</body>
</html>
2.show.php3(显示程序)
?
$username = htmlspecialchars(ltrim(stripslashes (trim($name))));// 本函式可去掉字串中的反斜线空格字元
$email = htmlspecialchars(ltrim(stripslashes (trim($email))));
$homepage = htmlspecialchars(ltrim(stripslashes (trim($homepage))));
$topic = htmlspecialchars(ltrim(stripslashes (trim($topic))));
$content = htmlspecialchars(ltrim(stripslashes (trim($content))));
// $content=base64_encode($content);
//send email
// if ($ok) mail($email,$topic,$content);
if (($username=="")or($topic=="")or(strlen($username)>20)or(strlen($topic)>20))
{echo "请填写必要的项目或着非法用户名!<a href=javascript:history.go(-1);>返回</a>";
}
//wrong email ?
elseif (($email!="")and(!eregi("^[_.0-9a-z-]+@([0-9a-z][0-9a-z-]+.)+[a-z]{2,3}$",$email)))
{
echo "请您填写正确的 E-Mail 地址</p><p align=center><a href=javascript:history.go(-1);>返回</a>";
}
//wrong homepage ?
elseif (($homepage!="")and(!eregi("(http://)+[0-9a-z-]+.([0-9a-z-]+.)+[a-z]{2,3}$",$homepage)))
{echo "主页地址输入错误!<a href=javascript:history.go(-1);>返回</a>";}
else{
//联接数据库
mysql_connect("localhost","root","");
mysql_select_db("lyanban");
$sql="select password from tb where username='$username'";
$result=mysql_query($sql);
$nums=mysql_num_rows($result);
if($nums!=1){
echo"对不起!请先<a href=register.html>注册</a>!";
}
else{
//得到日期 YYYY-MM-DD HH:MM:SS 2000-01-01 00:00:00'
$t = date(Y."-".m."-".d." ".H.":".i.":".s);
//将新用户插入数据库
mysql_query("insert into message values ('$username','$email','$homepage','$topic','$content','$t')");
echo "<div align=center><font size=2 color=#000000>谢谢您留言!您的留言已成功加入,<a href=guestbook.php>返回</a></font></div>";
}
}
?>
3.zhuc.php(注册程序)
<?
mysql_connect("localhost","root","")
or die("无法连接数据库,请重试");
mysql_select_db("lyanban")
or die("无法选择数据库,请重试");
$query="select password from tb where username='$username'";
$result=mysql_query($query);
$numrows=mysql_num_rows($result);
if($numrows!=0)
{echo '已有人注册此名,请重新选择名字!<a href=javascript:history.go(-1);>返回</a>';}
else
{$query="insert into tb(username,password) values('$username','$password')";
mysql_query($query);
echo '注册成功';
echo '<A HREF="guestbook.htm" >请登录!</A>';}
?>
以下是两个配套的HTML:
1。留言网页
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>天地网络留言版欢迎您留言!</title>
</head>
<body bgcolor="#FFFFFF">
<div align="center">
<center>
<br>
<font size="2">天地网络留言版测试版</font><br>
<br>
<form method="post" action="show.php3">
<table width="66%">
<tr>
<td width="50%" height="1">
<div align="center"> <font size="2"> 您的尊姓大名:</font></div>
</td>
<td width="50%" height="1">
<div align="center">
<input type="text" name="name" size="20">
</div>
</td>
</tr>
<tr>
<td width="50%" height="1">
<div align="center"><font size="2"> 您的电子邮件地址:</font></div>
</td>
<td width="50%" height="1">
<div align="center">
<input type="text" name="email" size="20">
</div>
</td>
</tr>
<tr>
<td width="50%" height="1">
<div align="center"><font size="2"> 您的公司主页地址:</font></div>
</td>
<td width="50%" height="1">
<div align="center">
<input type="text" name="homepage" size="20" value="http://">
</div>
</td>
</tr>
<tr>
<td width="50%" height="1">
<div align="center"> <font size="2">留言主题:</font></div>
</td>
<td width="50%" height="1" valign="middle">
<div align="center">
<input type="text" name="topic" size="20">
</div>
</td>
</tr>
<tr>
<td width="50%" height="1">
<div align="center"> <font size="2">留言内容:</font></div>
</td>
<td width="50%" height="1">
<div align="center"> </div>
</td>
</tr>
<tr>
<td width="100%" colspan="2" height="66">
<p align="center">
<textarea rows="10" name="content" cols="50"></textarea>
</p>
</td>
</tr>
<tr>
<td width="50%" height="18">
<div align="center"></div>
</td>
<td width="50%" height="18">
<div align="center"></div>
</td>
</tr>
<tr>
<td width="50%" height="18" align="center">
<p align="center">
<input type="submit" value="发表留言" name="B1">
</p>
</td>
<td width="50%" height="18" align="center">
<div align="center">
<input type="reset" value="全部重写" name="B2">
</div>
</td>
</tr>
</table>
</form>
</center>
</div>
<p> </p>
<p> </p>
</body>
</html>
2.注册程序
<html>
<head>
<title>registe</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF">
<div align="center">
<p> </p>
<p> </p>
<p>用户注册</p>
<form method="post" action="zhuc.php">
<p>用户名:
<input type="text" name="username">
</p>
<p>密码:
<input type="password" name="password">
</p>
<p>
<input type="submit" name="Submit" value="确定">
<input type="reset" name="Submit2" value="重来">
</p>
</form>
<p> </p>
</div>
</body>
</html>
如需要ZIP文件可给我来信。tandinet@163.net
【本文版权归作者与奥索网共同拥有,如需转载,请注明作者及出处】
<html>
<head>
<script language="JavaScript">
<!--
<!--
var hellotext="为了您的最佳浏览效果请您使用IE4.0以上的版本和800*600分辨率"
var thetext=""
var started=false
var step=0
var times=1
function welcometext()
{
times--
if (times==0)
{
if (started==false)
{
started = true;
window.status = hellotext;
setTimeout("anim()",1);
}
thetext = hellotext;
}
}
function showstatustext(txt)
{
thetext = txt;
setTimeout("welcometext()",4000)
times++
}
function anim()
{
step++
if (step==7) {step=1}
if (step==1)
{window.status='>==='+thetext+'===<'}
if (step==2)
{window.status='=>=='+thetext+'==<='}
if (step==3)
{window.status='>=>='+thetext+'=<=<'}
if (step==4)
{window.status='=>=>'+thetext+'<=<='}
if (step==5)
{window.status='==>='+thetext+'=<=='}
if (step==6)
{window.status='===>'+thetext+'<==='}
setTimeout("anim()",200);
}
// -->
welcometext();
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<title>天地网络留言版</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<style type="text/css">
<!--
a:link { font-size: 9pt; color: #FFFFFF}
-->
</style>
<body>
<?
$PAGESIZE=5;
$db=mysql_connect("localhost","root","");
mysql_select_db("lyanban",$db);
$result=mysql_query("SELECT * FROM message order by date desc",$db);
$rowcount=mysql_num_rows($result);
$PAGES=CEIL($rowcount/$PAGESIZE);
if($rowcount==0)
{echo "目前没有留言!<a href=guestbook.htm>欢迎您留言!</a>";}
if($rownum == "")
{
$rownum = 1;
}
$AA=CEIL($rownum/5);
$i=0 ;
echo "<TABLE WIDTH=100%><td><div align=center><font size=2 color=#000000><B>共有留言:$rowcount 条 共:$PAGES 页 <right>现在是第 $AA 页</right></B></font></div></td>";
echo "<hr size=1 color=#ccccff width=75%>";
while ($myrow=mysql_fetch_array($result)){
$i++;
if(($i>=$rownum)&&($i<$rownum+5)){
echo "<table width=75% border=1 cellspacing=0 cellpadding=0 align=center bordercolordark=#FFFFFF bordercolorlight=#000000 background=15.JPG>";
echo "<tr><td width=15%><div align=center><font size=2 color=#FFFFFF>姓 名</font></div></td><td width=85%><font size=2 color=#FFFFFF>$myrow[username]</font></td></tr>";
echo "<tr><td width=15%><div align=center><font size=2 color=#FFFFFF>电子信箱</font></div></td><td width=85%><font size=2 color=#FFFFFF><a href="mailto:$myrow[email]">$myrow[email]</font></a></td></tr>";
echo "<tr><td width=15%><div align=center><font size=2 color=#FFFFFF>公司主页</font></div></td><td width=85%><font size=2 color=#FFFFFF><a href=$myrow[homepage] target=_blank>$myrow[homepage]</font></a></td></tr>";
echo "<tr><td width=15%><div align=center><font size=2 color=#FFFFFF>留言主题</font></div></td><td width=85%><font size=2 color=#FFFFFF>$myrow[topic]</font></td></tr>";
echo "<tr><td width=15%><div align=center><font size=2 color=#FFFFFF>留言内容</font></div></td><td width=85%><font size=2 color=#FFFFFF>$myrow[content]</font></td></tr>";
echo "<tr><td width=15%><div align=center><font size=2 color=#FFFFFF>留言时间</font></div></td><td width=85%><font size=2 color=#FFFFFF>$myrow[date]</font></td></tr>";
echo "</table><hr size=1 color=#ccccff width=75%>";}
}
echo "<table width=100%><tr><td width=87%>";
#判断是否有上一页或下一页(10行换页)
echo "<form name="hiddenform" method="post" action="guestbook.php">";
echo "<div align=center><input type="hidden" name="rownum" value="">";
echo "<input type="hidden" name="rowcount" value="$rowcount">";
#显示上一页
if ($rownum>=5)
echo "<input type="submit" value="上一页" onclick="document.hiddenform.rownum.value=".($rownum-5)."">";
#显示下一页
if ($rownum+5<=$rowcount) {
echo "<input type="submit" value="下一页" onclick="document.hiddenform.rownum.value=".($rownum+5).""></div>";
}
echo "</form>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<table width=100% ><tr><td><div align=center><font color=#ffffff size=2><a href=guestbook.htm>返回继续发言</a></font></div></td></tr></table>";
?>
</body>
</html>
2.show.php3(显示程序)
?
$username = htmlspecialchars(ltrim(stripslashes (trim($name))));// 本函式可去掉字串中的反斜线空格字元
$email = htmlspecialchars(ltrim(stripslashes (trim($email))));
$homepage = htmlspecialchars(ltrim(stripslashes (trim($homepage))));
$topic = htmlspecialchars(ltrim(stripslashes (trim($topic))));
$content = htmlspecialchars(ltrim(stripslashes (trim($content))));
// $content=base64_encode($content);
//send email
// if ($ok) mail($email,$topic,$content);
if (($username=="")or($topic=="")or(strlen($username)>20)or(strlen($topic)>20))
{echo "请填写必要的项目或着非法用户名!<a href=javascript:history.go(-1);>返回</a>";
}
//wrong email ?
elseif (($email!="")and(!eregi("^[_.0-9a-z-]+@([0-9a-z][0-9a-z-]+.)+[a-z]{2,3}$",$email)))
{
echo "请您填写正确的 E-Mail 地址</p><p align=center><a href=javascript:history.go(-1);>返回</a>";
}
//wrong homepage ?
elseif (($homepage!="")and(!eregi("(http://)+[0-9a-z-]+.([0-9a-z-]+.)+[a-z]{2,3}$",$homepage)))
{echo "主页地址输入错误!<a href=javascript:history.go(-1);>返回</a>";}
else{
//联接数据库
mysql_connect("localhost","root","");
mysql_select_db("lyanban");
$sql="select password from tb where username='$username'";
$result=mysql_query($sql);
$nums=mysql_num_rows($result);
if($nums!=1){
echo"对不起!请先<a href=register.html>注册</a>!";
}
else{
//得到日期 YYYY-MM-DD HH:MM:SS 2000-01-01 00:00:00'
$t = date(Y."-".m."-".d." ".H.":".i.":".s);
//将新用户插入数据库
mysql_query("insert into message values ('$username','$email','$homepage','$topic','$content','$t')");
echo "<div align=center><font size=2 color=#000000>谢谢您留言!您的留言已成功加入,<a href=guestbook.php>返回</a></font></div>";
}
}
?>
3.zhuc.php(注册程序)
<?
mysql_connect("localhost","root","")
or die("无法连接数据库,请重试");
mysql_select_db("lyanban")
or die("无法选择数据库,请重试");
$query="select password from tb where username='$username'";
$result=mysql_query($query);
$numrows=mysql_num_rows($result);
if($numrows!=0)
{echo '已有人注册此名,请重新选择名字!<a href=javascript:history.go(-1);>返回</a>';}
else
{$query="insert into tb(username,password) values('$username','$password')";
mysql_query($query);
echo '注册成功';
echo '<A HREF="guestbook.htm" >请登录!</A>';}
?>
以下是两个配套的HTML:
1。留言网页
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>天地网络留言版欢迎您留言!</title>
</head>
<body bgcolor="#FFFFFF">
<div align="center">
<center>
<br>
<font size="2">天地网络留言版测试版</font><br>
<br>
<form method="post" action="show.php3">
<table width="66%">
<tr>
<td width="50%" height="1">
<div align="center"> <font size="2"> 您的尊姓大名:</font></div>
</td>
<td width="50%" height="1">
<div align="center">
<input type="text" name="name" size="20">
</div>
</td>
</tr>
<tr>
<td width="50%" height="1">
<div align="center"><font size="2"> 您的电子邮件地址:</font></div>
</td>
<td width="50%" height="1">
<div align="center">
<input type="text" name="email" size="20">
</div>
</td>
</tr>
<tr>
<td width="50%" height="1">
<div align="center"><font size="2"> 您的公司主页地址:</font></div>
</td>
<td width="50%" height="1">
<div align="center">
<input type="text" name="homepage" size="20" value="http://">
</div>
</td>
</tr>
<tr>
<td width="50%" height="1">
<div align="center"> <font size="2">留言主题:</font></div>
</td>
<td width="50%" height="1" valign="middle">
<div align="center">
<input type="text" name="topic" size="20">
</div>
</td>
</tr>
<tr>
<td width="50%" height="1">
<div align="center"> <font size="2">留言内容:</font></div>
</td>
<td width="50%" height="1">
<div align="center"> </div>
</td>
</tr>
<tr>
<td width="100%" colspan="2" height="66">
<p align="center">
<textarea rows="10" name="content" cols="50"></textarea>
</p>
</td>
</tr>
<tr>
<td width="50%" height="18">
<div align="center"></div>
</td>
<td width="50%" height="18">
<div align="center"></div>
</td>
</tr>
<tr>
<td width="50%" height="18" align="center">
<p align="center">
<input type="submit" value="发表留言" name="B1">
</p>
</td>
<td width="50%" height="18" align="center">
<div align="center">
<input type="reset" value="全部重写" name="B2">
</div>
</td>
</tr>
</table>
</form>
</center>
</div>
<p> </p>
<p> </p>
</body>
</html>
2.注册程序
<html>
<head>
<title>registe</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF">
<div align="center">
<p> </p>
<p> </p>
<p>用户注册</p>
<form method="post" action="zhuc.php">
<p>用户名:
<input type="text" name="username">
</p>
<p>密码:
<input type="password" name="password">
</p>
<p>
<input type="submit" name="Submit" value="确定">
<input type="reset" name="Submit2" value="重来">
</p>
</form>
<p> </p>
</div>
</body>
</html>
如需要ZIP文件可给我来信。tandinet@163.net
【本文版权归作者与奥索网共同拥有,如需转载,请注明作者及出处】
无为清净楼资源网 Design By www.qnjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
无为清净楼资源网 Design By www.qnjia.com
暂无评论...
稳了!魔兽国服回归的3条重磅消息!官宣时间再确认!
昨天有一位朋友在大神群里分享,自己亚服账号被封号之后居然弹出了国服的封号信息对话框。
这里面让他访问的是一个国服的战网网址,com.cn和后面的zh都非常明白地表明这就是国服战网。
而他在复制这个网址并且进行登录之后,确实是网易的网址,也就是我们熟悉的停服之后国服发布的暴雪游戏产品运营到期开放退款的说明。这是一件比较奇怪的事情,因为以前都没有出现这样的情况,现在突然提示跳转到国服战网的网址,是不是说明了简体中文客户端已经开始进行更新了呢?
更新日志
2024年09月24日
2024年09月24日
- 张敬轩.2004-A.M/P.M【几何文化】【WAV+CUE】
- 范文芳1999-真心话电影原声带[HYPE][WAV+CUE]
- 袁培华.1990-我写不出一首情歌给我最爱的你【可登】【WAV+CUE】
- 群星.2007-歌林10年流行岁月12CD【歌林】【WAV+CUE】
- 软硬天师.2006-LONG.TIME.NO.SEE【金牌大风】【WAV+CUE】
- 卓依娜姆《美人谋 网剧影视原声带》[FLAC/分轨][162.27MB]
- 国风大师纯音系列《蒋倩 :古筝演奏家》1CD[MP3][160.7MB]
- 国风大师纯音系列《王中山古筝》1CD[MP3][519MB]
- 徐玮1986-走自己的路[台湾复刻版][WAV+CUE]
- 黄思婷2004-情缘[豪记唱片][WAV+CUE]
- 群星《左耳·听见爱情》星文唱片[WAV+CUE]
- 陈美玲.1987-孤单的心【EMI百代】【WAV+CUE】
- 黄乙玲.2005-甲你作伴【亚律音乐】【WAV+CUE】
- 张雨生.1997-口是心非【丰华】【WAV+CUE】
- 群星《右耳·聆听私语》星文唱片[WAV+CUE]