arrangTime.jsp ( File view )

  • By lnsoftware 2014-09-17
  • View(s):540
  • Download(s):10
  • Point(s): 3
			<%@page contentType="text/html"%>
<%@page pageEncoding="GBK"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
    </head>
 <script language="javascript">
document.write("<DIV id='cc' style='BORDER-RIGHT: #000000 1px solid; PADDING-RIGHT: 12px; BORDER-TOP: #000000 1px solid; PADDING-LEFT: 12px; Z-INDEX: 2; BACKGROUND: #ffffff; FILTER: Alpha(opacity=85); LEFT: 505px; VISIBILITY: hidden; PADDING-BOTTOM: 12px; BORDER-LEFT: #000000 1px solid; WIDTH: 200px; LINE-HEIGHT: 22px; PADDING-TOP: 12px; BORDER-BOTTOM: #000000 1px solid; POSITION: absolute; TOP: 419px; HEIGHT: 90px'></DIV>");
document.write("<style>td {
font-family: Arial, Helvetica, sans-serif;font-size: 12px;
}table{
border-collapse:collapse
} .sel{
font-family: Webdings;font-size: 9pt;font-weight: bold;color: #243F65;cursor:hand;text-decoration: none; background-color:DEDEEF
}body {
margin-left:0px;margin-top: 0px;
}</style>")
var name;
function dateSelect(objname){

  cc.style.visibility="visible";
  cc.style.filter="Alpha(opacity=85)"
  cc.style.left=document.body.scrollLeft+window.event.clientX+2;
  cc.style.top=document.body.scrollTop+window.event.clientY+2;
  name = objname;
  showSelect();

}
function hiddeninfo(){

  cc.style.visibility="hidden";

}
function RunNian(The_Year){

  if ((The_Year%400==0) || ((The_Year%4==0) && (The_Year%100!=0)))
    return true;
  else
    return false;

}
function GetWeekday(The_Year,The_Month)
 {

   var Allday;
   Allday = 0;
   if (The_Year>2000){

    for (i=2000;i<The_Year; i++){

     if (RunNian(i)) {

     Allday += 366;
    
}else {

     Allday += 365;
    
}
   
}
     for (i=2; i<=The_Month; i++){

       switch (i){

     case 2 :
       if (RunNian(The_Year))
         Allday += 29;
       else
         Allday += 28;
       break;
     case 3 : Allday += 31; break;
     case 4 : Allday += 30; break;
     case 5 : Allday += 31; break;
     case 6 : Allday += 30; break;
     case 7 : Allday += 31; break;
     case 8 : Allday += 31; break;
     case 9 : Allday += 30; break;
     case 10 : Allday += 31; break;
     case 11 : Allday += 30; break;
     case 12 :  Allday += 31; break;
   
}
  
}
 
}
 return (Allday+6)%7;

}
function chooseday(The_Year,The_Month,The_Day){

   var Firstday;
   var completely_date;
   if (The_Day!=0)
   completely_date = The_Year + "-" + The_Month + "-" + The_Day;
   else
   completely_date = "";
   //showdate 只是一个为了显示而采用的东西,
   //如果外部想引用这里的时间,可以通过使用 completely_date引用完整日期
   //也可以通过The_Year,The_Month,The_Day分别引用年,月,日
   //当进行月份和年份的选择时,认为没有选择完整的日期
   Firstday = GetWeekday(The_Year,The_Month);
   ShowCalender(The_Year,The_Month,The_Day,Firstday);

}
function chooses(The_Year,The_Month,The_Day){

 var obj2 = document.getElementById(name);
  var Firstday;
  var completely_date;
  if (The_Day!=0)
    completely_date = The_Year + "-" + The_Month + "-" + The_Day;
  else
  completely_date = "";
  obj2.value = completely_date;
  hiddeninfo();
 
}
function nextmonth(The_Year,The_Month){

  if (The_Month==12)
    chooseday(The_Year+1,1,0,name);
  else
    chooseday(The_Year,The_Month+1,0,name);

}
function prevmonth(The_Year,The_Month){

  if (The_Month==1)
    chooseday(The_Year-1,12,0);
  else
    chooseday(The_Year,The_Month-1,0);

}
function prevyear(The_Year,The_Month){

  chooseday(The_Year-1,The_Month,0);

}
function nextyear(The_Year,The_Month){

  chooseday(The_Year+1,The_Month,0);

}
function ShowCalender(The_Year,The_Month,The_Day,Firstday){

  var ycdate="";
  var showstr;
  var Month_Day;
  var ShowMonth;
  var today;
  today = new Date();
  switch (The_Month){

    case 1 : ShowMonth = "1月"; Month_Day = 31; break;
    case 2 :
      ShowMonth = "2月";
      if (RunNian(The_Year))
     Month_Day = 29;
      else
     Month_Day = 28;
      break;
    case 3 : ShowMonth = "3月"; Month_Day = 31; break;
    case 4 : ShowMonth = "4月"; Month_Day = 30; break;
    case 5 : ShowMonth = "5月"; Month_Day = 31; break;
    case 6 : ShowMonth = "6月"; Month_Day = 30; break;
    case 7 : ShowMonth = "7月"; Month_Day = 31; break;
    case 8 : ShowMonth = "8月"; Month_Day = 31; break;
    case 9 : ShowMonth = "9月"; Month_Day = 30; break;
    case 10 : ShowMonth = "10月"; Month_Day = 31; break;
    case 11 : ShowMonth = "11月"; Month_Day = 30; break;
    case 12 : ShowMonth = "12月"; Month_Day = 31; break;
  
}
 showstr = "";
 showstr = "<Table cellpadding=0 cellspacing=0 border=1 bordercolor=#C0D0E8 width=95% align=center valign=top>"; //上边框颜色
 showstr +=  "<tr><td width=0 class='sel' onclick=prevyear("+The_Year+"," + The_Month + ")>3</td><td width=0>" + The_Year + "年 </td><td width=0 onclick=nextyear("+The_Year+","+The_Month+") class='sel'>4</td><td width=0 class='sel' onclick=prevmonth("+The_Year+","+The_Month+")>3</td><td width=40 align=center>" + ShowMonth + "</td><td width=0 onclick=nextmonth("+The_Year+","+The_Month+") class='sel'>4</td></tr>";
 showstr +=  "<tr><td align=center width=100% colspan=6>";
 showstr +=  "<table cellpadding=0 cellspacing=0 border=1 bordercolor=#C0D0E8 width=100%>";//内边框颜色
 showstr += "<Tr align=center bgcolor=#C0D0E8> ";//星期td背景
 showstr += "<td><strong><font color=#ff0000>日</font></strong></td>";
 showstr += "<td><strong><font color=#000000>一</font></strong></td>";
 showstr += "<td><strong><font color=#000000>二</font></strong></td>";
 showstr += "<td><strong><font color=#000000>三</font></strong></td>";
 showstr += "<td><strong><font color=#000000>四</font></strong></td>";
 showstr += "<td><strong><font color=#000000>五</font></strong></td>";
 showstr += "<td><strong><font color=#ff0000>六</font></strong></td>";
  showstr += "</Tr><tr>";
 for (i=1; i<=Firstday; i++)
    showstr += "<Td align=center bgcolor=#ffffff> </Td>";//月前空日日期背景
 for (i=1; i<=Month_Day; i++){

   if ((The_Year==today.getYear()) && (The_Month==today.getMonth()+1) && (i==today.getDate())){

     bgColor = "#DEDEEF";//当前日期td颜色
     ycdate = "<b><font color='#ff0000'>" + i + "</font></b>";
    
}else{

     bgColor = "#DEDEEF";//大部分td颜色
     ycdate=i+"";
      
}
   if (The_Day==i) bgColor = "#ffffff";//选择日期td颜色
     showstr += "<td align=center bgcolor=" + bgColor + " style='cursor:hand' onclick=chooses(" + The_Year + "," + The_Month + "," + i + ")>" + ycdate + "</td>";
    Firstday = (Firstday + 1)%7;
    if ((Firstday==0) && (i!=Month_Day)) showstr += "</tr><tr>";
    
}
  if (Firstday!=0) {

    for (i=Fir
...
...
(Please download the complete source code to view)
			
...
Expand> <Close

Want complete source code? Download it here

Point(s): 3

Download
0 lines left, continue to read
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
01.97 kB
.classpath455.00 B2009-12-20|11:30
01.97 kB
.mymetadata303.00 B2010-02-01|11:15
.project1.20 kB2009-12-20|11:32
01.97 kB
org.eclipse.jdt.core.prefs330.00 B2009-12-20|11:29
01.97 kB
Adminlogin.jsp3.75 kB2009-12-20|11:36
01.96 kB
MANIFEST.MF39.00 B2009-12-20|11:30
context.xml67.00 B2009-12-20|11:30
01.97 kB
01.96 kB
01.96 kB
01.97 kB
Anpai.class833.00 B2010-02-01|11:15
DinDao.class8.21 kB2010-02-01|11:15
Sched.class1.50 kB2010-02-01|11:15
SchedDao.class4.42 kB2010-02-01|11:15
Tocom.class644.00 B2010-02-01|11:15
User.class1.49 kB2010-02-01|11:15
UserDao.class3.97 kB2010-02-01|11:15
01.97 kB
AdminServlet.class2.14 kB2010-02-01|11:15
AffirmServlet.class2.55 kB2010-02-01|11:15
ArrangeServlet.class2.47 kB2010-02-01|11:15
DestineServlet.class2.08 kB2010-02-01|11:15
ExamineSerlvet.class1.95 kB2010-02-01|11:15
FlightServlet.class2.31 kB2010-02-01|11:15
HavingServlet.class1.81 kB2010-02-01|11:15
InterServlet.class1.82 kB2010-02-01|11:15
IntercalateServlet.class1.83 kB2010-02-01|11:15
LoginServlet.class2.00 kB2010-02-01|11:15
ModifyServlet.class2.34 kB2010-02-01|11:15
NewUser.class2.32 kB2010-02-01|11:15
NoparamServlet.class2.38 kB2010-02-01|11:15
PassServlet.class2.35 kB2010-02-01|11:15
PurchaseServlet.class2.60 kB2010-02-01|11:15
RecedServlet.class2.82 kB2010-02-01|11:15
RecedeServlet.class2.39 kB2010-02-01|11:15
SchedServlet.class2.21 kB2010-02-01|11:15
01.97 kB
JDBconne.class1.04 kB2010-02-01|11:15
config.properties62.00 B2009-12-20|11:30
01.96 kB
mysql-connector-java-5.0.8-bin.jar528.18 kB2009-12-20|11:30
web.xml7.14 kB2010-02-01|11:17
adminMain.jsp1.11 kB2009-12-20|11:30
adminfaild.jsp3.06 kB2009-12-20|11:34
affirmfaild.jsp1.25 kB2009-12-20|11:30
affirmfailder.jsp1.26 kB2009-12-20|11:30
affirmflight.jsp2.71 kB2009-12-20|11:30
amenderror.jsp1.24 kB2009-12-20|11:30
amendfail.jsp1.24 kB2009-12-20|11:30
amendsucceed.jsp1.25 kB2009-12-20|11:30
arrangBlest.jsp1.08 kB2009-12-20|11:30
arrangFaild.jsp1.08 kB2009-12-20|11:30
arrangTime.jsp9.62 kB2009-12-20|11:30
destineflight.jsp2.16 kB2009-12-20|11:30
estaBlest.jsp1.08 kB2009-12-20|11:30
estaFaild.jsp1.08 kB2009-12-20|11:30
estaflight.jsp4.15 kB2009-12-20|11:30
examFlight.jsp2.03 kB2009-12-20|11:30
examineshopping.jsp2.27 kB2009-12-20|11:30
index.html5.12 kB2009-12-20|11:34
info.jsp4.65 kB2009-12-20|11:30
infoblest.jsp1.20 kB2009-12-20|11:30
infofaild.jsp1.23 kB2009-12-20|11:30
01.97 kB
1.jpg8.95 kB2009-12-20|11:30
12d.JPG3.47 kB2009-12-20|11:30
2.jpg6.21 kB2009-12-20|11:30
3.jpg9.71 kB2009-12-20|11:30
Thumbs.db188.00 kB2009-12-20|11:30
{1F427A01-3094-4793-BECB-181BB279573B}0.jpg20.42 kB2009-12-20|11:30
{E06BF7D3-2732-4CA1-B9F0-493FA68F883B}.BMP65.97 kB2009-12-20|11:30
{E8940ACA-D0B5-4E0A-AF43-AB4D68987F54}.BMP11.95 kB2009-12-20|11:30
intercaTime.jsp9.74 kB2009-12-20|12:02
login.jsp4.09 kB2009-12-20|11:34
loginfaild.jsp3.38 kB2009-12-20|11:34
passwordamend.jsp3.52 kB2009-12-20|11:30
recedeticket.jsp2.74 kB2009-12-20|11:30
recedfaild.jsp1.23 kB2009-12-20|11:30
register.jsp10.73 kB2009-12-20|11:34
registerblest.jsp3.19 kB2009-12-20|11:34
registerfaild.jsp3.19 kB2009-12-20|11:34
userMain.jsp1.13 kB2009-12-20|11:30
01.96 kB
01.96 kB
01.97 kB
Anpai.java444.00 B2009-12-20|11:30
DinDao.java14.81 kB2009-12-20|11:30
Sched.java1.00 kB2009-12-20|11:30
SchedDao.java5.72 kB2009-12-20|11:30
Tocom.java485.00 B2009-12-20|11:30
User.java1.06 kB2009-12-20|11:30
UserDao.java5.30 kB2009-12-20|11:33
01.97 kB
AdminServlet.java1.69 kB2009-12-20|11:30
AffirmServlet.java2.22 kB2009-12-20|11:30
ArrangeServlet.java2.01 kB2009-12-20|11:30
DestineServlet.java1.70 kB2009-12-20|11:30
ExamineSerlvet.java1.31 kB2009-12-20|11:30
FlightServlet.java2.01 kB2009-12-20|11:30
HavingServlet.java1.30 kB2009-12-20|11:30
InterServlet.java1.28 kB2009-12-20|11:30
IntercalateServlet.java1.30 kB2009-12-20|11:30
LoginServlet.java1.75 kB2009-12-20|11:30
ModifyServlet.java1.87 kB2009-12-20|11:30
NewUser.java1.97 kB2009-12-20|11:30
NoparamServlet.java2.00 kB2009-12-20|11:30
PassServlet.java2.14 kB2009-12-20|11:30
PurchaseServlet.java2.21 kB2009-12-20|11:30
RecedServlet.java2.28 kB2009-12-20|11:30
RecedeServlet.java2.05 kB2009-12-20|11:30
SchedServlet.java1.76 kB2009-12-20|11:30
01.97 kB
JDBconne.java1.02 kB2009-12-20|11:30
01.97 kB
mybirger.sql2.20 kB2010-02-02|16:18
...
Sponsored links

arrangTime.jsp (804.81 kB)

Need 3 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D