<?php
include( 'function.php' );
if ( $_POST['add'] )
{
$_POST['singnature'] = CleanHtmlTags( trim( $_POST['singnature'] ) );
$_POST['tagbgcolor'] = trim( $_POST['tagbgcolor'] );
$_POST['messages'] = CleanHtmlTags( trim( $_POST['messages'] ) );
$_POST['tagbgpic'] = trim( $_POST['tagbgpic'] );
if ( !empty( $_POST['singnature'] ) && !empty( $_POST['tagbgcolor'] ) && !empty( $_POST['messages'] ) && !empty( $_POST['tagbgpic'] ) && !is_numeric( $_POST['tagbgcolor'] ) && !is_numeric( $_POST['tagbgpic'] ) )
exit( '参数错误!' );
$clientIP = GetIP();
AddWish( addslashes( $_POST['singnature'] ), addslashes( $_POST['messages'] ), addslashes( $_POST['tagbgcolor'] ), addslashes( $_POST['tagbgpic'] ), trim( $clientIP ) );
@header( "Location:index.php" );
exit;
}
$DB->Close();
?>
<html>
<head>
<title>新春许愿墙</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/style.css" type="text/css">
<link rel="stylesheet" href="css/default.css" type="text/css">
<style type="text/css">
<!--
body {
background-image: url(images/bg.jpg);
}
-->
</style>
</head>
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#ffffff>
<div id="content">
<center>
<div id="banner"></div>
<SCRIPT language=JavaScript type="text/javascript">
var ie = false;
function getObj(id) {
if (ie) {
return document.all[id];
} else {
return document.getElementById(id);
}
}
function setTagBColor(i) {
color = getBColor(i);
getObj('preview').style.background = '' + color;
hopeFM.tagbgcolor.value = i;
}
function setTagBPic(i) {
picurl = getBPic(i);
getObj('tagBPic').style.background = " transparent url(\"" + picurl + "\") no-repeat scroll bottom left";
hopeFM.tagbgpic.value = i;
}
function getBColor(i) {
i = (i<1 || i>8)?0:parseInt(parseInt(i)-1);
//colorArray = new Array ("#FFDFFF","#C5FFC2","#FFE3B8","#FFCECE","#CEECFF","#FFFFCC","#E8DEFF","#F0F0F0");
colorArray = new Array ("#FFDFFF","#C5FFC2","#FFE3B8","#FFCECE","#CEECFF","#FFFFCC","#E8DEFF","#F0F0F0");
return colorArray[i];
}
function getBPic(i) {
i = (i<1 || i>12)?1:i;
//alert(parseInt(parseInt(i)+10));
return "images/bpic_" + parseInt(parseInt(i)+10) +".gif";
}
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit)
field.value = field.value.substring(0, maxlimit);
else
countfield.value = maxlimit - field.value.length;
//field.value = field.value.replace(" "," ");
//field.value = field.value.replace("\r\n","<br>");
viewcontent.innerHTML = field.value;
}
function chkFM() {
if (hopeFM.messages.value == "") {
alert("\n\n\n您的祝福内容?\n\n\n");
hopeFM.messages.focus();
return false;
}
if (hopeFM.singnature.value == "") {
alert("\n\n\n请留下您的署名!\n\n");
hopeFM.singnature.focus();
return false;
}
alert( "提交祝福成功!" );
return true;
}
</SCRIPT>
<div>
<p align="center"> </p>
<br>
<div id="bar">
<div class="btn"><a href="index.php"><img src="images/btn_visit.gif" border="0"></a></div>
<span class="white">新年到了,许个愿望吧......</span>
</div>
<TABLE
style="BORDER-RIGHT: #bbbbbb 1px solid; BORDER-TOP: #bbbbbb 1px solid; MARGIN-TOP: 20px; MARGIN-BOTTOM: 20px; BORDER-LEFT: #bbbbbb 1px solid; BORDER-BOTTOM: #bbbbbb 1px solid"
cellSpacing=0 cellPadding=0 width=500 bgColor=#fffaee border=0>
<tr>
<td align=center valign=top>
<table border=0 cellpadding=0 cellspacing=0 width=700>
<tr>
<td align=center valign=top>
<FORM name=hopeFM onSubmit="return chkFM();" method="post" action="new.php">
<INPUT type=hidden value="7" name="tagbgcolor">
<INPUT type=hidden value="1" name="tagbgpic">
<INPUT type=hidden value="1153391194039" name="tm">
<INPUT type=hidden value="1" name="add">
<img src="images/spacer.gif" width=1 height=8><br>
<table border=0 cellpadding=0 cellspacing=0 width=676 bgcolor=#EEF1EC>
<tr>
<td height=26><img src="images/pic_title_left.gif" width="12" height="26"></td>
<td width=652 align=center class="f14_2167 pt4"><strong>我要贴祝福纸条</strong></td>
<td><img src="images/pic_title_right.gif" width="12" height="26"></td>
</tr>
</table>
<br/>
<table border=0 cellpadding=0 cellspacing=0 width=676 >
<tr>
<td align=center valign=top>
<img src="images/spacer.gif" width=1 height=10><br>
<table border=0 cellpadding=0 cellspacing=0 width=608 background="images/line_dot.gif">
<tr>
<td height=1></td>
</tr></table>
<img src="images/spacer.gif" width=1 height=10><br>
<table border=0 cellpadding=0 cellspacing=0 width=608>
<tr align=center valign=top>
<td width=398>
<table border=0 cellpadding=0 cellspacing=0 width=398>
<tr>
<td width=110 class=f12_5050>请选择纸条颜色:</td>
<td width=288>
<a href="javascript:setTagBColor('1');"><img border=0 src="images/bcolor_11.gif" width="25" height="25"></a>
<a href="javascript:setTagBColor('2');"><img border=0 src="images/bcolor_12.gif" width="25" height="25"></a>
<a href="javascript:setTagBColor('3');"><img border=0 src="images/bcolor_13.gif" width="25" height="25"></a>
<a href="javascript:setTagBColor('4');"><img border=0 src="images/bcolor_14.gif" width="25" height="25"></a>
<a href="javascript:setTagBColor('5');"><img border=0 src="images/bcolor_15.gif" width="25" height="25"></a>
<a href="javascript:setTagBColor('6');"><img border=0 src="images/bcolor_16.gif" width="25" height="25"></a>
<a href="javascript:setTagBColor('7');"><img border=0 src="images/bcolor_17.gif" width="25" height="25"></a>
<a href="javascript:setTagBColor('8');"><img border=0 src="images/bcolor_18.gif" width="25" height="25"></a>
</td>
</tr></table>
<table border=0 cellpadding=0 cellspacing=0 width=398>
<tr valign=top>
<td width=110 class='f12_5050 pt12'>请选择纸条图案:</td>
<td width=262>
<table border=0 cellpadding=0 cellspacing=0 width=262>
<tr align=center>
<td width=44 height=48><a href="javascript:setTagBPic('1')" ><img border=0 src="images/bpic_11.gif"></a></td>
<td width=79><a href="javascript:setTagBPic('2');" ><img border=0 src="images/bpic_12.gif"></a></td>
<td width=54><a href="javascript:setTagBPic('3');" ><img border=0 src="images/bpic_13.gif"></a></td>
<td width=86><a href="javascript:setTagBPic('4');" ><img border=0 src="images/bpic_14.gif"></a></td>
</tr>
<tr align=center>
<td width=44 height=48><a href="javascript:setTagBPic('5');" ><img border=0 src="images/bpic_15.gif"></a></td>
<td width=79><a href="javascript:setTagBPic('6');" ><img border=0 src="images/bpic_16.gif"></a></td>
<td width=54><a href="javascript:setTagBPic('7');" ><img border=0 src="images/bpic_17.gif"></a></td>
<td width=86><a href="javascript:setTagBPic('8');" ><img border=0 src="images/bpic_18.gif"></a></td>
</tr>
<tr align=center>
<td width=44 height=48><a href="javascript:setTagBPic('9');" ><img border=0 src="images/bpic_19.gif"></a></td>
<td width=79><a href="javascript:setTagBPic('10');" ><img border=0 src="images/bpic_20.gif"></a></td>
<td width=54><a href="javascript:setTagBPic('11');" ><img border=0 src="images/bpic_21.gif"></a></td>
<td width=86><a href="javascript:setTagBPic('12');" ><img border=0 src="images/bpic_22.gif"></a></td>
</tr>
</table>
</td>
<td width=26></td>
</tr></table>
</td>
<td width=210>
<DIV id=preview style="BACKGROUND-COLOR: #E8DEFF">
<table border=0 cellpadding=0 cellspacing=0 width=210>
<tr>
<td height=1><img src="images/line_top.gif" width="210" height="1"></td>
</tr></table>
<table border
没有合适的资源?快使用搜索试试~ 我知道了~
许愿墙(php,mysql)
共80个文件
gif:57个
php:10个
jpg:4个
需积分: 5 0 下载量 185 浏览量
2022-12-17
09:12:02
上传
评论
收藏 3.9MB ZIP 举报
温馨提示
将第4章的代码,放在web目录下,然后将data放置在“D:\AppServ\MySQL”,后台管理账户无,管理地址 为:http://127.0.0.1/web/04xuyuan/admin
资源推荐
资源详情
资源评论
收起资源包目录
第4章.zip (80个子文件)
第4章
data
wish
db.opt 65B
plugin_wish.frm 9KB
plugin_wish.MYI 2KB
plugin_wish.MYD 2KB
04xuyuan
login.php 2KB
nav.php 79B
logout.php 519B
footer.php 511B
function.php 4KB
admin.php 2KB
css
style.css 14KB
default.css 2KB
index.php 6KB
_file_.php 65B
new.php 11KB
images
a8_1.gif 651B
a4_1.gif 651B
pic_title_left.gif 154B
a6_2.gif 94B
ditt.jpg 15KB
a6_3.gif 658B
top.jpg 63KB
a7_1.gif 651B
btn_search.gif 610B
Thumbs.db 88KB
a7_2.gif 94B
bcolor_12.gif 128B
pic_submit.gif 6KB
a5_1.gif 651B
top2.png 173KB
bcolor_18.gif 100B
newyear.mp3 3.28MB
a4_2.gif 94B
bcolor_15.gif 131B
pic_title_right.gif 153B
a1_3.gif 649B
a3_3.gif 649B
bpic_12.gif 289B
bpic_19.gif 962B
a2_1.gif 651B
bpic_17.gif 310B
bcolor_13.gif 100B
bpic_11.gif 207B
bcolor_14.gif 100B
bpic_13.gif 286B
a5_3.gif 649B
bg.jpg 371KB
a5_2.gif 94B
bpic_22.gif 191B
bcolor_16.gif 100B
line_dot.gif 43B
bpic_16.gif 251B
a7_3.gif 649B
a4_3.gif 649B
bcolor_11.gif 100B
a3_2.gif 94B
a8_3.gif 658B
a6_1.gif 651B
btn_paste_big.jpg 36KB
bpic_15.gif 230B
bcolor_17.gif 100B
bpic_14.gif 361B
bg_wall.gif 4KB
ico_smile.gif 1KB
submit.gif 113B
spacer.gif 49B
a1_1.gif 651B
bg_menu.gif 5KB
a1_2.gif 94B
a3_1.gif 651B
btn_paste.gif 616B
bpic_20.gif 298B
a2_2.gif 94B
btn_visit.gif 639B
bg_footer.gif 7KB
bpic_18.gif 185B
bpic_21.gif 224B
a2_3.gif 649B
a8_2.gif 94B
database.inc.php 5KB
共 80 条
- 1
资源评论
zhuxun198
- 粉丝: 5
- 资源: 244
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功