页面文件

main
lkcman 5 months ago
parent c7b80efe6b
commit 28f040dbdf

@ -0,0 +1,100 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>报名信息</title>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
<script type="text/javascript" src="js/popup.js"></script>
</head>
<%
String id="";
id=request.getParameter("id");
HashMap mlbdq = new CommDAO().getmap(id,"kechengxinxi");
String jiaolian=""; String kechengmingcheng=""; String xuefei="";
jiaolian=(String)mlbdq.get("jiaolian"); kechengmingcheng=(String)mlbdq.get("kechengmingcheng"); xuefei=(String)mlbdq.get("xuefei");
%>
<script language="javascript">
function gow()
{
document.location.href="baomingxinxi_add.jsp?id=<%=id%>";
}
function hsgxia2shxurxu(nstr,nwbk)
{
if (eval("form1."+nwbk).value.indexOf(nstr)>=0)
{
eval("form1."+nwbk).value=eval("form1."+nwbk).value.replace(nstr+"", "");
}
else
{
eval("form1."+nwbk).value=eval("form1."+nwbk).value+nstr+"";
}
}
</script>
<%
HashMap ext = new HashMap();
if(request.getParameter("f")!=null){
ext.put("iszf","否");
new CommDAO().insert(request,response,"baomingxinxi",ext,true,false,"");
}
%>
<body >
<form action="baomingxinxi_add.jsp?f=f&id=<%=id%>" method="post" name="form1" onsubmit="return checkform();">
添加报名信息:
<br><br>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#cccccc" >
<tr><td width="200">教练:</td><td><input name='jiaolian' type='text' id='jiaolian' value='' onblur='' class="form-control" readonly='readonly' /></td></tr><script language="javascript">document.form1.jiaolian.value='<%=jiaolian%>';document.form1.jiaolian.setAttribute("readOnly",'true');</script> <tr><td width="200">课程名称:</td><td><input name='kechengmingcheng' type='text' id='kechengmingcheng' value='' onblur='' class="form-control" readonly='readonly' /></td></tr><script language="javascript">document.form1.kechengmingcheng.value='<%=kechengmingcheng%>';document.form1.kechengmingcheng.setAttribute("readOnly",'true');</script> <tr><td width="200">学费:</td><td><input name='xuefei' type='text' id='xuefei' value='' onblur='' class="form-control" readonly='readonly' /></td></tr><script language="javascript">document.form1.xuefei.value='<%=xuefei%>';document.form1.xuefei.setAttribute("readOnly",'true');</script> <tr><td width="200">学员:</td><td><input name='xueyuan' type='text' id='xueyuan' onblur='' class="form-control" value='<%=request.getSession().getAttribute("username")%>' readonly="readonly" /></td></tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="提交" class="btn btn-info btn-small" />
<input type="reset" name="Submit2" value="重置" class="btn btn-info btn-small" /></td>
</tr>
</table>
</form>
</body>
</html>
<script language=javascript src='js/ajax.js'></script>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.HashMap"%>
<script language=javascript >
function checkform(){
return true;
}
popheight=450;
</script>
<script src="images/hsgcommon/jq.js"></script>
<script src="images/hsgcommon/common.js"></script>
<script src="images/hsgcommon/bootbox.js"></script>

@ -0,0 +1,66 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>报名信息</title>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
</head>
<body >
<p>已有报名信息列表:</p>
<form name="form1" id="form1" method="post" action="">
搜索: 课程名称:<input name="kechengmingcheng" type="text" id="kechengmingcheng" class="form-control2" />
<input type="submit" name="Submit" value="查找" class="btn btn-info btn-small" /> <input type="button" name="Submit2" value="导出EXCEL" class="btn btn-info btn-small" onClick="javascript:location.href='baomingxinxi_listxls.jsp';" />
</form>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="cccccc" >
<tr>
<td width="35" height="30" align="center" bgcolor="cccccc">序号</td>
<td bgcolor='#cccccc'>教练</td> <td bgcolor='#cccccc'>课程名称</td> <td bgcolor='#cccccc'>学费</td> <td bgcolor='#cccccc'>学员</td> <td bgcolor='#cccccc' width='80' align='center'>是否支付</td>
<td width="138" height="30" align="center" bgcolor="cccccc">添加时间</td>
<td width="220" height="30" align="center" bgcolor="cccccc">操作</td>
</tr>
<%
new CommDAO().delete(request,"baomingxinxi");
String url = "baomingxinxi_list.jsp?1=1";
String sql = "select * from baomingxinxi where 1=1";
if(request.getParameter("kechengmingcheng")=="" ||request.getParameter("kechengmingcheng")==null ){}else{sql=sql+" and kechengmingcheng like '%"+request.getParameter("kechengmingcheng")+"%'";}
sql+=" order by id desc";
ArrayList<HashMap> list = PageManager.getPages(url,15,sql, request);
int i=0;
for(HashMap map:list){
i++;
%>
<tr>
<td width="35" align="center"><%=i %></td>
<td><%=map.get("jiaolian") %></td> <td><%=map.get("kechengmingcheng") %></td> <td><%=map.get("xuefei") %></td> <td><%=map.get("xueyuan") %></td> <td align='center'><%=map.get("iszf")%></td>
<td width="138" align="center"><%=map.get("addtime") %></td>
<td width="220" align="center"><a class="btn btn-info btn-small" href="baomingxinxi_updt.jsp?id=<%=map.get("id")%>">修改</a> <a class="btn btn-info btn-small" href="baomingxinxi_list.jsp?scid=<%=map.get("id") %>" onClick="return confirm('真的要删除?')">删除</a> </td>
</tr>
<%
}
%>
</table>
<br>
<p class="fy">${page.info }</p>
</body>
</html>

@ -0,0 +1,73 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>报名信息</title>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
</head>
<body >
<p>已有报名信息列表:</p>
<form name="form1" id="form1" method="post" action="">
搜索: 课程名称:<input name="kechengmingcheng" type="text" id="kechengmingcheng" class="form-control2" />
<input type="submit" name="Submit" value="查找" class="btn btn-info btn-small" />
</form>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="cccccc" >
<tr>
<td width="30" align="center" bgcolor="cccccc">序号</td>
<td bgcolor='#cccccc'>教练</td>
<td bgcolor='#cccccc'>课程名称</td>
<td bgcolor='#cccccc'>学费</td>
<td bgcolor='#cccccc'>学员</td>
<td bgcolor='#cccccc' width='80' align='center'>是否支付</td>
<td width="138" align="center" bgcolor="cccccc">添加时间</td>
<td width="220" align="center" bgcolor="cccccc">操作</td>
</tr>
<%
new CommDAO().delete(request,"baomingxinxi");
String url = "baomingxinxi_list2.jsp?1=1";
String sql = "select * from baomingxinxi where xueyuan='"+request.getSession().getAttribute("username")+"' ";
if(request.getParameter("kechengmingcheng")=="" ||request.getParameter("kechengmingcheng")==null ){}else{sql=sql+" and kechengmingcheng like '%"+request.getParameter("kechengmingcheng")+"%'";}
sql+=" order by id desc";
ArrayList<HashMap> list = PageManager.getPages(url,15,sql, request);
int i=0;
for(HashMap map:list){
i++;
%>
<tr>
<td width="30" align="center"><%=i %></td>
<td><%=map.get("jiaolian") %></td>
<td><%=map.get("kechengmingcheng") %></td>
<td><%=map.get("xuefei") %></td>
<td><%=map.get("xueyuan") %></td>
<td align='center'><%=map.get("iszf")%> <% if(map.get("iszf").equals("否")){%><a class="btn btn-info btn-small" href="sh2.jsp?id=<%=map.get("id")%>&xuefei=<%=map.get("xuefei")%>&xueyuan=<%=map.get("xueyuan")%>&yuan=<%=map.get("iszf")%>&tablename=baomingxinxi" onClick="return confirm('确定要支付?');"><font color='red'>支付</font></a> <%}%> </td>
<td width="138" align="center"><%=map.get("addtime") %></td>
<td width="220" align="center"><a class="btn btn-info btn-small" href="baomingxinxi_list2.jsp?scid=<%=map.get("id") %>" onClick="return confirm('真的要删除?')">删除</a> </td>
</tr>
<%
}
%>
</table><br>
<p class="fy">${page.info }</p>
</body>
</html>

@ -0,0 +1,68 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>报名信息</title>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
</head>
<body >
<p>已有报名信息列表:</p>
<form name="form1" id="form1" method="post" action="">
搜索: 课程名称:<input name="kechengmingcheng" type="text" id="kechengmingcheng" class="form-control2" />
<input type="submit" name="Submit" value="查找" class="btn btn-info btn-small" />
</form>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="cccccc" >
<tr>
<td width="30" align="center" bgcolor="cccccc">序号</td>
<td bgcolor='#cccccc'>教练</td>
<td bgcolor='#cccccc'>课程名称</td>
<td bgcolor='#cccccc'>学费</td>
<td bgcolor='#cccccc'>学员</td>
<td bgcolor='#cccccc' width='80' align='center'>是否支付</td>
</tr>
<%
new CommDAO().delete(request,"baomingxinxi");
String url = "baomingxinxi_list3.jsp?1=1";
String sql = "select * from baomingxinxi where jiaolian='"+request.getSession().getAttribute("username")+"' ";
if(request.getParameter("kechengmingcheng")=="" ||request.getParameter("kechengmingcheng")==null ){}else{sql=sql+" and kechengmingcheng like '%"+request.getParameter("kechengmingcheng")+"%'";}
sql+=" order by id desc";
ArrayList<HashMap> list = PageManager.getPages(url,15,sql, request);
int i=0;
for(HashMap map:list){
i++;
%>
<tr>
<td width="30" align="center"><%=i %></td>
<td><%=map.get("jiaolian") %></td>
<td><%=map.get("kechengmingcheng") %></td>
<td><%=map.get("xuefei") %></td>
<td><%=map.get("xueyuan") %></td>
<td align='center'><%=map.get("iszf")%> </td>
</tr>
<%
}
%>
</table>
<br>
<p class="fy">${page.info }</p>
</body>
</html>

@ -0,0 +1,66 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>报名信息</title>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
</head>
<body >
<p>已有报名信息列表:</p>
<form name="form1" id="form1" method="post" action="">
搜索: 课程名称:<input name="kechengmingcheng" type="text" id="kechengmingcheng" class="form-control2" />
<input type="submit" name="Submit" value="查找" class="btn btn-info btn-small" /> <input type="button" name="Submit2" value="导出EXCEL" class="btn btn-info btn-small" onClick="javascript:location.href='baomingxinxi_listxls.jsp';" />
</form>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="cccccc">
<tr>
<td width="30" align="center" bgcolor="cccccc">序号</td>
<td bgcolor='#cccccc'>教练</td> <td bgcolor='#cccccc'>课程名称</td> <td bgcolor='#cccccc'>学费</td> <td bgcolor='#cccccc'>学员</td> <td bgcolor='#cccccc' width='80' align='center'>是否支付</td>
<td width="138" align="center" bgcolor="cccccc">添加时间</td>
<td width="60" align="center" bgcolor="cccccc">操作</td>
</tr>
<%
new CommDAO().delete(request,"baomingxinxi");
String url = "baomingxinxi_list.jsp?1=1";
String sql = "select * from baomingxinxi where 1=1";
if(request.getParameter("kechengmingcheng")=="" ||request.getParameter("kechengmingcheng")==null ){}else{sql=sql+" and kechengmingcheng like '%"+request.getParameter("kechengmingcheng")+"%'";}
sql+=" order by id desc";
ArrayList<HashMap> list = PageManager.getPages(url,15,sql, request);
int i=0;
for(HashMap map:list){
i++;
%>
<tr>
<td width="30" align="center"><%=i %></td>
<td><%=map.get("jiaolian") %></td> <td><%=map.get("kechengmingcheng") %></td> <td><%=map.get("xuefei") %></td> <td><%=map.get("xueyuan") %></td> <td align='center'><%=map.get("iszf")%></td>
<td width="138" align="center"><%=map.get("addtime") %></td>
<td width="60" align="center"><!--lianjie1--> </td>
</tr>
<%
}
%>
</table>
<br>
<p class="fy">${page.info }</p>
</body>
</html>

@ -0,0 +1,54 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<%
response.setContentType("application/vnd.ms-excel");
response.addHeader("Content-Disposition", "attachment;filename=baomingxinxi.xls");
%>
<html>
<head>
<title>报名信息</title>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
</head>
<body >
<p>已有报名信息列表:</p>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="cccccc" >
<tr>
<td width="30" align="center" bgcolor="cccccc">序号</td>
<td bgcolor='#cccccc'>教练</td> <td bgcolor='#cccccc'>课程名称</td> <td bgcolor='#cccccc'>学费</td> <td bgcolor='#cccccc'>学员</td> <td bgcolor='#cccccc' width='80' align='center'>是否支付</td>
<td width="138" align="center" bgcolor="cccccc">添加时间</td>
</tr>
<%
String url = "baomingxinxi_list.jsp?1=1";
String sql = "select * from baomingxinxi where 1=1";
sql+=" order by id desc";
ArrayList<HashMap> list = PageManager.getPages(url,15,sql, request);
int i=0;
for(HashMap map:list){
i++;
%>
<tr>
<td width="30" align="center"><%=i %></td>
<td><%=map.get("jiaolian") %></td> <td><%=map.get("kechengmingcheng") %></td> <td><%=map.get("xuefei") %></td> <td><%=map.get("xueyuan") %></td> <td align='center'><%=map.get("iszf")%></td>
<td width="138" align="center"><%=map.get("addtime") %></td>
</tr>
<%
}
%>
</table>
<br>
以上数据共<%=i %>条
</body>
</html>

@ -0,0 +1,58 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>报名信息</title>
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
<script type="text/javascript" src="js/popup.js"></script>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
</head>
<script language="javascript">
function hsgxia2shxurxu(nstr,nwbk)
{
if (eval("form1."+nwbk).value.indexOf(nstr)>=0)
{
eval("form1."+nwbk).value=eval("form1."+nwbk).value.replace(nstr+"", "");
}
else
{
eval("form1."+nwbk).value=eval("form1."+nwbk).value+nstr+"";
}
}
</script>
<body >
<%
String id = request.getParameter("id");
HashMap ext = new HashMap();
new CommDAO().update(request,response,"baomingxinxi",ext,true,false,"");
HashMap mmm = new CommDAO().getmap(id,"baomingxinxi");
%>
<form action="baomingxinxi_updt.jsp?f=f&id=<%=mmm.get("id")%>" method="post" name="form1" onsubmit="return checkform();">
修改报名信息:
<br><br>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#cccccc" style="border-collapse:collapse">
<tr><td>教练:</td><td><input name='jiaolian' type='text' id='jiaolian' value='<%= mmm.get("jiaolian")%>' class="form-control" /></td></tr> <tr><td>课程名称:</td><td><input name='kechengmingcheng' type='text' id='kechengmingcheng' value='<%= mmm.get("kechengmingcheng")%>' class="form-control" /></td></tr> <tr><td>学费:</td><td><input name='xuefei' type='text' id='xuefei' value='<%= mmm.get("xuefei")%>' class="form-control" /></td></tr> <tr><td>学员:</td><td><input name='xueyuan' type='text' id='xueyuan' value='<%= mmm.get("xueyuan")%>' class="form-control" /></td></tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="提交" onClick="return checkform();" class="btn btn-info btn-small" />
<input type="reset" name="Submit2" value="重置" class="btn btn-info btn-small" /></td>
</tr>
</table>
</form>
</body>
</html>

@ -0,0 +1,103 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<!DOCTYPE html>
<html>
<head>
<title>报名信息</title>
<link rel="stylesheet" type="text/css" href="qtimages/css/style.css"/>
<link rel="stylesheet" type="text/css" href="qtimages/css/mislider.css"/>
<style>
.dd a:hover{color: red;}
.dd a{ font-size: 18px;}
.header .top .logo{margin-right: 260px;}
.header{ position: fixed; top: 0; left: 0; z-index: 9999; background: #fff; width: 100%;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<%
if((String)request.getSession().getAttribute("username")==null || (String)request.getSession().getAttribute("username")=="")
{
out.print("<script>alert('对不起,请您先登陆!');location.href='index.jsp';</script>");
return;
}
String id="";
id=request.getParameter("id");
HashMap mlbdq = new CommDAO().getmap(id,"kechengxinxi");
String jiaolian=""; String kechengmingcheng=""; String xuefei="";
jiaolian=(String)mlbdq.get("jiaolian"); kechengmingcheng=(String)mlbdq.get("kechengmingcheng"); xuefei=(String)mlbdq.get("xuefei");
%>
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
<script type="text/javascript" src="js/popup.js"></script>
<script language=javascript src='js/ajax.js'></script>
<script language="javascript">
function checkform()
{
}
function gow()
{
document.location.href="baomingxinxiadd.jsp?id=<%=id%>";
}
</script>
<body style="padding-top:220px;">
<%@ include file="qttop.jsp"%>
<%@ include file="bht.jsp"%>
<div class="index_about index">
<div class="w1200">
<h2 class="t">报名信息</h2>
<p class="t_en">Details</p>
<div class="desc">
<link rel="stylesheet" href="images/hsgcommon/divqt.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/commonqt.css" type="text/css">
<script src="images/hsgcommon/common.js"></script>
<script src="images/hsgcommon/bootbox.js"></script>
<%
HashMap ext = new HashMap();
if(request.getParameter("f")!=null){
ext.put("iszf","否");
new CommDAO().insert(request,response,"baomingxinxi",ext,true,false,"");
}
%>
<form action="baomingxinxiadd.jsp?f=f&id=<%=id%>" method="post" name="form1" onsubmit="return checkform();">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bordercolor="#00FFFF" style="border-collapse:collapse" class="newsline">
<tr><td width="200">教练:</td><td><input name='jiaolian' type='text' id='jiaolian' value='' onblur='' class="form-control" readonly='readonly' /></td></tr><script language="javascript">document.form1.jiaolian.value='<%=jiaolian%>';document.form1.jiaolian.setAttribute("readOnly",'true');</script> <tr><td width="200">课程名称:</td><td><input name='kechengmingcheng' type='text' id='kechengmingcheng' value='' onblur='' class="form-control" readonly='readonly' /></td></tr><script language="javascript">document.form1.kechengmingcheng.value='<%=kechengmingcheng%>';document.form1.kechengmingcheng.setAttribute("readOnly",'true');</script> <tr><td width="200">学费:</td><td><input name='xuefei' type='text' id='xuefei' value='' onblur='' class="form-control" readonly='readonly' /></td></tr><script language="javascript">document.form1.xuefei.value='<%=xuefei%>';document.form1.xuefei.setAttribute("readOnly",'true');</script> <tr><td width="200">学员:</td><td><input name='xueyuan' type='text' id='xueyuan' onblur='' class="form-control" value='<%=request.getSession().getAttribute("username")%>' readonly="readonly" /></td></tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="提交" onclick="return checkform();" />
<input type="reset" name="Submit2" value="重置" /></td>
</tr>
</table>
</form>
</div>
</div>
</div>
<%@ include file="yqlj.jsp"%>
<%@ include file="qtdown.jsp"%>
<%@ include file="kefutiao.jsp"%>
</body>
</html>
<!--yoxudixtu-->

@ -0,0 +1,26 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<div class="slider">
<div id="slideBox" class="slideBox">
<div class="hd">
<ul><li></li><li></li><li></li><li></li><li></li></ul>
</div>
<div class="bd">
<ul>
<%
int bhti=0;
int xxbbt=0;
for(HashMap map:new CommDAO().select("select shouyetupian from xinwentongzhi where leibie='±ä»Ãͼ' order by id desc ")){
bhti++;
xxbbt++;
%>
<li style="background: url(<%=map.get("shouyetupian")%>) center center no-repeat;"></li>
<%
}
%>
</ul>
</div>
<a class="prev" href="javascript:void(0)"></a>
<a class="next" href="javascript:void(0)"></a>
</div>
</div>

@ -0,0 +1,121 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>充值信息</title>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
<script type="text/javascript" src="js/popup.js"></script>
</head>
<%
String id="";
%>
<script language="javascript">
function gow()
{
document.location.href="chongzhixinxi_add.jsp?id=<%=id%>&yonghuming="+document.form1.yonghuming.value;
}
function hsgxia2shxurxu(nstr,nwbk)
{
if (eval("form1."+nwbk).value.indexOf(nstr)>=0)
{
eval("form1."+nwbk).value=eval("form1."+nwbk).value.replace(nstr+"", "");
}
else
{
eval("form1."+nwbk).value=eval("form1."+nwbk).value+nstr+"";
}
}
</script>
<%
HashMap ext = new HashMap();
if(request.getParameter("f")!=null){
String sql="update yonghuzhuce set yue=yue+"+request.getParameter("chongzhijine")+" where yonghuming='"+request.getParameter("yonghuming")+"'";
new CommDAO().commOper(sql);
new CommDAO().insert(request,response,"chongzhixinxi",ext,true,false,"");
}
%>
<body >
<form action="chongzhixinxi_add.jsp?f=f&id=<%=id%>" method="post" name="form1" onsubmit="return checkform();">
添加充值信息:
<br><br>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#cccccc" >
<tr><td>用户名:</td><td><%=Info.getselectsl("yonghuming","yonghuzhuce","yonghuming")%>&nbsp;*<label id='clabelyonghuming' /></td></tr>
<tr><td width="200">姓名:</td><td><input name='xingming' type='text' id='xingming' class="form-control" >&nbsp;*<label id='clabelxingming' /></td></tr>
<tr><td width="200">日期:</td><td><input name='riqi' type='text' id='riqi' value='' onblur='' class="form-control" /></td></tr>
<tr><td width="200">充值金额:</td><td><input name='chongzhijine' type='text' id='chongzhijine' value='' onblur='checkform()' class="form-control" />&nbsp;<label id='clabelchongzhijine' />必需数字型</td></tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="提交" class="btn btn-info btn-small" />
<input type="reset" name="Submit2" value="重置" class="btn btn-info btn-small" /></td>
</tr>
</table>
</form>
</body>
</html>
<%
if(request.getParameter("yonghuming")==null || request.getParameter("yonghuming").equals("")){}else{
HashMap mmm = new CommDAO().getmaps("yonghuming",request.getParameter("yonghuming"),"yonghuzhuce");
%>
<script language="javascript">
document.form1.yonghuming.value="<%=mmm.get("yonghuming")%>";
document.form1.xingming.value="<%=mmm.get("xingming")%>";
//suilafuzhi
</script>
<%
}
%>
<script language=javascript src='js/ajax.js'></script>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.HashMap"%>
<script language=javascript >
function checkform(){
var yonghumingobj = document.getElementById("yonghuming"); if(yonghumingobj.value==""){document.getElementById("clabelyonghuming").innerHTML="&nbsp;&nbsp;<font color=red>请输入用户名</font>";return false;}else{document.getElementById("clabelyonghuming").innerHTML=" "; }
var xingmingobj = document.getElementById("xingming"); if(xingmingobj.value==""){document.getElementById("clabelxingming").innerHTML="&nbsp;&nbsp;<font color=red>请输入姓名</font>";return false;}else{document.getElementById("clabelxingming").innerHTML=" "; }
var chongzhijineobj = document.getElementById("chongzhijine"); if(chongzhijineobj.value!=""){ if(/^[0-9]+.?[0-9]*$/.test(chongzhijineobj.value)){document.getElementById("clabelchongzhijine").innerHTML=""; }else{document.getElementById("clabelchongzhijine").innerHTML="&nbsp;&nbsp;<font color=red>必需数字型</font>"; return false;}}
return true;
}
popheight=450;
</script>
<script src="images/hsgcommon/jq.js"></script>
<script src="images/hsgcommon/common.js"></script>
<script src="images/hsgcommon/bootbox.js"></script>

@ -0,0 +1,66 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>充值信息</title>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
</head>
<body >
<p>已有充值信息列表:</p>
<form name="form1" id="form1" method="post" action="">
搜索: 用户名:<input name="yonghuming" type="text" id="yonghuming" class="form-control2" /> 姓名:<input name="xingming" type="text" id="xingming" class="form-control2" />
<input type="submit" name="Submit" value="查找" class="btn btn-info btn-small" /> <input type="button" name="Submit2" value="导出EXCEL" class="btn btn-info btn-small" onClick="javascript:location.href='chongzhixinxi_listxls.jsp';" />
</form>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="cccccc" >
<tr>
<td width="35" height="30" align="center" bgcolor="cccccc">序号</td>
<td bgcolor='#cccccc'>用户名</td> <td bgcolor='#cccccc'>姓名</td> <td bgcolor='#cccccc'>日期</td> <td bgcolor='#cccccc'>充值金额</td>
<td width="138" height="30" align="center" bgcolor="cccccc">添加时间</td>
<td width="220" height="30" align="center" bgcolor="cccccc">操作</td>
</tr>
<%
new CommDAO().delete(request,"chongzhixinxi");
String url = "chongzhixinxi_list.jsp?1=1";
String sql = "select * from chongzhixinxi where 1=1";
if(request.getParameter("yonghuming")=="" ||request.getParameter("yonghuming")==null ){}else{sql=sql+" and yonghuming like '%"+request.getParameter("yonghuming")+"%'";} if(request.getParameter("xingming")=="" ||request.getParameter("xingming")==null ){}else{sql=sql+" and xingming like '%"+request.getParameter("xingming")+"%'";}
sql+=" order by id desc";
ArrayList<HashMap> list = PageManager.getPages(url,15,sql, request);
int i=0;
for(HashMap map:list){
i++;
%>
<tr>
<td width="35" align="center"><%=i %></td>
<td><%=map.get("yonghuming") %></td> <td><%=map.get("xingming") %></td> <td><%=map.get("riqi") %></td> <td><%=map.get("chongzhijine") %></td>
<td width="138" align="center"><%=map.get("addtime") %></td>
<td width="220" align="center"><a class="btn btn-info btn-small" href="chongzhixinxi_updt.jsp?id=<%=map.get("id")%>">修改</a> <a class="btn btn-info btn-small" href="chongzhixinxi_list.jsp?scid=<%=map.get("id") %>" onClick="return confirm('真的要删除?')">删除</a> </td>
</tr>
<%
}
%>
</table>
<br>
<p class="fy">${page.info }</p>
</body>
</html>

@ -0,0 +1,64 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>充值信息</title>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
</head>
<body >
<p>已有充值信息列表:</p>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="cccccc" >
<tr>
<td width="35" height="30" align="center" bgcolor="cccccc">序号</td>
<td bgcolor='#cccccc'>用户名</td>
<td bgcolor='#cccccc'>姓名</td>
<td bgcolor='#cccccc'>日期</td>
<td bgcolor='#cccccc'>充值金额</td>
</tr>
<%
new CommDAO().delete(request,"chongzhixinxi");
String url = "chongzhixinxi_list.jsp?1=1";
String sql = "select * from chongzhixinxi where 1=1";
if(request.getParameter("yonghuming")=="" ||request.getParameter("yonghuming")==null ){}else{sql=sql+" and yonghuming like '%"+request.getParameter("yonghuming")+"%'";}
if(request.getParameter("xingming")=="" ||request.getParameter("xingming")==null ){}else{sql=sql+" and xingming like '%"+request.getParameter("xingming")+"%'";}
sql+=" order by id desc";
ArrayList<HashMap> list = PageManager.getPages(url,15,sql, request);
int i=0;
for(HashMap map:list){
i++;
%>
<tr>
<td width="35" align="center"><%=i %></td>
<td><%=map.get("yonghuming") %></td>
<td><%=map.get("xingming") %></td>
<td><%=map.get("riqi") %></td>
<td><%=map.get("chongzhijine") %></td>
</tr>
<%
}
%>
</table>
<br>
<p class="fy">${page.info }</p>
</body>
</html>

@ -0,0 +1,66 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>充值信息</title>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
</head>
<body >
<p>已有充值信息列表:</p>
<form name="form1" id="form1" method="post" action="">
搜索: 用户名:<input name="yonghuming" type="text" id="yonghuming" class="form-control2" /> 姓名:<input name="xingming" type="text" id="xingming" class="form-control2" />
<input type="submit" name="Submit" value="查找" class="btn btn-info btn-small" /> <input type="button" name="Submit2" value="导出EXCEL" class="btn btn-info btn-small" onClick="javascript:location.href='chongzhixinxi_listxls.jsp';" />
</form>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="cccccc">
<tr>
<td width="30" align="center" bgcolor="cccccc">序号</td>
<td bgcolor='#cccccc'>用户名</td> <td bgcolor='#cccccc'>姓名</td> <td bgcolor='#cccccc'>日期</td> <td bgcolor='#cccccc'>充值金额</td>
<td width="138" align="center" bgcolor="cccccc">添加时间</td>
<td width="60" align="center" bgcolor="cccccc">操作</td>
</tr>
<%
new CommDAO().delete(request,"chongzhixinxi");
String url = "chongzhixinxi_list.jsp?1=1";
String sql = "select * from chongzhixinxi where 1=1";
if(request.getParameter("yonghuming")=="" ||request.getParameter("yonghuming")==null ){}else{sql=sql+" and yonghuming like '%"+request.getParameter("yonghuming")+"%'";} if(request.getParameter("xingming")=="" ||request.getParameter("xingming")==null ){}else{sql=sql+" and xingming like '%"+request.getParameter("xingming")+"%'";}
sql+=" order by id desc";
ArrayList<HashMap> list = PageManager.getPages(url,15,sql, request);
int i=0;
for(HashMap map:list){
i++;
%>
<tr>
<td width="30" align="center"><%=i %></td>
<td><%=map.get("yonghuming") %></td> <td><%=map.get("xingming") %></td> <td><%=map.get("riqi") %></td> <td><%=map.get("chongzhijine") %></td>
<td width="138" align="center"><%=map.get("addtime") %></td>
<td width="60" align="center"><!--lianjie1--> </td>
</tr>
<%
}
%>
</table>
<br>
<p class="fy">${page.info }</p>
</body>
</html>

@ -0,0 +1,54 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<%
response.setContentType("application/vnd.ms-excel");
response.addHeader("Content-Disposition", "attachment;filename=chongzhixinxi.xls");
%>
<html>
<head>
<title>充值信息</title>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
</head>
<body >
<p>已有充值信息列表:</p>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="cccccc" >
<tr>
<td width="30" align="center" bgcolor="cccccc">序号</td>
<td bgcolor='#cccccc'>用户名</td> <td bgcolor='#cccccc'>姓名</td> <td bgcolor='#cccccc'>日期</td> <td bgcolor='#cccccc'>充值金额</td>
<td width="138" align="center" bgcolor="cccccc">添加时间</td>
</tr>
<%
String url = "chongzhixinxi_list.jsp?1=1";
String sql = "select * from chongzhixinxi where 1=1";
sql+=" order by id desc";
ArrayList<HashMap> list = PageManager.getPages(url,15,sql, request);
int i=0;
for(HashMap map:list){
i++;
%>
<tr>
<td width="30" align="center"><%=i %></td>
<td><%=map.get("yonghuming") %></td> <td><%=map.get("xingming") %></td> <td><%=map.get("riqi") %></td> <td><%=map.get("chongzhijine") %></td>
<td width="138" align="center"><%=map.get("addtime") %></td>
</tr>
<%
}
%>
</table>
<br>
以上数据共<%=i %>条
</body>
</html>

@ -0,0 +1,58 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>充值信息</title>
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
<script type="text/javascript" src="js/popup.js"></script>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
</head>
<script language="javascript">
function hsgxia2shxurxu(nstr,nwbk)
{
if (eval("form1."+nwbk).value.indexOf(nstr)>=0)
{
eval("form1."+nwbk).value=eval("form1."+nwbk).value.replace(nstr+"", "");
}
else
{
eval("form1."+nwbk).value=eval("form1."+nwbk).value+nstr+"";
}
}
</script>
<body >
<%
String id = request.getParameter("id");
HashMap ext = new HashMap();
new CommDAO().update(request,response,"chongzhixinxi",ext,true,false,"");
HashMap mmm = new CommDAO().getmap(id,"chongzhixinxi");
%>
<form action="chongzhixinxi_updt.jsp?f=f&id=<%=mmm.get("id")%>" method="post" name="form1" onsubmit="return checkform();">
修改充值信息:
<br><br>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#cccccc" style="border-collapse:collapse">
<tr><td>用户名:</td><td><input name='yonghuming' type='text' id='yonghuming' value='<%= mmm.get("yonghuming")%>' class="form-control" /></td></tr> <tr><td>姓名:</td><td><input name='xingming' type='text' id='xingming' value='<%= mmm.get("xingming")%>' class="form-control" /></td></tr> <tr><td>日期:</td><td><input name='riqi' type='text' id='riqi' value='<%= mmm.get("riqi")%>' class="form-control" /></td></tr> <tr><td>充值金额:</td><td><input name='chongzhijine' type='text' id='chongzhijine' value='<%= mmm.get("chongzhijine")%>' class="form-control" /></td></tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="提交" onClick="return checkform();" class="btn btn-info btn-small" />
<input type="reset" name="Submit2" value="重置" class="btn btn-info btn-small" /></td>
</tr>
</table>
</form>
</body>
</html>

@ -0,0 +1,27 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>数据备份</title>
</head>
<body>
<%
if (request.getSession().getAttribute("cx").equals("超级管理员"))
{
String sql="";
sql="backup database jspmjsfglxthsg8101W6B8 to disk='D:/jspmjsfglxthsg8101W6B8.dat'";
new CommDAO().commOper(sql);
out.print("<script>alert('操作成功!!您的数据库已成功备份于D:/jspmjsfglxthsg8101W6B8.dat');location.href='sy.jsp';</script>");
}
else
{
out.print("<script>alert('对不起,您没有该权限');location.href='sy.jsp';</script>");
}
%>
</body>
</html>

@ -0,0 +1,45 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>批量删除</title>
</head>
<body>
<%
String id="";
String tablename=request.getParameter("tablename");
String lb=request.getParameter("lb");
String[] values = request.getParameterValues("pldel");
if(values!=null)
{
for(int i=0;i<values.length;i++)
{
id=id+values[i]+",";
}
id=id.substring(0,id.length()-1);
String sql="delete from "+tablename+" where id in ("+id+")";
//out.print(sql);
new CommDAO().commOper(sql);
out.print("<script>alert('删除成功!!');location.href='xinwentongzhi_list.jsp?lb="+lb+"';</script>");
}
else
{
out.print("<script>alert('对不起,您没有选择任何要删除的行!!');location.href='xinwentongzhi_list.jsp?lb="+lb+"';</script>");
}
%>
</body>
</html>

@ -0,0 +1,106 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<%
if((String)request.getSession().getAttribute("username")==null || (String)request.getSession().getAttribute("username")=="")
{
out.print("<script>javascript:alert('对不起,请您先登陆!');history.back();</script>");
out.close();
}
%>
<html>
<head>
<title>dx</title>
<link rel="stylesheet" href="kindeditor_a5/themes/default/default.css" />
<link rel="stylesheet" href="kindeditor_a5/plugins/code/prettify.css" />
<script charset="utf-8" src="kindeditor_a5/kindeditor.js"></script>
<script charset="utf-8" src="kindeditor_a5/lang/zh_CN.js"></script>
<script charset="utf-8" src="kindeditor_a5/plugins/code/prettify.js"></script>
<script>
KindEditor.ready(function(K) {
var editor1 = K.create('textarea[name="content"]', {
cssPath : 'kindeditor_a5/plugins/code/prettify.css',
uploadJson : 'kindeditor_a5/jsp/upload_json.jsp',
fileManagerJson : 'kindeditor_a5/jsp/file_manager_json.jsp',
allowFileManager : true,
afterCreate : function() {
var self = this;
K.ctrl(document, 13, function() {
self.sync();
document.forms['example'].submit();
});
K.ctrl(self.edit.doc, 13, function() {
self.sync();
document.forms['example'].submit();
});
}
});
prettyPrint();
});
</script>
</head>
<body >
<%
String lb="系统简介";
if("1".equals(request.getParameter("lb"))){
lb="系统简介";
}else if("2".equals(request.getParameter("lb"))){
lb="关于我们";
}else if("3".equals(request.getParameter("lb"))){
lb="联系方式";
}
%>
编辑<%=lb%>:
<br><br>
<%
String url="dx.jsp?lb="+lb;
HashMap ext = new HashMap();
new CommDAO().update(request,response,"dx",ext,true,false,"");
String sql="select * from dx where leibie='"+lb+"'";
ArrayList<HashMap> list = PageManager.getPages(url,20,sql, request );
int i=0;
for(HashMap map:list){
i++;
}
if(i==0)
{
sql="insert into dx(leibie,content) values('"+lb+"','"+lb+"')";
new CommDAO().commOper(sql);
out.print("<script>javascript:location.href='dx.jsp?lb="+lb+"';</script>");
}
else
{
HashMap m = new CommDAO().getmaps("leibie",lb,"dx");
%>
<form action="dx.jsp?f=f&id=<%=m.get("id")%>&lb=<%=lb%>" method="post" name="f1" >
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#00FFFF" style="border-collapse:collapse">
<tr><td>内容:</td><td><textarea name="content" cols="100" rows="8" style="width:700px;height:400px;visibility:hidden;"><%=m.get("content")%></textarea>
<input name="lb" type="hidden" id="lb" value="<%=m.get("leibie")%>"></td></tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="确定编辑" onClick="return check();" />
<input type="reset" name="Submit2" value="重置" /></td>
</tr>
</table>
</form>
<%
}
%>
</body>
</html>

@ -0,0 +1,60 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<%
String lb="系统简介";
if("1".equals(request.getParameter("lb"))){
lb="系统简介";
}else if("2".equals(request.getParameter("lb"))){
lb="关于我们";
}else if("3".equals(request.getParameter("lb"))){
lb="联系方式";
}
//String lb=new String(request.getParameter("lb").getBytes("8859_1"));
%>
<!DOCTYPE html>
<html>
<head>
<title><%=lb%></title>
<link rel="stylesheet" type="text/css" href="qtimages/css/style.css"/>
<link rel="stylesheet" type="text/css" href="qtimages/css/mislider.css"/>
<style>
.dd a:hover{color: red;}
.dd a{ font-size: 18px;}
.header .top .logo{margin-right: 260px;}
.header{ position: fixed; top: 0; left: 0; z-index: 9999; background: #fff; width: 100%;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body style="padding-top:220px;">
<%@ include file="qttop.jsp"%>
<%@ include file="bht.jsp"%>
<div class="index_about index">
<div class="w1200">
<h2 class="t"><%=lb%></h2>
<p class="t_en">about us</p>
<div class="desc">
<%
HashMap m = new CommDAO().getmaps("leibie",lb,"dx");
%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FA8A89" class="newsline" style="border-collapse:collapse">
<tr>
<td height="110" align="left"><%=m.get("content") %></td>
</tr>
<tr>
<td height="33" align="right"><input type="button" name="Submit5" value="返回" onClick="javascript:history.back();" ></td>
</tr>
</table>
</div>
</div>
</div>
<%@ include file="yqlj.jsp"%>
<%@ include file="qtdown.jsp"%>
<%@ include file="kefutiao.jsp"%>
</body>
</html>

File diff suppressed because one or more lines are too long

@ -0,0 +1,56 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<!DOCTYPE html>
<html>
<head>
<title>ÄÚÈÝÏêϸ</title>
<link rel="stylesheet" type="text/css" href="qtimages/css/style.css"/>
<link rel="stylesheet" type="text/css" href="qtimages/css/mislider.css"/>
<style>
.dd a:hover{color: red;}
.dd a{ font-size: 18px;}
.header .top .logo{margin-right: 260px;}
.header{ position: fixed; top: 0; left: 0; z-index: 9999; background: #fff; width: 100%;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<%
String id=request.getParameter("id");
new CommDAO().commOper("update xinwentongzhi set dianjilv=dianjilv+1 where id="+id);
%>
<body style="padding-top:220px;">
<%@ include file="qttop.jsp"%>
<%@ include file="bht.jsp"%>
<div class="index_about index">
<div class="w1200">
<h2 class="t">ÄÚÈÝÏêϸ</h2>
<p class="t_en">Details</p>
<div class="desc">
<%
HashMap m = new CommDAO().getmap(id,"xinwentongzhi");
%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FA8A89" class="newsline" style="border-collapse:collapse">
<tr>
<td height="46" align="center" class="STYLE1"><%=m.get("biaoti") %> (±»·ÃÎÊ<%=m.get("dianjilv") %>´Î) </td>
</tr>
<tr>
<td height="110" align="left"><%=m.get("neirong") %></td>
</tr>
<tr>
<td height="33" align="right"><input type="button" name="Submit5" value="·µ»Ø" onClick="javascript:history.back();" ></td>
</tr>
</table>
</div>
</div>
</div>
<%@ include file="yqlj.jsp"%>
<%@ include file="qtdown.jsp"%>
<%@ include file="kefutiao.jsp"%>
</body>
</html>

@ -0,0 +1,41 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>留言板</title>
</head>
<body >
<%
String id = request.getParameter("id");
HashMap ext = new HashMap();
new CommDAO().update(request,response,"liuyanban",ext,true,false,"liuyanban_list.jsp");
HashMap mmm = new CommDAO().getmap(id,"liuyanban");
%>
<form action="hf.jsp?f=f&id=<%=mmm.get("id")%>" method="post" name="f1" onsubmit="return checkform();">
回复留言:
<br>
<br>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#00FFFF" style="border-collapse:collapse"><tr>
<td>回复内容:</td><td><textarea name="huifuneirong" cols="50" rows="5" id="huifuneirong"></textarea></td></tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="提交" />
<input type="reset" name="Submit2" value="重置" /></td>
</tr>
</table>
</form>
</body>
</html>
<%=Info.tform(mmm,"f1")%>

@ -0,0 +1,84 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<%
if((String)request.getSession().getAttribute("username")==null || (String)request.getSession().getAttribute("username")=="")
{
out.print("<script>alert('对不起,请您先登陆!');parent.location=parent.location;</script>");
}
%>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>在线评论</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
-->
</style></head>
<body>
<%
String id=request.getParameter("id");
String biao=request.getParameter("biao");
HashMap ext = new HashMap();
//String tglparentid=request.getParameter("tglparentid")==null?"":request.getParameter("tglparentid");
//ext.put("tglparentid",tglparentid);
//ext.put("issh","否");
new CommDAO().insert(request,response,"pinglun",ext,true,true,"");
%>
<script language="javascript">
function check()
{
if(document.form1.pinglunneirong.value==""){alert("请输入评论内容");document.form1.pinglunneirong.focus();return false;}
}
</script>
<form action="hsgpinglun.jsp?f=f" method="post" name="form1" onsubmit="return checkform();">
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#333333" style="border-collapse:collapse" class="newsline">
<tr style="display:none">
<td>编号:</td>
<td><input name='xinwenID' type='text' id='xinwenID' value='<%=id%>' readonly="readonly" />
&nbsp;*</td>
</tr>
<tr>
<td>评分:</td>
<td><select name="pingfen" id="pingfen">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</td>
</tr>
<tr>
<td>评论内容:</td>
<td><textarea name='pinglunneirong' cols='50' rows='5' id='pinglunneirong'></textarea>
&nbsp;*</td>
</tr>
<tr>
<td>评论人:</td>
<td><input name='pinglunren' type='text' id='pinglunren' value="<%=request.getSession().getAttribute("username")%>" />
&nbsp;*</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Submit5" value="提交" onclick="return check();" />
<input type="reset" name="Submit22" value="重置" />
<input name="biao" type="hidden" id="biao" value="<%=biao%>" /></td>
</tr>
</table>
</form>
</body>
</html>

@ -0,0 +1,47 @@
<%@ page contentType="image/jpeg" import="java.awt.*,
java.awt.image.*,java.util.*,javax.imageio.*" %>
<%!
Color getRandColor(int fc,int bc)
{
Random random = new Random();
if(fc>255) fc=255;
if(bc>255) bc=255;
int r=fc+random.nextInt(bc-fc);
int g=fc+random.nextInt(bc-fc);
int b=fc+random.nextInt(bc-fc);
return new Color(r,g,b);
}
%>
<%
out.clear();//这句针对resin服务器如果是tomacat可以不要这句
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
int width=60, height=20;
BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
Graphics g = image.getGraphics();
Random random = new Random();
g.setColor(getRandColor(200,250));
g.fillRect(0, 0, width, height);
g.setFont(new Font("Times New Roman",Font.PLAIN,18));
g.setColor(getRandColor(160,200));
for (int i=0;i<155;i++)
{
int x = random.nextInt(width);
int y = random.nextInt(height);
int xl = random.nextInt(12);
int yl = random.nextInt(12);
g.drawLine(x,y,x+xl,y+yl);
}
String sRand="";
for (int i=0;i<4;i++){
String rand=String.valueOf(random.nextInt(10));
sRand+=rand;
g.setColor(new Color(20+random.nextInt(110),20+random.nextInt(110),20+random.nextInt(110)));
g.drawString(rand,13*i+6,16);
}
// 将认证码存入SESSION
session.setAttribute("random",sRand);
g.dispose();
ImageIO.write(image, "JPEG", response.getOutputStream());
%>

@ -0,0 +1,65 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<!DOCTYPE html>
<html>
<head>
<title>健身房管理系统</title>
<link rel="stylesheet" type="text/css" href="qtimages/css/style.css"/>
<link rel="stylesheet" type="text/css" href="qtimages/css/mislider.css"/>
<style>
.dd a:hover{color: red;}
.dd a{ font-size: 18px;}
.header .top .logo{margin-right: 260px;}
.header{ position: fixed; top: 0; left: 0; z-index: 9999; background: #fff; width: 100%;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body style="padding-top:220px;">
<%@ include file="qttop.jsp"%>
<%@ include file="bht.jsp"%>
<!--关于我们-->
<div class='index_services index'>
<h2 class='t'>器材推荐</h2>
<p class='t_en'>Service process</p>
<div class='w1200'>
<ul>
<%
int iqicaixinxi=0;
for(HashMap mapqicaixinxi:new CommDAO().select("select * from qicaixinxi order by id desc "))
{
iqicaixinxi++;
if(iqicaixinxi<=5)
{
%>
<li><a href='qicaixinxidetail.jsp?id=<%=mapqicaixinxi.get("id")%>'><img src='<%=mapqicaixinxi.get("tupian")%>' width='180' height='200'/></a><p><%=mapqicaixinxi.get("qicaimingcheng")%></p></li>
<%
}
}
%>
</ul>
</div>
</div>
<div class="index_about index">
<div class="w1200">
<h2 class="t">关于我们</h2>
<p class="t_en">about us</p>
<div class="desc">
<p> <% HashMap m1 = new CommDAO().getmaps("leibie","关于我们","dx");out.print(Info.ensubStr(m1.get("content"),185)); %></p>
</div>
</div>
</div>
<%@ include file="qtdown.jsp"%>
<%@ include file="kefutiao.jsp"%>
</body>
</html>

@ -0,0 +1,101 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>健身信息</title>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
<script type="text/javascript" src="js/popup.js"></script>
</head>
<%
String id="";
HashMap mssdq = new CommDAO().getmaps("yonghuming",(String)request.getSession().getAttribute("username"),"yonghuzhuce");
String xingming="";
xingming=(String)mssdq.get("xingming");
%>
<script language="javascript">
function gow()
{
document.location.href="jianshenxinxi_add.jsp?id=<%=id%>";
}
function hsgxia2shxurxu(nstr,nwbk)
{
if (eval("form1."+nwbk).value.indexOf(nstr)>=0)
{
eval("form1."+nwbk).value=eval("form1."+nwbk).value.replace(nstr+"", "");
}
else
{
eval("form1."+nwbk).value=eval("form1."+nwbk).value+nstr+"";
}
}
</script>
<%
HashMap ext = new HashMap();
if(request.getParameter("f")!=null){
new CommDAO().insert(request,response,"jianshenxinxi",ext,true,false,"");
}
%>
<body >
<form action="jianshenxinxi_add.jsp?f=f&id=<%=id%>" method="post" name="form1" onsubmit="return checkform();">
添加健身信息:
<br><br>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#cccccc" >
<tr><td width="200">用户名:</td><td><input name='yonghuming' type='text' id='yonghuming' onblur='checkform()' class="form-control" value='<%=request.getSession().getAttribute("username")%>' readonly="readonly" />&nbsp;*<label id='clabelyonghuming' /></td></tr> <tr><td width="200">姓名:</td><td><input name='xingming' type='text' id='xingming' value='' onblur='' class="form-control" /></td></tr><script language="javascript">document.form1.xingming.value='<%=xingming%>';document.form1.xingming.setAttribute("readOnly",'true');</script> <tr><td width="200">日期:</td><td><input name='riqi' type='text' id='riqi' value='' onblur='' class="form-control" /></td></tr> <tr><td width="200">健身类型:</td><td><input name='jianshenleixing' type='text' id='jianshenleixing' value='' onblur='' class="form-control" /></td></tr> <tr><td width="200">时长:</td><td><input name='shichang' type='text' id='shichang' value='' onblur='checkform()' class="form-control" />&nbsp;<label id='clabelshichang' />必需数字型</td></tr> <tr><td width="200">效果:</td><td><textarea name='xiaoguo' id='xiaoguo' onblur='' class="form-control" style="width:600px;height:80px;" ></textarea></td></tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="提交" class="btn btn-info btn-small" />
<input type="reset" name="Submit2" value="重置" class="btn btn-info btn-small" /></td>
</tr>
</table>
</form>
</body>
</html>
<script language=javascript src='js/ajax.js'></script>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.HashMap"%>
<script language=javascript >
function checkform(){
var yonghumingobj = document.getElementById("yonghuming"); if(yonghumingobj.value==""){document.getElementById("clabelyonghuming").innerHTML="&nbsp;&nbsp;<font color=red>请输入用户名</font>";return false;}else{document.getElementById("clabelyonghuming").innerHTML=" "; } var shichangobj = document.getElementById("shichang"); if(shichangobj.value!=""){ if(/^[0-9]+.?[0-9]*$/.test(shichangobj.value)){document.getElementById("clabelshichang").innerHTML=""; }else{document.getElementById("clabelshichang").innerHTML="&nbsp;&nbsp;<font color=red>必需数字型</font>"; return false;}}
return true;
}
popheight=450;
</script>
<script src="images/hsgcommon/jq.js"></script>
<script src="images/hsgcommon/common.js"></script>
<script src="images/hsgcommon/bootbox.js"></script>

@ -0,0 +1,66 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>健身信息</title>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
</head>
<body >
<p>已有健身信息列表:</p>
<form name="form1" id="form1" method="post" action="">
搜索: 日期:<input name="riqi" type="text" id="riqi" class="form-control2" /> 健身类型:<input name="jianshenleixing" type="text" id="jianshenleixing" class="form-control2" />
<input type="submit" name="Submit" value="查找" class="btn btn-info btn-small" /> <input type="button" name="Submit2" value="导出EXCEL" class="btn btn-info btn-small" onClick="javascript:location.href='jianshenxinxi_listxls.jsp';" />
</form>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="cccccc" >
<tr>
<td width="35" height="30" align="center" bgcolor="cccccc">序号</td>
<td bgcolor='#cccccc'>用户名</td> <td bgcolor='#cccccc'>姓名</td> <td bgcolor='#cccccc'>日期</td> <td bgcolor='#cccccc'>健身类型</td> <td bgcolor='#cccccc'>时长</td> <td bgcolor='#cccccc'>效果</td>
<td width="138" height="30" align="center" bgcolor="cccccc">添加时间</td>
<td width="220" height="30" align="center" bgcolor="cccccc">操作</td>
</tr>
<%
new CommDAO().delete(request,"jianshenxinxi");
String url = "jianshenxinxi_list.jsp?1=1";
String sql = "select * from jianshenxinxi where 1=1";
if(request.getParameter("riqi")=="" ||request.getParameter("riqi")==null ){}else{sql=sql+" and riqi like '%"+request.getParameter("riqi")+"%'";} if(request.getParameter("jianshenleixing")=="" ||request.getParameter("jianshenleixing")==null ){}else{sql=sql+" and jianshenleixing like '%"+request.getParameter("jianshenleixing")+"%'";}
sql+=" order by id desc";
ArrayList<HashMap> list = PageManager.getPages(url,15,sql, request);
int i=0;
for(HashMap map:list){
i++;
%>
<tr>
<td width="35" align="center"><%=i %></td>
<td><%=map.get("yonghuming") %></td> <td><%=map.get("xingming") %></td> <td><%=map.get("riqi") %></td> <td><%=map.get("jianshenleixing") %></td> <td><%=map.get("shichang") %></td> <td><%=map.get("xiaoguo") %></td>
<td width="138" align="center"><%=map.get("addtime") %></td>
<td width="220" align="center"><a class="btn btn-info btn-small" href="jianshenxinxi_updt.jsp?id=<%=map.get("id")%>">修改</a> <a class="btn btn-info btn-small" href="jianshenxinxi_list.jsp?scid=<%=map.get("id") %>" onClick="return confirm('真的要删除?')">删除</a> </td>
</tr>
<%
}
%>
</table>
<br>
<p class="fy">${page.info }</p>
</body>
</html>

@ -0,0 +1,62 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>健身信息</title>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
</head>
<body >
<p>已有健身信息列表:</p>
<form name="form1" id="form1" method="post" action="">
搜索: 日期:<input name="riqi" type="text" id="riqi" class="form-control2" /> 健身类型:<input name="jianshenleixing" type="text" id="jianshenleixing" class="form-control2" />
<input type="submit" name="Submit" value="查找" class="btn btn-info btn-small" />
</form>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="cccccc" >
<tr>
<td width="30" align="center" bgcolor="cccccc">序号</td>
<td bgcolor='#cccccc'>用户名</td> <td bgcolor='#cccccc'>姓名</td> <td bgcolor='#cccccc'>日期</td> <td bgcolor='#cccccc'>健身类型</td> <td bgcolor='#cccccc'>时长</td> <td bgcolor='#cccccc'>效果</td>
<td width="138" align="center" bgcolor="cccccc">添加时间</td>
<td width="220" align="center" bgcolor="cccccc">操作</td>
</tr>
<%
new CommDAO().delete(request,"jianshenxinxi");
String url = "jianshenxinxi_list2.jsp?1=1";
String sql = "select * from jianshenxinxi where yonghuming='"+request.getSession().getAttribute("username")+"' ";
if(request.getParameter("riqi")=="" ||request.getParameter("riqi")==null ){}else{sql=sql+" and riqi like '%"+request.getParameter("riqi")+"%'";} if(request.getParameter("jianshenleixing")=="" ||request.getParameter("jianshenleixing")==null ){}else{sql=sql+" and jianshenleixing like '%"+request.getParameter("jianshenleixing")+"%'";}
sql+=" order by id desc";
ArrayList<HashMap> list = PageManager.getPages(url,15,sql, request);
int i=0;
for(HashMap map:list){
i++;
%>
<tr>
<td width="30" align="center"><%=i %></td>
<td><%=map.get("yonghuming") %></td> <td><%=map.get("xingming") %></td> <td><%=map.get("riqi") %></td> <td><%=map.get("jianshenleixing") %></td> <td><%=map.get("shichang") %></td> <td><%=map.get("xiaoguo") %></td>
<td width="138" align="center"><%=map.get("addtime") %></td>
<td width="220" align="center"><a class="btn btn-info btn-small" href="jianshenxinxi_updt.jsp?id=<%=map.get("id")%>">修改</a> <a class="btn btn-info btn-small" href="jianshenxinxi_list2.jsp?scid=<%=map.get("id") %>" onClick="return confirm('真的要删除?')">删除</a> </td>
</tr>
<%
}
%>
</table><br>
<p class="fy">${page.info }</p>
</body>
</html>

@ -0,0 +1,66 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>健身信息</title>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
</head>
<body >
<p>已有健身信息列表:</p>
<form name="form1" id="form1" method="post" action="">
搜索: 日期:<input name="riqi" type="text" id="riqi" class="form-control2" /> 健身类型:<input name="jianshenleixing" type="text" id="jianshenleixing" class="form-control2" />
<input type="submit" name="Submit" value="查找" class="btn btn-info btn-small" /> <input type="button" name="Submit2" value="导出EXCEL" class="btn btn-info btn-small" onClick="javascript:location.href='jianshenxinxi_listxls.jsp';" />
</form>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="cccccc">
<tr>
<td width="30" align="center" bgcolor="cccccc">序号</td>
<td bgcolor='#cccccc'>用户名</td> <td bgcolor='#cccccc'>姓名</td> <td bgcolor='#cccccc'>日期</td> <td bgcolor='#cccccc'>健身类型</td> <td bgcolor='#cccccc'>时长</td> <td bgcolor='#cccccc'>效果</td>
<td width="138" align="center" bgcolor="cccccc">添加时间</td>
<td width="60" align="center" bgcolor="cccccc">操作</td>
</tr>
<%
new CommDAO().delete(request,"jianshenxinxi");
String url = "jianshenxinxi_list.jsp?1=1";
String sql = "select * from jianshenxinxi where 1=1";
if(request.getParameter("riqi")=="" ||request.getParameter("riqi")==null ){}else{sql=sql+" and riqi like '%"+request.getParameter("riqi")+"%'";} if(request.getParameter("jianshenleixing")=="" ||request.getParameter("jianshenleixing")==null ){}else{sql=sql+" and jianshenleixing like '%"+request.getParameter("jianshenleixing")+"%'";}
sql+=" order by id desc";
ArrayList<HashMap> list = PageManager.getPages(url,15,sql, request);
int i=0;
for(HashMap map:list){
i++;
%>
<tr>
<td width="30" align="center"><%=i %></td>
<td><%=map.get("yonghuming") %></td> <td><%=map.get("xingming") %></td> <td><%=map.get("riqi") %></td> <td><%=map.get("jianshenleixing") %></td> <td><%=map.get("shichang") %></td> <td><%=map.get("xiaoguo") %></td>
<td width="138" align="center"><%=map.get("addtime") %></td>
<td width="60" align="center"><!--lianjie1--> </td>
</tr>
<%
}
%>
</table>
<br>
<p class="fy">${page.info }</p>
</body>
</html>

@ -0,0 +1,54 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<%
response.setContentType("application/vnd.ms-excel");
response.addHeader("Content-Disposition", "attachment;filename=jianshenxinxi.xls");
%>
<html>
<head>
<title>健身信息</title>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
</head>
<body >
<p>已有健身信息列表:</p>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="cccccc" >
<tr>
<td width="30" align="center" bgcolor="cccccc">序号</td>
<td bgcolor='#cccccc'>用户名</td> <td bgcolor='#cccccc'>姓名</td> <td bgcolor='#cccccc'>日期</td> <td bgcolor='#cccccc'>健身类型</td> <td bgcolor='#cccccc'>时长</td> <td bgcolor='#cccccc'>效果</td>
<td width="138" align="center" bgcolor="cccccc">添加时间</td>
</tr>
<%
String url = "jianshenxinxi_list.jsp?1=1";
String sql = "select * from jianshenxinxi where 1=1";
sql+=" order by id desc";
ArrayList<HashMap> list = PageManager.getPages(url,15,sql, request);
int i=0;
for(HashMap map:list){
i++;
%>
<tr>
<td width="30" align="center"><%=i %></td>
<td><%=map.get("yonghuming") %></td> <td><%=map.get("xingming") %></td> <td><%=map.get("riqi") %></td> <td><%=map.get("jianshenleixing") %></td> <td><%=map.get("shichang") %></td> <td><%=map.get("xiaoguo") %></td>
<td width="138" align="center"><%=map.get("addtime") %></td>
</tr>
<%
}
%>
</table>
<br>
以上数据共<%=i %>条
</body>
</html>

@ -0,0 +1,76 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>½¡ÉíÀàÐÍͳ¼Æ</title>
<script src="echarts.min.js"></script>
</head>
<body >
<%
String sql;
int i=0;
String tleixing="";
sql="select distinct(jianshenleixing) as ss from jianshenxinxi";
for(HashMap map:new CommDAO().select(sql)){
i++;
tleixing=tleixing+"'"+map.get("ss")+"',";
}
if(i>0)
{
tleixing=tleixing.substring(0,tleixing.length()-1);
}
String[] b = tleixing.split(",");
String x="";
String ttz="";
for(int i2=0;i2<b.length;i2++){
sql="select count(id) as bbb from jianshenxinxi where jianshenleixing="+b[i2]+"";
for(HashMap map2:new CommDAO().select(sql)){
ttz=(String)map2.get("bbb");
}
x=x+"{value: "+ttz+" , name:"+b[i2]+"},";
}
%>
<div id="main" style="width:100%;height:480px" ></div>
<script type="text/javascript">
var myChart = echarts.init(document.getElementById('main'));
window.onresize = myChart.resize;
var option = {
title: {
text: '½¡ÉíÀàÐÍͳ¼Æͼ'
},
tooltip: {},
legend: {
data:[<%=tleixing%>]
},
grid: {
left: '5%',
right: '5%',
bottom: '5%',
width: '90%',
containLabel: true
},
xAxis: {
},
yAxis: {
data: []
},
series: [
{
name: '½¡ÉíÀàÐͱÈÀý',
type: 'pie',
radius: 150,
center: ['50%', '50%'],
data: [<%=x%>]
},
]
};
myChart.setOption(option);
</script>
</body>
</html>

@ -0,0 +1,76 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>½¡ÉíÀàÐÍͳ¼Æ</title>
<script src="echarts.min.js"></script>
</head>
<body >
<%
String sql;
int i=0;
String tleixing="";
sql="select distinct(jianshenleixing) as ss from jianshenxinxi";
for(HashMap map:new CommDAO().select(sql)){
i++;
tleixing=tleixing+"'"+map.get("ss")+"',";
}
if(i>0)
{
tleixing=tleixing.substring(0,tleixing.length()-1);
}
String[] b = tleixing.split(",");
String x="";
String ttz="";
for(int i2=0;i2<b.length;i2++){
sql="select count(id) as bbb from jianshenxinxi where yonghuming='"+request.getSession().getAttribute("username")+"' and jianshenleixing="+b[i2]+"";
for(HashMap map2:new CommDAO().select(sql)){
ttz=(String)map2.get("bbb");
}
x=x+"{value: "+ttz+" , name:"+b[i2]+"},";
}
%>
<div id="main" style="width:100%;height:480px" ></div>
<script type="text/javascript">
var myChart = echarts.init(document.getElementById('main'));
window.onresize = myChart.resize;
var option = {
title: {
text: '½¡ÉíÀàÐÍͳ¼Æͼ'
},
tooltip: {},
legend: {
data:[<%=tleixing%>]
},
grid: {
left: '5%',
right: '5%',
bottom: '5%',
width: '90%',
containLabel: true
},
xAxis: {
},
yAxis: {
data: []
},
series: [
{
name: '½¡ÉíÀàÐͱÈÀý',
type: 'pie',
radius: 150,
center: ['50%', '50%'],
data: [<%=x%>]
},
]
};
myChart.setOption(option);
</script>
</body>
</html>

@ -0,0 +1,58 @@
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>健身信息</title>
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
<script type="text/javascript" src="js/popup.js"></script>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
</head>
<script language="javascript">
function hsgxia2shxurxu(nstr,nwbk)
{
if (eval("form1."+nwbk).value.indexOf(nstr)>=0)
{
eval("form1."+nwbk).value=eval("form1."+nwbk).value.replace(nstr+"", "");
}
else
{
eval("form1."+nwbk).value=eval("form1."+nwbk).value+nstr+"";
}
}
</script>
<body >
<%
String id = request.getParameter("id");
HashMap ext = new HashMap();
new CommDAO().update(request,response,"jianshenxinxi",ext,true,false,"");
HashMap mmm = new CommDAO().getmap(id,"jianshenxinxi");
%>
<form action="jianshenxinxi_updt.jsp?f=f&id=<%=mmm.get("id")%>" method="post" name="form1" onsubmit="return checkform();">
修改健身信息:
<br><br>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#cccccc" style="border-collapse:collapse">
<tr><td>用户名:</td><td><input name='yonghuming' type='text' id='yonghuming' value='<%= mmm.get("yonghuming")%>' class="form-control" /></td></tr> <tr><td>姓名:</td><td><input name='xingming' type='text' id='xingming' value='<%= mmm.get("xingming")%>' class="form-control" /></td></tr> <tr><td>日期:</td><td><input name='riqi' type='text' id='riqi' value='<%= mmm.get("riqi")%>' class="form-control" /></td></tr> <tr><td>健身类型:</td><td><input name='jianshenleixing' type='text' id='jianshenleixing' value='<%= mmm.get("jianshenleixing")%>' class="form-control" /></td></tr> <tr><td>时长:</td><td><input name='shichang' type='text' id='shichang' value='<%= mmm.get("shichang")%>' class="form-control" /></td></tr> <tr><td>效果:</td><td><textarea name='xiaoguo' cols='50' rows='5' id='xiaoguo' class="form-control" style="width:600px;height:80px;" ><%=mmm.get("xiaoguo")%></textarea></td></tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="提交" onClick="return checkform();" class="btn btn-info btn-small" />
<input type="reset" name="Submit2" value="重置" class="btn btn-info btn-small" /></td>
</tr>
</table>
</form>
</body>
</html>
Loading…
Cancel
Save