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

📄 siteleaveword.jsp

📁 华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ include file="/inc/pv/user.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>

<%
	if(checkPv(strMenuId,"add",user)<0){
		noPv(out);
		return;
	}
	String strOfficeStyle = site.bean.SitePara.strVirtualName + "/member/" + igec.util.CookieUtil.getCookieValue(request,site.bean.SitePara.strCookieUserTheme,"stand");
	igec.site.base.bean.SysObj openInfo=(igec.site.base.bean.SysObj)request.getAttribute("openinfo");
	String strTitleTemp="";
	strTitleTemp=igec.util.Tool.getStr(request.getParameter("title"));
	if(igec.util.Tool.IsEmpty(strTitleTemp)){
		strTitleTemp="";
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<title> 会员办公室--<%=site.bean.SitePara.strWebTitle%> </title>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/clear.jsp"></script>

<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/CalendarDlg.js"></script>
<link rel="stylesheet" rev="stylesheet" href="<%=strOfficeStyle%>/css/content.css" type="text/css" />
<link rel="stylesheet" rev="stylesheet" href="<%=strOfficeStyle%>/css/tree.css" type="text/css" />
<link rel="stylesheet" rev="stylesheet" href="<%=strOfficeStyle%>/css/mainframe.css" type="text/css" />
<link rel="stylesheet" rev="stylesheet" href="<%=strOfficeStyle%>/css/css.css" type="text/css" />
<script type="text/javascript" src="<%=site.bean.SitePara.strVirtualName%>/member/js/tree.jsp?baseurl=<%=strOfficeStyle%>"></script>
<script language="JavaScript" src="<%=site.bean.SitePara.strVirtualName%>/js/public.js"></script> 
<script language="JavaScript" src="<%=site.bean.SitePara.strVirtualName%>/js/check.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/xmlhttp.js"></script>
<link rel="shortcut icon" href="<%=site.bean.SitePara.strVirtualName%>/favicon.ico">
<script language="javascript">
	function CheckLyForm(){
		if(document.lyform.title.value==""){
			alert("标题不能为空!");
			document.lyform.title.focus();
			return false;
		}
		if(document.lyform.content.value==""){
			alert("评论内容不能为空!");
			document.lyform.content.focus();
			return false;
		}else{
			//alert(document.lyform.content.value.length);
			//if(document.lyform.content.value.length()>120){
				return WidthCheck(document.lyform.content.value, 240);
				//alert("留言内容不能超过最120个汉字或240个英文字符!");
				//document.lyform.content.focus();
				//return false;
			//}
			//return false;
		}
		return false;
	}
	//Js要写函数调用: (c >= 0x0001 && c <= 0x007e) || (0xff60<=c && //c<=0xff9f)范围的为单字节函数如下/////////////////////////////////////////////////////////////////////
	//   判断长度是否合格
	//
	// 引数 s   传入的字符串
	//           n   限制的长度n以下
	//
	// 返回值 false   NG
	//           true    OK
	/////////////////////////////////////////////////////////////////////
	function WidthCheck(s, n){
		var w = 0;
		for (var i=0; i<s.length; i++) {
		   var c = s.charCodeAt(i);
		   //单字节加1
		   if ((c >= 0x0001 && c <= 0x007e) || (0xff60<=c && c<=0xff9f)) {
			w++;
		   }
		   else {
			w+=2;
		   }
		}
		if (w > n) {
			//alert(w);
		   alert("评论内容不能超过最120个汉字或240个英文字符!");
		   document.lyform.content.focus();
		   return false;
		}
		return true;
	}
</script>
</head>  
  <body>
<%@ include file="../top.jsp"%>
    <div  id="screen">
		<!--content-->
		<div id="contentfloat">
		  <div id="content">
		  
	<form name="lyform" id="lyform" action="<%=site.bean.SitePara.strVirtualName%>/member/leaveworduser.do"  onsubmit="return CheckLyForm();" method="post"  target="ifrTarget">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td height="50"><font color="#112382" class="font14"><strong>&nbsp;&nbsp;&nbsp;&nbsp;</strong></font>
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="77%"><font color="112382" class="font14"><strong>站点留言</strong></font></td>
           <td width="23%">&nbsp;</td>
          </tr>
        </table>
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td height="10">&nbsp;</td>
    </tr>
    <tr>
      <td height="2" bgcolor="#fd790d"></td>
    </tr>
  </table>
        </td>
    </tr>
    <tr>
      <td>
	  <table  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#999998">
        <tr>
          <td height="1"></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td height="110" valign="middle">
	  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="border2">
        <tr>
          <td height="30" class="font14"><font color="#ff5400"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 友情提示:</strong></font></td>
        </tr>
        <tr width="98%">
          <td> &nbsp;&nbsp;&nbsp; <span class="zi20">&nbsp;会员可以给网站服务人员留言。</span></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td height="39" valign="middle">
	  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="20">提示:带<font color="ff0000"> * </font>为必填项</td>
        </tr>
        <tr>
          <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#97bef2">
        <tr>
          <td height="1"></td>
        </tr>
      </table></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td height="110" valign="top">
	  <table border="0" width="100%" align="center" cellpadding="0" cellspacing="1" bgcolor="#dedede">
        <tr>
          <td  height="30" align="right" bgcolor="#f5f5f5" width="20%"><strong>标题:
              </strong><font color="ff0000"> * </font>&nbsp;</td>
          <td  height="20" bgcolor="#FFFFFF"> &nbsp;
            <input name="title" type="text" value="<%=strTitleTemp%>" id="title" label="标题" style="width:280px;height:16px" EmptyDisable/></td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#f5f5f5"><strong>留言内容<font color="ff0000"> </font>:
              <label> </label>
              </strong><font color="ff0000"> *</font>&nbsp;</td>
          <td height="20" bgcolor="#FFFFFF">&nbsp;
            <label><textarea name="content" cols="40" rows="5"></textarea>
            </label>
            <br/> 
            &nbsp;&nbsp;<font color=blue>注:留言内容不能超过120个汉字或240个英文字符</font></td>
        </tr>
          </table>
		   <table width="100%" border="0" cellspacing="0" cellpadding="0">
			  <tr>
				<td height="20">&nbsp;</td>
			  </tr>
		   </table>
		  </td>
        </tr>
      </table>
	  </td>
    </tr>
    <tr>
      <td height="52" valign="top">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="21%" height="50" align="center"></td>
            <td width="79%" align="left">&nbsp;&nbsp;
			  <input type="hidden" name="action" id="action" value="sitelw"/>
			 <input type="hidden" name="posId" id="posId" value=""/>
			  <input type="hidden" name="type" id="type" value="0"/>
			  <input type="hidden" name="mebId" id="mebId" value="<%=user.getStrUserId()%>"/>
			  <input type="hidden" name="iid" id="iid" value="<%=strMenuId%>"/>
			  <input type="hidden" name="mebName" id="mebName" value="<%=user.getStrUserName()%>"/>
              <input type="submit" name="Submit" value="提 交" style="cursor:hand" />
              &nbsp;&nbsp;&nbsp; <input type="reset" name="Submit2" value="重 置" style="cursor:hand"/></td>
          </tr>
        </table></td>
    </tr>
    </table></td>
    </tr>
	
  </table>
  </form>
<br />
 <br />
<script language=javascript>
document.onkeydown=nextpage
function nextpage(event) {
	event = event ? event : (window.event ? window.event : null); 
	if (event.keyCode==13) userlogin();
}
</script>
<script language="JavaScript">
function userlogin(){
	document.loginform.submit();
}
</script>
		  </div>
		</div>
		<!--end/content-->				
		<!--left-->
<div id="leftmenu">			
	<!--menu-->
	  <div id="tree1"></div>
	<!--end/menu-->
	</div>
		<!--end/left-->
	</div>	
<script language="javascript" src="<%=strOfficeStyle%>/menu.jsp?iid=<%=request.getParameter("iid")%>"></script>
<script type="text/javascript">treeInit();</script>
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td height="2" bgcolor="#ff7b0f"></td>
    </tr>
  </table>
  <%@ include file="../bot.jsp"%>
  <iframe height="1" src="" name="ifrTarget" frameborder="0" scrolling="no"></iframe>
  </body>
 </html> 
 

⌨️ 快捷键说明

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