📄 bginformation.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%
if(session.getAttribute("userInfo") == null){
response.sendRedirect(request.getContextPath() + "/login.jsp");
}
%>
<html>
<head>
<style type="text/css">
td img {display: block;}body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(../images/bei.gif);
}
.bai25 {
font-family: "宋体";
font-size: 12px;
line-height: 25px;
font-weight: bold;
color: #FFFFFF;
}
</style>
<!--Fireworks 8 Dreamweaver 8 target. Created Wed Sep 05 13:51:49 GMT+0800 2007-->
<link href="<%=request.getContextPath() %>/jsp/css/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
a:link {
color: #666666;
text-decoration: none;
}
a:visited {
color: #666699;
text-decoration: none;
}
a:hover {
color: #003399;
text-decoration: none;
}
a:active {
color: #FF0000;
text-decoration: none;
}
-->
</style>
<script type="text/javascript">
var filePath = "filePath";
var index = 1;
/**
*添加上传文件控件暂时没有使用
*/
function addFile()
{
var tr=document.createElement("TR");
var td1=document.createElement("TD");
var td2=document.createElement("TD");
var td3=document.createElement("TD");
td1.className="message";
td1.nowrap=true;
td1.align="right";
td2.className="message";
td2.nowrap=true;
td3.className="message";
td3.nowrap=true;
td2.innerHTML="<input type=\"file\" name=\""+filePath+"\("+index+"\)"+"\" size=\"65\" id=\""+filePath+"\("+index+"\)"+"\"/>";
td3.align="right";
td3.innerHTML="<input type=\"button\" onclick=\"delFile(this)\""+"value=\"删除\"/>";
td3.align="left";
var oDiv = document.getElementById("fileBlock");
tr.appendChild(td1);
tr.appendChild(td2);
tr.appendChild(td3);
oDiv.appendChild(tr);
index++;
}
function delFile(obj)
{
var oDiv1 = obj.parentNode;
var oDiv = oDiv1.parentNode;
var fileBlock = document.getElementById("fileBlock");
fileBlock.removeChild(oDiv);
}
</script>
<script language="javascript">
function subchk()
{
if(document.all("title").value==""){
alert("标题不能为空!");
document.all("title").focus();
return;
}
document.insertForm.content.value = eWebEditor1.getHTML();
document.insertForm.submit();
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
<script language="JavaScript" src="<%=request.getContextPath() %>/jsp/js/Calendar.js"></script>
<table width="500 border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<jsp:include flush="true" page="../include/backTop.jsp" />
</tr>
<tr>
<td height="1000" colspan="2" align="center" valign="top" bgcolor="#FFFFFF">
<table height="500" width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<form action="<%=request.getContextPath() %>/inforadd.do" method="post" name="insertForm">
<input type="hidden" name="content" >
<tr>
<td>
<tr>
<td height="26" align="right" valign="center" class="css"><div align="right">浏览者:</div></td>
<td colspan="3" valign="center" class="css" align="left"><p>
<select name="newrole" style='width: 160'>
<option value="0">所有用户</option>
<option value="7">省(区、市)用户</option>
<option value="1")>中心城市</option>
</select>
</p></td>
</tr>
<tr>
<td height="26" align="right" valign="center" class="css"><div align="right">标题:</div></td>
<td colspan="3" valign="center" class="css"><div align="left">
<input name="title" type="text" id="title" style="width:400"/>
</div></td>
</tr>
<tr>
<td align="right" valign="top" class="css"><div align="right">内容:</div></td>
<td colspan="3" valign="top" class="css" align="left">
<INPUT type="hidden" name="content1" value="">
<IFRAME ID="eWebEditor1" src="<%=request.getContextPath() %>/eWebEditor.jsp?id=content1&style=standard" frameborder="0" scrolling="no" width="650" height="350"></IFRAME>
</td>
</tr>
<tr align="middle">
<td height="30" colspan="4" class="css"><input name="button" type="button" class="unnamed5" onClick="javascript:history.go(-1)" value=" 返 回 " />
<input class="unnamed5" type="button" value=" 上 传 " name="Submit" onClick="return subchk();"/>
</td>
</tr>
</form>
<tr>
<jsp:include flush="true" page="../include/foot.jsp" />
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -