1
< asp:Content ID ="Content1" ContentPlaceHolderID ="head" Runat ="Server" > 2
< style type ="text/css" > 3 .style1
4 {
5 width: 100%;
6 }
7 .style4
8 {
9 width: 660px;
10 }
11
12 .style6
13 {
14 height: 15px;
15 }
16
</style> 17
</asp:Content> 18
< asp:Content ID ="Content2" ContentPlaceHolderID ="ContentPlaceHolder1" Runat ="Server" > 19
< script language ="javascript" > 20function getDate()
21{
22 var d,s,t;
23 d=new Date();
24 s=d.getFullYear().toString(10)+"-";
25 t=d.getMonth()+1;
26 s+=(t>9?"":"0")+t+"-";
27 t=d.getDate();
28 s+=(t>9?"":"0")+t+" ";
29// t=d.getHours();
30// s+=(t>9?"":"0")+t+":";
31// t=d.getMinutes();
32// s+=(t>9?"":"0")+t+":";
33// t=d.getSeconds();
34// s+=(t>9?"":"0")+t;
35 return s;
36}
37function bj()
38{
39if(document .getElementById ("ctl00$ContentPlaceHolder1$date1$TextBox1").value=="")
40{
41var begin=getDate ();
42}
43else
44{
45var begin=document.getElementById ("ctl00$ContentPlaceHolder1$date1$TextBox1").value;
46}
47if(document .getElementById ("ctl00$ContentPlaceHolder1$date2$TextBox1").value=="")
48{
49var end=getDate ();
50}
51else
52{
53var end= document.getElementById ("ctl00$ContentPlaceHolder1$date2$TextBox1").value;
54}
55if(begin>end)
56{
57alert ("开始时间大于结束时间!");
58return false ;
59}
60else
61{
62return true ;
63}
64
65}
66
67
</script> 68
< table class ="style1" > 69
< tr > 70
< td style ="font-weight: bold; font-size: x-large; color: #800000" colspan ="2" > 71
< asp:ScriptManager ID ="ScriptManager1" runat ="server" > 72
</asp:ScriptManager> 73 按创建时间查找市场
74 <asp:ImageButton ID="ImageButton1" runat="server" Height="26px"
75 ImageUrl="~/ICO/kaishi.gif" OnClientClick="return bj();" Width="79px" />
76
</td> 77
</tr> 78
< tr > 79 <td style="font-weight: bold; font-size:large; color: #800000" align="left"
80 valign="top">
81
< uc1:date ID ="date1" runat ="server" LableText ="开始时间:" /> 82
</td> 83 <td style="font-weight: bold; font-size:large; color: #800000" align="left"
84 valign="top">
85
< uc1:date ID ="date2" runat ="server" LableText ="结束时间:" /> 86
</td> 87
</tr> 88
< tr > 89 <td style="font-weight: bold; font-size:large; color: #800000" align="left"
90 colspan="2">
91
< asp:Label ID ="Label1" runat ="server" > </asp:Label> 92
< asp:SqlDataSource ID ="SqlDataSource6" runat ="server" > </asp:SqlDataSource> 93
</td> 94
</tr> 95
< tr > 96
< td class ="style4" align ="left" colspan ="2" > 97 <asp:GridView ID="GridView7" runat="server" AutoGenerateColumns="False"
98 BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"
99 CellPadding="3" ForeColor="Black" GridLines="Vertical" Width="107%"
100 onrowcommand="GridView7_RowCommand" DataKeyNames="id" >
101
< FooterStyle BackColor ="#CCCCCC" /> 102
< Columns > 103
< asp:BoundField DataField ="marketname" HeaderText ="市场名称" /> 104
< asp:BoundField DataField ="marketpass" HeaderText ="市场密码" /> 105
< asp:BoundField DataField ="marketyear" HeaderText ="市场年份" /> 106
< asp:BoundField DataField ="groupnum" HeaderText ="市场组数" /> 107
< asp:BoundField DataField ="csxj" HeaderText ="初始现金" /> 108
< asp:BoundField DataField ="marketdate" HeaderText ="市场创建时间" /> 109
< asp:BoundField DataField ="marketbz" HeaderText ="市场描述" /> 110
< asp:BoundField DataField ="marketover" HeaderText ="市场完成情况" /> 111
< asp:TemplateField HeaderText ="查看市场详情" > 112
< ItemTemplate > 113
< asp:LinkButton ID ="LinkButton1" runat ="server" CommandArgument='<%#Eval("id") %
>'
114 CommandName="cksj">查看本市场企业数据
</asp:LinkButton> 115
</ItemTemplate> 116
</asp:TemplateField> 117
</Columns> 118
< PagerStyle BackColor ="#999999" ForeColor ="Black" HorizontalAlign ="Center" /> 119
< SelectedRowStyle BackColor ="#000099" Font-Bold ="True" ForeColor ="White" /> 120
< HeaderStyle BackColor ="Black" Font-Bold ="True" ForeColor ="White" /> 121
< AlternatingRowStyle BackColor ="#CCCCCC" /> 122
< EmptyDataTemplate >温馨提示:当前没有任何记录
</EmptyDataTemplate> 123
</asp:GridView> 124
</td> 125
</tr>