You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
4.5 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<!DOCTYPE html>
<html>
<head>
<title>在线留言</title>
<link rel="stylesheet" type="text/css" href="qtimages/css/style.css"/>
<link rel="stylesheet" type="text/css" href="qtimages/css/mislider.css"/>
<style>
.dd a:hover{color: red;}
.dd a{ font-size: 18px;}
.header .top .logo{margin-right: 260px;}
.header{ position: fixed; top: 0; left: 0; z-index: 9999; background: #fff; width: 100%;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<%
HashMap ext = new HashMap();
//ext.put("tglparentid",tglparentid);
ext.put("huifuneirong","");
new CommDAO().insert(request,response,"liuyanban",ext,true,false,"lyblist.jsp");
%>
<body style="padding-top:220px;">
<%@ include file="qttop.jsp"%>
<%@ include file="bht.jsp"%>
<div class="index_about index">
<div class="w1200">
<h2 class="t">在线留言</h2>
<p class="t_en">GuestBook</p>
<div class="desc">
<table width="98%" height="500" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#6FA9C1" style="border-collapse:collapse">
<form action="lyb.jsp?f=f" method="post" name="f1" onsubmit="return checkform();">
<tr>
<td width="12%">昵称:</td>
<td width="88%"><input name='cheng' type='text' id='cheng' value='' onblur='checkform()' /> <label id='clabelcheng' />
*</td>
</tr>
<tr>
<td>头像:</td>
<td><input name="xingbie" type="radio" value="1" checked>
<img src="img/1.gif" width="64" height="71">
<input type="radio" name="xingbie" value="2">
<img src="img/2.gif" width="64" height="71">
<input type="radio" name="xingbie" value="3">
<img src="img/3.gif" width="64" height="71">
<input type="radio" name="xingbie" value="4">
<img src="img/4.gif" width="64" height="71">
<input type="radio" name="xingbie" value="5">
<img src="img/5.gif" width="64" height="71"></td>
</tr>
<tr>
<td>QQ</td>
<td><input name='QQ' type='text' id='QQ' value='' /></td>
</tr>
<tr>
<td>邮箱:</td>
<td><input name='youxiang' type='text' id='youxiang' value='' /></td>
</tr>
<tr>
<td>电话:</td>
<td><input name='dianhua' type='text' id='dianhua' value='' /></td>
</tr>
<tr>
<td>内容:</td>
<td><textarea name="neirong" cols="50" rows="10" id="neirong" onblur='checkform()'></textarea>
* <label id='clabelneirong' /> </td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Submit42" value="提交" onClick="return checkform();"/>
<input type="reset" name="Submit22" value="重置" /></td>
</tr>
</form>
</table>
</div>
</div>
</div>
<%@ include file="yqlj.jsp"%>
<%@ include file="qtdown.jsp"%>
<%@ include file="kefutiao.jsp"%>
</body>
</html>
<script language=javascript >
function checkform(){
var chengobj = document.getElementById("cheng");
if(chengobj.value==""){
document.getElementById("clabelcheng").innerHTML="&nbsp;&nbsp;<font color=red>请输入昵称</font>";
return false;
}else{
document.getElementById("clabelcheng").innerHTML=" ";
}
var neirongobj = document.getElementById("neirong");
if(neirongobj.value==""){
document.getElementById("clabelneirong").innerHTML="&nbsp;&nbsp;<font color=red>请输入留言内容</font>";
return false;
}else{
document.getElementById("clabelneirong").innerHTML=" ";
}
return true;
}
</script>