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

📄 release.jsp

📁 JSP购物车(SQLserver版) ================== 简单的JSP电子商务网站购物车 带结算功能,带注册系统 大二时自己编写的,供大家参考学习 功能不是很详尽,美工
💻 JSP
字号:
<%@ page language="java" contentType="text/html;charset=UTF-8" %><%@ include file="../inc/common.jsp" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>${basic.name}后台管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<club:html type="css" />
<style>.tabform th{width:200px;}</style>
<script type="text/javascript" src="../scripts/common.js"></script>
<script type="text/javascript">
var iv;
var i = 0;
function ReleaseJob(act){
	i = 0;
	clearInterval(iv);
	iv = setInterval("process()",2000);
	if(act==undefined){
		act = c.o("act").value;
	}
	var params = "act="+act;
	params += "&createAll="+ c.o("createAll").checked;
	params += "&forumId="+c.o("forumId").value;
	params += "&r="+new Date().getTime();
	myxmlhttp = CreateXmlHttpReq(xmlHttpHandler);
	XmlHttpPOST(myxmlhttp, "admin.do",params);
}
function xmlHttpHandler(){
	if (myxmlhttp.readyState !=4 ) {
		return;
	}
	var html = myxmlhttp.responseText;
	c.p('qwSubmit',false);
}
function stateColor(r){
	if(r){
		r = "<font class=\"red\">"+r+"</font>";
	}
	return r;
}
function pxmlHttpHandler(){
	if (myxmlhttp.readyState !=4 ) {
		return;
	}
	var text = myxmlhttp.responseText;
	var rs = text.parseJSON(); 
	var indexRunning = stateColor(rs["indexRunning"]);
	var listRunning = stateColor(rs["listRunning"]);
	var pageRunning = stateColor(rs["pageRunning"]);
	c.setHtml("indexRunning",indexRunning);
	c.setHtml("listRunning",listRunning);
	c.setHtml("pageRunning",pageRunning);
	c.setHtml("lastUrl",rs["lastUrl"]);
}
function process(){
	var params = "act=getReleaseState";
	params += "&r="+new Date().getTime();
	myxmlhttp = CreateXmlHttpReq(pxmlHttpHandler);
	XmlHttpGET(myxmlhttp, "admin.do?"+params);
}
</script>
</head>
<body>
<div id="wrap">
<div class="sitemap"><ul><li>您的位置:</li><li>后台管理&gt;&gt;</li><li><h3>将社区文章发布成静态页</h3></li></ul></div><%
ForumJsp forumJsp = new ForumJsp(request,response);
%><%@ include file="../inc/msgHint.jsp" %>
<div class="sidebar gform">
<table class="tabform">
<tbody>
<tr>
<th scope="row">任务状态:</th>
<td>
首页发布:<span id="indexRunning"></span>
<br/>
列表发布:<span id="listRunning"></span>
<br/>
内容发布:<span id="pageRunning"></span>
<br/>
最后读取:<span id="lastUrl"></span>
<br/>
</td>
</tr>
<tr>
<th scope="row">任务类型:</th>
<td>
<select name="act" id="act">
<option value="releaseIndex" selected>发布首页</option>
<option value="releaseList">发布列表页</option>
<option value="releasePages">发布内容页</option>
</select>
</td>
</tr>
<tr>
<th scope="row">选择版面:</th>
<td>
<select name="forumId" id="forumId">
<option value="0" selected>全部版面</option>
<%java.util.List flist = forumJsp.findAll();
for(int i=0; i<flist.size(); i++){
	com.yeqiangwei.club.view.model.ForumView item = (com.yeqiangwei.club.view.model.ForumView)flist.get(i);
	out.print("<option value=\"");
	out.print(item.getForumId());
	out.print("\"");
	out.print(">");%><club:html type="indent" indent="<%=item.getLayer()*4%>"/><%
	out.print(item.getForumName());
	out.print("</option>");
}%>
</select>
</td>
</tr>
<tr>
<th scope="row">任务类型:</th>
<td>
<input type="checkbox" name="createAll" id="createAll" value="true" />完全发布
</td>
</tr>
<tr>
<th scope="row"></th>
<td class="t_end">
<input type="button" name="qwSubmit" id="qwSubmit" value="启动发布任务" onclick="ReleaseJob();c.p('qwSubmit',true);"/>
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" name="qwSubmit_" id="qwSubmit_" value="停止发布任务" onclick="ReleaseJob('releaseStopAll');c.p('qwSubmit_',true);"/>
</td>
</tr>
</tbody>
</table>
<script type="text/javascript">iv = setInterval("process()",2000);</script>
</div>
</body>
</html>
<!-- Powered by www.YeQiangWei.com -->

⌨️ 快捷键说明

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