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

📄 manageleaveword.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");
	String strPosId=igec.util.Tool.getStr(request.getParameter("posId"));
	String strId=igec.util.Tool.getStr(request.getParameter("id"));
	site.bean.LeaveWordObj leaveWordObj=new site.bean.LeaveWordObj();
	leaveWordObj.setStrId(strId);
	int iFlag=site.business.LeaveWordBusiness.getLeaveWordInfo(leaveWordObj);
%>
<!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 onfocus="document.lyform.title.focus">
	<form  name="lyform" id="lyform" action="<%=site.bean.SitePara.strVirtualName%>/member/leaveworduser.do" onsubmit="return CheckLyForm();" method="post" target="ifrTarget">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" >
    <tr>
      <td height="40">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td align="left"  class="font14"><img src="../images/xiugai.gif" width="35" height="30" align="absmiddle" /><strong><font color="112382" > 留 言 管 理</font></strong></td>
          </tr>
        </table> 
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <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="39" valign="middle">
	  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="20">提示:带<font color="ff0000"> * </font>为必填项</td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td height="110" valign="top">
	  <table border="0" width="100%"  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 width="80%"  height="20" bgcolor="#FFFFFF"> &nbsp;
            <input name="title" type="text" value="<%=leaveWordObj.getStrTitle()%>" id="title" label="标题" style="width:280px;height:16px"/></td>
        </tr>
        <tr>
          <td align="right" bgcolor="#f5f5f5"><strong>留言内容:
            <label> </label>
            </strong><font color="ff0000"> * </font>&nbsp;</td>
          <td bgcolor="#FFFFFF"><label>&nbsp;
             <textarea name="content" cols="40" rows="5"><%=leaveWordObj.getStrContent()%></textarea>
          </label>
            <br/> 
            &nbsp;&nbsp;<font color=blue>注:留言内容不能超过120个汉字或240个英文字符</font></td>
        </tr>
		<tr>
          <td align="right" bgcolor="#f5f5f5"><strong>回复内容:
            <label> </label>
            </strong><font color="ff0000"> * </font>&nbsp;</td>
          <td bgcolor="#FFFFFF"><label>&nbsp;
             <textarea name="reContent" cols="40" rows="5"><%=leaveWordObj.getStrReContent()%></textarea>
          </label>
            <br/> 
            &nbsp;&nbsp;<font color=blue>注:回复内容不能超过120个汉字或240个英文字符</font></td>
        </tr>
		<tr>
          <td  height="30" align="right" bgcolor="#f5f5f5" width="20%"><strong>是否显示:</strong>            <font color="ff0000"> * </font>&nbsp;</td>
          <td width="80%"  height="20" bgcolor="#FFFFFF"> &nbsp;
            <input name="showFlag" type="radio" value="1" id="showFlag" <%="1".equals(leaveWordObj.getStrShowFlag())?"checked":""%>/> 显示<input name="showFlag" type="radio" value="0" id="showFlag" <%="0".equals(leaveWordObj.getStrShowFlag())?"checked":""%>/> 隐藏</td>
        </tr>
		<tr>
          <td  height="30" align="right" bgcolor="#f5f5f5" width="20%"><strong>是否回复:</strong>            <font color="ff0000"> *</font>&nbsp;</td>
          <td width="80%"  height="20" bgcolor="#FFFFFF"> &nbsp;
            <input name="reFlag" type="radio" value="1" id="reFlag" <%="1".equals(leaveWordObj.getStrReFlag())?"checked":""%>/> 是<input name="reFlag" type="radio" value="0" id="reFlag" <%="0".equals(leaveWordObj.getStrReFlag())?"checked":""%>/> 否<font color="ff0000">&nbsp; </font></td>
        </tr>
        </table></td>
        </tr>
    <tr>
      <td height="30" valign="middle">
        <div align="center">
  <input type="submit" name="Submit" value="保 存" style="cursor:hand" />
  &nbsp;&nbsp;&nbsp;
  <input type="reset" name="Submit2" value="重 置" style="cursor:hand"/>
  &nbsp;&nbsp;&nbsp;
  <input type="button" name="closeBtn" value="关 闭" style="cursor:hand" onclick="javascript:window.close();"/>
      </div></td>
    </tr>
      </table>
	  </td>
    </tr>
    </table></td>
    </tr>
  </table>
  <input type="hidden" name="id" id="id" value="<%=leaveWordObj.getStrId()%>"/>
  <input type="hidden" name="action" id="action" value="manage"/>
  <input type="hidden" name="posId" id="posId" value="<%=strPosId%>"/>
  <input type="hidden" name="iid" id="iid" value="<%=strMenuId%>"/>
  <input type="hidden" name="memId" id="memId" value="<%=user.getStrParentId()%>"/>
  </form>
  <iframe height="1" src="" name="ifrTarget" frameborder="0" scrolling="no"></iframe>
  </body>
 </html> 
 

⌨️ 快捷键说明

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