index.jsp
上传用户:huijianzhu
上传日期:2009-11-25
资源大小:9825k
文件大小:19k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ page contentType="text/html; charset=GBK" %>
  2. <%@ page language="java"%>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  4. <!-- 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 -->
  5. <HTML><HEAD><TITLE>在线编辑器</TITLE>
  6. <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
  7. href="css/mx/Editor.css" type="text/css" rel="stylesheet">
  8. <SCRIPT language=Javascript>
  9. var sPath = document.location.pathname;
  10. //alert(sPath);
  11. sPath = sPath.substr(0, sPath.length-14);
  12. var sLinkFieldName = "<%=request.getParameter("id")%>" ;
  13. var sLinkOriginalFileName = "d_originalfilename" ;
  14. var sLinkSaveFileName = "d_savefilename" ;
  15. var sLinkSavePathFileName = "d_savepathfilename" ;
  16. // 全局设置对象
  17. var config = new Object() ;
  18. //版本信息
  19. config.Version = "1.0.0" ;
  20. config.ReleaseDate = "2004-05-20" ;
  21. config.License = "" ;
  22. //样式名称
  23. config.StyleName = "s_newssystem";
  24. //config.StyleMenuHeader = "<head><link href=""+sPath+"css/coolblue/MenuArea.css" type="text/css" rel="stylesheet"></head><body scroll="no" onConTextMenu="event.returnValue=false;">";
  25. config.StyleMenuHeader = "<head><link href="css/mx/MenuArea.css" type="text/css" rel="stylesheet"></head><body scroll="no" onConTextMenu="event.returnValue=false;">";
  26. //样式目录
  27. config.StyleDir = "standard";
  28. //文件上传相对路径
  29. config.StyleUploadDir = "/";
  30. config.InitMode = "EDIT";
  31. config.AutoDetectPasteFromWord = true;
  32. //文件路径形式:0:相对路径 1:相对根目录的路径 2:完整的访问路径df
  33. config.BaseUrl = "1";
  34. //系统目录
  35. config.BaseHref = "/pingtechadmin/editor/";
  36. config.AutoRemote = "0";
  37. config.ShowBorder = "0";
  38. var sBaseHref = "";
  39. if(config.BaseHref!=""){
  40. sBaseHref = "<base href="" + document.location.protocol + "//" + document.location.host + config.BaseHref + "">";
  41. }
  42. //config.StyleEditorHeader = "<head><link href="" + sPath + "css/coolblue/EditorArea.css" type="text/css" rel="stylesheet">" + sBaseHref + "</head><body MONOSPACE>" ;
  43. config.StyleEditorHeader = "<head><link href="css/mx/EditorArea.css" type="text/css" rel="stylesheet">" + sBaseHref + "</head><body MONOSPACE>" ;
  44. </SCRIPT>
  45. <SCRIPT language=Javascript 
  46. src="./include/editor.js"></SCRIPT>
  47. <SCRIPT language=Javascript 
  48. src="./include/table.js"></SCRIPT>
  49. <SCRIPT language=Javascript 
  50. src="./include/menu.js"></SCRIPT>
  51. <SCRIPT language=javascript event="onerror(msg, url, line)" for=window>
  52. //return true ;  // 隐藏错误
  53. </SCRIPT>
  54. <META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
  55. <BODY oncontextmenu="event.returnValue=false;" onload="setMode('EDIT');" SCROLLING="no">
  56. <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
  57.   <TBODY>
  58.   <TR>
  59.     <TD>
  60.       <TABLE class="Toolbar" id="eWebEditor_Toolbar" cellSpacing=0 cellPadding=0 
  61.       width="100%" border=0>
  62.         <TBODY>
  63.         <TR>
  64.           <TD>
  65.             <DIV class=yToolbar>
  66.             <DIV class=TBHandle></DIV><SELECT class=TBGen 
  67.             onchange="format('FormatBlock',this[this.selectedIndex].value);this.selectedIndex=0"><OPTION 
  68.               selected>段落样式</OPTION> <OPTION value="<P>">普通</OPTION> <OPTION 
  69.               value="<H1>">标题一</OPTION> <OPTION value="<H2>">标题二</OPTION> 
  70.               <OPTION value="<H3>">标题三</OPTION> <OPTION 
  71.               value="<H4>">标题四</OPTION> <OPTION value="<H5>">标题五</OPTION> 
  72.               <OPTION value="<H6>">标题六</OPTION> <OPTION value="<p>">段落</OPTION> 
  73.               <OPTION value="<dd>">定义</OPTION> <OPTION 
  74.               value="<dt>">术语定义</OPTION> <OPTION value="<dir>">目录列表</OPTION> 
  75.               <OPTION value="<menu>">菜单列表</OPTION> <OPTION 
  76.               value="<PRE>">已编排格式</OPTION></SELECT><SELECT class=TBGen 
  77.             onchange="format('fontname',this[this.selectedIndex].value);this.selectedIndex=0"><OPTION 
  78.               selected>字体</OPTION> <OPTION value=宋体>宋体</OPTION> <OPTION 
  79.               value=黑体>黑体</OPTION> <OPTION value=楷体_GB2312>楷体</OPTION> <OPTION 
  80.               value=仿宋_GB2312>仿宋</OPTION> <OPTION value=隶书>隶书</OPTION> <OPTION 
  81.               value=幼圆>幼圆</OPTION> <OPTION value=Arial>Arial</OPTION> <OPTION 
  82.               value="Arial Black">Arial Black</OPTION> <OPTION 
  83.               value="Arial Narrow">Arial Narrow</OPTION> <OPTION 
  84.               value="Brush Script&#9;MT">Brush Script MT</OPTION> <OPTION 
  85.               value="Century Gothic">Century Gothic</OPTION> <OPTION 
  86.               value="Comic Sans MS">Comic Sans MS</OPTION> <OPTION 
  87.               value=Courier>Courier</OPTION> <OPTION value="Courier New">Courier 
  88.               New</OPTION> <OPTION value="MS Sans Serif">MS Sans Serif</OPTION> 
  89.               <OPTION value=Script>Script</OPTION> <OPTION 
  90.               value=System>System</OPTION> <OPTION value="Times New Roman">Times 
  91.               New Roman</OPTION> <OPTION value=Verdana>Verdana</OPTION> <OPTION 
  92.               value="Wide Latin">Wide Latin</OPTION> <OPTION 
  93.               value=Wingdings>Wingdings</OPTION></SELECT><SELECT class=TBGen 
  94.             onchange="format('fontsize',this[this.selectedIndex].value);this.selectedIndex=0"><OPTION 
  95.               selected>字号</OPTION> <OPTION value=7>一号</OPTION> <OPTION 
  96.               value=6>二号</OPTION> <OPTION value=5>三号</OPTION> <OPTION 
  97.               value=4>四号</OPTION> <OPTION value=3>五号</OPTION> <OPTION 
  98.               value=2>六号</OPTION> <OPTION value=1>七号</OPTION></SELECT><SELECT 
  99.             class=TBGen 
  100.               onchange=doZoom(this[this.selectedIndex].value)><OPTION 
  101.               value=10>10%</OPTION> <OPTION value=25>25%</OPTION> <OPTION 
  102.               value=50>50%</OPTION> <OPTION value=75>75%</OPTION> <OPTION 
  103.               value=100 selected>100%</OPTION> <OPTION value=150>150%</OPTION> 
  104.               <OPTION value=200>200%</OPTION> <OPTION 
  105.             value=500>500%</OPTION></SELECT>
  106.             <DIV class=Btn title=粗体 onclick="format('bold')"><IMG class=Ico 
  107.             src="buttonimage/standard/bold.gif"></DIV>
  108.             <DIV class=Btn title=斜体 onclick="format('italic')"><IMG class=Ico 
  109.             src="buttonimage/standard/italic.gif"></DIV>
  110.             <DIV class=Btn title=下划线 onclick="format('underline')"><IMG 
  111.             class=Ico 
  112. src="buttonimage/standard/underline.gif"></DIV>
  113.             <DIV class=Btn title=中划线 onclick="format('StrikeThrough')"><IMG 
  114.             class=Ico 
  115.             src="buttonimage/standard/strikethrough.gif"></DIV>
  116.             <DIV class=Btn title=上标 onclick="format('superscript')"><IMG 
  117.             class=Ico 
  118.             src="buttonimage/standard/superscript.gif"></DIV>
  119.             <DIV class=Btn title=下标 onclick="format('subscript')"><IMG class=Ico 
  120.             src="buttonimage/standard/subscript.gif"></DIV>
  121.             <DIV class=TBSep></DIV>
  122.             <DIV class=Btn title=左对齐 onclick="format('justifyleft')"><IMG 
  123.             class=Ico 
  124.             src="buttonimage/standard/justifyleft.gif"></DIV>
  125.             <DIV class=Btn title=居中对齐 onclick="format('justifycenter')"><IMG 
  126.             class=Ico 
  127.             src="buttonimage/standard/justifycenter.gif"></DIV>
  128.             <DIV class=Btn title=右对齐 onclick="format('justifyright')"><IMG 
  129.             class=Ico 
  130.             src="buttonimage/standard/justifyright.gif"></DIV>
  131.             <DIV class=Btn title=两端对齐 onclick="format('JustifyFull')"><IMG 
  132.             class=Ico 
  133.             src="buttonimage/standard/justifyfull.gif"></DIV></DIV></TD></TR>
  134.         <TR>
  135.           <TD>
  136.             <DIV class=yToolbar>
  137.             <DIV class=TBHandle></DIV>
  138.             <DIV class=Btn title=剪切 onclick="format('cut')"><IMG class=Ico 
  139.             src="buttonimage/standard/cut.gif"></DIV>
  140.             <DIV class=Btn title=复制 onclick="format('copy')"><IMG class=Ico 
  141.             src="buttonimage/standard/copy.gif"></DIV>
  142.             <DIV class=Btn title=常规粘贴 onclick="format('paste')"><IMG class=Ico 
  143.             src="buttonimage/standard/paste.gif"></DIV>
  144.             <DIV class=Btn title=纯文本粘贴 onclick=PasteText()><IMG class=Ico 
  145.             src="buttonimage/standard/pastetext.gif"></DIV>
  146.             <DIV class=Btn title=从Word中粘贴 onclick=PasteWord()><IMG class=Ico 
  147.             src="buttonimage/standard/pasteword.gif"></DIV>
  148.             <DIV class=TBSep></DIV>
  149.             <DIV class=Btn title=查找替换 onclick=findReplace()><IMG class=Ico 
  150.             src="buttonimage/standard/findreplace.gif"></DIV>
  151.             <DIV class=Btn title=删除 onclick="format('delete')"><IMG class=Ico 
  152.             src="buttonimage/standard/delete.gif"></DIV>
  153.             <DIV class=Btn title=删除文字格式 onclick="format('RemoveFormat')"><IMG 
  154.             class=Ico 
  155.             src="buttonimage/standard/removeformat.gif"></DIV>
  156.             <DIV class=TBSep></DIV>
  157.             <DIV class=Btn title=撤消 onclick="format('undo')"><IMG class=Ico 
  158.             src="buttonimage/standard/undo.gif"></DIV>
  159.             <DIV class=Btn title=恢复 onclick="format('redo')"><IMG class=Ico 
  160.             src="buttonimage/standard/redo.gif"></DIV>
  161.             <DIV class=TBSep></DIV>
  162.             <DIV class=Btn title=全部选中 onclick="format('SelectAll')"><IMG 
  163.             class=Ico 
  164. src="buttonimage/standard/selectall.gif"></DIV>
  165.             <DIV class=Btn title=取消选择 onclick="format('Unselect')"><IMG 
  166.             class=Ico src="buttonimage/standard/unselect.gif"></DIV>
  167.             <DIV class=TBSep></DIV>
  168.             <DIV class=Btn title=编号 onclick="format('insertorderedlist')"><IMG 
  169.             class=Ico 
  170.             src="buttonimage/standard/insertorderedlist.gif"></DIV>
  171.             <DIV class=Btn title=项目符号 
  172.             onclick="format('insertunorderedlist')"><IMG class=Ico 
  173.             src="buttonimage/standard/insertunorderedlist.gif"></DIV>
  174.             <DIV class=Btn title=增加缩进量 onclick="format('indent')"><IMG class=Ico 
  175.             src="buttonimage/standard/indent.gif"></DIV>
  176.             <DIV class=Btn title=减少缩进量 onclick="format('outdent')"><IMG 
  177.             class=Ico src="buttonimage/standard/outdent.gif"></DIV>
  178.             <DIV class=TBSep></DIV>
  179.             <DIV class=Btn title=字体颜色 
  180.             onclick="ShowDialog('dialog/selcolor.htm?action=forecolor', 280, 250, true)"><IMG 
  181.             class=Ico 
  182. src="buttonimage/standard/forecolor.gif"></DIV>
  183.             <DIV class=Btn title=对象背景颜色 
  184.             onclick="ShowDialog('dialog/selcolor.htm?action=bgcolor', 280, 250, true)"><IMG 
  185.             class=Ico src="buttonimage/standard/bgcolor.gif"></DIV>
  186.             <DIV class=Btn title=字体背景颜色 
  187.             onclick="ShowDialog('dialog/selcolor.htm?action=backcolor', 280, 250, true)"><IMG 
  188.             class=Ico 
  189. src="buttonimage/standard/backcolor.gif"></DIV>
  190.             <DIV class=Btn title=背景图片 
  191.             onclick="ShowDialog('dialog/backimage.htm', 350, 210, true)"><IMG 
  192.             class=Ico src="buttonimage/standard/bgpic.gif"></DIV>
  193.             <DIV class=TBSep></DIV>
  194.             <DIV class=Btn title=绝对或相对位置 onclick=absolutePosition()><IMG 
  195.             class=Ico src="buttonimage/standard/abspos.gif"></DIV>
  196.             <DIV class=Btn title=上移一层 onclick="zIndex('forward')"><IMG class=Ico 
  197.             src="buttonimage/standard/forward.gif"></DIV>
  198.             <DIV class=Btn title=下移一层 onclick="zIndex('backward')"><IMG 
  199.             class=Ico 
  200.             src="buttonimage/standard/backward.gif"></DIV></DIV></TD></TR>
  201.         <TR>
  202.           <TD>
  203.             <DIV class=yToolbar>
  204.             <DIV class=TBHandle></DIV>
  205.             <DIV class=Btn title=插入或修改图片 
  206.             onclick="ShowDialog('dialog/img.htm', 350, 315, true)"><IMG 
  207.             class=Ico src="buttonimage/standard/img.gif"></DIV>
  208.             <DIV class=Btn title=插入Flash动画 
  209.             onclick="ShowDialog('dialog/flash.htm', 350, 200, true)"><IMG 
  210.             class=Ico src="buttonimage/standard/flash.gif"></DIV>
  211.             <DIV class=Btn title=插入自动播放的媒体文件 
  212.             onclick="ShowDialog('dialog/media.htm', 350, 200, true)"><IMG 
  213.             class=Ico src="buttonimage/standard/media.gif"></DIV>
  214.             <DIV class=Btn title=插入其他文件 
  215.             onclick="ShowDialog('dialog/file.htm', 350, 150, true)"><IMG 
  216.             class=Ico src="buttonimage/standard/file.gif"></DIV>
  217.             <DIV class=TBSep></DIV>
  218.             <DIV class=Btn title=表格菜单 onclick="showToolMenu('table')"><IMG 
  219.             class=Ico 
  220. src="buttonimage/standard/tablemenu.gif"></DIV>
  221.             <DIV class=Btn title=表单菜单 onclick="showToolMenu('form')"><IMG 
  222.             class=Ico src="buttonimage/standard/formmenu.gif"></DIV>
  223.             <DIV class=Btn title=显示或隐藏指导方针 onclick=showBorders()><IMG class=Ico 
  224.             src="buttonimage/standard/showborders.gif"></DIV>
  225.             <DIV class=TBSep></DIV>
  226.             <DIV class=Btn title=插入或修改栏目框 
  227.             onclick="ShowDialog('dialog/fieldset.htm', 350, 170, true)"><IMG 
  228.             class=Ico src="buttonimage/standard/fieldset.gif"></DIV>
  229.             <DIV class=Btn title=插入或修改网页帧 
  230.             onclick="ShowDialog('dialog/iframe.htm', 350, 200, true)"><IMG 
  231.             class=Ico src="buttonimage/standard/iframe.gif"></DIV>
  232.             <DIV class=Btn title=插入水平尺 
  233.             onclick="format('InsertHorizontalRule')"><IMG class=Ico 
  234.             src="buttonimage/standard/inserthorizontalrule.gif"></DIV>
  235.             <DIV class=Btn title=插入或修改字幕 
  236.             onclick="ShowDialog('dialog/marquee.htm', 395, 150, true)"><IMG 
  237.             class=Ico src="buttonimage/standard/marquee.gif"></DIV>
  238.             <DIV class=TBSep></DIV>
  239.             <DIV class=Btn title=插入或修改超级链接 onclick=createLink()><IMG class=Ico 
  240.             src="buttonimage/standard/createlink.gif"></DIV>
  241. <DIV class=Btn title=书签管理 
  242.             onclick="ShowDialog('dialog/anchor.htm', 270, 220, true)"><IMG 
  243.             class=Ico src="buttonimage/standard/anchor.gif"></DIV>
  244.             <DIV class=Btn title=图形热点链接 onclick=mapEdit()><IMG class=Ico 
  245.             src="buttonimage/standard/map.gif"></DIV>
  246.             <DIV class=Btn title=取消超级链接或标签 onclick="format('UnLink')"><IMG 
  247.             class=Ico src="buttonimage/standard/unlink.gif"></DIV>
  248.             <DIV class=TBSep></DIV>
  249.             <DIV class=Btn title=插入特殊字符 
  250.             onclick="ShowDialog('dialog/symbol.htm', 350, 220, true)"><IMG 
  251.             class=Ico src="buttonimage/standard/symbol.gif"></DIV>
  252.             <DIV class=Btn title=插入表情图标 
  253.             onclick="ShowDialog('dialog/emot.htm', 300, 180, true)"><IMG 
  254.             class=Ico src="buttonimage/standard/emot.gif"></DIV>
  255.             <DIV class=Btn title=插入Excel表格 onclick="insert('excel')"><IMG 
  256.             class=Ico src="buttonimage/standard/excel.gif"></DIV>
  257.             <DIV class=Btn title=插入当前日期 onclick="insert('nowdate')"><IMG 
  258.             class=Ico src="buttonimage/standard/date.gif"></DIV>
  259.             <DIV class=Btn title="插入当前时间" onclick="insert('nowtime')"><IMG 
  260.             class=Ico src="buttonimage/standard/time.gif"></DIV>
  261.             <DIV class=TBSep></DIV>
  262.             <DIV class=Btn title="引用样式" onclick="insert('quote')"><IMG class=Ico 
  263.             src="buttonimage/standard/quote.gif"></DIV>
  264.             <DIV class=TBSep></DIV>
  265.             <DIV class=Btn title=全屏编辑 onclick=Maximize()><IMG class=Ico 
  266.             src="buttonimage/standard/maximize.gif"></DIV>
  267.             <DIV class=Btn title="查看使用帮助" 
  268.             onclick="ShowDialog('dialog/help.htm','400','300')"><IMG class=Ico 
  269.             src="buttonimage/standard/help.gif"></DIV>
  270.             <DIV class=Btn title="关于" 
  271.             onclick="ShowDialog('dialog/about.htm','400','220')"><IMG class=Ico 
  272.             src="buttonimage/standard/about.gif"></DIV></DIV></TD></TR></TBODY></TABLE></TD></TR>
  273.   <TR>
  274.     <TD height="100%">
  275.       <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
  276.         <TBODY>
  277.         <TR>
  278.           <TD height="100%"><INPUT id="ContentEdit" type="hidden"> <INPUT 
  279.             id=ModeEdit type=hidden> <INPUT id=ContentLoad type=hidden> <INPUT 
  280.             id=ContentFlag type=hidden value=0> <IFRAME class=Composition 
  281.             id=eWebEditor marginWidth=1 marginHeight=1 src="about:blank" 
  282.             width="100%" scrolling=yes 
  283.       height="100%"> 
  284. </IFRAME></TD></TR></TBODY></TABLE></TD></TR>
  285.   <TR>
  286.     <TD height=25>
  287.       <TABLE class=StatusBar height=25 cellSpacing=0 cellPadding=0 width="100%" 
  288.       border=0>
  289.         <TBODY>
  290.         <TR vAlign=center>
  291.           <TD>
  292.             <TABLE height=20 cellSpacing=0 cellPadding=0 border=0>
  293.               <TBODY>
  294.               <TR>
  295.                 <TD width=10></TD>
  296.                 <TD class=StatusBarBtnOff id=eWebEditor_CODE 
  297.                 onclick="setMode('CODE')"><IMG height=15 
  298.                   src="buttonimage/standard/modecode.gif" width=50 
  299.                   align=absMiddle border=0></TD>
  300.                 <TD width=5></TD>
  301.                 <TD class=StatusBarBtnOff id=eWebEditor_EDIT 
  302.                 onclick="setMode('EDIT')"><IMG height=15 
  303.                   src="buttonimage/standard/modeedit.gif" width=50 
  304.                   align=absMiddle border=0></TD>
  305.                 <TD width=5></TD>
  306.                 <TD class=StatusBarBtnOff id=eWebEditor_TEXT 
  307.                 onclick="setMode('TEXT')"><IMG height=15 
  308.                   src="buttonimage/standard/modetext.gif" width=50 
  309.                   align=absMiddle border=0></TD>
  310.                 <TD width=5></TD>
  311.                 <TD class=StatusBarBtnOff id=eWebEditor_VIEW 
  312.                 onclick="setMode('VIEW')"><IMG height=15 
  313.                   src="buttonimage/standard/modepreview.gif" 
  314.                   width=50 align=absMiddle border=0></TD></TR></TBODY></TABLE></TD>
  315.           <TD id=eWebEditor_License style="FONT-SIZE: 9pt" align=middle></TD>
  316.           <TD align=right>
  317.             <TABLE height=20 cellSpacing=0 cellPadding=0 border=0>
  318.               <TBODY>
  319.               <TR>
  320.                 <TD style="CURSOR: pointer" onclick=sizeChange(300)><IMG 
  321.                   height=20 alt=增高编辑区 
  322.                   src="buttonimage/standard/sizeplus.gif" width=20 
  323.                   border=0></TD>
  324.                 <TD width=5></TD>
  325.                 <TD style="CURSOR: pointer" onclick=sizeChange(-300)><IMG 
  326.                   height=20 alt=减小编辑区 
  327.                   src="buttonimage/standard/sizeminus.gif" width=20 
  328.                   border=0></TD>
  329.                 <TD 
  330.   width=40></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
  331. <DIV id=eWebEditor_Temp_HTML 
  332. style="VISIBILITY: hidden; OVERFLOW: hidden; WIDTH: 1px; POSITION: absolute; HEIGHT: 1px"></DIV>
  333. <FORM id=eWebEditor_UploadForm 
  334. action="upload.asp?action=remote&type=remote&style=s_newssystem" 
  335. method=post target=eWebEditor_UploadTarget><INPUT type=hidden 
  336. name=eWebEditor_UploadText> </FORM><IFRAME name=eWebEditor_UploadTarget 
  337. src="about:blank" width=0 height=0></IFRAME>
  338. <DIV id=divProcessing 
  339. style="DISPLAY: none; WIDTH: 200px; POSITION: absolute; HEIGHT: 30px">
  340. <TABLE height="100%" cellSpacing=1 cellPadding=0 width="100%" bgColor=#000000 
  341. border=0>
  342.   <TBODY>
  343.   <TR>
  344.     <TD bgColor=#3a6ea5>
  345.       <MARQUEE style="FONT-SIZE: 9pt" scrollAmount=5 behavior=alternate 
  346.       align="middle"><FONT 
  347.   color=#ffffff>...远程文件收集中...请等待...</FONT></MARQUEE></TD></TR></TBODY></TABLE></DIV></BODY></HTML>