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

📄 edit.jsp

📁 LyNews凌云新闻系统
💻 JSP
📖 第 1 页 / 共 2 页
字号:
          <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%">&nbsp;</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%">&nbsp;</td>
    <td width="4%">&nbsp;</td>
    <td width="6%">&nbsp;</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>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="100%">
  <TR>
    <TD height=20>
      ※您现在的位置:<%=boardParentName%> →  <a href="list.jsp?boardParentID=<%=boardParentID%>&boardID=<%=boardID%>"><%=boardName%></a> → 新闻发布 </FONT>
    </TD>
  </TR>
</TABLE>
<form name=form2 method=post action=saveedit.jsp>
<center>
<table width="100%">
<input type="hidden" name="boardParentID" value=<%=boardParentID%>>
<input type="hidden" name="boardID" value=<%=boardID%>>
<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" value="<%=sessionUser.getUsername()%>"></td>
</tr>
<tr>
   <td width="10%">摘自</td>
   <td><input type="text" name="from" size="30"></td>
</tr>
<tr>
   <td width="10%">级别</td>
   <td>
     <select name=top>
       <option value="0">0级(默认)</option>
       <option value="1">1级(较轻)</option>
       <option value="2">2级(中等)</option>
       <option value="3">3级(最重)</option>
     </select>
   </td>
</tr>
<tr>
   <td>图片</td>
   <td>
    <select name=pic>
<%
Iterator iterator=uploadFactory.list(pages,e);

while(iterator.hasNext()) {
  Upload upload = (Upload)iterator.next();
  Date date = new Date(upload.getSaveAt());
  SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm");
  String dateString = formatter.format(date);
  StringBuffer picInfo=new StringBuffer();
  int width=upload.getWidth(),
      height=upload.getHeight(),
      border=upload.getBorder();
  String alt=upload.getAlt(),
         link=upload.getLink(),
         position=upload.getPosition(),
         fileName=upload.getFileName(),
         fileNameExt=fileName.substring(fileName.lastIndexOf(".")+1,fileName.length());
  if(!(fileNameExt.equals("jpg") || fileNameExt.equals("gif") || fileNameExt.equals("png") || fileNameExt.equals("bmp")))
    picInfo.append("<a href='../upload/"+fileName+"' target=_blank><img src='../images/unknow.gif' width=16 height=16></a>");
  else {
    if(!link.equals(""))
      picInfo.append("<a href='"+link+"' target=_blank>");
    picInfo.append("<img src='../upload/"+fileName+"'");
    if(width!=0)
      picInfo.append(" width="+width);
    if(height!=0)
      picInfo.append(" height="+height);
    picInfo.append(" border="+border);
    if(!position.equals(""))
      picInfo.append(" align="+position);
    if(!alt.equals(""))
      picInfo.append(" alt='"+alt+"'");
    picInfo.append(">");
    if(!link.equals(""))
      picInfo.append("</a>");
  }
  
  out.println("<option value=\""+picInfo+"\">"+upload.getFileName()+"("+dateString+")</option>");
}
%>
     </select>
     <input type=button name=preview value="预览" onClick="pic_preview()">
     <input type=button name=insert value="插入" onClick="pic_insert()">
   </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> &nbsp;&nbsp;
<INPUT type="button" value="Source" name=viewcode onclick="EditConCode()" class="ButtonStyle" style="cursor:hand"> &nbsp;&nbsp;
<INPUT type="button" value="提 交" class="ButtonStyle" onclick="Form2Submit()"> 
</center>
</form>
</center>
</body>
</HTML>

⌨️ 快捷键说明

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