Contact.jsp~20~
资源名称:shihua.rar [点击查看]
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:6k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
JavaScript
- <%@ page contentType="text/html; charset=GBK" %>
- <html>
- <head>
- <%@ include file="WebInfo.jsp" %>
- <script type="text/javascript">
- var $ = function(s)
- {
- return (typeof s == "object") ? s: document.getElementById(s);
- };
- function Check(){
- if($("txtName").value == ""){
- <c:if test="${sessionScope.Language == 'CN'}">
- alert("请填写您的姓名");
- </c:if>
- <c:if test="${sessionScope.Language == 'EN'}">
- alert("Please fill in your name");
- </c:if>
- return false;
- }
- if($("txtContent").value == ""){
- <c:if test="${sessionScope.Language == 'CN'}">
- alert("请填写留言内容");
- </c:if>
- <c:if test="${sessionScope.Language == 'EN'}">
- alert("Please fill in your name");
- </c:if>
- return false;
- }
- if (!document.getElementById("txtEmail").value.match(/^[a-zA-Z0-9_u4E00-u9FA5uFE30-uFFA0-]+@{1}[a-zA-Z0-9]+[.]{1}[a-zA-Z]+[.]?[a-zA-Z]*$/)){
- alert("请按正确的格式输入电子邮箱地址!")
- return false
- }
- }
- </script>
- </head>
- <body bgcolor="#ffffff">
- <form action="<%=request.getContextPath()%>/LeaveWord.do?todo=AddLeaveWord" id="form1" method="POST">
- <%@ include file="Top/Top.jsp" %>
- <%@ include file="Top/MenuBanner.jsp" %>
- <table width="840" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:6px;">
- <tr>
- <td width="166" height="330" valign="top" bgcolor="#F6F6F6"><%@ include file="Left/LeftMenu.jsp" %></td>
- <td width="674" valign="top" style="padding:5px">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="30%"> <strong><font color="#C80000" > <l:out CNLetter="发表留言" ENLetter="Appear Message"/></font></strong></td>
- <td width="70%" valign="bottom"><div align="right" class="LoginTitle"><l:out CNLetter="当前位置:首页 > 联系我们" ENLetter="Position:Home > Contact us"/></div></td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td height="2"></td>
- </tr>
- <tr>
- <td height="1" background="<%=request.getContextPath()%>/images/Lines.gif"></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td height="276" valign="top" style="padding:5px;">
- <table cellspacing="1" cellpadding="4" width="100%" border="0">
- <tr>
- <td width="12%" bgcolor=#f2f2f2> </td>
- <td valign=top width="88%" bgcolor=#f2f2f2>
- <font color="#000000"><l:out CNLetter="注意:以下 * 星号标出的项目必需填写." ENLetter="Note: Following * asterisk marked items are required."/> </font>
- </td>
- </tr>
- <tr bgcolor=#fafafa>
- <td width="12%">*<l:out CNLetter="你的名字" ENLetter="Name"/>:</td>
- <td width="88%">
- <input class="stdedit" id="txtName" maxlength="20" size="15" name="name">
- <l:out CNLetter="男" ENLetter="Man"/>:
- <input name="sex" type="radio" value="1" checked="checked">
- <l:out CNLetter="女" ENLetter="Woman"/>:
- <input type="radio" value="2" name="sex">
- </td>
- </tr>
- <tr>
- <td width="12%" bgcolor="#f2f2f2"><l:out CNLetter="来自哪里" ENLetter="Address"/>: </td>
- <td valign="top" width="88%" bgcolor="#f2f2f2">
- <input class="stdedit" id="txtAddress" maxlength="25" size="25" name="address">
- </td>
- </tr>
- <tr bgcolor=#fafafa>
- <td width="12%"><l:out CNLetter="电子邮件" ENLetter="Email"/>:</td>
- <td valign=top width="88%">
- <input class="stdedit_en" id="txtEmail" maxlength="50" size="35" name="email">
- QQ:
- <input class="stdedit_en" id="txtQQ" maxlength="12" size="10" name="qq">
- </td>
- </tr>
- <tr>
- <td width="12%" bgcolor="#f2f2f2"><l:out CNLetter="你的主页" ENLetter="Personal Home"/>:</td>
- <td valign="top" width="88%" bgcolor="#f2f2f2">
- <input class="stdedit_en" id="txtHost" maxlength="70" size="55" value="http://" name="host">
- </td>
- </tr>
- <tr>
- <td valign="top" width="12%" bgcolor="#f2f2f2">*<l:out CNLetter="你的留言" ENLetter="Content"/>: </td>
- <td width="88%" bgcolor=#f2f2f2>
- <textarea class="stdedit" id="txtContent" name="content" rows="10" cols="55"></textarea>
- </td>
- </tr>
- <tr bgcolor=#fafafa>
- <td valign=top width="12%"> </td>
- <td width="88%">
- <input class="stbuttom2" type="submit" value="<l:out CNLetter="确定留言" ENLetter="Submit"/>" onclick="return Check();" name="btnSave">
- <input class="stbuttom2" type="reset" value="<l:out CNLetter="清除内容" ENLetter="Clear"/>" name="btnR">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <%@ include file="Bottom.jsp" %>
- </form>
- </body>
- </html>