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

📄 add.jsp

📁 华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
	String strOfficeStyle = site.bean.SitePara.strVirtualName + "/member/" + igec.util.CookieUtil.getCookieValue(request,site.bean.SitePara.strCookieUserTheme,"stand");
	String strMenuId = request.getParameter("iid");
	igec.site.base.bean.UserObj user = (igec.site.base.bean.UserObj)request.getAttribute("user");
	
	if(user==null){
		showMsg("获取数据失败!",request,response);
		return;
	}
	String strPosId = "";
	int iHasBlogPv = igec.site.base.business.PurviewBusiness.hasServicePurviewOk("S00007","",user);
	int iHasSitePv = igec.site.base.business.PurviewBusiness.hasServicePurviewOk("S00014","",user);
	if(iHasBlogPv>=0){
		strPosId = "S00008";
	}else if(iHasSitePv>=0){
		strPosId = "S00008";
	}
%>
<!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>
<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" />
<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/xmlhttp.js"></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%>/member/js/public.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/clear.jsp"></script>
<script language="javascript">
<!--
function checkPost(){
	var loForm = document.myform;
	if(loForm==null){
		alert("未获取对应的表单对象!");
		return;
	}
  if(!Check(loForm)) return false;
  aJax_SendForm(loForm,"");
  //loForm.submit();
}
function previewPost(){
	var loForm = document.myform;
	if(loForm==null){
		alert("未获取对应的表单对象!");
		return;
	}	
}
function showTypeBox(strShowBox){	
	getObject(strShowBox).style.display="";
	for(var i=1;i<showTypeBox.arguments.length;i++){		
		getObject(showTypeBox.arguments[i]).style.display="none";
	}
}
function addType(strPos){
	var strHref = "<%=site.bean.SitePara.strVirtualName%>/member/type.do?action=save&mr=" + Math.random() + "&posId=" + strPos + "&typeName=" + getObject("typeName").value;
	__XmlHttpPool__.PostRemoteData(strHref,function onGetData(strContent){on_aJax_GetReceiveData(strContent,"");},"");
}

function onFinishTypeDone(strTypeId,strTypeTitle){
	var lsTypeName = "";
	lsTypeName = "LinkType";
	var loObj = getObject(lsTypeName);
	__XmlHttpPool__.PostRemoteData("<%=site.bean.SitePara.strVirtualName%>/dynamic/inc/memberclass.jsp?posid=<%=strPosId%>&mr="+Math.random()+"&id="+strTypeId+"&tn="+lsTypeName,function onGetData(strContent){onGetTypeList(strContent,lsTypeName);},"");
}
function onGetTypeList(strContent,strTypeObj){
	getObject("typeName").value = "";
	getObject("TypeDiv").innerHTML = strContent;
	
	var loObj = getObject(strTypeObj);
	onMyChange(loObj);
}
function onMyChange(loObj){
	if(loObj.value!=""){
		getObject("eTypeId").value = loObj.value;
		getObject("eTypeName").value = loObj[loObj.selectedIndex].label;
		showTypeBox('EditTypeLabel','EditTypeBox','AddTypeLabel','AddTypeBox');
	}else{
		showTypeBox('AddTypeLabel','AddTypeBox','EditTypeBox','EditTypeLabel');
	}
}
function updateType(strPos){
	var strTypeId = getObject("eTypeId").value;
	var strTypeName = getObject("eTypeName").value;
	var strHref = "<%=site.bean.SitePara.strVirtualName%>/member/type.do?action=update&mr=" + Math.random() + "&typeName=" + strTypeName + "&id=" + strTypeId;
	__XmlHttpPool__.PostRemoteData(strHref,function onGetData(strContent){on_aJax_GetReceiveData(strContent,"");},"");
}
function delType(){
	if(confirm("确定要删除此分类信息吗?")){
		var strTypeId = getObject("eTypeId").value;
		var strHref = "<%=site.bean.SitePara.strVirtualName%>/member/type.do?action=del&mr=" + Math.random() + "&id=" + strTypeId;
		__XmlHttpPool__.PostRemoteData(strHref,function onGetData(strContent){on_aJax_GetReceiveData(strContent,"");},"");
	}
}
function addUploadPic(strFileUrl,strFileExt){
	if(",<%=igec.util.Tool.replaceAll(site.bean.SitePara.strUpload_Pic,"|",",")%>,".indexOf(","+strFileExt+",")>=0){
		getObject("showPicImg").src = "<%=site.bean.SitePara.strVirtualName%>" + strFileUrl;
		getObject("showPic").value = strFileUrl;
		showBox('showPicBox','showFlashBox');
	}else if(",<%=igec.util.Tool.replaceAll(site.bean.SitePara.strUpload_Fla,"|",",")%>,".indexOf(","+strFileExt+",")>=0){
		showFlash("showFlashBox","<%=site.bean.SitePara.strVirtualName%>" + strFileUrl,100,60);
		getObject("showPic").value = strFileUrl;
		showBox('showFlashBox','showPicBox');
	}
}
function setShowPicFromFile(strPicUrl,strFileType){
	if(strFileType=="0"){
		getObject("showPicImg").src = "<%=site.bean.SitePara.strVirtualName%>" + strPicUrl;
		getObject("showPic").value = strPicUrl;
		showBox('showPicBox','showFlashBox');
	}else if(strFileType=="1"){
		showFlash("showFlashBox","<%=site.bean.SitePara.strVirtualName%>" + strPicUrl,100,60);
		getObject("showPic").value = strPicUrl;
		showBox('showFlashBox','showPicBox');
	}
}

//-->
</script>
<link rel="shortcut icon" href="<%=site.bean.SitePara.strVirtualName%>/favicon.ico">
</head>  
  <body>
<%@ include file="../top.jsp"%>
    <div  id="screen">
		<!--content-->
		<div id="contentfloat">
		  <div id="content">
<!--  开始正文内容  -->
<table width="100%" border="0" align="center" class="list_lb_border">
  <tr>
    <td width="70" class="list_lb_title"><strong>管理导航:</strong></td>
    <td class="list_lb_title"><a href="?iid=<%=strMenuId%>">管理首页</a>&nbsp;|&nbsp;<a href="?action=add&iid=<%=strMenuId%>"><font color="#FF0000">添加新链接</font></a>&nbsp;|&nbsp;<a href="?action=sort&iid=<%=strMenuId%>">链接排序</a></td>
  </tr>
</table>
<br>
<form method=post name="myform" id="myform" action="?action=save&iid=<%=strMenuId%>&posId=<%=strPosId%>" target="YL_MEMBER_Article_Frame">
<table width="100%" border="0" align="center" cellspacing="1" bgcolor="#dedede">    
    <tr style="display:none"> 
      <td align="right" bgcolor="#F5f5f5" class="TableLabel"><strong>链接分类:</td>
      <td colspan="2" bgcolor="#FFFFFF" class="TableData"> 
      <span name="TypeDiv" id="TypeDiv">
      <select name="BlogType" id="BlogType" label="链接分类" onchange="javascript:onMyChange(this);">
        <option value="">默认分类</option>
        <script language="javascript" id="MebTypeJs" name="MebTypeJs" src="<%=site.bean.SitePara.strVirtualName%>/dynamic/js/memberclass.jsp?posid=<%=strPosId%>"></script>
      </select></span>&nbsp;
      <span name="AddTypeLabel" id="AddTypeLabel" style="display:"><a href="javascript:showTypeBox('AddTypeBox','AddTypeLabel','EditTypeBox','EditTypeLabel');">新增分类</a></span><span name="AddTypeBox" id="AddTypeBox" style="display:none"><input type="text" size="12" name="typeName" id="typeName" maxlength="30"> <input type="button" value="增加" onclick="javascript:addType('<%=strPosId%>');">&nbsp;<a href="javascript:showTypeBox('AddTypeLabel','AddTypeBox','EditTypeLabel','EditTypeBox');">取消</a></span>
      <span name="EditTypeLabel" id="EditTypeLabel" style="display:none"><a href="javascript:showTypeBox('EditTypeBox','AddTypeLabel','EditTypeLabel','AddTypeBox');">编辑</a>&nbsp;<a href="javascript:delType();">删除</a></span><span name="EditTypeBox" id="EditTypeBox" style="display:none"><input type="text" size="12" name="eTypeName" maxlength="30" id="eTypeName" value=""><input type="hidden" name="eTypeId" id="eTypeId" value=""><input type="button" value="更新" onclick="javascript:updateType('<%=strPosId%>');">&nbsp;<a href="javascript:showTypeBox('EditTypeLabel','AddTypeBox','AddTypeLabel','EditTypeBox');">取消</a></span>
      </td>
    </tr
    ><tr> 
      <td align="right" bgcolor="#F5f5f5"  class="TableLabel"><strong>链接名称:</td>
      <td colspan="2" bgcolor="#FFFFFF" class="TableData"><input name="title" type="text" id="title" value="" size="45" maxlength="80" label="链接名称" EmptyDisable> <font color="#FF0000">*</font>     </td>
    </tr>
    <tr style="display:"> 
      <td align="right"  bgcolor="#F5f5f5" class="TableLabel"><strong>链接地址:</td>
      <td colspan="2" bgcolor="#FFFFFF" class="TableData"><input name="lurl" type="text" id="lurl" value="http://" size="50" maxlength="126" label="链接地址" EmptyDisable>     </td>
    </tr>
    <tr> 
      <td align="right"  bgcolor="#F5f5f5" class="TableLabel"><strong>显示图片:</td>
      <td colspan="2" bgcolor="#FFFFFF" class="TableData"> 
      <input type="radio" onclick="javascript:showBox('upBox','selBox');" name="PicType">本地上传  <input type="radio" onclick="javascript:showBox('selBox','upBox');" name="PicType" checked>图片库
       <span name="upBox" id="upBox" style="display:none">
       <br><br>
       <iframe class="TBGen" style="top:2px" ID="UploadFiles" src="<%=site.bean.SitePara.strVirtualName%>/inc/upload/pageUp.jsp?color=f8f8f8&wt=<%=request.getParameter("wt")%>&ft=picfla&recf=addUploadPic" frameborder=0 scrolling=no width="250" height="25"></iframe>
       </span>
       
       <span name="selBox" id="selBox" style="display:">
      	<br><br>&nbsp; <input type="button" value="点击选择" onclick="javascript:openWindow('<%=site.bean.SitePara.strVirtualName%>/member/<%=igec.util.CookieUtil.getCookieValue(request,site.bean.SitePara.strCookieUserTheme,"stand")%>/person/mypic.jsp?type=fp&fun=setShowPicFromFile','500','400');" > 
       </span>
       
       <span name="showPicBox" id="showPicBox" style="display:none">
       <img src="" name="showPicImg" id="showPicImg" width="100" height="60" border="0">
       </span>
       
      <span name="showFlashBox" id="showFlashBox" style="display:none">
      
      </span>
       
      <input type="hidden" name="showPic" id="showPic" value="">      </td>
    </tr>
  <td colspan="3" align="center" bgcolor="#f5f5f5" class="TableControl" >      
     <input type=button name=submit1 value="保存" onclick="checkPost()">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="Clear" value="清除">&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="return" value="返回" onclick="self.location='?iid=<%=strMenuId%>';">
  </td>
  </tr>
</table>
</form>
<!--  结束正文内容  -->
		  </div>
		</div>
		<!--end/content-->				
		<!--left-->
<div id="leftmenu">			
	<!--menu-->
	  <div id="tree1"></div>
	<!--end/menu-->
	</div>
		<!--end/left-->
	</div>
<%
	String strCid = igec.util.Tool.getStr(request.getParameter("cid"));
	if(igec.util.Tool.IsEmpty(strCid)){
		strCid = igec.util.Tool.getStr(request.getParameter("iid"));
	}
%>
<script language="javascript" src="<%=strOfficeStyle%>/menu.jsp?iid=<%=strCid%>"></script>
<%@ include file="../bot.jsp"%>
<script language="javascript">
<!--
	treeInit();
//-->
</script>
</body>
</html>

⌨️ 快捷键说明

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