index.jsp
上传用户:huijianzhu
上传日期:2009-11-25
资源大小:9825k
文件大小:19k
- <%@ page contentType="text/html; charset=GBK" %>
- <%@ page language="java"%>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <!-- saved from url=(0175)http://10.10.0.57/eWebEditor/ewebeditor.asp?id=d_content&style=s_newssystem&originalfilename=d_originalfilename&savefilename=d_savefilename&savepathfilename=d_savepathfilename -->
- <HTML><HEAD><TITLE>在线编辑器</TITLE>
- <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
- href="css/mx/Editor.css" type="text/css" rel="stylesheet">
- <SCRIPT language=Javascript>
- var sPath = document.location.pathname;
- //alert(sPath);
- sPath = sPath.substr(0, sPath.length-14);
- var sLinkFieldName = "<%=request.getParameter("id")%>" ;
- var sLinkOriginalFileName = "d_originalfilename" ;
- var sLinkSaveFileName = "d_savefilename" ;
- var sLinkSavePathFileName = "d_savepathfilename" ;
- // 全局设置对象
- var config = new Object() ;
- //版本信息
- config.Version = "1.0.0" ;
- config.ReleaseDate = "2004-05-20" ;
- config.License = "" ;
- //样式名称
- config.StyleName = "s_newssystem";
- //config.StyleMenuHeader = "<head><link href=""+sPath+"css/coolblue/MenuArea.css" type="text/css" rel="stylesheet"></head><body scroll="no" onConTextMenu="event.returnValue=false;">";
- config.StyleMenuHeader = "<head><link href="css/mx/MenuArea.css" type="text/css" rel="stylesheet"></head><body scroll="no" onConTextMenu="event.returnValue=false;">";
- //样式目录
- config.StyleDir = "standard";
- //文件上传相对路径
- config.StyleUploadDir = "/";
- config.InitMode = "EDIT";
- config.AutoDetectPasteFromWord = true;
- //文件路径形式:0:相对路径 1:相对根目录的路径 2:完整的访问路径df
- config.BaseUrl = "1";
- //系统目录
- config.BaseHref = "/pingtechadmin/editor/";
- config.AutoRemote = "0";
- config.ShowBorder = "0";
- var sBaseHref = "";
- if(config.BaseHref!=""){
- sBaseHref = "<base href="" + document.location.protocol + "//" + document.location.host + config.BaseHref + "">";
- }
- //config.StyleEditorHeader = "<head><link href="" + sPath + "css/coolblue/EditorArea.css" type="text/css" rel="stylesheet">" + sBaseHref + "</head><body MONOSPACE>" ;
- config.StyleEditorHeader = "<head><link href="css/mx/EditorArea.css" type="text/css" rel="stylesheet">" + sBaseHref + "</head><body MONOSPACE>" ;
- </SCRIPT>
- <SCRIPT language=Javascript
- src="./include/editor.js"></SCRIPT>
- <SCRIPT language=Javascript
- src="./include/table.js"></SCRIPT>
- <SCRIPT language=Javascript
- src="./include/menu.js"></SCRIPT>
- <SCRIPT language=javascript event="onerror(msg, url, line)" for=window>
- //return true ; // 隐藏错误
- </SCRIPT>
- <META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
- <BODY oncontextmenu="event.returnValue=false;" onload="setMode('EDIT');" SCROLLING="no">
- <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
- <TBODY>
- <TR>
- <TD>
- <TABLE class="Toolbar" id="eWebEditor_Toolbar" cellSpacing=0 cellPadding=0
- width="100%" border=0>
- <TBODY>
- <TR>
- <TD>
- <DIV class=yToolbar>
- <DIV class=TBHandle></DIV><SELECT class=TBGen
- onchange="format('FormatBlock',this[this.selectedIndex].value);this.selectedIndex=0"><OPTION
- selected>段落样式</OPTION> <OPTION value="<P>">普通</OPTION> <OPTION
- value="<H1>">标题一</OPTION> <OPTION value="<H2>">标题二</OPTION>
- <OPTION value="<H3>">标题三</OPTION> <OPTION
- value="<H4>">标题四</OPTION> <OPTION value="<H5>">标题五</OPTION>
- <OPTION value="<H6>">标题六</OPTION> <OPTION value="<p>">段落</OPTION>
- <OPTION value="<dd>">定义</OPTION> <OPTION
- value="<dt>">术语定义</OPTION> <OPTION value="<dir>">目录列表</OPTION>
- <OPTION value="<menu>">菜单列表</OPTION> <OPTION
- value="<PRE>">已编排格式</OPTION></SELECT><SELECT class=TBGen
- onchange="format('fontname',this[this.selectedIndex].value);this.selectedIndex=0"><OPTION
- 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="Arial Black">Arial Black</OPTION> <OPTION
- value="Arial Narrow">Arial Narrow</OPTION> <OPTION
- value="Brush Script	MT">Brush Script MT</OPTION> <OPTION
- value="Century Gothic">Century Gothic</OPTION> <OPTION
- value="Comic Sans MS">Comic Sans MS</OPTION> <OPTION
- value=Courier>Courier</OPTION> <OPTION value="Courier New">Courier
- New</OPTION> <OPTION value="MS Sans Serif">MS Sans Serif</OPTION>
- <OPTION value=Script>Script</OPTION> <OPTION
- value=System>System</OPTION> <OPTION value="Times New Roman">Times
- New Roman</OPTION> <OPTION value=Verdana>Verdana</OPTION> <OPTION
- value="Wide Latin">Wide Latin</OPTION> <OPTION
- value=Wingdings>Wingdings</OPTION></SELECT><SELECT class=TBGen
- onchange="format('fontsize',this[this.selectedIndex].value);this.selectedIndex=0"><OPTION
- selected>字号</OPTION> <OPTION value=7>一号</OPTION> <OPTION
- value=6>二号</OPTION> <OPTION value=5>三号</OPTION> <OPTION
- value=4>四号</OPTION> <OPTION value=3>五号</OPTION> <OPTION
- value=2>六号</OPTION> <OPTION value=1>七号</OPTION></SELECT><SELECT
- class=TBGen
- onchange=doZoom(this[this.selectedIndex].value)><OPTION
- value=10>10%</OPTION> <OPTION value=25>25%</OPTION> <OPTION
- value=50>50%</OPTION> <OPTION value=75>75%</OPTION> <OPTION
- value=100 selected>100%</OPTION> <OPTION value=150>150%</OPTION>
- <OPTION value=200>200%</OPTION> <OPTION
- value=500>500%</OPTION></SELECT>
- <DIV class=Btn title=粗体 onclick="format('bold')"><IMG class=Ico
- src="buttonimage/standard/bold.gif"></DIV>
- <DIV class=Btn title=斜体 onclick="format('italic')"><IMG class=Ico
- src="buttonimage/standard/italic.gif"></DIV>
- <DIV class=Btn title=下划线 onclick="format('underline')"><IMG
- class=Ico
- src="buttonimage/standard/underline.gif"></DIV>
- <DIV class=Btn title=中划线 onclick="format('StrikeThrough')"><IMG
- class=Ico
- src="buttonimage/standard/strikethrough.gif"></DIV>
- <DIV class=Btn title=上标 onclick="format('superscript')"><IMG
- class=Ico
- src="buttonimage/standard/superscript.gif"></DIV>
- <DIV class=Btn title=下标 onclick="format('subscript')"><IMG class=Ico
- src="buttonimage/standard/subscript.gif"></DIV>
- <DIV class=TBSep></DIV>
- <DIV class=Btn title=左对齐 onclick="format('justifyleft')"><IMG
- class=Ico
- src="buttonimage/standard/justifyleft.gif"></DIV>
- <DIV class=Btn title=居中对齐 onclick="format('justifycenter')"><IMG
- class=Ico
- src="buttonimage/standard/justifycenter.gif"></DIV>
- <DIV class=Btn title=右对齐 onclick="format('justifyright')"><IMG
- class=Ico
- src="buttonimage/standard/justifyright.gif"></DIV>
- <DIV class=Btn title=两端对齐 onclick="format('JustifyFull')"><IMG
- class=Ico
- src="buttonimage/standard/justifyfull.gif"></DIV></DIV></TD></TR>
- <TR>
- <TD>
- <DIV class=yToolbar>
- <DIV class=TBHandle></DIV>
- <DIV class=Btn title=剪切 onclick="format('cut')"><IMG class=Ico
- src="buttonimage/standard/cut.gif"></DIV>
- <DIV class=Btn title=复制 onclick="format('copy')"><IMG class=Ico
- src="buttonimage/standard/copy.gif"></DIV>
- <DIV class=Btn title=常规粘贴 onclick="format('paste')"><IMG class=Ico
- src="buttonimage/standard/paste.gif"></DIV>
- <DIV class=Btn title=纯文本粘贴 onclick=PasteText()><IMG class=Ico
- src="buttonimage/standard/pastetext.gif"></DIV>
- <DIV class=Btn title=从Word中粘贴 onclick=PasteWord()><IMG class=Ico
- src="buttonimage/standard/pasteword.gif"></DIV>
- <DIV class=TBSep></DIV>
- <DIV class=Btn title=查找替换 onclick=findReplace()><IMG class=Ico
- src="buttonimage/standard/findreplace.gif"></DIV>
- <DIV class=Btn title=删除 onclick="format('delete')"><IMG class=Ico
- src="buttonimage/standard/delete.gif"></DIV>
- <DIV class=Btn title=删除文字格式 onclick="format('RemoveFormat')"><IMG
- class=Ico
- src="buttonimage/standard/removeformat.gif"></DIV>
- <DIV class=TBSep></DIV>
- <DIV class=Btn title=撤消 onclick="format('undo')"><IMG class=Ico
- src="buttonimage/standard/undo.gif"></DIV>
- <DIV class=Btn title=恢复 onclick="format('redo')"><IMG class=Ico
- src="buttonimage/standard/redo.gif"></DIV>
- <DIV class=TBSep></DIV>
- <DIV class=Btn title=全部选中 onclick="format('SelectAll')"><IMG
- class=Ico
- src="buttonimage/standard/selectall.gif"></DIV>
- <DIV class=Btn title=取消选择 onclick="format('Unselect')"><IMG
- class=Ico src="buttonimage/standard/unselect.gif"></DIV>
- <DIV class=TBSep></DIV>
- <DIV class=Btn title=编号 onclick="format('insertorderedlist')"><IMG
- class=Ico
- src="buttonimage/standard/insertorderedlist.gif"></DIV>
- <DIV class=Btn title=项目符号
- onclick="format('insertunorderedlist')"><IMG class=Ico
- src="buttonimage/standard/insertunorderedlist.gif"></DIV>
- <DIV class=Btn title=增加缩进量 onclick="format('indent')"><IMG class=Ico
- src="buttonimage/standard/indent.gif"></DIV>
- <DIV class=Btn title=减少缩进量 onclick="format('outdent')"><IMG
- class=Ico src="buttonimage/standard/outdent.gif"></DIV>
- <DIV class=TBSep></DIV>
- <DIV class=Btn title=字体颜色
- onclick="ShowDialog('dialog/selcolor.htm?action=forecolor', 280, 250, true)"><IMG
- class=Ico
- src="buttonimage/standard/forecolor.gif"></DIV>
- <DIV class=Btn title=对象背景颜色
- onclick="ShowDialog('dialog/selcolor.htm?action=bgcolor', 280, 250, true)"><IMG
- class=Ico src="buttonimage/standard/bgcolor.gif"></DIV>
- <DIV class=Btn title=字体背景颜色
- onclick="ShowDialog('dialog/selcolor.htm?action=backcolor', 280, 250, true)"><IMG
- class=Ico
- src="buttonimage/standard/backcolor.gif"></DIV>
- <DIV class=Btn title=背景图片
- onclick="ShowDialog('dialog/backimage.htm', 350, 210, true)"><IMG
- class=Ico src="buttonimage/standard/bgpic.gif"></DIV>
- <DIV class=TBSep></DIV>
- <DIV class=Btn title=绝对或相对位置 onclick=absolutePosition()><IMG
- class=Ico src="buttonimage/standard/abspos.gif"></DIV>
- <DIV class=Btn title=上移一层 onclick="zIndex('forward')"><IMG class=Ico
- src="buttonimage/standard/forward.gif"></DIV>
- <DIV class=Btn title=下移一层 onclick="zIndex('backward')"><IMG
- class=Ico
- src="buttonimage/standard/backward.gif"></DIV></DIV></TD></TR>
- <TR>
- <TD>
- <DIV class=yToolbar>
- <DIV class=TBHandle></DIV>
- <DIV class=Btn title=插入或修改图片
- onclick="ShowDialog('dialog/img.htm', 350, 315, true)"><IMG
- class=Ico src="buttonimage/standard/img.gif"></DIV>
- <DIV class=Btn title=插入Flash动画
- onclick="ShowDialog('dialog/flash.htm', 350, 200, true)"><IMG
- class=Ico src="buttonimage/standard/flash.gif"></DIV>
- <DIV class=Btn title=插入自动播放的媒体文件
- onclick="ShowDialog('dialog/media.htm', 350, 200, true)"><IMG
- class=Ico src="buttonimage/standard/media.gif"></DIV>
- <DIV class=Btn title=插入其他文件
- onclick="ShowDialog('dialog/file.htm', 350, 150, true)"><IMG
- class=Ico src="buttonimage/standard/file.gif"></DIV>
- <DIV class=TBSep></DIV>
- <DIV class=Btn title=表格菜单 onclick="showToolMenu('table')"><IMG
- class=Ico
- src="buttonimage/standard/tablemenu.gif"></DIV>
- <DIV class=Btn title=表单菜单 onclick="showToolMenu('form')"><IMG
- class=Ico src="buttonimage/standard/formmenu.gif"></DIV>
- <DIV class=Btn title=显示或隐藏指导方针 onclick=showBorders()><IMG class=Ico
- src="buttonimage/standard/showborders.gif"></DIV>
- <DIV class=TBSep></DIV>
- <DIV class=Btn title=插入或修改栏目框
- onclick="ShowDialog('dialog/fieldset.htm', 350, 170, true)"><IMG
- class=Ico src="buttonimage/standard/fieldset.gif"></DIV>
- <DIV class=Btn title=插入或修改网页帧
- onclick="ShowDialog('dialog/iframe.htm', 350, 200, true)"><IMG
- class=Ico src="buttonimage/standard/iframe.gif"></DIV>
- <DIV class=Btn title=插入水平尺
- onclick="format('InsertHorizontalRule')"><IMG class=Ico
- src="buttonimage/standard/inserthorizontalrule.gif"></DIV>
- <DIV class=Btn title=插入或修改字幕
- onclick="ShowDialog('dialog/marquee.htm', 395, 150, true)"><IMG
- class=Ico src="buttonimage/standard/marquee.gif"></DIV>
- <DIV class=TBSep></DIV>
- <DIV class=Btn title=插入或修改超级链接 onclick=createLink()><IMG class=Ico
- src="buttonimage/standard/createlink.gif"></DIV>
- <DIV class=Btn title=书签管理
- onclick="ShowDialog('dialog/anchor.htm', 270, 220, true)"><IMG
- class=Ico src="buttonimage/standard/anchor.gif"></DIV>
- <DIV class=Btn title=图形热点链接 onclick=mapEdit()><IMG class=Ico
- src="buttonimage/standard/map.gif"></DIV>
- <DIV class=Btn title=取消超级链接或标签 onclick="format('UnLink')"><IMG
- class=Ico src="buttonimage/standard/unlink.gif"></DIV>
- <DIV class=TBSep></DIV>
- <DIV class=Btn title=插入特殊字符
- onclick="ShowDialog('dialog/symbol.htm', 350, 220, true)"><IMG
- class=Ico src="buttonimage/standard/symbol.gif"></DIV>
- <DIV class=Btn title=插入表情图标
- onclick="ShowDialog('dialog/emot.htm', 300, 180, true)"><IMG
- class=Ico src="buttonimage/standard/emot.gif"></DIV>
- <DIV class=Btn title=插入Excel表格 onclick="insert('excel')"><IMG
- class=Ico src="buttonimage/standard/excel.gif"></DIV>
- <DIV class=Btn title=插入当前日期 onclick="insert('nowdate')"><IMG
- class=Ico src="buttonimage/standard/date.gif"></DIV>
- <DIV class=Btn title="插入当前时间" onclick="insert('nowtime')"><IMG
- class=Ico src="buttonimage/standard/time.gif"></DIV>
- <DIV class=TBSep></DIV>
- <DIV class=Btn title="引用样式" onclick="insert('quote')"><IMG class=Ico
- src="buttonimage/standard/quote.gif"></DIV>
- <DIV class=TBSep></DIV>
- <DIV class=Btn title=全屏编辑 onclick=Maximize()><IMG class=Ico
- src="buttonimage/standard/maximize.gif"></DIV>
- <DIV class=Btn title="查看使用帮助"
- onclick="ShowDialog('dialog/help.htm','400','300')"><IMG class=Ico
- src="buttonimage/standard/help.gif"></DIV>
- <DIV class=Btn title="关于"
- onclick="ShowDialog('dialog/about.htm','400','220')"><IMG class=Ico
- src="buttonimage/standard/about.gif"></DIV></DIV></TD></TR></TBODY></TABLE></TD></TR>
- <TR>
- <TD height="100%">
- <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
- <TBODY>
- <TR>
- <TD height="100%"><INPUT id="ContentEdit" type="hidden"> <INPUT
- id=ModeEdit type=hidden> <INPUT id=ContentLoad type=hidden> <INPUT
- id=ContentFlag type=hidden value=0> <IFRAME class=Composition
- id=eWebEditor marginWidth=1 marginHeight=1 src="about:blank"
- width="100%" scrolling=yes
- height="100%">
- </IFRAME></TD></TR></TBODY></TABLE></TD></TR>
- <TR>
- <TD height=25>
- <TABLE class=StatusBar height=25 cellSpacing=0 cellPadding=0 width="100%"
- border=0>
- <TBODY>
- <TR vAlign=center>
- <TD>
- <TABLE height=20 cellSpacing=0 cellPadding=0 border=0>
- <TBODY>
- <TR>
- <TD width=10></TD>
- <TD class=StatusBarBtnOff id=eWebEditor_CODE
- onclick="setMode('CODE')"><IMG height=15
- src="buttonimage/standard/modecode.gif" width=50
- align=absMiddle border=0></TD>
- <TD width=5></TD>
- <TD class=StatusBarBtnOff id=eWebEditor_EDIT
- onclick="setMode('EDIT')"><IMG height=15
- src="buttonimage/standard/modeedit.gif" width=50
- align=absMiddle border=0></TD>
- <TD width=5></TD>
- <TD class=StatusBarBtnOff id=eWebEditor_TEXT
- onclick="setMode('TEXT')"><IMG height=15
- src="buttonimage/standard/modetext.gif" width=50
- align=absMiddle border=0></TD>
- <TD width=5></TD>
- <TD class=StatusBarBtnOff id=eWebEditor_VIEW
- onclick="setMode('VIEW')"><IMG height=15
- src="buttonimage/standard/modepreview.gif"
- width=50 align=absMiddle border=0></TD></TR></TBODY></TABLE></TD>
- <TD id=eWebEditor_License style="FONT-SIZE: 9pt" align=middle></TD>
- <TD align=right>
- <TABLE height=20 cellSpacing=0 cellPadding=0 border=0>
- <TBODY>
- <TR>
- <TD style="CURSOR: pointer" onclick=sizeChange(300)><IMG
- height=20 alt=增高编辑区
- src="buttonimage/standard/sizeplus.gif" width=20
- border=0></TD>
- <TD width=5></TD>
- <TD style="CURSOR: pointer" onclick=sizeChange(-300)><IMG
- height=20 alt=减小编辑区
- src="buttonimage/standard/sizeminus.gif" width=20
- border=0></TD>
- <TD
- width=40></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
- <DIV id=eWebEditor_Temp_HTML
- style="VISIBILITY: hidden; OVERFLOW: hidden; WIDTH: 1px; POSITION: absolute; HEIGHT: 1px"></DIV>
- <FORM id=eWebEditor_UploadForm
- action="upload.asp?action=remote&type=remote&style=s_newssystem"
- method=post target=eWebEditor_UploadTarget><INPUT type=hidden
- name=eWebEditor_UploadText> </FORM><IFRAME name=eWebEditor_UploadTarget
- src="about:blank" width=0 height=0></IFRAME>
- <DIV id=divProcessing
- style="DISPLAY: none; WIDTH: 200px; POSITION: absolute; HEIGHT: 30px">
- <TABLE height="100%" cellSpacing=1 cellPadding=0 width="100%" bgColor=#000000
- border=0>
- <TBODY>
- <TR>
- <TD bgColor=#3a6ea5>
- <MARQUEE style="FONT-SIZE: 9pt" scrollAmount=5 behavior=alternate
- align="middle"><FONT
- color=#ffffff>...远程文件收集中...请等待...</FONT></MARQUEE></TD></TR></TBODY></TABLE></DIV></BODY></HTML>