📄 edit.jsp
字号:
<%@page contentType="text/html;charset=GBK"%>
<%@page import="net.ijsp.news.news.*,
net.ijsp.news.util.*"%>
<%
/**
* Title 新闻录入界面
* @author: ccjsmile
* Company: http://www.ijsp.net
* Copyright: Copyright (c) 2003
* @version 1.0 beta
*/
%>
<%@include file="getsession.jsp"%>
<HTML>
<HEAD>
<TITLE>编辑界面</TITLE>
<LINK REL="stylesheet" TYPE="text/css" HREF="../inc/admin.css">
<script language=JavaScript src="../inc/edit.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></HEAD>
<body leftmargin="0" topmargin="0" onload="return window_onload()">
<FIELDSET
style="PADDING-RIGHT: 0px; BACKGROUND: buttonface; PADDING-LEFT: 0px; MARGIN-BOTTOM: 3px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px">
<table width="100%" height=30 border="0" cellpadding="0" cellspacing="0" bgColor=buttonface>
<tr>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=EditFont(20) onmouseout ="return But_onmouseout(this)" alt=打印 src="../images/print.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=EditFont(16) onmouseout ="return But_onmouseout(this)" alt=撤销 src="../images/undo.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=EditFont(17) onmouseout ="return But_onmouseout(this)" alt=恢复 src="../images/redo.gif" width="20" height="20" ></div></td>
<td width="64%"><div align="center">
<select name=SelFontType size=1 onchange="return SelFontType_onchange()" style="FONT-SIZE: 12px">
<option value="" selected>字体</option>
<option value="宋体">宋体</option>
<option value="黑体">黑体</option>
<option value="楷体_GB2312">楷体</option>
<option value="仿宋_GB2312">仿宋</option>
<option value="MS Song">MS宋体</option>
<option value="MS Hei">MS黑体</option>
<option value="MingLiU">MingLiU</option>
<option value="Arial">Arial</option>
<option value="Arial Black">Arial Black</option>
<option value="Arial Narrow">Arial Narrow</option>
<option value="Bradley Hand ITC">Bradley Hand ITC</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="Viner Hand ITC">Viner Hand ITC</option>
<option value="Verdana">Verdana</option>
<option value="Wide Latin">Wide Latin</option>
<option value="Wingdings">Wingdings</option>
</select>
<select name=SelFontSize size=1
onchange="return SelFontSize_onchange()" style="FONT-SIZE: 12px">
<option value="2">缺省</option>
<option value="1">一号</option>
<option value="2">二号</option>
<option value="3">三号</option>
<option value="4">四号</option>
<option value="5">五号</option>
<option value="6">六号</option>
<option value="7">七号</option>
<option value="2" selected>字号</option>
</select>
<select name=SelFontColor size=1 onchange="return SelFontColor_onchange()" style="FONT-SIZE: 12px">
<option value="">缺省</option>
<option value="red" style="BACKGROUND-COLOR: red">红色</option>
<option value="blue" style="BACKGROUND-COLOR: blue">蓝色</option>
<option value="green" style="BACKGROUND-COLOR: green">绿色</option>
<option value="yellow" style="BACKGROUND-COLOR: yellow">黄色</option>
<option value="pink" style="BACKGROUND-COLOR: pink" >粉红</option>
<option value="cyan" style="BACKGROUND-COLOR: cyan">天青</option>
<option value="white" style="BACKGROUND-COLOR: white">白色</option>
<option value="darkred" style="BACKGROUND-COLOR: darkred">深红</option>
<option value="darkblue" style="BACKGROUND-COLOR: darkblue">深蓝</option>
<option value="darkgreen" style="BACKGROUND-COLOR: darkgreen">深绿</option>
<option value="Goldenrod" style="BACKGROUND-COLOR: Goldenrod">土黄</option>
<option value="darkcyan" style="BACKGROUND-COLOR: darkcyan">蓝绿</option>
<option value="gray" style="BACKGROUND-COLOR: gray">浅灰</option>
<option value="black" style="BACKGROUND-COLOR: black">黑色</option>
<option value="" selected>字色</option>
</select>
<select name=SelBackColor size=1 onchange="return SelBackColor_onchange()" style="FONT-SIZE: 12px" >
<option value="">缺省</option>
<option value="red" style="BACKGROUND-COLOR: red">红色</option>
<option value="blue" style="BACKGROUND-COLOR: blue">蓝色</option>
<option value="green" style="BACKGROUND-COLOR: green">绿色</option>
<option value="yellow" style="BACKGROUND-COLOR: yellow">黄色</option>
<option value="pink" style="BACKGROUND-COLOR: pink" >粉红</option>
<option value="cyan" style="BACKGROUND-COLOR: cyan">天青</option>
<option value="white" style="BACKGROUND-COLOR: white">白色</option>
<option value="darkred" style="BACKGROUND-COLOR: darkred">深红</option>
<option value="darkblue" style="BACKGROUND-COLOR: darkblue">深蓝</option>
<option value="darkgreen" style="BACKGROUND-COLOR: darkgreen">深绿</option>
<option value="Goldenrod" style="BACKGROUND-COLOR: Goldenrod">土黄</option>
<option value="darkcyan" style="BACKGROUND-COLOR: darkcyan">蓝绿</option>
<option value="gray" style="BACKGROUND-COLOR: gray">浅灰</option>
<option value="black" style="BACKGROUND-COLOR: black">黑色</option>
<option value="" selected>字体背景色彩</option>
</select>
</div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=EditFont(1) onmouseout ="return But_onmouseout(this)" alt=加粗 src="../images/bold.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=EditFont(2) onmouseout ="return But_onmouseout(this)" alt=斜体 src="../images/italic.gif" width="16" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=EditFont(3) onmouseout ="return But_onmouseout(this)" alt=下划线 src="../images/under.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=InsertUrl() onmouseout ="return But_onmouseout(this)" alt=插入链接 src="../images/wlink.gif" width="20" height="20" ></div></td>
</tr>
</table>
<hr height=1 width=100%>
<table width="100%" height=30 border="0" cellpadding="0" cellspacing="0" bgColor=buttonface>
<tr>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=InsertTable() onmouseout ="return But_onmouseout(this)" alt=插入表格 src="../images/table.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=EditFont(4) onmouseout ="return But_onmouseout(this)" alt=剪切 src="../images/cut.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=EditFont(5) onmouseout ="return But_onmouseout(this)" alt=复制 src="../images/copy.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=EditFont(6) onmouseout ="return But_onmouseout(this)" alt=粘贴 src="../images/paste.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=EditFont(7) onmouseout ="return But_onmouseout(this)" alt=左对齐 src="../images/aleft.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=EditFont(8) onmouseout ="return But_onmouseout(this)" alt=居中 src="../images/center.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=EditFont(9) onmouseout ="return But_onmouseout(this)" alt=右对齐 src="../images/aright.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=EditFont(10) onmouseout ="return But_onmouseout(this)" alt=编号 src="../images/nlist.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=EditFont(11) onmouseout ="return But_onmouseout(this)" alt=项目符号 src="../images/blist.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=EditFont(12) onmouseout ="return But_onmouseout(this)" alt=减少缩进量 src="../images/ileft.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=EditFont(13) onmouseout ="return But_onmouseout(this)" alt=增加缩进量 src="../images/iright.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=EditFont(14) onmouseout ="return But_onmouseout(this)" alt=下标 src="../images/subscript.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=EditFont(15) onmouseout ="return But_onmouseout(this)" alt=上标 src="../images/superscript.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=circle("left") onmouseout ="return But_onmouseout(this)" alt=左环绕 src="../images/alignleft.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=circle("texttop") onmouseout ="return But_onmouseout(this)" alt=居中环绕 src="../images/aligncenter.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=circle("right") onmouseout ="return But_onmouseout(this)" alt=右环绕 src="../images/alignright.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=DivSeg() onmouseout ="return But_onmouseout(this)" alt=分页 src="../images/divseg.gif" width="20" height="20" ></div></td>
<td width="4%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=InsertImg() onmouseout ="return But_onmouseout(this)" alt=插入图片 src="../images/img.gif" width="20" height="20" ></div></td>
<td width="6%"><div align="center"><IMG onmouseup="return But_onmouseup(this)" onmousedown="return But_onmousedown(this)" onmouseover="return But_onmouseover(this)" onclick=InsertMul() onmouseout ="return But_onmouseout(this)" alt=插入多媒体 src="../images/media.gif" width="27" height="20" ></div></td>
</tr>
</table>
</FIELDSET>
<%
int id = ParamUtils.getInt(request,"id",0);
if(id==0)
throw new Exception("<li>请指定栏目的ID。");
%>
<form name=form2 method=post action=saveedit.jsp>
<center>
<table width="100%">
<input type="hidden" name="id" value=<%=id%>>
<tr>
<td width="10%">标题</td>
<td><input type="text" name="subject" size="60"></td>
</tr>
<tr>
<td width="10%">作者</td>
<td><input type="text" name="author" size="20"></td>
</tr>
<tr>
<td width="10%">摘自</td>
<td><input type="text" name="from" size="30"></td>
</tr>
</table>
<table width="100%">
<tr><td width="10%">内容</td>
<td><IFRAME width="98%" name=contentframe height="270" onfocus="SetEdit(this)" marginWidth=1 marginHeight=1 scrolling=yes></IFRAME></td></tr></table>
<textarea name=content style="display:'none'" rows="1" cols="20"></textarea>
<center>
<INPUT type="button" value="Design" name=visualedit onclick="EditConVis()" class="ButtonStyle" style="cursor:hand;background-Color:#C8D2EC" disabled>
<INPUT type="button" value="Source" name=viewcode onclick="EditConCode()" class="ButtonStyle" style="cursor:hand">
<INPUT type="button" value=" 提 交 " class="ButtonStyle" onclick="Form2Submit()">
</center>
</form>
</center>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -