- 浏览: 4507 次
- 性别:
- 来自: 河北
-
最近访客 更多访客>>
文章分类
最新评论
-
lookingfor:
本人自己用java写的一个文件上传组件,欢迎大家使用和交流。
...
简单文件上传 -
flyeagle:
常常看到这种验证,不过在程序中还没有使用过,所以,没有看过是如 ...
用于生成验证码
jsp 预览
<%@ page contentType="text/html; charset=gb2312" errorPage="" %>
<%@page language="java"%>
<%@page import="java.io.*"%>
<%@page import="java.util.*"%>
<%@page import="java.util.Date"%>
<%@page import="java.sql.*"%>
<%@page import="java.net.*"%>
<%@page import="java.text.*"%>
<%@page import="com.mms.*"%>
<%@ page import="com.jspsmart.upload.*"%>
<%@page import="com.mms.db.ConnSql2000"%>
<%
String copy_tf= request
.getParameter("copytf") != null ? request.getParameter("copytf"): "";
String content_autid=null;
//判断是不是在本页调
String f_beijediao = request.getParameter("bd");
if(f_beijediao==null){
content_autid = request.getParameter("contentinfo_autiding");
session.setAttribute("autiding_session",content_autid);
}else if(f_beijediao.equals("yes")){
}
String content_autiding= (String)session.getAttribute("autiding_session");
if(content_autiding==null){content_autiding="";}
int contentinfo_id = 0;
String businessConfig_name = null;
String contentinfo_subject = null;
String businessConfig_company = null;
String businessConfig_province = null;
String contentinfo_intime = null;
String contentinfo_start_datetime = null;
String contentinfo_end_datetime=null;
String users_name =null;
int contentinfo_autiding =0;
String contentinfo_autiding_string = null;
String usernameYan = (String)session.getAttribute("username");
String plans_mobilenos = null;
String plans_flag = null;
String mobilegroup_mobilecount = null;
//String contentinfo_subject = null;
String strPage = request.getParameter("page");
if (strPage == null || strPage.equals("")) {
strPage = "1";
}
//共几页
int showPage = 0;
int Pagesize = 25;
int Pagecount = 0;
int recordcount = 0;
//链接数据库初始化
ConnSql2000 ConnSql2000 = new ConnSql2000();
Connection conn = null;
Statement stmt = null;
ResultSet rs = null;
String sql = "";
int count = 0;
int count2 = 2;
try {
conn = ConnSql2000.getCon();
stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
}
catch (Exception e) {
System.out.println(e);
}
try {
if(content_autiding.equals("2")){
sql = "select contentinfo_id,businessConfig_name,contentinfo_subject,businessConfig_company,businessConfig_province,contentinfo_intime,users_name,contentinfo_autiding from businessconfig,contentinfo,users where contentinfo_autiding=2 and businessConfig.businessConfig_id = contentinfo.businessConfig_id and contentinfo.users_id = users.users_id order by contentinfo_intime desc";
}else{
sql = "select DISTINCT content.contentinfo_id,businessConfig_name,contentinfo_subject,businessConfig_company,businessConfig_province,contentinfo_intime,contentinfo_start_datetime,contentinfo_end_datetime,users_name,contentinfo_autiding from businessconfig,contentinfo,users,content where businessConfig.businessConfig_id = contentinfo.businessConfig_id and contentinfo.users_id = users.users_id and contentinfo.contentinfo_id=content.contentinfo_id order by contentinfo_intime desc";
}//System.out.println(sql);
rs = stmt.executeQuery(sql);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>MMS手机报管理平台</TITLE>
<META http-equiv=Content-Type content="text/html; charset=GB2312"><LINK
href="images/main.css" type=text/css rel=stylesheet>
<SCRIPT language=JavaScript src="<%=request.getContextPath() %>/images/main.js"
type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript>
function del_contentinfo(id,subject){
window.location = "del_contentinfo.jsp?contentinfo_id="+id+"&contentinfo_subject="+subject;
}
<!--
function openerLocation(url){
var isMSIE= (navigator.appName == "Microsoft Internet Explorer");
if (isMSIE){
parent.dialogArguments.location = url;
//parent.top.opener.location = url;
}else{
parent.opener.document.location = url;
}
//top.close();
}
// -->
function copy_content(contentinfo_id){
var url = "contentinfoadd.jsp?copy_contentinfo_id="+contentinfo_id;
var a = window.open(url,'','width=500,height=400');
a.moveTo((screen.width-500)/2,(screen.height-400)/2);
//window.close();
}
</SCRIPT>
<META content="MSHTML 6.00.2900.3268" name=GENERATOR>
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
</HEAD>
<BODY><!--标题栏开始-->
<TABLE cellSpacing=0 cellPadding=4 width="100%" align=center border=0>
<TBODY>
<TR bgColor=#5a84da>
<TD height=28><span style="FONT-WEIGHT: bold; MARGIN-LEFT: 10px; COLOR: white">计划管理 -
群发计划分组列表</span></TD>
</TR></TBODY></TABLE><!--标题栏结束--><LINK
href="images/hot.css" rel=stylesheet>
<!--菜单栏开始-->
<TABLE class=N id=HMTB cellSpacing=0 cellPadding=0 width="100%" align=center
border=0>
<TBODY>
<TR>
<TD colSpan=2><IMG height=1 src="<%=request.getContextPath() %>/images/spacer.gif"
width="100%"></TD></TR>
<TR>
<TD>
<TABLE class=O cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="WIDTH: 8px"><IMG height=1 src="images/spacer.gif"
width=8></TD>
<TD class=P onmouseover=MO() onmouseout=MU() noWrap><IMG
alt=hspace=1 src="<%=request.getContextPath() %>/images/i.p.cont.group.gif" align=absMiddle
border=0> 计划管理</TD>
<TD width="100%"> </TD></TR></TBODY></TABLE></TD>
<TD style="CURSOR: auto"></TD></TR>
<TR bgColor=#ffffff>
<TD colSpan=2><IMG height=10 src="<%=request.getContextPath() %>/images/spacer.gif"
width="100%"></TD></TR></TBODY></TABLE><!--菜单栏结束--><!-- 数据表格开始-->
<TABLE class=table_databorder cellSpacing=0 cellPadding=0 width="100%"
align=center border=0>
<TBODY>
<TR>
<TD class=table_databorder_bg vAlign=top width="100%">
<TABLE width="100%" align=center border=1 class=table_databorder cellSpacing=0 cellPadding=0 bordercolor="#66CCFF">
<TBODY>
<TR>
<TD colSpan=8 height=1></TD></TR>
<TR bgcolor="#66CCFF">
<TD width="4%"
height=20 align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><B>ID</B></TD>
<TD width="13%"
height=20 align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><strong>业务名称</strong></TD>
<TD width="13%" align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><strong>标题</strong></TD>
<TD width="5%" align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><strong>公司</strong></TD>
<TD width="4%" align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><strong>所在省</strong></TD>
<TD width="13%" align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><B>创建时间</B></TD>
<TD width="13%" align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><B>开始时间</B></TD>
<TD width="13%" align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><B>结束时间</B></TD>
<TD width="5%"
height=20 align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><B>创建者</B></TD>
<TD width="5%"
height=10 align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><B>是否审核</B></TD>
<TD width="13%" align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><B>操作</B></TD>
</TR>
<%
rs.last();
recordcount = rs.getRow();
// System.out.println("recordcount:" + recordcount);
Pagecount = (recordcount % Pagesize == 0) ? (recordcount / Pagesize)
: (recordcount / Pagesize + 1);
if (strPage != null && !strPage.equals("")) {
showPage = Integer.parseInt(strPage);
if (showPage > Pagecount) {
showPage = Pagecount;
} else if (showPage < 0) {
showPage = 1;
}
} else {
showPage = 1;
}
if (recordcount > 0) {
rs.absolute((showPage - 1) * Pagesize + 1); //
for (int i = 1; i < Pagesize + 1; i++) {
//yushu = i % 8;
contentinfo_id = rs.getInt("contentinfo_id");
businessConfig_name = rs.getString("businessConfig_name");
contentinfo_subject = rs.getString("contentinfo_subject");
businessConfig_company = rs.getString("businessConfig_company");
businessConfig_province = rs.getString("businessConfig_province");
contentinfo_intime = rs.getString("contentinfo_intime");
contentinfo_start_datetime = rs.getString("contentinfo_start_datetime");
contentinfo_end_datetime = rs.getString("contentinfo_end_datetime");
users_name = rs.getString("users_name");
contentinfo_autiding = rs.getInt("contentinfo_autiding");
if(contentinfo_autiding==0){
contentinfo_autiding_string = "未审核";
}else if(contentinfo_autiding==1){
contentinfo_autiding_string = "等待发送";
}else if(contentinfo_autiding==2){
contentinfo_autiding_string = "没通过";
}else if(contentinfo_autiding==3){
contentinfo_autiding_string = "已修改";
}else if(contentinfo_autiding==4){
contentinfo_autiding_string = "发送中...";
}else if(contentinfo_autiding==5){
contentinfo_autiding_string = "发送完毕";
}
%>
<TR onMouseOver="this.style.background='#f0f0f0'"
onmouseout="this.style.background='#FFFFFF'" bgColor=#ffffff>
<TD align=middle height=20 style="font-size: 3.5mm"><A
href="<%=request.getContextPath() %>/content/autidingshow.jsp?contentinfo_id=<%=contentinfo_id%>&autingding=0"><%=contentinfo_id%></A></TD>
<TD height=20 style="font-size: 3.5mm"><%=businessConfig_name%></TD>
<TD align=middle style="font-size: 3.5mm"><%=contentinfo_subject%></TD>
<TD align=middle style="font-size: 3.5mm"><%=businessConfig_company%></TD>
<TD align=middle style="font-size: 3.5mm"><%=businessConfig_province%></TD>
<TD align=middle height=20 style="font-size: 3.5mm"><%=contentinfo_intime%></TD>
<TD align=middle height=20 style="font-size: 3.5mm"><%=contentinfo_start_datetime%></TD>
<TD align=middle height=20 style="font-size: 3.5mm"><%=contentinfo_end_datetime%></TD>
<TD height=20 style="font-size: 3.5mm"><span class="STYLE1"><%=users_name%></TD>
<TD height=30 style="font-size: 3.5mm"><span class="STYLE1"><%=contentinfo_autiding_string%></TD>
<%if(copy_tf.equals("") || copy_tf==null){
if(contentinfo_autiding==1){%>
<TD style="font-size: 3.5mm;background-color: green;"><div align="center">
<A href="#" >[已审核]</A>
<%if(usernameYan.equals(users_name) || "wapadmin".equals(users_name)){%>
<A href="<%=request.getContextPath() %>/content/contentinfoaddok.jsp?contentinfo_id=<%=contentinfo_id%>&contentinfo_subject=<%=contentinfo_subject %>"><font color="olive">[修改]</font></A>
<%}}else if(contentinfo_autiding==2){ %>
<TD style="font-size: 3.5mm;background-color: fuchsia;" align="center">
<A href="<%=request.getContextPath() %>/content/contentinfoaddok.jsp?contentinfo_id=<%=contentinfo_id%>&contentinfo_subject=<%=contentinfo_subject %>">[修改]</A>
<a href="javascript:if(confirm('确定要删除吗?')) del_contentinfo('<%=contentinfo_id %>','<%=contentinfo_subject%>')">[删除]</a>
<%}else if(contentinfo_autiding==0){ %>
<TD style="font-size: 3.5mm;background-color: yellow;"><div align="center"><A
href="<%=request.getContextPath() %>/content/autidingshow.jsp?contentinfo_id=<%=contentinfo_id%>&autingding=1">[审核...]</A>
<%}else if(contentinfo_autiding==3){ %>
<TD style="font-size: 3.5mm;background-color:yellow;"><div align="center"><A
href="<%=request.getContextPath() %>/content/autidingshow.jsp?contentinfo_id=<%=contentinfo_id%>&autingding=1">[重审...]</A>
<%}else if(contentinfo_autiding==4){ %>
<TD style="font-size: 3.5mm;background-color:olive;"><div align="center"><A
href="#">[发送中...]</A>
<%} else if(contentinfo_autiding==5){%>
<TD style="font-size: 3.5mm;background-color:silver;"><div align="center"><A
href="#">[发送完毕]</A>
<%} }else {%>
<TD style="font-size: 3.5mm;background-color:yellow;"><div align="center">
<a href="#" onclick="copy_content('<%=contentinfo_id%>')">[复制到->]</a>
<%} %>
</div></TD>
</TR>
<%if (!rs.next()) {
break;
}}
}}
catch (Exception e) {
System.out.println(e);
}
try {
if (rs != null) {
rs.close();
rs = null;
}
if (stmt != null) {
stmt.close();
stmt = null;
}
if (conn != null) {
conn.close();
conn = null;
}
}
catch (Exception e) {
System.out.println(e);
}
%>
<TR height=25 >
<TD class=gr align=middle colSpan=5 >
<TABLE cellSpacing=0 cellPadding=0 width="230%" border=0>
<FORM name=navigator2 onSubmit="return jump(2)">
<INPUT type=hidden value=114 name=aid>
<INPUT type=hidden value=535 name=from>
<TBODY>
<TR>
<TD valign="bottom" bgcolor="#3DBAFC">
<div align="center">
<%if(copy_tf.equals("") || copy_tf==null){%>
<span class="STYLE3 STYLE2"> 共<%=recordcount%>条 <%=showPage%>/<%=Pagecount%>页
[<a href="autiding.jsp">首页</a>] <%
if (showPage != 1) {
%>[<a
href="autiding.jsp?bd=yes&page=<%=showPage - 1%>">上一页</a>]<%
}
if (showPage != Pagecount) {
%>[<a
href="autiding.jsp?bd=yes&page=<%=showPage + 1%>">下一页</a>]
<%
}
%>[<a
href="autiding.jsp?bd=yes&page=<%=Pagecount%>">末页</a>]
</span>
<%}else{ %>
<span class="STYLE3 STYLE2"> 共<%=recordcount%>条 <%=showPage%>/<%=Pagecount%>页
[<a href="autiding.jsp?copytf=copy">首页</a>] <%
if (showPage != 1) {
%>[<a
href="autiding.jsp?copytf=copy&bd=yes&page=<%=showPage - 1%>">上一页</a>]<%
}
if (showPage != Pagecount) {
%>[<a
href="autiding.jsp?copytf=copy&bd=yes&page=<%=showPage + 1%>">下一页</a>]
<%
}
%>[<a
href="autiding.jsp?copytf=copy&bd=yes&page=<%=Pagecount%>">末页</a>]
</span>
<%} %>
</div>
</TD>
</TR>
</TBODY>
<BR>
</TABLE>
</TBODY></TABLE></TD></TR></TBODY></TABLE>
<!-- 数据表格结束-->
</BODY></HTML>
<%@page language="java"%>
<%@page import="java.io.*"%>
<%@page import="java.util.*"%>
<%@page import="java.util.Date"%>
<%@page import="java.sql.*"%>
<%@page import="java.net.*"%>
<%@page import="java.text.*"%>
<%@page import="com.mms.*"%>
<%@ page import="com.jspsmart.upload.*"%>
<%@page import="com.mms.db.ConnSql2000"%>
<%
String copy_tf= request
.getParameter("copytf") != null ? request.getParameter("copytf"): "";
String content_autid=null;
//判断是不是在本页调
String f_beijediao = request.getParameter("bd");
if(f_beijediao==null){
content_autid = request.getParameter("contentinfo_autiding");
session.setAttribute("autiding_session",content_autid);
}else if(f_beijediao.equals("yes")){
}
String content_autiding= (String)session.getAttribute("autiding_session");
if(content_autiding==null){content_autiding="";}
int contentinfo_id = 0;
String businessConfig_name = null;
String contentinfo_subject = null;
String businessConfig_company = null;
String businessConfig_province = null;
String contentinfo_intime = null;
String contentinfo_start_datetime = null;
String contentinfo_end_datetime=null;
String users_name =null;
int contentinfo_autiding =0;
String contentinfo_autiding_string = null;
String usernameYan = (String)session.getAttribute("username");
String plans_mobilenos = null;
String plans_flag = null;
String mobilegroup_mobilecount = null;
//String contentinfo_subject = null;
String strPage = request.getParameter("page");
if (strPage == null || strPage.equals("")) {
strPage = "1";
}
//共几页
int showPage = 0;
int Pagesize = 25;
int Pagecount = 0;
int recordcount = 0;
//链接数据库初始化
ConnSql2000 ConnSql2000 = new ConnSql2000();
Connection conn = null;
Statement stmt = null;
ResultSet rs = null;
String sql = "";
int count = 0;
int count2 = 2;
try {
conn = ConnSql2000.getCon();
stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
}
catch (Exception e) {
System.out.println(e);
}
try {
if(content_autiding.equals("2")){
sql = "select contentinfo_id,businessConfig_name,contentinfo_subject,businessConfig_company,businessConfig_province,contentinfo_intime,users_name,contentinfo_autiding from businessconfig,contentinfo,users where contentinfo_autiding=2 and businessConfig.businessConfig_id = contentinfo.businessConfig_id and contentinfo.users_id = users.users_id order by contentinfo_intime desc";
}else{
sql = "select DISTINCT content.contentinfo_id,businessConfig_name,contentinfo_subject,businessConfig_company,businessConfig_province,contentinfo_intime,contentinfo_start_datetime,contentinfo_end_datetime,users_name,contentinfo_autiding from businessconfig,contentinfo,users,content where businessConfig.businessConfig_id = contentinfo.businessConfig_id and contentinfo.users_id = users.users_id and contentinfo.contentinfo_id=content.contentinfo_id order by contentinfo_intime desc";
}//System.out.println(sql);
rs = stmt.executeQuery(sql);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>MMS手机报管理平台</TITLE>
<META http-equiv=Content-Type content="text/html; charset=GB2312"><LINK
href="images/main.css" type=text/css rel=stylesheet>
<SCRIPT language=JavaScript src="<%=request.getContextPath() %>/images/main.js"
type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript>
function del_contentinfo(id,subject){
window.location = "del_contentinfo.jsp?contentinfo_id="+id+"&contentinfo_subject="+subject;
}
<!--
function openerLocation(url){
var isMSIE= (navigator.appName == "Microsoft Internet Explorer");
if (isMSIE){
parent.dialogArguments.location = url;
//parent.top.opener.location = url;
}else{
parent.opener.document.location = url;
}
//top.close();
}
// -->
function copy_content(contentinfo_id){
var url = "contentinfoadd.jsp?copy_contentinfo_id="+contentinfo_id;
var a = window.open(url,'','width=500,height=400');
a.moveTo((screen.width-500)/2,(screen.height-400)/2);
//window.close();
}
</SCRIPT>
<META content="MSHTML 6.00.2900.3268" name=GENERATOR>
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
</HEAD>
<BODY><!--标题栏开始-->
<TABLE cellSpacing=0 cellPadding=4 width="100%" align=center border=0>
<TBODY>
<TR bgColor=#5a84da>
<TD height=28><span style="FONT-WEIGHT: bold; MARGIN-LEFT: 10px; COLOR: white">计划管理 -
群发计划分组列表</span></TD>
</TR></TBODY></TABLE><!--标题栏结束--><LINK
href="images/hot.css" rel=stylesheet>
<!--菜单栏开始-->
<TABLE class=N id=HMTB cellSpacing=0 cellPadding=0 width="100%" align=center
border=0>
<TBODY>
<TR>
<TD colSpan=2><IMG height=1 src="<%=request.getContextPath() %>/images/spacer.gif"
width="100%"></TD></TR>
<TR>
<TD>
<TABLE class=O cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="WIDTH: 8px"><IMG height=1 src="images/spacer.gif"
width=8></TD>
<TD class=P onmouseover=MO() onmouseout=MU() noWrap><IMG
alt=hspace=1 src="<%=request.getContextPath() %>/images/i.p.cont.group.gif" align=absMiddle
border=0> 计划管理</TD>
<TD width="100%"> </TD></TR></TBODY></TABLE></TD>
<TD style="CURSOR: auto"></TD></TR>
<TR bgColor=#ffffff>
<TD colSpan=2><IMG height=10 src="<%=request.getContextPath() %>/images/spacer.gif"
width="100%"></TD></TR></TBODY></TABLE><!--菜单栏结束--><!-- 数据表格开始-->
<TABLE class=table_databorder cellSpacing=0 cellPadding=0 width="100%"
align=center border=0>
<TBODY>
<TR>
<TD class=table_databorder_bg vAlign=top width="100%">
<TABLE width="100%" align=center border=1 class=table_databorder cellSpacing=0 cellPadding=0 bordercolor="#66CCFF">
<TBODY>
<TR>
<TD colSpan=8 height=1></TD></TR>
<TR bgcolor="#66CCFF">
<TD width="4%"
height=20 align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><B>ID</B></TD>
<TD width="13%"
height=20 align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><strong>业务名称</strong></TD>
<TD width="13%" align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><strong>标题</strong></TD>
<TD width="5%" align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><strong>公司</strong></TD>
<TD width="4%" align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><strong>所在省</strong></TD>
<TD width="13%" align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><B>创建时间</B></TD>
<TD width="13%" align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><B>开始时间</B></TD>
<TD width="13%" align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><B>结束时间</B></TD>
<TD width="5%"
height=20 align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><B>创建者</B></TD>
<TD width="5%"
height=10 align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><B>是否审核</B></TD>
<TD width="13%" align=middle noWrap class=table_dataheader_cell style="font-size: 3.5mm"><B>操作</B></TD>
</TR>
<%
rs.last();
recordcount = rs.getRow();
// System.out.println("recordcount:" + recordcount);
Pagecount = (recordcount % Pagesize == 0) ? (recordcount / Pagesize)
: (recordcount / Pagesize + 1);
if (strPage != null && !strPage.equals("")) {
showPage = Integer.parseInt(strPage);
if (showPage > Pagecount) {
showPage = Pagecount;
} else if (showPage < 0) {
showPage = 1;
}
} else {
showPage = 1;
}
if (recordcount > 0) {
rs.absolute((showPage - 1) * Pagesize + 1); //
for (int i = 1; i < Pagesize + 1; i++) {
//yushu = i % 8;
contentinfo_id = rs.getInt("contentinfo_id");
businessConfig_name = rs.getString("businessConfig_name");
contentinfo_subject = rs.getString("contentinfo_subject");
businessConfig_company = rs.getString("businessConfig_company");
businessConfig_province = rs.getString("businessConfig_province");
contentinfo_intime = rs.getString("contentinfo_intime");
contentinfo_start_datetime = rs.getString("contentinfo_start_datetime");
contentinfo_end_datetime = rs.getString("contentinfo_end_datetime");
users_name = rs.getString("users_name");
contentinfo_autiding = rs.getInt("contentinfo_autiding");
if(contentinfo_autiding==0){
contentinfo_autiding_string = "未审核";
}else if(contentinfo_autiding==1){
contentinfo_autiding_string = "等待发送";
}else if(contentinfo_autiding==2){
contentinfo_autiding_string = "没通过";
}else if(contentinfo_autiding==3){
contentinfo_autiding_string = "已修改";
}else if(contentinfo_autiding==4){
contentinfo_autiding_string = "发送中...";
}else if(contentinfo_autiding==5){
contentinfo_autiding_string = "发送完毕";
}
%>
<TR onMouseOver="this.style.background='#f0f0f0'"
onmouseout="this.style.background='#FFFFFF'" bgColor=#ffffff>
<TD align=middle height=20 style="font-size: 3.5mm"><A
href="<%=request.getContextPath() %>/content/autidingshow.jsp?contentinfo_id=<%=contentinfo_id%>&autingding=0"><%=contentinfo_id%></A></TD>
<TD height=20 style="font-size: 3.5mm"><%=businessConfig_name%></TD>
<TD align=middle style="font-size: 3.5mm"><%=contentinfo_subject%></TD>
<TD align=middle style="font-size: 3.5mm"><%=businessConfig_company%></TD>
<TD align=middle style="font-size: 3.5mm"><%=businessConfig_province%></TD>
<TD align=middle height=20 style="font-size: 3.5mm"><%=contentinfo_intime%></TD>
<TD align=middle height=20 style="font-size: 3.5mm"><%=contentinfo_start_datetime%></TD>
<TD align=middle height=20 style="font-size: 3.5mm"><%=contentinfo_end_datetime%></TD>
<TD height=20 style="font-size: 3.5mm"><span class="STYLE1"><%=users_name%></TD>
<TD height=30 style="font-size: 3.5mm"><span class="STYLE1"><%=contentinfo_autiding_string%></TD>
<%if(copy_tf.equals("") || copy_tf==null){
if(contentinfo_autiding==1){%>
<TD style="font-size: 3.5mm;background-color: green;"><div align="center">
<A href="#" >[已审核]</A>
<%if(usernameYan.equals(users_name) || "wapadmin".equals(users_name)){%>
<A href="<%=request.getContextPath() %>/content/contentinfoaddok.jsp?contentinfo_id=<%=contentinfo_id%>&contentinfo_subject=<%=contentinfo_subject %>"><font color="olive">[修改]</font></A>
<%}}else if(contentinfo_autiding==2){ %>
<TD style="font-size: 3.5mm;background-color: fuchsia;" align="center">
<A href="<%=request.getContextPath() %>/content/contentinfoaddok.jsp?contentinfo_id=<%=contentinfo_id%>&contentinfo_subject=<%=contentinfo_subject %>">[修改]</A>
<a href="javascript:if(confirm('确定要删除吗?')) del_contentinfo('<%=contentinfo_id %>','<%=contentinfo_subject%>')">[删除]</a>
<%}else if(contentinfo_autiding==0){ %>
<TD style="font-size: 3.5mm;background-color: yellow;"><div align="center"><A
href="<%=request.getContextPath() %>/content/autidingshow.jsp?contentinfo_id=<%=contentinfo_id%>&autingding=1">[审核...]</A>
<%}else if(contentinfo_autiding==3){ %>
<TD style="font-size: 3.5mm;background-color:yellow;"><div align="center"><A
href="<%=request.getContextPath() %>/content/autidingshow.jsp?contentinfo_id=<%=contentinfo_id%>&autingding=1">[重审...]</A>
<%}else if(contentinfo_autiding==4){ %>
<TD style="font-size: 3.5mm;background-color:olive;"><div align="center"><A
href="#">[发送中...]</A>
<%} else if(contentinfo_autiding==5){%>
<TD style="font-size: 3.5mm;background-color:silver;"><div align="center"><A
href="#">[发送完毕]</A>
<%} }else {%>
<TD style="font-size: 3.5mm;background-color:yellow;"><div align="center">
<a href="#" onclick="copy_content('<%=contentinfo_id%>')">[复制到->]</a>
<%} %>
</div></TD>
</TR>
<%if (!rs.next()) {
break;
}}
}}
catch (Exception e) {
System.out.println(e);
}
try {
if (rs != null) {
rs.close();
rs = null;
}
if (stmt != null) {
stmt.close();
stmt = null;
}
if (conn != null) {
conn.close();
conn = null;
}
}
catch (Exception e) {
System.out.println(e);
}
%>
<TR height=25 >
<TD class=gr align=middle colSpan=5 >
<TABLE cellSpacing=0 cellPadding=0 width="230%" border=0>
<FORM name=navigator2 onSubmit="return jump(2)">
<INPUT type=hidden value=114 name=aid>
<INPUT type=hidden value=535 name=from>
<TBODY>
<TR>
<TD valign="bottom" bgcolor="#3DBAFC">
<div align="center">
<%if(copy_tf.equals("") || copy_tf==null){%>
<span class="STYLE3 STYLE2"> 共<%=recordcount%>条 <%=showPage%>/<%=Pagecount%>页
[<a href="autiding.jsp">首页</a>] <%
if (showPage != 1) {
%>[<a
href="autiding.jsp?bd=yes&page=<%=showPage - 1%>">上一页</a>]<%
}
if (showPage != Pagecount) {
%>[<a
href="autiding.jsp?bd=yes&page=<%=showPage + 1%>">下一页</a>]
<%
}
%>[<a
href="autiding.jsp?bd=yes&page=<%=Pagecount%>">末页</a>]
</span>
<%}else{ %>
<span class="STYLE3 STYLE2"> 共<%=recordcount%>条 <%=showPage%>/<%=Pagecount%>页
[<a href="autiding.jsp?copytf=copy">首页</a>] <%
if (showPage != 1) {
%>[<a
href="autiding.jsp?copytf=copy&bd=yes&page=<%=showPage - 1%>">上一页</a>]<%
}
if (showPage != Pagecount) {
%>[<a
href="autiding.jsp?copytf=copy&bd=yes&page=<%=showPage + 1%>">下一页</a>]
<%
}
%>[<a
href="autiding.jsp?copytf=copy&bd=yes&page=<%=Pagecount%>">末页</a>]
</span>
<%} %>
</div>
</TD>
</TR>
</TBODY>
<BR>
</TABLE>
</TBODY></TABLE></TD></TR></TBODY></TABLE>
<!-- 数据表格结束-->
</BODY></HTML>
相关推荐
在JSP(JavaServer Pages)中,显示本地图片预览是一项常见的需求,特别是在网页开发中。JSP是一种基于Java的动态网页技术,它允许开发者在HTML、XML或其他标记语言中嵌入Java代码,以实现服务器端的数据处理和动态...
本文将深入探讨如何使用JSP技术来实现Word和Excel文档的在线预览功能,这对于许多Web应用程序来说是一项非常实用的功能,能够极大地提升用户体验。 首先,要实现在线预览,我们需要理解JSP的基础工作原理。JSP是由...
综上所述,实现“图片放大预览效果”的核心在于结合JSP、JavaScript(特别是JqZoom插件)和Java后端技术。通过合理的前端布局和后端处理,我们可以创建出交互性强、性能优良的图片预览功能。在实际项目中,还可以...
标题“JSP页面显示PDF,根据PDF路径在JSP页面显示PDF”意味着我们要依据PDF文件在服务器上的存储路径来生成预览链接。以下是实现这一功能的一般步骤: 1. **获取PDF路径**:首先,你需要知道PDF文件在服务器上的...
在JavaWeb开发中,有时我们需要实现用户在浏览器中...总的来说,"jsp在线浏览pdf文件的jar包和插件"提供的解决方案大大简化了JavaWeb应用中PDF预览的实现,只需简单集成和少量代码,就能在浏览器中流畅地查看PDF文件。
本文将深入探讨“JSP文件在线预览”这一主题,涵盖其核心概念、实现原理以及相关的技术栈。 首先,理解JSP文件的本质是关键。JSP文件是由HTML、CSS和Java代码混合编写的,服务器端执行Java代码并将其结果转换为HTML...
当涉及到在线预览PDF文件时,jQuery可以作为一个强大的工具,结合其他插件或技术来实现这一功能。本篇文章将深入探讨如何利用jQuery和相关插件,特别是jQuery.media,来实现PDF文件的在线预览。 标题"jquery.media...
### EOS入门必备JSP篇知识点解析 #### 一、EOS与JSP简介 **EOS**(Enterprise Operation System)是一种企业级操作系统或平台,主要用于构建高效、可靠的企业应用系统。本文档主要介绍如何在EOS环境下使用**JSP**...
java+jsp 浏览某个文件夹下图片(实现分页和浏览特效) 详情参考: http://blog.csdn.net/liangyulong419/article/details/7091011#comments
在JSP上传图片前预览图片在JSP上传图片前预览图片
Jsp图片预览程序 imgAreaSelect 是由 Michal Wojciechowski开发的一款非常好用的jquery插件,实现了图片的截取功能。其文档和Demo也是很详尽的。大家可以到http://odyniec.net/projects/imgareaselect/了解更多的细节...
你可以通过运行应用并在浏览器中查看,或者配置IDEA的Tomcat插件以支持JSP预览。 总的来说,整合Spring Boot和JSP主要涉及添加依赖、配置视图解析以及编写Controller和JSP页面。尽管Spring Boot推荐使用更现代的...
### jsp图片上传及预览知识点详解 #### 一、技术背景与应用场景 在Web开发领域,特别是电子商务网站中,用户经常会遇到上传图片的需求。例如,商家上传商品图片供买家查看,用户上传个人头像等场景。为了提高用户...
图片上传预览是一种在图片上传之前对图片进行本地预览的技术。 使用户选择图片后能立即查看图片,而不需上传服务器,提高用户体验。 但随着浏览器安全性的提高,要实现图片上传预览也越来越困难。 不过群众的智慧是...
【标题】"【绝对可用】jsp提前预览 上传图片" 涉及的主要知识点是JSP(JavaServer Pages)技术在处理图片上传与预览功能的应用。在Web开发中,用户经常需要上传图片,而预览功能可以提供即时反馈,确保用户上传的...
5. **JSP预览**:开发者可以实时预览JSP页面,无需每次都通过服务器运行查看效果。 6. **代码生成**:Eclipse可以根据JSP标签自动生成对应的Java源代码,帮助快速开发。 Lomboz作为Eclipse的扩展,还提供了以下...
【Jsp图片预览程序与Java源码解析】 在IT领域,JSP(JavaServer Pages)是一种用于创建动态网页的技术,它结合了HTML、CSS、JavaScript等前端技术以及Java后端编程能力。Jsp图片预览程序是基于JSP实现的一种功能,...
从电脑里选择图片,图片的格式可以加以限制,选择图片后可实时显示预览
在这个场景中,"jsp上传图片预览"是一个常见的需求,它涉及到用户在上传图片前能够在网页上预览所选的图片。这一功能不仅提升了用户体验,也减少了因上传错误图片而导致的不必要的麻烦。 首先,我们需要了解图片...
"文件批量上传 jsp jfinal webuploader 在线预览缩略图" 这个标题描述了一个完整的文件上传解决方案,它涉及到几个关键的技术点,我们将逐一详细解释。 首先,批量上传(Batch Upload)是指用户可以一次选择多个...