+
+
+
+
+
+
+
+ |
+ |
+ |
+
+ |
+
+
+ |
+
+
+
+
+
+
+
+
+ |
+ |
+
+ |
+
+ <%
+ String strpurview = (String)application.getAttribute("Purview");
+ if(strpurview.equalsIgnoreCase("ֻ")){
+ %>
+ ¼Ϣ
+ <%}else{ %>
+ ¼Ϣ |
+ <%} %>
+ |
+
+
+ |
+
+
+
+
+
+
+
+ |
+ |
+ ʱ
+ |
+ ɾ |
+
+ <%
+ String currPage = request.getParameter("currPage"); //õǰҳ
+ int iCurrPage = 1 ; //ĿǰҳעʼֵΪ0
+ int pages = 1 ; //ҳ
+ int allRecCount = 0 ; //ܵļ¼
+ int recPerPage = 5 ; //ÿҳʾļ¼
+ allRecCount = HibernateUtil.findMeetingCount(); //ùзѯܵļ¼
+ pages = (allRecCount - 1)/recPerPage + 1 ; //ܵҳ
+ if(pages == 0){ //ҳЧԴ,ʹҳСֵ1
+ pages = 1;
+ }
+ if(currPage != null && !currPage.equalsIgnoreCase("")){ //жcurrpageǷΪ
+ iCurrPage = Integer.parseInt(currPage); //currpageֵiCurrpage
+ }
+ List listMeeting =HibernateUtil.finMeeting((iCurrPage - 1) * recPerPage, recPerPage); //÷ҳ
+ if(listMeeting.isEmpty()){
+ out.println("Ϣ"); //ѯΪʱҳ"Ϣ"
+ }
+ if(!listMeeting.isEmpty() && listMeeting.size()>0){
+ for(int i= 0;i
+
+
+ <%=meeting.getSubject()%> |
+ <%=meeting.getCPerson()%> |
+ <%=meeting.getMTime()%> |
+ <% String purview = (String)application.getAttribute("Purview"); //ýapplicationеĵ¼ûȨ
+ if(purview.equalsIgnoreCase("ֻ")){ //ûȨ"ֻ"תmeeting_delno.jspҳ棬ܽɾ
+ %>
+ |
+ <%} %>
+ <%if(purview.equalsIgnoreCase("ϵͳ")){ %>
+
+
+ |
+
+ <%}}}%>
+
+ |
+
+
+
+
+
+ <%
+ if(recPerPage < allRecCount){
+ String href = " һҳ");
+ }
+ for(int i = 1 ; i <= pages ; i ++){
+ if(i == iCurrPage){
+ sbf.append(href+i+"'>["+i+"]"); //Ӵ,ֵǰҳ
+ }
+ else{
+ sbf.append(href+i+"'>"+i+"");
+ }
+ }
+ if(iCurrPage < pages){
+ sbf.append(href+(iCurrPage + 1)+"'>һҳ"); //һҳ
+ }
+ %>
+ <%out.print("ǰҳ:["+iCurrPage+"/"+pages+"]");%>
+ <%=sbf.toString()%>
+ <%}%>
+ |
+
+
+
+
+
+
+
diff --git a/08/WebRoot/EveryDay/meeting/noaddmeeting.jsp b/08/WebRoot/EveryDay/meeting/noaddmeeting.jsp
new file mode 100644
index 0000000..e6e21ed
--- /dev/null
+++ b/08/WebRoot/EveryDay/meeting/noaddmeeting.jsp
@@ -0,0 +1,9 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+
+
+
+
+
\ No newline at end of file
diff --git a/08/WebRoot/Images/3.gif b/08/WebRoot/Images/3.gif
new file mode 100644
index 0000000..54b2b4a
Binary files /dev/null and b/08/WebRoot/Images/3.gif differ
diff --git a/08/WebRoot/Images/88.gif b/08/WebRoot/Images/88.gif
new file mode 100644
index 0000000..8e264b4
Binary files /dev/null and b/08/WebRoot/Images/88.gif differ
diff --git a/08/WebRoot/Images/Thumbs.db b/08/WebRoot/Images/Thumbs.db
new file mode 100644
index 0000000..6552b8c
Binary files /dev/null and b/08/WebRoot/Images/Thumbs.db differ
diff --git a/08/WebRoot/Images/about.jpg b/08/WebRoot/Images/about.jpg
new file mode 100644
index 0000000..fd21720
Binary files /dev/null and b/08/WebRoot/Images/about.jpg differ
diff --git a/08/WebRoot/Images/add.gif b/08/WebRoot/Images/add.gif
new file mode 100644
index 0000000..ba15f87
Binary files /dev/null and b/08/WebRoot/Images/add.gif differ
diff --git a/08/WebRoot/Images/asasas.jpg b/08/WebRoot/Images/asasas.jpg
new file mode 100644
index 0000000..e6bbd55
Binary files /dev/null and b/08/WebRoot/Images/asasas.jpg differ
diff --git a/08/WebRoot/Images/bhj.jpg b/08/WebRoot/Images/bhj.jpg
new file mode 100644
index 0000000..8d3362a
Binary files /dev/null and b/08/WebRoot/Images/bhj.jpg differ
diff --git a/08/WebRoot/Images/bj.gif b/08/WebRoot/Images/bj.gif
new file mode 100644
index 0000000..bb5dac5
Binary files /dev/null and b/08/WebRoot/Images/bj.gif differ
diff --git a/08/WebRoot/Images/close.jpg b/08/WebRoot/Images/close.jpg
new file mode 100644
index 0000000..4925f2d
Binary files /dev/null and b/08/WebRoot/Images/close.jpg differ
diff --git a/08/WebRoot/Images/date.gif b/08/WebRoot/Images/date.gif
new file mode 100644
index 0000000..a36ff93
Binary files /dev/null and b/08/WebRoot/Images/date.gif differ
diff --git a/08/WebRoot/Images/del.gif b/08/WebRoot/Images/del.gif
new file mode 100644
index 0000000..7343b48
Binary files /dev/null and b/08/WebRoot/Images/del.gif differ
diff --git a/08/WebRoot/Images/detail.gif b/08/WebRoot/Images/detail.gif
new file mode 100644
index 0000000..0132922
Binary files /dev/null and b/08/WebRoot/Images/detail.gif differ
diff --git a/08/WebRoot/Images/dfff.jpg b/08/WebRoot/Images/dfff.jpg
new file mode 100644
index 0000000..d2b612c
Binary files /dev/null and b/08/WebRoot/Images/dfff.jpg differ
diff --git a/08/WebRoot/Images/email.gif b/08/WebRoot/Images/email.gif
new file mode 100644
index 0000000..d9b05c1
Binary files /dev/null and b/08/WebRoot/Images/email.gif differ
diff --git a/08/WebRoot/Images/folder.gif b/08/WebRoot/Images/folder.gif
new file mode 100644
index 0000000..f43d38a
Binary files /dev/null and b/08/WebRoot/Images/folder.gif differ
diff --git a/08/WebRoot/Images/home.jpg b/08/WebRoot/Images/home.jpg
new file mode 100644
index 0000000..a0a6c76
Binary files /dev/null and b/08/WebRoot/Images/home.jpg differ
diff --git a/08/WebRoot/Images/icon_smile.GIF b/08/WebRoot/Images/icon_smile.GIF
new file mode 100644
index 0000000..0b5f385
Binary files /dev/null and b/08/WebRoot/Images/icon_smile.GIF differ
diff --git a/08/WebRoot/Images/isexists.gif b/08/WebRoot/Images/isexists.gif
new file mode 100644
index 0000000..c0711b8
Binary files /dev/null and b/08/WebRoot/Images/isexists.gif differ
diff --git a/08/WebRoot/Images/jia.gif b/08/WebRoot/Images/jia.gif
new file mode 100644
index 0000000..0ef3f4a
Binary files /dev/null and b/08/WebRoot/Images/jia.gif differ
diff --git a/08/WebRoot/Images/jian.gif b/08/WebRoot/Images/jian.gif
new file mode 100644
index 0000000..eda6cd0
Binary files /dev/null and b/08/WebRoot/Images/jian.gif differ
diff --git a/08/WebRoot/Images/jian_null.gif b/08/WebRoot/Images/jian_null.gif
new file mode 100644
index 0000000..90d1eb5
Binary files /dev/null and b/08/WebRoot/Images/jian_null.gif differ
diff --git a/08/WebRoot/Images/jian_s.gif b/08/WebRoot/Images/jian_s.gif
new file mode 100644
index 0000000..59c0d20
Binary files /dev/null and b/08/WebRoot/Images/jian_s.gif differ
diff --git a/08/WebRoot/Images/left.jpg b/08/WebRoot/Images/left.jpg
new file mode 100644
index 0000000..0118d9f
Binary files /dev/null and b/08/WebRoot/Images/left.jpg differ
diff --git a/08/WebRoot/Images/left_bg.jpg b/08/WebRoot/Images/left_bg.jpg
new file mode 100644
index 0000000..c247efb
Binary files /dev/null and b/08/WebRoot/Images/left_bg.jpg differ
diff --git a/08/WebRoot/Images/left_bg_bottom.jpg b/08/WebRoot/Images/left_bg_bottom.jpg
new file mode 100644
index 0000000..0225fae
Binary files /dev/null and b/08/WebRoot/Images/left_bg_bottom.jpg differ
diff --git a/08/WebRoot/Images/main_bottom.jpg b/08/WebRoot/Images/main_bottom.jpg
new file mode 100644
index 0000000..d188bd8
Binary files /dev/null and b/08/WebRoot/Images/main_bottom.jpg differ
diff --git a/08/WebRoot/Images/main_center.jpg b/08/WebRoot/Images/main_center.jpg
new file mode 100644
index 0000000..66cdc03
Binary files /dev/null and b/08/WebRoot/Images/main_center.jpg differ
diff --git a/08/WebRoot/Images/main_top.JPG b/08/WebRoot/Images/main_top.JPG
new file mode 100644
index 0000000..ce5fe01
Binary files /dev/null and b/08/WebRoot/Images/main_top.JPG differ
diff --git a/08/WebRoot/Images/modify.gif b/08/WebRoot/Images/modify.gif
new file mode 100644
index 0000000..c62ee4e
Binary files /dev/null and b/08/WebRoot/Images/modify.gif differ
diff --git a/08/WebRoot/Images/noword.jpg b/08/WebRoot/Images/noword.jpg
new file mode 100644
index 0000000..1242eaa
Binary files /dev/null and b/08/WebRoot/Images/noword.jpg differ
diff --git a/08/WebRoot/Images/num/0.gif b/08/WebRoot/Images/num/0.gif
new file mode 100644
index 0000000..9df6935
Binary files /dev/null and b/08/WebRoot/Images/num/0.gif differ
diff --git a/08/WebRoot/Images/num/1.gif b/08/WebRoot/Images/num/1.gif
new file mode 100644
index 0000000..b0e0884
Binary files /dev/null and b/08/WebRoot/Images/num/1.gif differ
diff --git a/08/WebRoot/Images/num/2.gif b/08/WebRoot/Images/num/2.gif
new file mode 100644
index 0000000..0742654
Binary files /dev/null and b/08/WebRoot/Images/num/2.gif differ
diff --git a/08/WebRoot/Images/num/3.gif b/08/WebRoot/Images/num/3.gif
new file mode 100644
index 0000000..9613ead
Binary files /dev/null and b/08/WebRoot/Images/num/3.gif differ
diff --git a/08/WebRoot/Images/num/4.gif b/08/WebRoot/Images/num/4.gif
new file mode 100644
index 0000000..447795c
Binary files /dev/null and b/08/WebRoot/Images/num/4.gif differ
diff --git a/08/WebRoot/Images/num/5.gif b/08/WebRoot/Images/num/5.gif
new file mode 100644
index 0000000..75ea7ea
Binary files /dev/null and b/08/WebRoot/Images/num/5.gif differ
diff --git a/08/WebRoot/Images/num/6.gif b/08/WebRoot/Images/num/6.gif
new file mode 100644
index 0000000..82fa5f5
Binary files /dev/null and b/08/WebRoot/Images/num/6.gif differ
diff --git a/08/WebRoot/Images/num/7.gif b/08/WebRoot/Images/num/7.gif
new file mode 100644
index 0000000..4fcb69f
Binary files /dev/null and b/08/WebRoot/Images/num/7.gif differ
diff --git a/08/WebRoot/Images/num/8.gif b/08/WebRoot/Images/num/8.gif
new file mode 100644
index 0000000..dba7521
Binary files /dev/null and b/08/WebRoot/Images/num/8.gif differ
diff --git a/08/WebRoot/Images/num/9.gif b/08/WebRoot/Images/num/9.gif
new file mode 100644
index 0000000..8f9436e
Binary files /dev/null and b/08/WebRoot/Images/num/9.gif differ
diff --git a/08/WebRoot/Images/num/Thumbs.db b/08/WebRoot/Images/num/Thumbs.db
new file mode 100644
index 0000000..2d21523
Binary files /dev/null and b/08/WebRoot/Images/num/Thumbs.db differ
diff --git a/08/WebRoot/Images/right.jpg b/08/WebRoot/Images/right.jpg
new file mode 100644
index 0000000..972b5d7
Binary files /dev/null and b/08/WebRoot/Images/right.jpg differ
diff --git a/08/WebRoot/Images/succ.gif b/08/WebRoot/Images/succ.gif
new file mode 100644
index 0000000..ef29719
Binary files /dev/null and b/08/WebRoot/Images/succ.gif differ
diff --git a/08/WebRoot/Images/swf/Thumbs.db b/08/WebRoot/Images/swf/Thumbs.db
new file mode 100644
index 0000000..0c74184
Binary files /dev/null and b/08/WebRoot/Images/swf/Thumbs.db differ
diff --git a/08/WebRoot/Images/swf/bgg.jpg b/08/WebRoot/Images/swf/bgg.jpg
new file mode 100644
index 0000000..5d448c8
Binary files /dev/null and b/08/WebRoot/Images/swf/bgg.jpg differ
diff --git a/08/WebRoot/Images/swf/bj.jpg b/08/WebRoot/Images/swf/bj.jpg
new file mode 100644
index 0000000..dc82088
Binary files /dev/null and b/08/WebRoot/Images/swf/bj.jpg differ
diff --git a/08/WebRoot/Images/swf/main.gif b/08/WebRoot/Images/swf/main.gif
new file mode 100644
index 0000000..4af9d31
Binary files /dev/null and b/08/WebRoot/Images/swf/main.gif differ
diff --git a/08/WebRoot/Images/swf/new.swf b/08/WebRoot/Images/swf/new.swf
new file mode 100644
index 0000000..c3dbf2b
Binary files /dev/null and b/08/WebRoot/Images/swf/new.swf differ
diff --git a/08/WebRoot/Images/tiao.jpg b/08/WebRoot/Images/tiao.jpg
new file mode 100644
index 0000000..f78b634
Binary files /dev/null and b/08/WebRoot/Images/tiao.jpg differ
diff --git a/08/WebRoot/Images/top.jpg b/08/WebRoot/Images/top.jpg
new file mode 100644
index 0000000..95c2075
Binary files /dev/null and b/08/WebRoot/Images/top.jpg differ
diff --git a/08/WebRoot/Images/top_bg.jpg b/08/WebRoot/Images/top_bg.jpg
new file mode 100644
index 0000000..132d8ea
Binary files /dev/null and b/08/WebRoot/Images/top_bg.jpg differ
diff --git a/08/WebRoot/Images/waichuan.gif b/08/WebRoot/Images/waichuan.gif
new file mode 100644
index 0000000..f2a742b
Binary files /dev/null and b/08/WebRoot/Images/waichuan.gif differ
diff --git a/08/WebRoot/Images/waichuxiaojia.gif b/08/WebRoot/Images/waichuxiaojia.gif
new file mode 100644
index 0000000..e4723d6
Binary files /dev/null and b/08/WebRoot/Images/waichuxiaojia.gif differ
diff --git a/08/WebRoot/JS/DateTime2.js b/08/WebRoot/JS/DateTime2.js
new file mode 100644
index 0000000..1bb774f
--- /dev/null
+++ b/08/WebRoot/JS/DateTime2.js
@@ -0,0 +1,66 @@
+// ʾںʱ-------NQ
+function ShowDate(Elements)
+{
+ var temp;
+ var datetime = new Date();
+ var year = datetime.getYear();
+ var month = datetime.getMonth() + 1;
+ var date = datetime.getDate();
+ var day = datetime.getDay();
+ temp = year+""+month+""+date+" ";
+ switch (day)
+ {
+ case 0:
+ temp = temp+"";
+ break;
+ case 1:
+ temp = temp+"һ";
+ break;
+ case 2:
+ temp = temp+"ڶ";
+ break;
+ case 3:
+ temp = temp+"";
+ break;
+ case 4:
+ temp = temp+"";
+ break;
+ case 5:
+ temp = temp+"";
+ break;
+ case 6:
+ temp = temp+"";
+ break;
+ }
+ Elements.innerHTML = temp;
+}
+function ShowTime(Elements)
+{
+ var temp = "";
+ var datetime = new Date();
+ var hour = datetime.getHours();
+ var minu = datetime.getMinutes();
+ var seco = datetime.getSeconds();
+ if(hour < 10)
+ hour ="0" + hour;
+ if(minu < 10)
+ minu ="0" + minu;
+ if(seco < 10)
+ seco ="0" + seco;
+ temp = temp+" "+hour+":"+minu+":"+seco+" ";
+ if(hour >= 0 && hour < 5)
+ temp = temp + "㳿"
+ if(hour >= 5 && hour < 8)
+ temp = temp + "Ϻ"
+ if(hour >= 8 && hour < 11)
+ temp = temp + ""
+ if(hour >= 11 && hour < 13)
+ temp = temp + ""
+ if(hour >= 13 && hour < 17)
+ temp = temp + ""
+ if(hour >= 17 && hour < 24)
+ temp = temp + "Ϻ"
+ Elements.innerHTML = temp; //Elements()id
+ window.setTimeout("ShowTime(" + Elements.id + ")",1000) //Elements.nameElements.idElements
+
+}
diff --git a/08/WebRoot/Kaoqin/_notes/waichu_add.jsp.mno b/08/WebRoot/Kaoqin/_notes/waichu_add.jsp.mno
new file mode 100644
index 0000000..1d49e34
--- /dev/null
+++ b/08/WebRoot/Kaoqin/_notes/waichu_add.jsp.mno
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Kaoqin/calender.jsp b/08/WebRoot/Kaoqin/calender.jsp
new file mode 100644
index 0000000..8107df1
--- /dev/null
+++ b/08/WebRoot/Kaoqin/calender.jsp
@@ -0,0 +1,238 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+
+
+
+
+
+
\ No newline at end of file
diff --git a/08/WebRoot/Kaoqin/chuchai_add.jsp b/08/WebRoot/Kaoqin/chuchai_add.jsp
new file mode 100644
index 0000000..f29e10e
--- /dev/null
+++ b/08/WebRoot/Kaoqin/chuchai_add.jsp
@@ -0,0 +1,120 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ ٵǼ
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Kaoqin/chuchai_add_cl.jsp b/08/WebRoot/Kaoqin/chuchai_add_cl.jsp
new file mode 100644
index 0000000..b9724f3
--- /dev/null
+++ b/08/WebRoot/Kaoqin/chuchai_add_cl.jsp
@@ -0,0 +1,27 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+
+ <%
+ Chuchai chuchai = new Chuchai(); //
+ chuchai.setChuarea(request.getParameter("chuarea"));
+ chuchai.setDepartment(request.getParameter("department"));
+ chuchai.setName1(request.getParameter("name1"));
+ chuchai.setTime1(Date.valueOf(request.getParameter("time1")));
+ chuchai.setTime2(Date.valueOf(request.getParameter("time2")));
+ chuchai.setState("0");
+ HibernateUtil.saveChuchai(chuchai); //ñϢ
+%>
+
+
\ No newline at end of file
diff --git a/08/WebRoot/Kaoqin/chuchai_index.jsp b/08/WebRoot/Kaoqin/chuchai_index.jsp
new file mode 100644
index 0000000..e831707
--- /dev/null
+++ b/08/WebRoot/Kaoqin/chuchai_index.jsp
@@ -0,0 +1,159 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+<%@page import="com.hiernate.persistence.Chuchai"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ Ǽ
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Ǽ |
+
+ Ǽ |
+
+ |
+
+
+
+
+
+
+
+
+ |
+ |
+ ʼʱ |
+ ֹʱ |
+ /ԭ |
+ Ƿع |
+
+
+ <%
+ String currPage = request.getParameter("currPage");
+ int iCurrPage = 1 ;
+ int pages = 1 ;
+ int allRecCount = 0 ;
+ int recPerPage = 5 ;
+ allRecCount = HibernateUtil.findChuchaiCount(); //ѯܵļ¼
+ pages = (allRecCount - 1)/recPerPage + 1 ; //ܵҳ
+ if(pages == 0){ //ҳЧԴ,ʹҳСֵ1
+ pages = 1;
+ }
+ if(currPage != null && !currPage.equalsIgnoreCase("")){
+ iCurrPage = Integer.parseInt(currPage);
+ }
+ List listChuchai =HibernateUtil.findchuchai((iCurrPage - 1)* recPerPage,recPerPage);
+ if(listChuchai.isEmpty()){
+ out.println("Ϣ");
+ }
+ if(!listChuchai.isEmpty() && listChuchai.size()>0){
+ for(int i= 0;i
+ |
+
+
+ <%=chuchai.getName1()%> |
+ <%=chuchai.getDepartment()%> |
+ <%=chuchai.getTime1()%> |
+ <%=chuchai.getTime2()%> |
+ |
+
+ <%if( chuchai.getState().equals("1")){%>
+ ѻع
+ <% } %>
+ <%if(chuchai.getState().equals("0")){
+ if(chuchai.getName1().equals(application.getAttribute("un"))){
+ %>
+ ع
+ <% }
+ else{%>
+ ع
+ <%}%>
+ |
+
+ <%}} }%>
+
+
+
+
+ <% if(recPerPage < allRecCount){
+ String href = " һҳ"); //һҳ
+ }
+ for(int i = 1 ; i <= pages ; i ++){
+ if(i == iCurrPage){
+ sbf.append(href+i+"'>["+i+"]"); //Ӵ
+ }
+ else{
+ sbf.append(href+i+"'>"+i+"");
+ }
+ }
+ if(iCurrPage < pages){
+ sbf.append(href+(iCurrPage + 1)+"'>һҳ"); //һҳ
+ }
+ %>
+ <%out.print("ǰҳ:["+iCurrPage+"/"+pages+"]");%>
+ <%=sbf.toString()%>
+ <%}%>
+ |
+
+
+
+
+
+
diff --git a/08/WebRoot/Kaoqin/chuchai_update.jsp b/08/WebRoot/Kaoqin/chuchai_update.jsp
new file mode 100644
index 0000000..6c2f787
--- /dev/null
+++ b/08/WebRoot/Kaoqin/chuchai_update.jsp
@@ -0,0 +1,22 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+<%@page import="com.hiernate.persistence.Chuchai"%>
+
+
+
+<%
+ List listChuchai = HibernateUtil.findchuchai(Integer.parseInt(request.getParameter("id"))); //óѯ
+ if(!listChuchai.isEmpty() && listChuchai.size()>0){
+ for(int j=0;j
+
+
+
+
+
diff --git a/08/WebRoot/Kaoqin/chuchai_xianshi.jsp b/08/WebRoot/Kaoqin/chuchai_xianshi.jsp
new file mode 100644
index 0000000..cb39343
--- /dev/null
+++ b/08/WebRoot/Kaoqin/chuchai_xianshi.jsp
@@ -0,0 +1,89 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ ϸϢ
+
+
+
+
+
+
+
+
+
+ <%
+ String strid= request.getParameter("ID"); //
+ List listchuchai = HibernateUtil.findchuchai(Integer.parseInt(strid)); //ѯ
+ if(!listchuchai.isEmpty() && listchuchai.size()>0){
+ for(int i=0;i
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Kaoqin/onduty_add.jsp b/08/WebRoot/Kaoqin/onduty_add.jsp
new file mode 100644
index 0000000..68d7d3f
--- /dev/null
+++ b/08/WebRoot/Kaoqin/onduty_add.jsp
@@ -0,0 +1,123 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+
+ °ǼǶԻ
+
+
+
+
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Kaoqin/onduty_add_cl.jsp b/08/WebRoot/Kaoqin/onduty_add_cl.jsp
new file mode 100644
index 0000000..b9ed98f
--- /dev/null
+++ b/08/WebRoot/Kaoqin/onduty_add_cl.jsp
@@ -0,0 +1,51 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+
+
+
+<%
+ Onduty onduty = new Onduty(); //Onduty
+ onduty.setName1(request.getParameter("name1")); //νΪύϢ
+ onduty.setDepartment(request.getParameter("department"));
+ onduty.setEnroltype(request.getParameter("enroltype"));
+ onduty.setEnrolremark(request.getParameter("enrolremark"));
+ if(request.getParameter("enroltype").equals("ϰǼ")){ //жûеϰ°Ǽ
+ Date d = GetTime.getDate();
+ SimpleDateFormat strup = new SimpleDateFormat("yyyy-MM-dd 08:20:00"); //˾涨ϰʱ
+ String strDate = strup.format(d);
+ String strEtime = GetTime.getDateTime(); //ǩʱ,ùз
+ boolean bb = GetTime.isDateBefore(strDate,strEtime); //ùбȽʱ䷽
+ if(bb==true){
+ onduty.setState("ٵ"); //Ǽʱ䳬涨ʱ䣬Ϊٵ
+ }
+ if(bb==false){
+ onduty.setState(""); //Ǽʱڹ涨ʱ֮ǰ
+ }
+ onduty.setDefinetime(strDate); //˾涨ϰʱondutyDefinetime
+ onduty.setEnroltime(strEtime); //ûǩʱondutyEnroltime
+ }
+ if(request.getParameter("enroltype").equals("°Ǽ")){
+ Date dd = new Date();
+ SimpleDateFormat sdfgo = new SimpleDateFormat("yyyy-MM-dd 17:10:00"); //˾涨°ʱ
+ String strDate = sdfgo.format(dd);
+ String strDatet = GetTime.getDateTime(); //ùõǰʱ
+ boolean b = GetTime.isDateBefore(strDate,strDatet); //ùжʱǰ
+ if(b==true){ //ûǼʱ°ʱ֮ǰҳˡ
+ onduty.setState("");
+ }
+ if(b==false){
+ onduty.setState(""); //ûǼʱ°֮ҳʾ
+ }
+ onduty.setDefinetime(strDate); //ö°ʱ
+ onduty.setEnroltime(strDatet); //öĵǼʱ
+ }
+ HibernateUtil.saveOnduty(onduty); //ǼϢ
+ %>
+
+
+
+
diff --git a/08/WebRoot/Kaoqin/onduty_index.jsp b/08/WebRoot/Kaoqin/onduty_index.jsp
new file mode 100644
index 0000000..ec8e6de
--- /dev/null
+++ b/08/WebRoot/Kaoqin/onduty_index.jsp
@@ -0,0 +1,124 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+<%@page import="com.hiernate.persistence.*"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ °Ǽ
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ °Ǽ |
+
+ Ǽ |
+
+
+
+ |
+
+ <% String currPage = request.getParameter("currPage");
+ int iCurrPage = 1 ;
+ int pages = 1 ;
+ int allRecCount = 0 ;
+ int recPerPage = 5 ;
+ allRecCount = HibernateUtil.findOndutyCount(); //ѯ°¼
+ pages = (allRecCount - 1)/recPerPage + 1 ; //ܵҳ
+ if(pages == 0){ //ҳЧԴ,ʹҳСֵ1
+ pages = 1;
+ }
+ if(currPage != null && !currPage.equalsIgnoreCase("")){
+ iCurrPage = Integer.parseInt(currPage);
+ }
+ List listOnduty =HibernateUtil.findOnduty((iCurrPage - 1) * recPerPage, recPerPage);
+ if(listOnduty.isEmpty()){
+ out.println("Ϣ");
+ }
+ %>
+
+
+
+
+
+
+ Ǽ |
+ |
+ Ǽ |
+ 涨ʱ |
+ Ǽʱ |
+ ǼDZע |
+ Ǽܽ |
+
+
+ <%
+ if(!listOnduty.isEmpty()&& listOnduty.size()>0){
+ for(int i=0;i
+ |
+
+
+ <%=onduty.getName1()%> |
+ <%=onduty.getDepartment()%> |
+ <%=onduty.getEnroltype()%> |
+ <%=onduty.getDefinetime()%> |
+ <%=onduty.getEnroltime()%> |
+ |
+ <%=onduty.getState()%> |
+
+ <%}}%>
+
+
+
+
+
+ <%
+ if(recPerPage < allRecCount){
+ String href = " һҳ");
+ }
+ for(int i = 1 ; i <= pages ; i ++){
+ if(i == iCurrPage){
+ sbf.append(href+i+"'>["+i+"]"); //Ӵ
+ }
+ else{
+ sbf.append(href+i+"'>"+i+"");
+ }
+ }
+ if(iCurrPage < pages){ //һҳ
+ sbf.append(href+(iCurrPage + 1)+"'>һҳ");
+ }
+ %>
+ <%out.print("ǰҳ:["+iCurrPage+"/"+pages+"]");%>
+ <%=sbf.toString()%>
+ <%} %>
+
+ |
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Kaoqin/onduty_xianshi.jsp b/08/WebRoot/Kaoqin/onduty_xianshi.jsp
new file mode 100644
index 0000000..5853a59
--- /dev/null
+++ b/08/WebRoot/Kaoqin/onduty_xianshi.jsp
@@ -0,0 +1,87 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+
+ °ϸϢҳ
+
+
+
+
+
+<%
+ String strid= request.getParameter("ID"); //
+ List listonduty = HibernateUtil.findonduty(Integer.parseInt(strid)); //ѯ
+ if(!listonduty.isEmpty() && listonduty.size()>0){
+ for(int i=0;i
+
+
+
+
+ °ǼϸϢ |
+
+
+
+ <%}} %>
+
+ |
+
+ |
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Kaoqin/qingjia_add.jsp b/08/WebRoot/Kaoqin/qingjia_add.jsp
new file mode 100644
index 0000000..e7d40ac
--- /dev/null
+++ b/08/WebRoot/Kaoqin/qingjia_add.jsp
@@ -0,0 +1,115 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ ϸϢҳ
+
+
+
+
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Kaoqin/qingjia_add_cl.jsp b/08/WebRoot/Kaoqin/qingjia_add_cl.jsp
new file mode 100644
index 0000000..738ae1e
--- /dev/null
+++ b/08/WebRoot/Kaoqin/qingjia_add_cl.jsp
@@ -0,0 +1,33 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.sql.*"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+
+ ϸϢҳ
+
+<%
+ Qingjia qingjia = new Qingjia();
+ qingjia.setContent(request.getParameter("content"));
+ qingjia.setTime1(Date.valueOf(request.getParameter("time1"))); //ַתDate
+ qingjia.setTime2(Date.valueOf(request.getParameter("time2")));
+ qingjia.setDepartment(request.getParameter("department"));
+ qingjia.setState("0");
+ qingjia.setName1(request.getParameter("name1"));
+ HibernateUtil.saveQingjia(qingjia);
+
+%>
+
+
+
+
+
diff --git a/08/WebRoot/Kaoqin/qingjia_index.jsp b/08/WebRoot/Kaoqin/qingjia_index.jsp
new file mode 100644
index 0000000..3184413
--- /dev/null
+++ b/08/WebRoot/Kaoqin/qingjia_index.jsp
@@ -0,0 +1,132 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ ٵǼ
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ٵǼ |
+
+ Ǽ |
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+ ʼʱ |
+ ֹʱ |
+ ԭ |
+ Ƿ |
+
+
+ <%
+ String currPage = request.getParameter("currPage");
+ int iCurrPage = 1 ;
+ int pages = 1 ;
+ int allRecCount = 0 ;
+ int recPerPage = 5 ;
+ allRecCount = HibernateUtil.findQingjiaCount(); //ѯܵļ¼
+ pages = (allRecCount - 1)/recPerPage + 1 ; //ܵҳ
+ if(pages == 0){ //ҳЧԴ,ʹҳСֵ1
+ pages = 1;
+ }
+ if(currPage != null && !currPage.equalsIgnoreCase("")){
+ iCurrPage = Integer.parseInt(currPage);
+
+ }
+ List listQingjia =HibernateUtil.findQingjia((iCurrPage - 1) * recPerPage, recPerPage);
+ if(listQingjia.isEmpty()){
+ out.println("Ϣ");
+ }
+ if(!listQingjia.isEmpty() && listQingjia.size()>0){
+ for(int i= 0;i
+ |
+
+
+
+ <%=qingjia.getName1()%> |
+ <%=qingjia.getDepartment()%> |
+ <%=qingjia.getTime1()%> |
+ <%=qingjia.getTime2()%> |
+ |
+
+ <%if(qingjia.getState().equals("1")){%>
+
+ <% }%>
+ <%if(qingjia.getState().equals("0")){
+ if(qingjia.getName1().equals(application.getAttribute("un"))){ //ֻ˺͵¼ͬſɽٲ
+ %>
+
+ <%}else{%>
+
+ <%}%> |
+
+ <%}}}%>
+
+
+
+
+ <% if(recPerPage < allRecCount){
+ String href = " һҳ");
+ }
+ for(int i = 1 ; i <= pages ; i ++){
+ if(i == iCurrPage){
+ sbf.append(href+i+"'>["+i+"]"); //Ӵ
+ }
+ else{
+ sbf.append(href+i+"'>"+i+"");
+ }
+ }
+ if(iCurrPage < pages){ //һҳ
+ sbf.append(href+(iCurrPage + 1)+"'>һҳ");
+ }
+ %>
+ <%out.print("ǰҳ:["+iCurrPage+"/"+pages+"]");%>
+ <%=sbf.toString()%>
+ <%}%>
+ |
+
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Kaoqin/qingjia_indexCenter.jsp b/08/WebRoot/Kaoqin/qingjia_indexCenter.jsp
new file mode 100644
index 0000000..32a404d
--- /dev/null
+++ b/08/WebRoot/Kaoqin/qingjia_indexCenter.jsp
@@ -0,0 +1,17 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+
+
+
+<%
+ List listQing = HibernateUtil.findQingjia(Integer.parseInt(request.getParameter("id")));
+ if(!listQing.isEmpty() && listQing.size()>0){
+ for(int j=0;j
+
\ No newline at end of file
diff --git a/08/WebRoot/Kaoqin/qingjia_xianshi.jsp b/08/WebRoot/Kaoqin/qingjia_xianshi.jsp
new file mode 100644
index 0000000..b9f055f
--- /dev/null
+++ b/08/WebRoot/Kaoqin/qingjia_xianshi.jsp
@@ -0,0 +1,82 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ ϸϢҳ
+
+
+
+
+<%
+ String strid= request.getParameter("ID");
+ List listqingjia = HibernateUtil.findQingjia(Integer.parseInt(strid));
+ if(!listqingjia.isEmpty() && listqingjia.size()>0){
+ for(int i=0;i
+
+
+
+
+ ٵǼϸϢ |
+
+
+
+ <%}} %>
+ |
+
+ |
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Kaoqin/waichu.jsp b/08/WebRoot/Kaoqin/waichu.jsp
new file mode 100644
index 0000000..2b3e1b6
--- /dev/null
+++ b/08/WebRoot/Kaoqin/waichu.jsp
@@ -0,0 +1,165 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Ǽ |
+
+ Ǽ |
+
+ |
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+ ʼʱ |
+ ֹʱ |
+ ԭ |
+ Ƿ |
+
+
+ |
+
+ <%
+ int iCurrPage = 1 ;
+ int pages = 1 ;
+ int allRecCount = 0 ;
+ int recPerPage = 5 ;
+ allRecCount = HibernateUtil.findWaichuCount(); //ѯܵļ¼
+ pages = (allRecCount - 1)/recPerPage + 1 ; //ܵҳ
+ if(pages == 0){ //ҳЧԴ,ʹҳСֵ1
+ pages = 1;
+ }
+ String currPage = request.getParameter("currPage");
+ if(currPage != null && !currPage.equalsIgnoreCase("")){
+ iCurrPage = Integer.parseInt(currPage);
+ }
+ List listWaichu =HibernateUtil.finWaichu((iCurrPage - 1) * recPerPage, recPerPage);
+ if(listWaichu.isEmpty()){
+ out.println("Ϣ");
+ }
+ if(!listWaichu.isEmpty() && listWaichu.size()>0){
+ for(int i= 0;i
+
+ <%=waichu.getName1()%> |
+ <%=waichu.getDepartment()%> |
+ <%=waichu.getTime1()%> |
+ <%=waichu.getTime2()%> |
+
+
+ |
+
+ <%if(waichu.getState()==1){%>
+
+ <%}%>
+ <%if (waichu.getState()==0){
+ if(waichu.getName1().equals(application.getAttribute("un"))){
+ %>
+
+ <%}else{%>
+
+ <%}%>
+ |
+
+ <%}}}%>
+
+
+
+
+
+
+ <% if(recPerPage < allRecCount){
+ String href = " һҳ"); //һҳ
+ }
+ for(int i = 1 ; i <= pages ; i ++){
+ if(i == iCurrPage){
+ sbf.append(href+i+"'>["+i+"]"); //Ӵ
+ }
+ else{
+ sbf.append(href+i+"'>"+i+"");
+ }
+ }
+ if(iCurrPage < pages){
+ sbf.append(href+(iCurrPage + 1)+"'>һҳ"); //һҳ
+ }
+ %>
+ <%out.print("ǰҳ:["+iCurrPage+"/"+pages+"]");%>
+ <%=sbf.toString()%>
+ <%} %>
+ |
+ |
+
+
+
+ |
+
+ |
+
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Kaoqin/waichuCenter.jsp b/08/WebRoot/Kaoqin/waichuCenter.jsp
new file mode 100644
index 0000000..ab7a272
--- /dev/null
+++ b/08/WebRoot/Kaoqin/waichuCenter.jsp
@@ -0,0 +1,23 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+
+ <%
+ List listWai = HibernateUtil.finwaichuId(Integer.parseInt(request.getParameter("id"))); //ѯǼԱ
+ if(!listWai.isEmpty() && listWai.size()>0){ //жϼǷΪ
+ for(int j=0;j
+
\ No newline at end of file
diff --git a/08/WebRoot/Kaoqin/waichu_add.jsp b/08/WebRoot/Kaoqin/waichu_add.jsp
new file mode 100644
index 0000000..a5b4511
--- /dev/null
+++ b/08/WebRoot/Kaoqin/waichu_add.jsp
@@ -0,0 +1,117 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ ǼҳԻ
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Kaoqin/waichu_add_cl.jsp b/08/WebRoot/Kaoqin/waichu_add_cl.jsp
new file mode 100644
index 0000000..0e5c5f7
--- /dev/null
+++ b/08/WebRoot/Kaoqin/waichu_add_cl.jsp
@@ -0,0 +1,28 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+
+
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+
+<%
+ Waichu waichu = new Waichu(); //Ϣ
+ waichu.setContent(request.getParameter("content")); //öԭ
+ waichu.setDepartment(request.getParameter("department"));
+ waichu.setName1(request.getParameter("name1")); //ö
+ waichu.setState(0); //öijʼ״̬
+ waichu.setTime1(Date.valueOf(request.getParameter("time1"))); //öʱ
+ waichu.setTime2(Date.valueOf(request.getParameter("time2"))); //öĻعʱ
+ HibernateUtil.saveWaichu(waichu); //ñֶ
+%>
+
+
\ No newline at end of file
diff --git a/08/WebRoot/Kaoqin/waichu_xianshi.jsp b/08/WebRoot/Kaoqin/waichu_xianshi.jsp
new file mode 100644
index 0000000..c5929fa
--- /dev/null
+++ b/08/WebRoot/Kaoqin/waichu_xianshi.jsp
@@ -0,0 +1,88 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ ϸϢ
+
+
+
+
+
+
+
+
+
+ <%
+ String strid= request.getParameter("ID");
+ List listwaichu = HibernateUtil.finwaichuId(Integer.parseInt(strid)); //ѯ
+ if(!listwaichu.isEmpty() && listwaichu.size()>0){
+ for(int i=0;i
+
+<%}} %>
+
+
+
+
+
diff --git a/08/WebRoot/META-INF/MANIFEST.MF b/08/WebRoot/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..254272e
--- /dev/null
+++ b/08/WebRoot/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
diff --git a/08/WebRoot/Planmanage/bm_add.jsp b/08/WebRoot/Planmanage/bm_add.jsp
new file mode 100644
index 0000000..067ec77
--- /dev/null
+++ b/08/WebRoot/Planmanage/bm_add.jsp
@@ -0,0 +1,126 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ żƻҳ
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Planmanage/bm_add_cl.jsp b/08/WebRoot/Planmanage/bm_add_cl.jsp
new file mode 100644
index 0000000..3f0f8e2
--- /dev/null
+++ b/08/WebRoot/Planmanage/bm_add_cl.jsp
@@ -0,0 +1,20 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+
+
+
+
+ <%
+ Bm bm = new Bm();
+ bm.setName1(request.getParameter("name1"));
+ bm.setContent(request.getParameter("content"));
+ bm.setTitle(request.getParameter("title"));
+ bm.setTime1(Date.valueOf(request.getParameter("time1")));
+ HibernateUtil.savebm(bm);
+ %>
+
+
+
\ No newline at end of file
diff --git a/08/WebRoot/Planmanage/bm_del.jsp b/08/WebRoot/Planmanage/bm_del.jsp
new file mode 100644
index 0000000..048ebc9
--- /dev/null
+++ b/08/WebRoot/Planmanage/bm_del.jsp
@@ -0,0 +1,37 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ ҵƻҳ
+<%
+
+ int link=Integer.parseInt(request.getParameter("link"));
+ int currPage=Integer.parseInt(request.getParameter("currPage"));
+
+ if(link==1){
+ if(currPage!=1){
+ currPage=currPage-1;
+
+ }}
+ String strid = request.getParameter("id");
+ List listbm = HibernateUtil.findbmid(Integer.parseInt(strid)); //ҷҲŶ
+ if(!listbm.isEmpty()&&listbm.size()>0){
+ for(int i=0; i
+
+<%
+ response.sendRedirect("bm_index.jsp?currPage="+currPage); //ض²żƻҳ
+%>
+
\ No newline at end of file
diff --git a/08/WebRoot/Planmanage/bm_index.jsp b/08/WebRoot/Planmanage/bm_index.jsp
new file mode 100644
index 0000000..6b1078c
--- /dev/null
+++ b/08/WebRoot/Planmanage/bm_index.jsp
@@ -0,0 +1,167 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ żƻҳ
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ żƻ |
+ |
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+ |
+
+ <%
+ String strpurview = (String)application.getAttribute("Purview");
+ if(strpurview.equalsIgnoreCase("ֻ")){
+ %>
+ Ӳżƻ
+ <%}else{ %>
+ Ӳżƻ |
+ <%} %>
+
+ |
+
+ |
+
+
+
+ <%
+ String currPage = request.getParameter("currPage");
+ int iCurrPage = 1 ;
+ int pages = 1 ;
+ int allRecCount = 0 ;
+ int recPerPage = 5 ;
+ allRecCount = HibernateUtil.findBmCount(); //ѯܵļ¼
+ pages = (allRecCount - 1)/recPerPage + 1 ; //ܵҳ
+ if(pages == 0){ //ҳЧԴ,ʹҳСֵ1
+ pages = 1;
+ }
+ if(currPage != null && !currPage.equalsIgnoreCase("")){
+ iCurrPage = Integer.parseInt(currPage);
+
+ }
+ List bmlist =HibernateUtil.findbm((iCurrPage - 1) * recPerPage, recPerPage);;
+ if(bmlist.isEmpty()){
+ out.println("Ϣ");
+ }%>
+
+
+ |
+ ƻ |
+ ƻ |
+ |
+ ɾ |
+
+ <%
+ if(!bmlist.isEmpty()&& bmlist.size()>0){
+ for(int i=0;i < bmlist.size();i++){
+ Bm bm = (Bm)bmlist.get(i);
+ %>
+
+
+ <%=bm.getName1()%> |
+ |
+
+ <%if(bm.getContent().length()>10){%>
+ <%=bm.getContent().substring(0,10)+"...."%>
+ <%}
+ else{%>
+ <%=bm.getContent()%>
+ <%}%>
+ |
+ <%=bm.getTime1()%> |
+
+ <% String purview = (String)application.getAttribute("Purview");
+ if(purview.equalsIgnoreCase("ֻ")){
+ %>
+
+ |
+ <%}%>
+ <%if(purview.equalsIgnoreCase("ϵͳ")){ %>
+
+
+ <%
+ }}
+ }
+ %>
+
+
+
+
+ <%
+ if(recPerPage < allRecCount){
+ String href = " һҳ");
+ }
+ for(int i = 1 ; i <= pages ; i ++){
+ if(i == iCurrPage){
+
+ sbf.append(href+i+"'>["+i+"]"); //Ӵ
+ }
+ else{
+ sbf.append(href+i+"'>"+i+"");
+ }
+ }
+
+ if(iCurrPage < pages){
+ sbf.append(href+(iCurrPage + 1)+"'>һҳ"); //һҳ
+ }
+ %>
+ <%out.print("ǰҳ:["+iCurrPage+"/"+pages+"]");%>
+ <%=sbf.toString()%>
+ <%} %>
+ |
+
+ |
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Planmanage/bm_xianshi.jsp b/08/WebRoot/Planmanage/bm_xianshi.jsp
new file mode 100644
index 0000000..87c8976
--- /dev/null
+++ b/08/WebRoot/Planmanage/bm_xianshi.jsp
@@ -0,0 +1,95 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ ҵƻҳ
+
+
+
+
+
+
+
+
+
+
+ <%
+ String strid= request.getParameter("ID");
+ List listbm = HibernateUtil.findbmid(Integer.parseInt(strid));
+ if(!listbm.isEmpty() && listbm.size()>0){
+ for(int i=0;i
+
+
+
+
+ żƻϸϢ |
+
+
+
+
+ |
+
+ |
+ ƻ |
+ |
+
+
+
+ ƻ
+ |
+ |
+
+
+ ʱ |
+ |
+ |
+
+
+
+ |
+
+ |
+
+ <%}
+ } %>
+
+
+
+
+
+
diff --git a/08/WebRoot/Planmanage/bmnodel.jsp b/08/WebRoot/Planmanage/bmnodel.jsp
new file mode 100644
index 0000000..3e73648
--- /dev/null
+++ b/08/WebRoot/Planmanage/bmnodel.jsp
@@ -0,0 +1,8 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+
+
+
+
\ No newline at end of file
diff --git a/08/WebRoot/Planmanage/calender.jsp b/08/WebRoot/Planmanage/calender.jsp
new file mode 100644
index 0000000..8107df1
--- /dev/null
+++ b/08/WebRoot/Planmanage/calender.jsp
@@ -0,0 +1,238 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+
+
+
+
+
+
\ No newline at end of file
diff --git a/08/WebRoot/Planmanage/noaddbumen.jsp b/08/WebRoot/Planmanage/noaddbumen.jsp
new file mode 100644
index 0000000..b0542a2
--- /dev/null
+++ b/08/WebRoot/Planmanage/noaddbumen.jsp
@@ -0,0 +1,9 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+
+
+
+
+
\ No newline at end of file
diff --git a/08/WebRoot/Planmanage/noaddqiye.jsp b/08/WebRoot/Planmanage/noaddqiye.jsp
new file mode 100644
index 0000000..34f9437
--- /dev/null
+++ b/08/WebRoot/Planmanage/noaddqiye.jsp
@@ -0,0 +1,9 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+
+
+
+
+
\ No newline at end of file
diff --git a/08/WebRoot/Planmanage/onmodify.jsp b/08/WebRoot/Planmanage/onmodify.jsp
new file mode 100644
index 0000000..2d8c0e3
--- /dev/null
+++ b/08/WebRoot/Planmanage/onmodify.jsp
@@ -0,0 +1,8 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+
+
+
+
\ No newline at end of file
diff --git a/08/WebRoot/Planmanage/person_add.jsp b/08/WebRoot/Planmanage/person_add.jsp
new file mode 100644
index 0000000..706c18c
--- /dev/null
+++ b/08/WebRoot/Planmanage/person_add.jsp
@@ -0,0 +1,126 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ ˼ƻҳ
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Planmanage/person_add_cl.jsp b/08/WebRoot/Planmanage/person_add_cl.jsp
new file mode 100644
index 0000000..f99db7d
--- /dev/null
+++ b/08/WebRoot/Planmanage/person_add_cl.jsp
@@ -0,0 +1,22 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+ <%
+ Person person = new Person();
+ person.setName1(request.getParameter("name1"));
+ person.setTitle(request.getParameter("title"));
+ person.setContent(request.getParameter("content"));
+ person.setTime1(Date.valueOf(request.getParameter("time1")));
+ HibernateUtil.saveperson(person);
+%>
+
+
\ No newline at end of file
diff --git a/08/WebRoot/Planmanage/person_del.jsp b/08/WebRoot/Planmanage/person_del.jsp
new file mode 100644
index 0000000..913c1fd
--- /dev/null
+++ b/08/WebRoot/Planmanage/person_del.jsp
@@ -0,0 +1,35 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ ҵƻҳ
+<%
+ int link=Integer.parseInt(request.getParameter("link"));
+ int currPage=Integer.parseInt(request.getParameter("currPage"));
+
+ if(link==1){
+ if(currPage!=1){
+ currPage=currPage-1;
+
+ }}
+ String strid = request.getParameter("id");
+ List listperson = HibernateUtil.findPerson(Integer.parseInt(strid));
+ if(!listperson.isEmpty()&&listperson.size()>0){
+ for(int i=0; i
+
+<%
+ response.sendRedirect("person_index.jsp?currPage="+currPage);
+%>
+
\ No newline at end of file
diff --git a/08/WebRoot/Planmanage/person_index.jsp b/08/WebRoot/Planmanage/person_index.jsp
new file mode 100644
index 0000000..21336d8
--- /dev/null
+++ b/08/WebRoot/Planmanage/person_index.jsp
@@ -0,0 +1,152 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ żƻҳ
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ ˼ƻ |
+ |
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+ <%
+ String currPage = request.getParameter("currPage");
+ int iCurrPage = 1 ;
+ int pages = 1 ;
+ int allRecCount = 0 ;
+ int recPerPage = 5 ;
+ allRecCount = HibernateUtil.findPersonCount(); //ѯܵļ¼
+ pages = (allRecCount - 1)/recPerPage + 1 ; //ܵҳ
+ if(pages == 0){ //ҳЧԴ,ʹҳСֵ1
+ pages = 1;
+ }
+ if(currPage != null && !currPage.equalsIgnoreCase("")){
+ iCurrPage = Integer.parseInt(currPage);
+ }
+ List listPerson =HibernateUtil.findperson((iCurrPage - 1) * recPerPage, recPerPage);
+ if(listPerson.isEmpty()){
+ out.println("Ϣ");}
+
+ %>
+
+
+ |
+ ƻ |
+ ƻ |
+ |
+ ɾ |
+
+ <%
+ if(!listPerson.isEmpty()&&listPerson.size()>0){
+ for(int i=0;i
+
+ <%=person.getName1()%> |
+ |
+
+ <%if(person.getContent().length()>8){%>
+ <%=person.getContent().substring(0,8)+"...."%>
+ <%}else{%>
+ <%=person.getContent()%>
+ <%}%>
+ |
+ <%=person.getTime1()%> |
+
+ <% String purview = (String)application.getAttribute("Purview");
+ if(!purview.equalsIgnoreCase("ϵͳ")){
+ %>
+
+ |
+ <%} %>
+ <%if(purview.equalsIgnoreCase("ϵͳ")){ %>
+
+
+ <%}}}%>
+
+
+
+
+
+ <%
+
+ if(recPerPage < allRecCount){
+ String href = " һҳ");
+ }
+ for(int i = 1 ; i <= pages ; i ++){
+ if(i == iCurrPage){
+ sbf.append(href+i+"'>["+i+"]"); //Ӵ
+ }
+ else{
+ sbf.append(href+i+"'>"+i+"");
+ }
+ }
+ if(iCurrPage < pages){ //һҳ
+ sbf.append(href+(iCurrPage + 1)+"'>һҳ");
+ } %>
+ <%out.print("ǰҳ:["+iCurrPage+"/"+pages+"]");%>
+ <%=sbf.toString()%>
+ <%}%>
+
+ |
+
+ |
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Planmanage/person_xianshi.jsp b/08/WebRoot/Planmanage/person_xianshi.jsp
new file mode 100644
index 0000000..48c64b6
--- /dev/null
+++ b/08/WebRoot/Planmanage/person_xianshi.jsp
@@ -0,0 +1,93 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ ҵƻҳ
+
+
+
+
+
+
+
+
+
+ <%
+ String strid= request.getParameter("ID");
+ List listperson = HibernateUtil.findPerson(Integer.parseInt(strid));
+ if(!listperson.isEmpty() && listperson.size()>0){
+ for(int i=0;i
+
+
+
+
+ ˼ƻϸϢ |
+
+
+
+
+ |
+
+ |
+ ƻ |
+ |
+
+
+
+ ƻ
+ |
+ |
+
+
+ ʱ |
+ |
+ |
+
+
+
+ |
+
+ |
+
+
+<%}} %>
+
+
+
+
+
diff --git a/08/WebRoot/Planmanage/personodel.jsp b/08/WebRoot/Planmanage/personodel.jsp
new file mode 100644
index 0000000..f976838
--- /dev/null
+++ b/08/WebRoot/Planmanage/personodel.jsp
@@ -0,0 +1,8 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+
+
+
+
\ No newline at end of file
diff --git a/08/WebRoot/Planmanage/qiye_del.jsp b/08/WebRoot/Planmanage/qiye_del.jsp
new file mode 100644
index 0000000..d9837b7
--- /dev/null
+++ b/08/WebRoot/Planmanage/qiye_del.jsp
@@ -0,0 +1,38 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ ҵƻҳ
+<%
+ int link=Integer.parseInt(request.getParameter("link"));
+ int currPage=Integer.parseInt(request.getParameter("currPage"));
+
+ if(link==1){
+ if(currPage!=1){
+ currPage=currPage-1;
+
+ }}
+ String strid = request.getParameter("Id");
+ System.out.print(strid);
+ List listqiye = HibernateUtil.findqiye(Integer.parseInt(strid));
+ if(!listqiye.isEmpty()&&listqiye.size()>0){
+ for(int i=0; i
+
+<%
+ response.sendRedirect("qiye_planindex.jsp?currPage="+currPage);
+%>
+
\ No newline at end of file
diff --git a/08/WebRoot/Planmanage/qiye_plan.jsp b/08/WebRoot/Planmanage/qiye_plan.jsp
new file mode 100644
index 0000000..db35a5d
--- /dev/null
+++ b/08/WebRoot/Planmanage/qiye_plan.jsp
@@ -0,0 +1,176 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
+
+
+
+ ҵƻ
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Planmanage/qiye_planadd.jsp b/08/WebRoot/Planmanage/qiye_planadd.jsp
new file mode 100644
index 0000000..8630dfd
--- /dev/null
+++ b/08/WebRoot/Planmanage/qiye_planadd.jsp
@@ -0,0 +1,26 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@page import="com.hiernate.persistence.*,com.hiernate.util.*" %>
+
+
+
+<%
+
+ Qiye qiye = new Qiye();
+ qiye.setName1(request.getParameter("name1"));
+ qiye.setRiqi(Date.valueOf(request.getParameter("riqi")));
+ qiye.setContent(request.getParameter("content"));
+ qiye.setTitle(request.getParameter("title"));
+ HibernateUtil.saveqiye(qiye);
+
+%>
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Planmanage/qiye_planindex.jsp b/08/WebRoot/Planmanage/qiye_planindex.jsp
new file mode 100644
index 0000000..13827d4
--- /dev/null
+++ b/08/WebRoot/Planmanage/qiye_planindex.jsp
@@ -0,0 +1,167 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ żƻҳ
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ ҵƻ |
+ |
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+ |
+
+ <%
+ String strpurview = (String)application.getAttribute("Purview");
+ if(strpurview.equalsIgnoreCase("ֻ")){
+ %>
+ ҵƻ
+ <%}else{ %>
+ ҵƻ |
+ <%} %>
+
+ |
+
+ |
+
+
+
+ <%
+ String currPage = request.getParameter("currPage");
+ int iCurrPage = 1 ;
+ int pages = 1 ;
+ int allRecCount = 0 ;
+ int recPerPage = 5 ;
+ allRecCount = HibernateUtil.findQiyeCount(); //ѯܵļ¼
+ pages = (allRecCount - 1)/recPerPage + 1 ; //ܵҳ
+ if(pages == 0){ //ҳЧԴ,ʹҳСֵ1
+ pages = 1;
+ }
+ if(currPage != null && !currPage.equalsIgnoreCase("")){
+ iCurrPage = Integer.parseInt(currPage);
+ }
+ List listQiye =HibernateUtil.findqiye((iCurrPage - 1) * recPerPage, recPerPage);;
+ if(listQiye.isEmpty()){
+ out.println("Ϣ");
+ }
+ %>
+
+
+
+ ҵ |
+ ƻ |
+ ƻ |
+ |
+ ɾ |
+
+
+ <%
+ if(!listQiye.isEmpty()&& listQiye.size()>0){
+ for(int i=0;i
+
+ <%=qiye.getName1()%> |
+ |
+
+ <%if (qiye.getContent().length()>8){%>
+ <%=qiye.getContent().substring(0,8)+"...."%>
+ <%}
+ else{%>
+ <%=qiye.getContent()%>
+ <%}%>
+ |
+ <%=qiye.getRiqi()%> |
+ <% String purview = (String)application.getAttribute("Purview");
+ if(!purview.equalsIgnoreCase("ϵͳ")){
+ %>
+ |
+ <%} %>
+ <%if(purview.equalsIgnoreCase("ϵͳ")){ %>
+ |
+
+ <%}} }%>
+
+
+
+
+ <%
+ if(recPerPage < allRecCount){
+ String href = " һҳ");
+ }
+ for(int i = 1 ; i <= pages ; i ++){
+ if(i == iCurrPage){
+
+ sbf.append(href+i+"'>["+i+"]"); //Ӵ
+ }
+ else{
+ sbf.append(href+i+"'>"+i+"");
+ }
+ }
+ if(iCurrPage < pages){ //һҳ
+ sbf.append(href+(iCurrPage + 1)+"'>һҳ");
+ }
+ %>
+ <%out.print("ǰҳ:["+iCurrPage+"/"+pages+"]");%>
+ <%=sbf.toString()%>
+ <%} %>
+ |
+
+ |
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Planmanage/qiye_xianshi.jsp b/08/WebRoot/Planmanage/qiye_xianshi.jsp
new file mode 100644
index 0000000..9c1c662
--- /dev/null
+++ b/08/WebRoot/Planmanage/qiye_xianshi.jsp
@@ -0,0 +1,93 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ ҵƻҳ
+
+
+
+
+
+
+
+
+
+ <%
+ String strid= request.getParameter("ID");
+ List listqiye = HibernateUtil.findqiye(Integer.parseInt(strid));
+ if(!listqiye.isEmpty() && listqiye.size()>0){
+ for(int i=0;i
+
+
+
+
+ ҵƻϸϢ |
+
+
+
+
+ ҵ |
+
+ |
+ ƻ |
+ |
+
+
+
+ ƻ
+ |
+ |
+
+
+ ʱ |
+ |
+ |
+
+
+ <%}} %>
+
+ |
+
+ |
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Shenhe/chenggong.htm b/08/WebRoot/Shenhe/chenggong.htm
new file mode 100644
index 0000000..0baec15
--- /dev/null
+++ b/08/WebRoot/Shenhe/chenggong.htm
@@ -0,0 +1,52 @@
+
+
+
+
+ɹҳ
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+ |
+
+ |
+
+
+
+
diff --git a/08/WebRoot/Shenhe/del.jsp b/08/WebRoot/Shenhe/del.jsp
new file mode 100644
index 0000000..7ef871a
--- /dev/null
+++ b/08/WebRoot/Shenhe/del.jsp
@@ -0,0 +1,26 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@page import="com.hiernate.persistence.*"%>
+
+
+
+
+<%
+ int link=Integer.parseInt(request.getParameter("link"));
+ int currPage=Integer.parseInt(request.getParameter("currPage"));
+
+ if(link==1){
+ if(currPage!=1){
+ currPage=currPage-1;
+
+ }}
+
+ String strid = request.getParameter("id");
+ List listShenhe =(List)HibernateUtil.findShenheId(Integer.parseInt(strid));
+ if(!listShenhe.isEmpty() && listShenhe.size()>0){
+ for(int i=0;i
+
\ No newline at end of file
diff --git a/08/WebRoot/Shenhe/fa.jsp b/08/WebRoot/Shenhe/fa.jsp
new file mode 100644
index 0000000..e70dd06
--- /dev/null
+++ b/08/WebRoot/Shenhe/fa.jsp
@@ -0,0 +1,85 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Shenhe/fa_add.jsp b/08/WebRoot/Shenhe/fa_add.jsp
new file mode 100644
index 0000000..901c447
--- /dev/null
+++ b/08/WebRoot/Shenhe/fa_add.jsp
@@ -0,0 +1,16 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@page import="com.hiernate.persistence.*"%>
+
+
+
+
+ <%
+ Shenhe shehe = new Shenhe();
+ shehe.setTitle(request.getParameter("title"));
+ shehe.setContent(request.getParameter("content"));
+ shehe.setTime1((java.sql.Date)GetTime.getDate());
+ shehe.setShen("0");
+ HibernateUtil.saveshenhe(shehe);
+ response.sendRedirect("chenggong.htm");
+ %>
+
\ No newline at end of file
diff --git a/08/WebRoot/Shenhe/piguan.jsp b/08/WebRoot/Shenhe/piguan.jsp
new file mode 100644
index 0000000..11f7422
--- /dev/null
+++ b/08/WebRoot/Shenhe/piguan.jsp
@@ -0,0 +1,152 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+<%@page import="com.hiernate.persistence.*"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+ piguan.jsp
+
+
+
+
+
+
+
+ <%
+ String purview = (String)application.getAttribute("Purview");
+ if(!purview.equalsIgnoreCase("ϵͳ")){
+ %>
+
+ <%} %>
+ <%if(purview.equalsIgnoreCase("ϵͳ")){ %>
+
+
+
+
+
+
+
+ |
+ ʾ |
+ |
+
+ |
+
+
+
+
+
+
+
+
+ |
+
+
+
+ <%
+ String currPage = request.getParameter("currPage");
+ int iCurrPage = 1 ;
+ int pages = 1 ;
+ int allRecCount = 0 ;
+ int recPerPage = 5 ;
+ allRecCount = HibernateUtil.findShenheCount(); //ѯܵļ¼
+ pages = (allRecCount - 1)/recPerPage + 1 ; //ܵҳ
+ if(pages == 0){ //ҳЧԴ,ʹҳСֵ1
+ pages = 1;
+ }
+ if(currPage != null && !currPage.equalsIgnoreCase("")){
+ iCurrPage = Integer.parseInt(currPage);
+
+ }
+ List listSh =HibernateUtil.findshenhe((iCurrPage - 1) * recPerPage, recPerPage);;
+ if(listSh.isEmpty()){
+ out.println("Ϣ");
+ }
+ %>
+
+
+ |
+ |
+ |
+ |
+
+ <%
+ if(!listSh.isEmpty() && listSh.size()>0){
+ for(int j=0;j
+
+
+ <%=shehe.getTitle()%>
+ |
+
+ <%if(shehe.getContent().length()>8){%>
+ <%=shehe.getContent().substring(0,8)+"...."%>
+ <%}else{%>
+ <%=shehe.getContent()%>
+ <%}%>
+ |
+ <%=shehe.getTime1()%> |
+
+ <%if(shehe.getShen().equalsIgnoreCase("1")){%>
+
+ <% } %>
+ <%if(shehe.getShen().equalsIgnoreCase("0")){%>
+
+ <%}%>
+ |
+
+ <%if (shehe.getShen().equalsIgnoreCase("1")){ %>
+
+ <%}%>
+ <%if(shehe.getShen().equalsIgnoreCase("0")){%>
+
+
+ <%}%>
+ |
+ |
+
+ <%}}%>
+
+
+
+
+
+ <%
+ if(recPerPage < allRecCount){
+ String href = " һҳ");
+ }
+ for(int i = 1 ; i <= pages ; i ++){
+ if(i == iCurrPage){
+ sbf.append(href+i+"'>["+i+"]"); //Ӵ
+ }
+ else{
+ sbf.append(href+i+"'>"+i+"");
+ }
+ }
+ if(iCurrPage < pages){
+ sbf.append(href+(iCurrPage + 1)+"'>һҳ"); // һҳ
+ }
+ %>
+
+ <%out.print("ǰҳ:["+iCurrPage+"/"+pages+"]");%>
+ <%=sbf.toString()%>
+ <%}}%>
+ |
+
+
+
+
+
+
+
diff --git a/08/WebRoot/Shenhe/piguanCenter.jsp b/08/WebRoot/Shenhe/piguanCenter.jsp
new file mode 100644
index 0000000..4e210eb
--- /dev/null
+++ b/08/WebRoot/Shenhe/piguanCenter.jsp
@@ -0,0 +1,10 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+
+
+<%
+ String str = request.getParameter("IDd");
+ session.setAttribute("stid",str);
+ response.sendRedirect("update.jsp");
+%>
+
+
diff --git a/08/WebRoot/Shenhe/up.jsp b/08/WebRoot/Shenhe/up.jsp
new file mode 100644
index 0000000..0f8086c
--- /dev/null
+++ b/08/WebRoot/Shenhe/up.jsp
@@ -0,0 +1,19 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@page import="com.hiernate.persistence.*"%>
+
+
+
+
+
+<%
+ String strid = request.getParameter("Idd");
+ List listShenhe =(List)HibernateUtil.findShenheId(Integer.parseInt(strid));
+ if(!listShenhe.isEmpty() && listShenhe.size()>0){
+ for(int i=0;i
+
\ No newline at end of file
diff --git a/08/WebRoot/Shenhe/update.jsp b/08/WebRoot/Shenhe/update.jsp
new file mode 100644
index 0000000..0a7bdc6
--- /dev/null
+++ b/08/WebRoot/Shenhe/update.jsp
@@ -0,0 +1,110 @@
+<%@ page language="java" pageEncoding="gb2312"%>
+<%@ page import="java.util.*"%>
+<%@page import="com.hiernate.persistence.*"%>
+
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | | | | | | | | | | | | | | | | | | | | | |