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

📄 advance.jsp

📁 华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/inc/pv/admin.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
	/*****
	*
	* 功能介绍:根据当前的MenuId,对应的action名和当前用户,判断是否有进入此页面的权限
	*	
	*/
	strMenuId = "N0003";
	if(checkPv(strMenuId,"add",user)<0){
		noPv(out);
		return;
	}
%>
<%
	
%>
<html>
<head>
<title><%=igec.site.base.bean.SitePara.strWebTitle%></title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" type="text/css" href="<%=strCssPath%>">
<script language="javascript" src="<%=igec.site.base.bean.SitePara.strVirtualName%>/js/clear.jsp"></script>
<script language="javascript" src="<%=igec.site.base.bean.SitePara.strVirtualName%>/js/public.js"></script>
<script language="javascript" src="<%=igec.site.base.bean.SitePara.strVirtualName%>/js/check.js"></script>
<script language="javascript" src="<%=igec.site.base.bean.SitePara.strVirtualName%>/js/xmlhttp.js"></script>
<script language="javascript" src="<%=igec.site.base.bean.SitePara.strVirtualName%>/js/mutiselect.js"></script>
<script language="javascript" src="<%=strSkinBase%>/js/forbid.js"></script>
<script language = "JavaScript">
<!--
function getUpFileList(){
	return document.myform.UploadFiles.value;
}
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 selectPaginationType()
{
  document.myform.PaginationType.value = 1;
}

function setAction(lsAction,lsTarget){
	document.myform.action = lsAction;
	document.myform.target = lsTarget;
	if(CheckForm(document.myform)){
		if(lsTarget=="_pw"){
			window.open("about:blank","_pw","width=800,height=600,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
		}		
		document.myform.submit();
	}
}
function CheckForm(loObj){
  if (editor.EditMode.checked==true)
	  document.myform.Content.value=editor.HtmlEdit.document.body.innerText;
  else
	  document.myform.Content.value=editor.HtmlEdit.document.body.innerHTML;
  if(!Check(loObj)) return false;
  
  setObjValue("ClassId",getLastValue("im"));
	if(getObjValue("ClassId")==""){
		alert("请选择相应的资讯分类!");
		return false;
	}
  <%if('1'==igec.util.Tool.getSafeChar(site.bean.SitePara.strSysFunctionOpenFlag,site.bean.SitePara.iOpenInfoCode)){%>
 		setObjValue("CodeId",getSelectCurValue("ic"));
	<%}%>
	<%if('1'==igec.util.Tool.getSafeChar(site.bean.SitePara.strSysFunctionOpenFlag,site.bean.SitePara.iOpenInfoArea)){%>
 		setObjValue("AreaId",getSelectCurValue("ia"));
	<%}%>
	<%if('1'==igec.util.Tool.getSafeChar(site.bean.SitePara.strSysFunctionOpenFlag,site.bean.SitePara.iOpenSpecial)){%>
 		setObjValue("SpecialId",getSelectCurValue("is"));
	<%}%>
	
  if(document.myform.Content.value==""){
    alert("新闻内容不能为空!");
		editor.HtmlEdit.focus();
		return false;
  }
  document.myform.Content.value = clearSiteUrl(document.myform.Content.value);
  //检查是否SESSION已经丢失
  var strHref = "<%=site.bean.SitePara.strVirtualName + site.bean.SitePara.strManageFolder%>/work.do?action=timeout&recf=timeIsOut&mr=" + Math.random();
	__XmlHttpPool__.PostRemoteData(strHref,function onGetData(strContent){on_aJax_GetReceiveData(strContent,"");},"");
  return false;
}
function timeIsOut(lsValue){
	if(lsValue=="0"){//没有超时
		if(document.myform.target == "_pw"){
			window.open("about:blank","_pw","width=800,height=600,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
		}
		document.myform.submit();
	}else{//超时
		alert("警告:您的登录有效期已过,请将当前编辑的文章另外保存,重新登录之后再进行操作!");
	}
}
<%if(false){%>
function setBox(loObj,lsObj){
	if(loObj==null){
		return;
	}
	var loObjArray = document.all(lsObj);
	if(typeof(loObjArray.length)=="undefined"){
		loObj.checked = true;
		return;
	}
	for(var i=0;i<loObjArray.length;i++){
		if(loObj!=loObjArray[i]){
			if(loObj.checked)
				loObjArray[i].checked = false;
			loObjArray[i].disabled = loObj.checked;		
		}
	}
}
function setMultiInfoClass(strResult){
	var strResultArray = strResult.split(":");
	if(strResultArray.length!=2){
		alert("返回结果中含有非法字符!请过滤\":\"号!");
		return;
	}
	getObject("InfoTip").innerHTML = "<font color='#0000FF'>其它所属分类为:</font><font color='#FF0000'>" + strResultArray[1] + "</font>";
	getObject("OInfoClass").value = strResultArray[0];
}
function setMultiSpecialClass(strResult){
	var strResultArray = strResult.split(":");
	if(strResultArray.length!=2){
		alert("返回结果中含有非法字符!请过滤\":\"号!");
		return;
	}
	getObject("SpeicalTip").innerHTML = "<font color='#0000FF'>其它所属专题为:</font><font color='#FF0000'>" + strResultArray[1] + "</font>";
	getObject("OSpecialClass").value = strResultArray[0];
}
<%}%>
//-->
</script>
</head>

<body class="bodycolor" leftmargin="2" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="small" bgcolor="#000000">
  <tr> 
    <td height="22" colspan="2" align="center" class="TableHeader"><strong>新 闻 管 理</strong></td>
  </tr>
  <tr> 
    <td width="70" height="30" class="TableControl"><strong>管理导航:</strong></td>
    <td class="TableControl"><a href="index.jsp?iid=N0001">新闻管理首页</a>&nbsp;|&nbsp;<a href="simple.jsp?iid=N0002">添加新闻(简洁模式)</a>&nbsp;|&nbsp;<a href="advance.jsp?iid=N0003">添加新闻(高级模式)</a>&nbsp;|&nbsp;<a href="pass.jsp?iid=N0004">新闻审核</a>&nbsp;|&nbsp;<a href="del.jsp?iid=N0005">新闻回收站</a></td>
  </tr>
</table>
<br>
<form method="POST" name="myform" onSubmit="return CheckForm(this);" action="?action=save&iid=<%=strMenuId%>" target="_Igec_News_RunForm">
  <table border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#000000" class="small" width="90%">
  <input type="hidden" name="OInfoClass" id="OInfoClass" value="">
  <input type="hidden" name="OSpecialClass" id="OSpecialClass" value="">
  <input type="hidden" name="OAreaClass" id="OAreaClass" value="">
  <input type="hidden" name="OCodeClass" id="OCodeClass" value="">
  <input type="hidden" name="ClassId" id="ClassId" value="">
  <input type="hidden" name="SpecialId" id="SpecialId" value="">
  <input type="hidden" name="AreaId" id="AreaId" value="">
  <input type="hidden" name="CodeId" id="CodeId" value="">
    <tr class="TableHeader">
      <td height="22" colspan="6" align="center"><b>添 加 新 闻(高级模式)</b></td>
    </tr>
          <tr> 
            <td align="right" class="TableData"><strong>新闻标题:</td>
            <td colspan="2" class="TableData"><input name="Title" type="text" id="Title" value="" size="70" maxlength="126" label="新闻标题" EmptyDisable>
           </td>
          </tr>
          <tr> 
            <td align="right" class="TableData"><strong>标题属性:</td>
            <td colspan="2" class="TableData">
              <!--<select name="TitleFontType" id="TitleFontType">
                <option value="" selected>字体</option>                
						    <option value="宋体">宋体</option>
						    <option value="黑体">黑体</option>
						    <option value="楷体_GB2312">楷体</option>
						    <option value="仿宋_GB2312">仿宋</option>
						    <option value="隶书">隶书</option>
						    <option value="幼圆">幼圆</option>
						    <option value="Arial">Arial</option>
						    <option value="Verdana">Verdana</option>
              </select>-->
			<select name="TitleSize" id="TitleSize">
                <option value="" selected>字体大小(默认)</option>                
						    <option value="12">小</option>
						    <option value="13">中</option>
						    <option value="15">大</option>
              </select> <select name="TitleFontColor" id="TitleFontColor">
                <option value="" selected>颜色</option>
                <OPTION value="">默认</OPTION>
                <OPTION value="#000000" style="background-color:#000000"></OPTION>
                <OPTION value="#FFFFFF" style="background-color:#FFFFFF"></OPTION>
                <OPTION value="#008000" style="background-color:#008000"></OPTION>
                <OPTION value="#800000" style="background-color:#800000"></OPTION>
                <OPTION value="#808000" style="background-color:#808000"></OPTION>
                <OPTION value="#000080" style="background-color:#000080"></OPTION>

⌨️ 快捷键说明

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