1 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="QuestionList.aspx.cs" Inherits="QuestionList" %>
2
3 <%@ Register src="UC_Header.ascx" tagname="UC_Header" tagprefix="uc1" %>
4 <%@ Register src="UC_Search.ascx" tagname="UC_Search" tagprefix="uc2" %>
5 <%@ Register src="UC_Navigation.ascx" tagname="UC_Navigation" tagprefix="uc3" %>
6 <%@ Register src="UC_Footer.ascx" tagname="UC_Footer" tagprefix="uc4" %>
7
8
9 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
10
11 <html xmlns="http://www.w3.org/1999/xhtml">
12 <head runat="server">
13 <title>明日知道-国内领先的IT技术搜素引擎</title>
14 <link href="css/css.css" rel="stylesheet" type="text/css" />
15 <SCRIPT src="css/jquery.js" type="text/javascript"></SCRIPT>
16
17 </head>
18 <body>
19 <form id="form1" runat="server">
20 <div>
21 <uc1:UC_Header ID="UC_Header1" runat="server" />
22 <uc2:UC_Search ID="UC_Search1" runat="server" />
23 <uc3:UC_Navigation ID="UC_Navigation1" runat="server" />
24
25 <table width="95%" height="56" border="0" align="center">
26 <tr>
27 <td><table width="100%" height="92" align="center" class="table">
28 <tbody>
29 <tr>
30 <td class="left" valign="top"><style type="text/css">
31 .bbs_index_nav {
32 CLEAR: both; WIDTH: 96%; LINE-HEIGHT: 25px; HEIGHT: 35px
33 }
34 .bbs_index_titleAlert {
35 CLEAR: both; WIDTH: 96%; HEIGHT: 29px
36 }
37 .bbs_index_titleAlert .left {
38 FLOAT: left; WIDTH: 600px; HEIGHT: 29px
39 }
40 .bbs_index_titleAlert .right {
41 FLOAT: right; WIDTH: 300px; HEIGHT: 29px
42 }
43 .bbs_index_main {
44 CLEAR: both; WIDTH: 100%
45 }
46 .bbs_index_main .table {
47 CLEAR: both; WIDTH: 100%; BORDER-COLLAPSE: collapse
48 }
49 .bbs_index_main .table .left {
50 WIDTH: 100%
51 }
52 .bbs_index_main .table .left .type {
53 CLEAR: both; BORDER-RIGHT: #a6ce6c 1px solid; BORDER-TOP: #a6ce6c 1px solid; MARGIN: 0px; BORDER-LEFT: #a6ce6c 1px solid; BACKGROUND-COLOR: #fbfff4
54 }
55 .bbs_index_main .table .left .type .table {
56 CLEAR: both; DISPLAY: block; WIDTH: 100%; BORDER-COLLAPSE: collapse
57 }
58 .bbs_index_main .table .left .type .title {
59 CLEAR: both; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; BACKGROUND: url(/known/public_html/img/bbs_title_bg1.gif); MARGIN: 0px; BORDER-LEFT: #ffffff 1px solid; BORDER-BOTTOM: #ffffff 1px solid; HEIGHT: 30px
60 }
61 .bbs_index_main .table .left .type .title .left {
62 FLOAT: left; WIDTH: 95%; COLOR: #ffffff; LINE-HEIGHT: 30px; HEIGHT: 30px; TEXT-ALIGN: left
63 }
64 .bbs_index_main .table .left .type .title .right {
65 FONT-WEIGHT: bold; FONT-SIZE: 16px; FLOAT: right; WIDTH: 3%; CURSOR: pointer; COLOR: #ffffff; LINE-HEIGHT: 30px; HEIGHT: 30px; TEXT-ALIGN: left
66 }
67 .bbs_index_main .table .left .type .table .titlePart1 {
68 WIDTH: 10%; BORDER-BOTTOM: #9db3c5 1px solid; HEIGHT: 16px
69 }
70 .bbs_index_main .table .left .type .table .titlePart2 {
71 WIDTH: 50%; COLOR: #006699; BORDER-BOTTOM: #9db3c5 1px solid; HEIGHT: 16px
72 }
73 .bbs_index_main .table .left .type .table .titlePart3 {
74 WIDTH: 13%; COLOR: #006699; BORDER-BOTTOM: #9db3c5 1px solid; HEIGHT: 16px; TEXT-ALIGN: center
75 }
76 .bbs_index_main .table .left .type .table .titlePart4 {
77 WIDTH: 27%; COLOR: #006699; BORDER-BOTTOM: #9db3c5 1px solid; HEIGHT: 16px; TEXT-ALIGN: center
78 }
79 .bbs_index_main .table .left .type .table .contentPart1 {
80 WIDTH: 10%; BORDER-BOTTOM: #9db3c5 1px solid; HEIGHT: 60px; TEXT-ALIGN: center
81 }
82 .bbs_index_main .table .left .type .table .contentPart2 {
83 WIDTH: 50%; LINE-HEIGHT: 16px; BORDER-BOTTOM: #9db3c5 1px solid; HEIGHT: 60px
84 }
85 .bbs_index_main .table .left .type .table .contentPart3 {
86 WIDTH: 13%; BORDER-BOTTOM: #9db3c5 1px solid; HEIGHT: 60px; TEXT-ALIGN: center
87 }
88 .bbs_index_main .table .left .type .table .contentPart4 {
89 WIDTH: 27%; LINE-HEIGHT: 20px; BORDER-BOTTOM: #9db3c5 1px solid; HEIGHT: 60px
90 }
91 .bbs_index_nav .li1 {
92 FONT-WEIGHT: bold; FLOAT: left; WIDTH: 500px; LINE-HEIGHT: 35px; HEIGHT: 35px; TEXT-ALIGN: left
93 }
94 .bbs_index_nav .li2 {
95 FLOAT: right; WIDTH: 200px; HEIGHT: 35px
96 }
97 .bbs_index_titleAlert .left .li1 {
98 FONT-WEIGHT: bold; BACKGROUND: url(/known/public_html/img/bbs_btn_bg1.gif); FLOAT: left; WIDTH: 73px; CURSOR: pointer; LINE-HEIGHT: 29px; HEIGHT: 29px
99 }
100 .bbs_index_titleAlert .left .li2 {
101 FONT-SIZE: 13px; FLOAT: right; WIDTH: 500px; LINE-HEIGHT: 29px; HEIGHT: 29px; TEXT-ALIGN: left
102 }
103 .bbs_index_titleAlert .right .li1 {
104 FLOAT: left; WIDTH: 210px; LINE-HEIGHT: 29px; HEIGHT: 29px
105 }
106 .bbs_index_titleAlert .right .li2 {
107 FONT-SIZE: 13px; FLOAT: left; WIDTH: 72px; LINE-HEIGHT: 29px; HEIGHT: 29px; TEXT-ALIGN: left
108 }
109 .bbs_index_titleAlert .right .li3 {
110 FLOAT: right; WIDTH: 18px; LINE-HEIGHT: 29px; POSITION: relative; HEIGHT: 29px
111 }
112 </style>
113 <table width="100%" border="0" cellspacing="0" cellpadding="0">
114 <tr>
115 <td><span class="huise"><img src="images/home32.gif" width="25" height="25" /><a href="Index.aspx" class="hong">明日知道 </a></span><span class="huise1">>></span> <a href="QuestionCatalog.aspx" class="hong">问题分类</a> </td>
116 <td align="right"><a href="Question.aspx"><img src="images/tw.gif" width="129" height="39" border="0" /></a> <a href="QuestionCatalog.aspx"><img src="images/hd.gif" width="129" height="39" border="0" /></a> </td>
117 </tr>
118 </table>
119 <table width="100%" border="0" cellspacing="0" cellpadding="0">
120 <tr>
121 <td height="24"><span class="huise1">您可以</span><span class="henhong"><a href="Register.aspx" target="_blank" class="chengse">注册</a></span><span class="huise1">一个账户,并以此</span><span class="henhong"><a href="Login.aspx" target="_blank" class="chengse">登录</a></span><span class="huise1">,以便参与本站更多活动,与大家交流。</span></td>
122 </tr>
123 </table>
124 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
125 <tr>
126 <td width="4"><img src="images/left011.gif" width="4" height="33" /></td>
127 <td background="images/left022.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
128 <tr>
129 <td class="danhuang">
130 <asp:Label ID="lblCatalog" runat="server" Text=""></asp:Label>
131 </td>
132 <td> </td>
133 </tr>
134 </table></td>
135 <td width="4"><img src="images/left033.gif" width="4" height="33" /></td>
136 </tr>
137 </table>
138 <div class="bbs_index_main">
139 <table width="100%" class="table">
140 <tbody>
141 <tr>
142 <td class="left" valign="top"><div class="type">
143
144
145
146 <asp:DataList ID="DataList1" runat="server" DataKeyField="Code" Width="100%">
147 <HeaderTemplate>
148 <table width="100%" class="table">
149 <tbody>
150 <tr class="titlePart">
151 <td width="2%" class="titlePart1"></td>
152 <td width="32%" align="left" class="titlePart2">标题</td>
153 <td width="16%" align="left" class="titlePart3">作者</td>
154 <td width="11%" align="left" class="titlePart3">悬赏分数</td>
155 <td width="39%" align="left" class="titlePart4">发布时间</td>
156 </tr>
157 </HeaderTemplate>
158 <ItemTemplate>
159 <tr id="title_row_3" onmouseover="changeRowColor('title_row_3', 0)"
160 onmouseout="changeRowColor('title_row_3', 1)">
161 <td class="contentPart1"><img src="images/mark_title_simple.gif" width="24" height="24" /></td>
162 <td class="contentPart2"><a href="QuestionAnswer.aspx?QuestionCode=<%#Eval("Code") %> " class="hong"><%#Eval("Title")%></a><a href="#" class="lvcu"></a></td>
163 <td class="contentPart3"><span class="contentPart4"><a href="#" class="huise"><%#Eval("UserCode") %></a><br />
164 </font></span></td>
165 <td class="contentPart3"><span class="huise1"><%#Eval("Mark") %></span></td>
166 <td class="contentPart4"><span class="huise1"><span class="huise1"><%#Eval("PostDatetime") %></span><br />
167 </tr>
168
169 </ItemTemplate>
170 <FooterTemplate>
171 </tbody>
172 </table>
173 </FooterTemplate>
174 </asp:DataList>
175 <div class="huise1">
176 <cc1:ourpager ID="OurPager1" runat="server"
177 onpagechanged="OurPager1_PageChanged" />
178 <asp:Label ID="lblCurrentPageIndex" runat="server" Text=""></asp:Label>
179 </div>
180
181
182
183 </div></td>
184 </tr>
185 </tbody>
186 </table>
187 </div>
188 <script language="JavaScript" type="text/javascript">
189 //打开关闭右侧导航
190 function openCloseRightNav()
191 {
192 if($("#rightNav").css("display")=="none"){
193 $("#openCloseRightNavBtn").attr("src", "/known/public_html/img/wait_close.gif");
194 $("#openCloseRightNavAlert").html("关闭右导航");
195 $("#rightNav").slideDown("normal", function(){
196 $("#openCloseRightNavBtn").attr("src", "/known/public_html/img/bbs_btn_close1.gif");
197 });
198 }else{
199 $("#openCloseRightNavBtn").attr("src", "/known/public_html/img/wait_open.gif");
200 $("#openCloseRightNavAlert").html("展开右导航");
201 $("#rightNav").slideUp("normal", function(){
202 $("#openCloseRightNavBtn").attr("src", "/known/public_html/img/bbs_btn_open1.gif");
203 });
204 }
205 }
206 //更改行背景色
207 function changeRowColor(x, y)
208 {
209 if(y==0){
210 $("#"+x).css("background-color", "#FFFFFF");
211 }else{
212 $("#"+x).css("background-color", "#fbfff4");
213 }
214 }
215 //更改验证码的值
216 function changeValidateCode()
217 {
218 $("#vcodeImg").attr("src", "/known/public_html/common/vcode/w/60/h/22/f/1/rand/"+Math.random()+"");
219 }
220 //更改主题选项卡
221 function changeTitleTab(x, y, z)
222 {
223 $("#"+x).css("border-bottom", "1px solid #FFFFFF");
224 $("#"+x).css("background-color", "#FFFFFF");
225 $("#"+x+"_content").css("display", "block");
226
227 $("#"+y).css("border-bottom", "1px solid #9DB3C5");
228 $("#"+y).css("background-color", "#fbfff4");
229 $("#"+y+"_content").css("display", "none");
230
231 $("#"+z).css("border-bottom", "1px solid #9DB3C5");
232 $("#"+z).css("background-color", "#fbfff4");
233 $("#"+z+"_content").css("display", "none");
234 }
235 //显示或隐藏子类
236 function showHidden(x)
237 {
238 $("#"+x).slideToggle("fast");
239 if($.trim($("#btn_"+x).html())=="-"){
240 $("#btn_"+x).html("+");
241 }else{
242 $("#btn_"+x).html("-");
243 }
244 }
245 </script></td></tr>
246 </tbody>
247 </table></td>
248 </tr>
249 </table>
250
251
252
253 <uc4:UC_Footer ID="UC_Footer1" runat="server" />
254 </div>
255
256 </form>
257 </body>
258 </html>