ajaxtopicinfo.ascx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:4k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. <%@ Control Language="c#" Inherits="Discuz.Web.Admin.ajaxtopicinfo" Codebehind="ajaxtopicinfo.ascx.cs" AutoEventWireup="false"%>
  2. <br />
  3. <div style="width:100%" align=center>
  4.         <table class="table1" cellspacing="0" cellpadding="4" width="100%" align="center">
  5.         <tr>
  6. <td colspan="2">
  7. <table class="ntcplist" >
  8.             <tr class="head">
  9.               <td>&nbsp;&nbsp;候选主题列表</td>
  10.             </tr>
  11.             <tr>
  12.             <td>
  13.           <table class="datalist" cellspacing="0" rules="all" border="1" id="DataGrid1" style="border-collapse:collapse;">
  14.                   <tr class="category">
  15.                     <td nowrap="nowrap" style="border-color:#EAE9E1;border-width:1px;border-style:solid;">选择</td>
  16.                     <td nowrap="nowrap" style="border-color:#EAE9E1;border-width:1px;border-style:solid;">帖子标题</td>
  17.                     <td nowrap="nowrap" style="border-color:#EAE9E1;border-width:1px;border-style:solid;">作者</td>
  18.                     <td nowrap="nowrap" style="border-color:#EAE9E1;border-width:1px;border-style:solid;">所属版块</td>
  19.                     <td nowrap="nowrap" style="border-color:#EAE9E1;border-width:1px;border-style:solid;">发布日期</td>
  20.                     <td nowrap="nowrap" style="border-color:#EAE9E1;border-width:1px;border-style:solid;">回复数</td>
  21.                   </tr>
  22.                   <%
  23.                     foreach(System.Data.DataRow dr in dt.Rows)
  24.                     {
  25.                         if (dr["title"].ToString().Trim().Length > 30)
  26.                         {
  27.                             dr["title"] = dr["title"].ToString().Trim().Substring(0, 30) + "...";
  28.                         }
  29.                    %>
  30.                   <tr class="datagridItem" onmouseover="this.className='mouseoverstyle'" onmouseout="this.className='mouseoutstyle'" style="cursor:hand;">
  31.                     <td nowrap="nowrap" style="border-color:#EAE9E1;border-width:1px;border-style:solid;">
  32.         <input id="tid<%=dr["tid"] %>" onclick="javascript:insertElement('tid',this.value,$('title'+this.value).innerHTML,this.checked)" type="checkbox" value="<%=dr["tid"] %>" name="topicid"></td>
  33.                     <td style="border-color:#EAE9E1;border-width:1px;border-style:solid;" align="left"><a href="../../showtopic.aspx?topicid=<%=dr["tid"] %>" target="_blank"><span id="title<%=dr["tid"] %>"><%=dr["title"].ToString().Trim() %></span></a></td>
  34.                     <td style="border-color:#EAE9E1;border-width:1px;border-style:solid;">
  35.                     <%if(dr["posterid"].ToString() == "-1"){ %>
  36.                         <%=dr["poster"] %>
  37.                     <%}else{ %>
  38.                         <a href="../../userinfo.aspx?userid=<%=dr["posterid"] %>" target="_blank"><%=dr["poster"] %></a>
  39.                     <%} %>
  40.                     </td>
  41.                     <td style="border-color:#EAE9E1;border-width:1px;border-style:solid;"><a href="../../showforum.aspx?forumid=<%=dr["fid"] %>" target="_blank"><%=dr["name"] %></a></td>
  42.                     <td style="border-color:#EAE9E1;border-width:1px;border-style:solid;"><%=dr["postdatetime"] %></td>
  43.                     <td style="border-color:#EAE9E1;border-width:1px;border-style:solid;"><%=dr["replies"] %></td>
  44.                   </tr>
  45.                   <%} %>
  46.                   <tr class="datagridPager">
  47.                 <td align="left" valign="bottom" colspan="6" style="border-width:0px;"><%=pagelink %></td>
  48.                   </tr>
  49.               </table></td>
  50.             </tr>
  51.           </TABLE>
  52.         </td>
  53.         </tr>
  54.         </table>
  55. </div>