您目前尚未登陆,请选择【登陆】或【注册
首页->行政办公->科信客户关系管理系统源码>>LogList.aspx>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:科信客户关系管理系统源码
当前文件:文件类型 KeXinCrm/LogList.aspx打开代码结构图
普通视图
		            
1<%@ Page language="c#" Codebehind="LogList.aspx.cs" AutoEventWireup="True" Inherits="CRMS.LogList" %> 2<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 3<HTML> 4 <HEAD> 5 <title>LogList</title> 6 <LINK href="css.css" type="text/css" rel="stylesheet"> 7 <meta content="False" name="vs_snapToGrid"> 8 <meta content="False" name="vs_showGrid"> 9 <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> 10 <meta content="C#" name="CODE_LANGUAGE"> 11 <meta content="JavaScript" name="vs_defaultClientScript"> 12 <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> 13 </HEAD> 14 <body ONLOAD="newCalendar()"> 15 <form id="Form1" method="post" runat="server"> 16 <table cellSpacing="0" cellPadding="0" width="886" align="center" border="0"> 17 <tr> 18 <td colSpan="3" height="30"><!-- #include virtual="top.htm" --><FONT face="宋体"></FONT></td> 19 </tr> 20 </table> 21 <br> 22 <table cellSpacing="0" cellPadding="0" width="886" align="center" border="0"> 23 <tr> 24 <td style="WIDTH: 538px" vAlign="bottom" width="538"><IMG height="28" src="images/555.gif" width="237"></td> 25 <td vAlign="bottom" width="28%">&nbsp;</td> 26 </tr> 27 </table> 28 <TABLE cellSpacing="1" cellPadding="0" width="886" align="center" bgColor="#cc9966" border="0"> 29 <TBODY> 30 <TR> 31 <TD bgColor="#ffffff" height="70"> 32 <table cellSpacing="0" cellPadding="0" width="98%" align="center" border="0"> 33 <tr> 34 <td style="LINE-HEIGHT: 200%" width="32%" height="36"><div align="center"> 35 <!--日历开始--> 36 <br> 37 <STYLE TYPE="text/css"> 38.today { FONT-WEIGHT: bold; BACKGROUND: #c5c5c5 } 39.satday { COLOR: green } 40.sunday { COLOR: red } 41.days { FONT-WEIGHT: bold } 42 </STYLE> 43 <script language="JavaScript"> 44//中文月份,如果想显示英文月份,修改下面的注释 45/*var months = new Array("January?, "February?, "March", 46"April", "May", "June", "July", "August", "September", 47"October", "November", "December");*/ 48var months = new Array("一月", "二月", "三月", 49"四月", "五月", "六月", "七月", "八月", "九月", 50"十月", "十一月", "十二月"); 51var daysInMonth = new Array(31, 28, 31, 30, 31, 30, 31, 31, 5230, 31, 30, 31); 53//中文周 如果想显示 英文的,修改下面的注释 54/*var days = new Array("Sunday", "Monday", "Tuesday", 55"Wednesday", "Thursday", "Friday", "Saturday");*/ 56var days = new Array("","", "", "", 57"", "", ""); 58function getDays(month, year) { 59//下面的这段代码是判断当前是否是闰年的 60if (1 == month) 61return ((0 == year % 4) && (0 != (year % 100))) || 62(0 == year % 400) ? 29 : 28; 63else 64return daysInMonth[month]; 65} 66 67function getToday() { 68//得到今天的年,月,日 69this.now = new Date(); 70this.year = this.now.getFullYear(); 71this.month = this.now.getMonth(); 72this.day = this.now.getDate(); 73} 74 75today = new getToday(); 76 77function newCalendar() { 78 79today = new getToday(); 80var parseYear = parseInt(document.all.year 81[document.all.year.selectedIndex].text); 82var newCal = new Date(parseYear, 83document.all.month.selectedIndex, 1); 84var day = -1; 85var startDay = newCal.getDay(); 86var daily = 0; 87if ((today.year == newCal.getFullYear()) &&(today.month == newCal.getMonth())) 88day = today.day; 89var tableCal = document.all.calendar.tBodies.dayList; 90var intDaysInMonth =getDays(newCal.getMonth(), newCal.getFullYear()); 91for (var intWeek = 0; intWeek < tableCal.rows.length;intWeek++) 92for (var intDay = 0;intDay < tableCal.rows[intWeek].cells.length;intDay++) 93{ 94var cell = tableCal.rows[intWeek].cells[intDay]; 95if ((intDay == startDay) && (0 == daily)) 96daily = 1; 97if(day==daily) 98//今天,调用今天的Class 99cell.className = "today"; 100else if(intDay==6) 101//周六 102cell.className = "sunday"; 103else if (intDay==0) 104//周日 105cell.className ="satday"; 106else 107//平常 108cell.className="normal"; 109 110if ((daily > 0) && (daily <= intDaysInMonth)) 111{ 112cell.innerText = daily; 113daily++; 114} 115else 116cell.innerText = ""; 117} 118} 119 120function getDate() 121 { 122var sDate; 123//这段代码处理鼠标点击的情况 124if ("TD" == event.srcElement.tagName) 125if ("" != event.srcElement.innerText) 126{ 127sDate = document.all.year.value + "" + document.all.month.value + "" + event.srcElement.innerText + ""; 128//alert(sDate); 129window.open ("LogSearch.aspx?MyDateTime="+document.all.year.value+"-"+document.all.month.value+"-"+event.srcElement.innerText+"") 130 131} 132} 133 </script> 134 <input type="hidden" name="ret"> 135 <table id="calendar" border="0" cellpadding="3" cellspacing="0" width="75%"> 136 <thead> 137 <tr> 138 <TD COLSPAN="7" ALIGN="center"> 139 <SELECT ID="month" ONCHANGE="newCalendar()"> 140 <SCRIPT LANGUAGE="JavaScript"> 141 for (var intLoop = 0; intLoop < months.length; 142 intLoop++) 143 document.write("<OPTION VALUE= " + (intLoop + 1) + " " + 144 (today.month == intLoop ? 145 "Selected" : "") + ">" + 146 months[intLoop]); 147 </SCRIPT> 148 </SELECT> 149 <select name="select" id="year" onChange="newCalendar()"> 150 <script language="JavaScript"> 151 for (var intLoop = today.year-50; intLoop < (today.year + 10); 152 intLoop++) 153 document.write("<OPTION VALUE= " + intLoop + " " + 154 (today.year == intLoop ? 155 "Selected" : "") + ">" + 156 intLoop); 157 </script> 158 </select> 159 <br> 160 <br> 161 </TD> 162 </tr> 163 <tr class="days"> 164 <script language="JavaScript"> 165document.write("<TD class=satday>" + days[0] + "</TD>"); 166for (var intLoop = 1; intLoop < days.length-1; 167intLoop++) 168document.write("<TD>" + days[intLoop] + "</TD>"); 169document.write("<TD class=sunday>" + days[intLoop] + "</TD>"); 170 </script> 171 </tr> 172 </thead> 173 <tbody border="1" cellspacing="0" cellpadding="0" id="dayList" align="center" onClick="getDate()"> 174 <script language="JavaScript"> 175for (var intWeeks = 0; intWeeks < 6; intWeeks++) { 176document.write("<TR style='cursor:hand'>"); 177for (var intDays = 0; intDays < days.length; 178intDays++) 179document.write("<TD></TD>"); 180document.write("</TR>"); 181} 182 </script> 183 </tbody> 184 </table> 185 <br> 186 <!--日历结束--> 187 </div> 188 </td> 189 <td style="LINE-HEIGHT: 200%" width="68%"><asp:datagrid id="dg1" runat="server" Width="581px" AutoGenerateColumns="False" PageSize="5" AllowPaging="True" 190