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

📄 addarticle.jsp

📁 eNews新闻发布系统 JSP+Struts+JSTL+EL+mysql
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ taglib uri="/aqu" prefix="aqu" %>
<%@ page contentType="text/html;charset=gb2312"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<jsp:useBean id="sort" class="com.v246.NoLevelSort" scope="page"/>
<c:set value="${aqu:getUrl()}/admin/login.jsp" var="url"/>
<c:if test="${sessionScope.admin==null||sessionScope.admin!='yes'}">
	<c:redirect url="${url}"/>
</c:if>
<html>
<head>
<title>文章管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="/css/Admin_Style.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="2" topmargin="0" marginheight="0" marginwidth="0">
<table class="border" align="center" border="0" cellpadding="2" cellspacing="1" width="100%">
  <tbody>
    <tr class="topbg"> 
      <td colspan="6" align="center" height="22"><strong>文章中心管理----</strong>添加文章</td>
    </tr>
    <tr class="tdbg"> 
      <td height="30" width="70"><strong>管理导航:</strong></td>
      <td colspan="5"><a href="http://www.v246.com/Admin/Admin_Article.asp?ChannelID=1&amp;Passed=All">文章管理首页</a>&nbsp;|&nbsp;<a href="http://www.v246.com/Admin/Admin_Article.asp?ChannelID=1&amp;Action=Add&amp;AddType=1&amp;ClassID=0&amp;SpecialID=0">添加文章(简洁模式)</a>&nbsp;|&nbsp;<a href="http://www.v246.com/Admin/Admin_Article.asp?ChannelID=1&amp;Action=Add&amp;AddType=2&amp;ClassID=0&amp;SpecialID=0">添加文章(高级模式)</a>&nbsp;|&nbsp;<a href="http://www.v246.com/Admin/Admin_Article.asp?ChannelID=1&amp;ManageType=Check&amp;Passed=False">审核文章</a>&nbsp;|&nbsp;<a href="http://www.v246.com/Admin/Admin_Article.asp?ChannelID=1&amp;ManageType=Special">专题文章管理</a>&nbsp;|&nbsp;<a href="http://www.v246.com/Admin/Admin_Article.asp?ChannelID=1&amp;ManageType=Recyclebin&amp;Passed=All">文章回收站管理</a></td>
    </tr>
  </tbody>
</table>
<script language="JavaScript">
function AddItem(strFileName){
  var arrName=strFileName.split('.');
  var FileExt=arrName[1];
  if (FileExt=='gif'||FileExt=='jpg'||FileExt=='jpeg'||FileExt=='jpe'||FileExt=='bmp'||FileExt=='png'){
      if(document.myform.IncludePic.selectedIndex<2){
        document.myform.IncludePic.selectedIndex+=1;
      }
  frmPreview.img.src='/Article/UploadFiles/'+strFileName;
  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=2;
}
function rUseLinkUrl(){
  if(document.myform.UseLinkUrl.checked==true){
    document.myform.LinkUrl.disabled=false;
     ArticleContent.style.display='none';
     ArticleContent2.style.display='none';
     ArticleContent3.style.display='none';
  }
  else{
    document.myform.LinkUrl.disabled=true;
    ArticleContent.style.display='';
    ArticleContent2.style.display='';
    ArticleContent3.style.display='';
  }
}
function CheckForm(){
  if (document.myform.classID.value==''){
    alert('文章所属栏目不能指定为外部栏目!');
    document.myform.classID.focus();
    return false;
  }
  if (document.myform.classID.value=='0'){
    alert('指定的栏目不允许添加文章!只允许在其子栏目中添加文章。');
    document.myform.classID.focus();
    return false;
  }
  if (document.myform.title.value==''){
     alert('文章标题不能为空!');
     document.myform.title.focus();
     return false;
  }
  if (document.myform.keyword.value==''){
     alert('关键字不能为空!');
     document.myform.keyword.focus();
     return false;
  }
  if(document.myform.useLinkUrl.checked==true){
    if (document.myform.linkUrl.value==''||document.myform.LinkUrl.value=='http://'){
      alert('请输入转向链接的地址!');
      document.myform.linkUrl.focus();
      return false;
    }
  }
  else{
    if (document.myform.content.value==''){
      alert('文章内容不能为空!');
      document.content.focus();
      return false;
    }
  }
  return true;  
}
</script>
<form method="post" name="myform" onsubmit="return CheckForm();" action="./addArticle.do" target="_self">
  <table class="border" align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
    <tbody>
      <tr class="title"> 
        <td align="center" height="22"><b>添加文章(高级模式)</b>----输入内容</td>
      </tr>
      <tr align="center"> 
        <td> <table border="0" cellpadding="2" cellspacing="1" width="100%">
            <tbody>
              <tr class="tdbg"> 
                <td align="right" width="120"><strong>所属栏目:</strong></td>
                <td> <select name="classID" id="classID">
					<c:forEach var="noLevelSort" items="${sort.coll}">
            		<OPTION value=${noLevelSort.id}>${noLevelSort.title}</OPTION>
            		</c:forEach>
                   
                  </select> &nbsp;&nbsp;&nbsp;&nbsp;<font color="#ff0000"><strong>注意:</strong></font> 
                  <font color="#0000ff">不能指定为外部栏目</font> </td>
              </tr>
              <tr class="tdbg"> 
                <td align="right" width="120"><strong>所属专题:</strong></td>
                <td><select name="specialID" id="specialID">
                    <option value="0" selected>不属于任何专题</option>
                  </select></td>
              </tr>
              <tr class="tdbg"> 
                <td align="right" width="120"><strong>文章标题:</strong></td>
                <td> <table border="0" cellpadding="0" cellspacing="2" width="100%">
                    <tbody>
                      <tr> 
                        <td width="64">简短标题:</td>
                        <td> <select name="includePic" id="includePic">
                            <option value="0" selected="selected"> </option>
                            <option value="1">[图文]</option>
                            <option value="2">[组图]</option>
                            <option value="3">[推荐]</option>
                            <option value="4">[注意]</option>
                          </select> 
                          <input name="title" id="title" value="" size="44" maxlength="255" type="text"> 
                          <font color="#ff0000">*</font> <select name="titleFontColor" id="titleFontColor">
                            <option value="0" selected>颜色</option>
                            <option value="0">默认</option>
                            <option value="#000000"></option>
                            <option value="#FFFFFF"></option>
                            <option value="#008000"></option>
                            <option value="#800000"></option>
                            <option value="#808000"></option>
                            <option value="#000080"></option>
                            <option value="#800080"></option>
                            <option value="#808080"></option>
                            <option value="#FFFF00"></option>
                            <option value="#00FF00"></option>
                            <option value="#00FFFF"></option>
                            <option value="#FF00FF"></option>
                            <option value="#FF0000"></option>
                            <option value="#0000FF"></option>
                            <option value="#008080"></option>
                          </select> 
                          <select name="titleFontType" id="titleFontType">
                            <option value="0" selected="selected">字形</option>
                            <option value="1">粗体</option>
                            <option value="2">斜体</option>
                            <option value="3">粗+斜</option>
                            <option value="0">规则</option>
                          </select> </td>
                      </tr>
                      <tr> 
                        <td width="64">完整标题:</td>
                        <td><input name="titleIntact" id="titleIntact" value="" size="80" maxlength="500" type="text"></td>
                      </tr>

⌨️ 快捷键说明

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