WebRoot/admin/compositionadd.jsp

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="t.o.bean.randomno" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
	if(session.getAttribute("adminName")==null){
	response.getWriter().write("<script language='JavaScript'>" +
			"window.open('login.jsp',target='_top');" + 
			"</script>"
			);
	}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<script type="text/javascript" src="..\fckeditor\fckeditor.js"></script>
<script type="text/javascript" src="..\My97DatePicker\WdatePicker.js"></script>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'compositionadd.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
    <LINK href="admin/css/admin.css" type="text/css" rel="stylesheet">
	<script type="text/javascript">
	     window.onload = function(){
       		var oFCKeditor = new FCKeditor( 'content' ) ;
        	oFCKeditor.BasePath = "<%=basePath%>/fckeditor/" ;
        	oFCKeditor.Height = 500 ; // 400 pixels 
        	oFCKeditor.Width= 650;
        	oFCKeditor.ReplaceTextarea() ;      
        }     
        function check(){
        	var o_no = document.getElementById("c_no").value;
        	var o_title = document.getElementById("c_title").value;
        	var o_type = document.getElementById("c_type").value;
        	var o_date = document.getElementById("d12").value;
        	var content =FCKeditorAPI.GetInstance("content").GetXHTML();
        	if(o_title==""){
        		alert("文章标题不能为空!!");
        	}
        	else if(o_type==""){
        		alert("文章类型未选择!!");
        	}
        	else if(o_date==""){
        		alert("日期不能为空!!");
        	}
        	else if(content==""){
        		alert("内容不能为空!!");
        	}
后面还有 26 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。