Js|mysql Webmaster Management page is established: This page can be viewed and deleted from other people's messages.
The structure is similar to board.jsp, except that a single check box is added to each message to facilitate deletion:
<title> Expert Message Board </title>
<body>
<% @page import= "java.sql.*"%>
<% @page contenttype= "text/html;charset=gb2312"%>
<% @include file= "opendata.jsp"%>
<%
int Count=0,lastp,numf,numl,prep,nextp,pageno;
if (Request.getparameter ("PageNo") ==null)
{
pageno=0;
}
Else
Pageno=integer.parseint (Request.getparameter ("PageNo"));
Sql= "SELECT * from Message";
Rs=smt.executequery (SQL);
while (Rs.next ())
count++;
lastp= (int) Math.ceil (double) COUNT/5);
if (pageno==0| | PAGENO>LASTP)
PAGENO=LASTP;
numf=pageno*5-4;
numl=numf+4;
if (pageno==1)
Prep=1;
Else
Prep=pageno-1;
if (PAGENO==LASTP)
NEXTP=LASTP;
Else
nextp=pageno+1;
Sql= "SELECT * from message where ID between" +numf+ "and" +NUML;
Rs=smt.executequery (SQL);
%>
<font size=7 color=green> expert message Board </font>
<font color= #008080 > Webmaster use screen </font>
<center>
<form action=board.jsp method=post>
<table boder=0>
<tr>
<td> Current page: <font size=2 color=red><%=pageno%></font>/<font color=blue><%=lastp% ></font></td>
<td><a href=manager.jsp?pageno=<%=prep%>>[prev]</a></td>
<td><a href=manager.jsp?pageno=<%=nextp%>>[Next Page]</a></td>
<td><a href=manager.jsp?pageno=1>[First Page]</a></td>
<td><a href=manager.jsp>[last page]</a></td>
<td> Input page times <input type=text size=3 name=pageno></td>
<td><input type=submit name=send value= send out ></td>
<td><a href=password.jsp><font color=red size= "5" >
<i> Station Drill </i></font></a></td>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service