📄 addjyrl.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/inc/pv/admin.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
/*****
*
* 功能介绍:根据当前的MenuId,对应的action名和当前用户,判断是否有进入此页面的权限
*
*/
if(checkPv(strMenuId,"add",user)<0){
noPv(out);
return;
}
%>
<%
String strParentId = request.getParameter("pid");
if(igec.util.Tool.IsEmpty(strParentId)) strParentId = "0";
String strCurMenuName = igec.site.base.business.SysUtilBusiness.getMenuName(strMenuId);
String strCurMenuPic = igec.site.base.business.DataUtilBusiness.getFieldValue("SHOWIMG","TAB_IGECMENU","WHERE ID='" + strMenuId + "'");
%>
<!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>交易日历管理--添加</title><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="<%=igec.site.base.bean.SitePara.strVirtualName%>/js/CalendarDlg.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;
//alert( document.myform.Content.value);
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("警告:您的登录有效期已过,请将当前编辑的文章另外保存,重新登录之后再进行操作!");
}
}
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;
}
}
}
<%if(false){%>
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" topmargin="5" onLoad="resizeWin('objBody');setFocus('softName');" background="../css/1/bg.jpg">
<table border="0" name="objBody" id="objBody" width="600" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
<tr>
<td nowrap class="TableHeader" align="center" colspan="2" height="20"><strong>增 加 交 易 日 历 提 示</strong></td>
</tr>
<form action="<%=site.bean.SitePara.strVirtualName + site.bean.SitePara.strManageFolder%>/jyrlmng.do?action=add&iid=<%=strMenuId%>" method="post" name="myform" onSubmit="return CheckForm(this);">
<!--
<tr>
<td align="center" class="TableData">请选择模板:</td>
<td height="20" class="TableData">
<select name="modelid" name="modelid">
<option value="0" >选择模板..</option>
</select>
</td>
</tr>
-->
<tr >
<td align="center" class="TableData">交易类型: </td>
<td height="20" class="TableData">
<select name="JyType" id="JyType" label="交易类型" EmptyDisable>
<option selected value="">交易类型</option>
<%
site.dao.JYRLDao dao = new site.dao.JYRLDao();
ArrayList list=dao.getJYRLType();
for(int i=0;i<list.size();i++){
HashMap map=(HashMap) list.get(i);%>
<option value="<%= map.get("lable") %>"><%= map.get("value") %></option>
<% }
%>
</select> <font color="#FF0000">*</font> </td>
</tr>
<tr>
<td align="center" class="TableData">交易提示日期:</td>
<td height="20" class="TableData">
<input type="text" name="pubDate" id="pubDate" size="10" maxlength="10" value="<%=igec.util.Tool.getStrTime("",1)%>"/> <img src="<%=strSkinBase%>/images/menu/calendar.gif" border="0" align="absMiddle" style="cursor:hand" onclick="fPopUpCalendarDlg('<%=igec.site.base.bean.SitePara.strVirtualName%>',document.getElementById('pubDate'));">
</td>
</tr>
<!--
<tr>
<td align="center" class="TableData">是否在首页上弹出提示:</td>
<td height="20" class="TableData">
<input name="istanchu" type="checkbox" id="istanchu" value="1" > 弹出提示
<font color="#0000ff">*
(如果选择,则在首页面弹出提示页面)
</font>
</td>
</tr>
-->
<tr>
<td width="95" align="right" valign="top" class="TableData"><font color="#006600">如果是从其它网站上复制内容,并且内容中包含有图片,本系统将会把图片复制到本站服务器上,系统会因复制图片的大小而影响速度,请稍候(此功能需要服务器安装了IE5.5以上版本才有效)。<br>
· 上传WORD中的图片,请将本站点加入信任站点,点击<img src="../editor/images/editor/wordpaste.gif" width="18" hight="18">进行粘贴<br>
· 换行请按Shift+Enter</font><br> <font color="#006600">· 另起一段请按Enter</font> </td>
<td colspan="1" class="TableData">
<textarea name="Content" style="display:none" rows="1" cols="20"></textarea>
<iframe ID="editor" src="<%=site.bean.SitePara.strVirtualName%>/IgecEditor/editor.jsp?id=Content" frameborder=1 scrolling=no width="600" height="405"></iframe>
</td>
</tr>
<tr>
</tr>
<tr>
<td height="27" colspan="2" align="center" class="TableControl">
<input type="submit" name="Submit2" value="保 存" class="BigButton" />
<input type="button" name="Submit3" value="关 闭" class="BigButton" onclick="javascript:self.close();"/>
</td>
</tr>
</form>
<iframe id="_Igec_calendar_RunForm" name="_Igec_calendar_RunForm" src="" width="0" height="0" style="display:none"></iframe>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -