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

📄 add.jsp

📁 华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ 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;
	}
	int iHasBlogPv = igec.site.base.business.PurviewBusiness.hasServicePurviewOk("S00007","",user);
	int iHasSitePv = igec.site.base.business.PurviewBusiness.hasServicePurviewOk("S00014","",user);
%>
<!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 addPic(strFileName){
  document.myform.IncludePic.checked=true;
  document.myform.DefaultPicUrl.value=strFileName;
  document.myform.DefaultPicList.options[document.myform.DefaultPicList.length]=new Option(strFileName,strFileName);
  document.myform.DefaultPicList.selectedIndex+=1;
  if(document.myform.UploadFiles.value==''){
	document.myform.UploadFiles.value=strFileName;
  }
  else{
    document.myform.UploadFiles.value=document.myform.UploadFiles.value+","+strFileName;
  }
}
function checkPost(){
	var loForm = document.myform;
	if(loForm==null){
		alert("未获取对应的表单对象!");
		return;
	}
  if (editor.EditMode.checked==true)
	  document.myform.Content2.value=editor.HtmlEdit.document.body.innerText;
  else
	  document.myform.Content2.value=editor.HtmlEdit.document.body.innerHTML; 
  //alert(document.myform.BlogType);
  if(!Check(loForm)) return false;
  
  if(document.myform.Content2.value==""){
    alert("文章内容不能为空!");
		editor.HtmlEdit.focus();
		return false;
  }
  document.myform.Content2.value = clearSiteUrl(document.myform.Content2.value);
  loForm.submit();
}
function previewPost(){
	var loForm = document.myform;
	if(loForm==null){
		alert("未获取对应的表单对象!");
		return;
	}	
}
<%if(iHasBlogPv>=0 || iHasSitePv>=0){%>
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 = "";
	<%if(iHasBlogPv>=0){%>
		lsTypeName = "BlogType";
	var loObj = getObject(lsTypeName);
	__XmlHttpPool__.PostRemoteData("<%=site.bean.SitePara.strVirtualName%>/dynamic/inc/memberclass.jsp?posid=S00001&mr="+Math.random()+"&id="+strTypeId+"&tn="+lsTypeName,function onGetData(strContent){onGetTypeList(strContent,lsTypeName);},"");
	<%}else if(iHasSitePv>=0){%>
		lsTypeName = "SiteType";
	var loObj = getObject(lsTypeName);
	__XmlHttpPool__.PostRemoteData("<%=site.bean.SitePara.strVirtualName%>/dynamic/inc/memberclass.jsp?posid=S00020&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,"");},"");
	}
}
<%}%>
//-->
</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></td>
  </tr>
</table>

⌨️ 快捷键说明

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