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

📄 publish_buttom.jsp

📁 又一个新闻发布系统,jsp开发的,想和大家交流一下
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ include file = "config.jsp" %>
<%@ page contentType="text/html;charset=GBK"%>
<jsp:useBean id="managerNews" scope="page" class="cwcNews.managerNews"/>
<jsp:useBean id="admin" class="cwcNews.admin"/>
<%
admin.gotoLogin(response,session,"login.jsp");
admin.checkSupperAdmin(request,response,tb_news_visit_limit_tmp,"publish_buttom.jsp","not_super_admin.jsp");								//检查权限
%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
td {  font-size: 9pt}
a {  color: #000000; text-decoration: none}
a:hover {  text-decoration: underline}
.tx {  height: 16px; width: 30px; border-color: black black #000000; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px; font-size: 9pt; background-color: #eeeeee; color: #0000FF}
.bt {  font-size: 9pt; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; height: 16px; width: 80px; background-color: #eeeeee; cursor: hand}
.tx1 { height: 20px; width: 30px; font-size: 9pt; border: 1px solid; border-color: black black #000000; color: #0000FF}
-->
</style>
<script language="JavaScript" src="common.js"></script>
<script language="JavaScript">
function save(bodyHtml) {
	if (document.all.form1.topic.value == "") {
		alert ("请填写新闻主题!");
		document.all.form1.topic.focus();
		return(false);
	}
	if (document.all.form1.source.value == "") {
		alert ("请填写来源!");
		document.all.form1.source.focus();
		return(false);
	}
	if (document.all.form1.keywords.value == "") {
		alert ("请填写关键字!");
		document.all.form1.keywords.focus();
		return(false);
	}
	document.form1.content.value = bodyHtml;
	document.form1.submit();
}


function Click(){ 
	window.event.returnValue=false; 
} 
document.oncontextmenu=Click; 
</script>
<SCRIPT LANGUAGE=javascript>
var isHTMLMode=false;
function window_onload(isHTMLMode) {
           if (isHTMLMode)
       idEdit = idContent1.DOM.parentWindow;
        else {
                idContent1.document.designMode="On";
                idEdit = idContent1;
        }
        idEdit.document.open();
        idEdit.document.write("");
        idEdit.document.close();
        idEdit.document.body.innerHTML='';					//可以写入默认值
}

function format(what,opt) {
 if (isHTMLMode){alert("Please uncheck 'Edit HTML'");return;}
 if (opt=="removeFormat"){
   what=opt;opt=null;
 }
 if (opt=="CustomFont")
        opt = prompt("Format your text with what font face?","Geneva, Arial, Sans-Serif");
 if ((opt=="") && (what=="forecolor"))
        opt = prompt("Format your text with what color?","Black");
 if (!isHTMLMode) {
   if (opt==null)
     idContent1.document.execCommand(what);
   else
     idContent1.document.execCommand(what,"",opt);
   var s=idContent1.document.selection.createRange(),p=s.parentElement();
   idContent1.focus();
 }
 sel=null;
}

function cmdExec(cmd,opt)
    {
      if (isHTMLMode){alert("Please uncheck 'Edit HTML'");return;}
      idContent1.document.execCommand(cmd,"",opt);idContent1.focus();
    }
function eButton(cmdButton, buttonval){
   //----- Controls Button Behaviors ------
   if (buttonval == "over"){
      cmdButton.style.backgroundColor = "threedhighlight";
      cmdButton.style.borderColor = "threeddarkshadow threeddarkshadow threeddarkshadow threeddarkshadow";}
   else if (buttonval == "out"){
      cmdButton.style.backgroundColor = "threedface";
      cmdButton.style.borderColor = "threedface";}
   else if (buttonval == "down"){
      cmdButton.style.backgroundColor = "threedlightshadow";
      cmdButton.style.borderColor = "threedshadow threedshadow threedshadow threedshadow";}
   else if (buttonval == "up"){
      cmdButton.style.backgroundColor = "threedhighlight";
      cmdButton.style.borderColor = "threedshadow threedshadow threedshadow threedshadow";
      cmdButton = null};
   else{
      return;}
      }
  function backColor()
{
   var bColor=showModalDialog("editor.php?page=color","","dialogWidth:140px; dialogHeight:120px" );
   if (bColor != null)
   {
      idContent1.document.execCommand("BackColor", false, bColor);
      }
   idContent1.focus();
   }
function setMode(bMode)
    {
    var sTmp;
      isHTMLMode = bMode;
      if (isHTMLMode){sTmp=idContent1.document.body.innerHTML;idContent1.document.body.innerText=sTmp;}
    else {sTmp=idContent1.document.body.innerText;idContent1.document.body.innerHTML=sTmp;}
      idContent1.focus();
    }
function createLink()
    {
    if (isHTMLMode){alert("Please uncheck 'Edit HTML'");return;}
    cmdExec("CreateLink");
    }
//插入表格
function fortable()
{
  if (isHTMLMode){alert("Please uncheck 'Edit HTML'");return;}
  var arr = showModalDialog("table.htm", "", "dialogWidth:17.5em; dialogHeight:7.8em; status:0");

  if (arr != null){
  var ss;
  ss=arr.split("*");
  row=ss[0];
  col=ss[1];
  border=ss[2];
  var string;
  string="<table border=1>";
  for(i=1;i<=row;i++){
  string=string+"<tr>";
  for(j=1;j<=col;j++){

⌨️ 快捷键说明

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