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

📄 modifylinkinfo.jsp

📁 java阿里巴巴代码
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="java.util.*"%>
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="com.saas.biz.commen.ParamethodMgr"%>
<%@ page import="com.saas.biz.custlinkMgr.*"%>
<%
	HttpSession logsession = request.getSession();
	String cust_id = "";
	if (logsession.getAttribute("SESSION_CUST_ID") != null)
	{
		cust_id = logsession.getAttribute("SESSION_CUST_ID").toString();
	}
	String link_no = "", link_name = "", link_type = "", rsrv_str3 = "", link_url = "";
	if (request.getParameter("link_no") != null) 
	{
		link_no = request.getParameter("link_no");
		CustlinkInfo linkInof = new CustlinkInfo();
		ArrayList inofList = linkInof.genOneCustlink(link_no, cust_id);
		if (inofList != null && inofList.size() > 0) 
		{
			HashMap map = (HashMap) inofList.get(0);
			if (map.get("link_name") != null) 
			{
		     link_name = map.get("link_name").toString();
			}
			if (map.get("link_no") != null) 
			{
		      link_no = map.get("link_no").toString();
			}
			if (map.get("link_type") != null) 
			{
		       link_type = map.get("link_type").toString();
			}
			if (map.get("rsrv_str3") != null) 
			{
		     rsrv_str3 = map.get("rsrv_str3").toString();
			}
			if (map.get("link_url") != null) 
			{
		      link_url = map.get("link_url").toString();
			}
		}
	}
	ParamethodMgr paramCom = new ParamethodMgr();
	link_type = paramCom.getItemsBySelected("29",link_type);
%>
<html>
	<head>
		<title>电子商务</title>
		<link href="/style/layout.css" rel="stylesheet" type="text/css">
		<link href="/style/daohang.css" rel="stylesheet" type="text/css">
		<link href="/style/manager.css" rel="stylesheet" type="text/css">
		<style type="text/css">
.line6 {width:72spx; width:70spx!important;border:#ffcb99 1px solid;  background-color:#fff8ee; text-align:left; padding-left: 20px;padding-top: 10px;padding-bottom: 10px; color:#000000; margin-top:13px; margin-bottom:13px;}   /*横栏样式6---- 头部提醒1*/
.line6 .img{width:53px; height:53px; float:left; margin-right:20px;}
.line6 .title {font-size:14px; font-weight:bold; color:#ff5400;}
.line1 {border-left:#ff7300 3px solid; background-color:#e2e2e2; color:#333333;text-align:left; font-size:13px; font-weight:bold; padding-left: 20px; padding-top: 5px;padding-bottom: 5px; }  /*横栏样式1*/
</style>
		<script language="JavaScript">
      function confirmsub()
    	{
    	    if(	document.formQuery.link_name.value.replace(/\s*/g,"")== "" || document.formQuery.link_name.value.replace(/\s*/g,"") == null)
			    {
						alert("链接名称不可以为空!");                                                             
						document.formQuery.link_name.focus();                                                    
						return false;     
			    }

				 if(	document.formQuery.link_url.value.replace(/\s*/g,"") == "" || document.formQuery.link_url.value.replace(/\s*/g,"") == null)
				 {
						alert("链接地址不可以为空!");                                                             
						document.formQuery.link_url.focus();                                                    
						return false;     
				 }
				 
	    	 var str=rsrv_str3.getText();
					str=str.replace(/\s*/g,""); 
					if(	str == ""  )
					{
						alert("链接说明不可以为空!");
						return false;
					}
					if( str.length > 4000)
					{
						 alert( "链接说明字数应少于4000字" );
						 return false;	
					}      
	    	   return true;
    	}
  </script>
	</head>
	<body>
		<form name="formQuery" id="formQuery" action=/doTradeReg.do method="post" target="_self">
			<table width="725" border=0 cellpadding=5 cellspacing=1 align=center bgcolor="#dddddd">
				<input name=link_no type=hidden value="<%=link_no%>">
				<input name=trade_type_code type=hidden value=0917>
				<tr>
					<td class="line1" align="left" colspan="2">
						修改友情连接
					</td>
				</tr>
				<tr>
					<td style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:13px;" align="right" width="15%">
						链接名称:
					</td>
					<td style="background-color:#ffffff; color:#000000;  font-size:12px;" align=left  width="85%">
						<div class="ping">
							<input type=text name="link_name" maxlength=50 size=50 value="<%=link_name%>">
					  </div>
					</td>
				</tr>
				<tr>
					<td style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:13px;" align=right>
						链接类型:
					</td>
					<td style="background-color:#ffffff; color:#000000;  font-size:12px;" align=left>
						<div class="ping">
							<select name=link_type>
								<%=link_type%>
							</select>
						</div>	
					</td>
				</tr>
				<tr>
					<td style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:13px;" align=right>
						链接地址:
					</td>
					<td style="background-color:#ffffff; color:#000000;  font-size:12px;">
					  <div class="ping">
							<input type=text name=link_url maxlength=50 size=50 value="<%=link_url%>">
							( http://www.xxxx.com)
					  </div>
					</td>
				</tr>
				<tr>
					<td style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:12px;" align=right>
						链接说明:
					</td>
					<td style="background-color:#ffffff; color:#000000;  font-size:12px;" align=left>
					  <div class="ping">
							<textarea name=rsrv_str3 style=display:none><%=rsrv_str3%></textarea>
							<iframe id="rsrv_str3" src="/www/ewebeditor/ewebeditor.htm?id=rsrv_str3&style=coolblue&root_id=<%=link_no%>" frameborder=0 scrolling=no width=600 height=350></iframe>
						</div>
					</td>
				</tr>
				<tr>
					<td style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:12px; padding-top:10px;padding-bottom:10px;" align=center colspan=2>
						<input class="xgan" name="submit" type="submit" value="" onclick="return confirmsub()">
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>

⌨️ 快捷键说明

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