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

SCSI/ASPI

开发平台:

Others

  1. <%@ Control Language="C#" AutoEventWireup="false" Inherits="Discuz.Album.Admin.AjaxAlbumList" %>
  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" id="Table1" style="border-collapse:collapse;">
  14.                  <%
  15.                  int i = 1;
  16.                  foreach(System.Data.DataRow dr in dt.Rows)
  17.                  {
  18.                      if (i % 4 == 1)
  19.                      {
  20.                   %>
  21.                         <tr style="cursor:hand;height:180px;">
  22.                   <%
  23.                      }
  24.                   %>
  25.                     <td nowrap="nowrap" align="center">
  26.                     <%if (isShowPrivateAlbum)
  27.                       { %>
  28.                               <a href="#" onclick="managephoto(<%=dr["albumid"] %>)"><img src="<%=GetLogo(dr["logo"].ToString().Trim())%>" title="<%=dr["description"].ToString().Trim().Replace(""","&quot;") %>" onerror="this.src='../../space/images/nopic.gif'" border="0"/></a><br />
  29.                     <%}else{ %>
  30.                               <a href="../../showalbum.aspx?albumid=<%=dr["albumid"] %>" target="_blank"><img src="<%=GetLogo(dr["logo"].ToString().Trim())%>" title="<%=dr["description"].ToString().Trim().Replace(""","&quot;") %>" onerror="this.src='../../space/images/nopic.gif'" border="0"/></a><br />
  31.                     <%} %>
  32.         <input id="tid<%=dr["albumid"] %>" onclick="javascript:insertElement('aid',this.value,$('albumtitle'+this.value).innerHTML,this.checked)" type="checkbox" value="<%=dr["albumid"] %>" name="albumid" />
  33.          <span id="albumtitle<%=dr["albumid"] %>">
  34.          <a href="../../showalbum.aspx?albumid=<%=dr["albumid"] %>" title="<%=dr["title"].ToString().Trim().Replace(""","&quot;") %>" target="_blank">
  35.             <%=dr["title"].ToString().Trim().Length > 15 ? dr["title"].ToString().Trim().Substring(0,15) + "..." : dr["title"].ToString().Trim() %>
  36.         </a>
  37.         </span>(<%=dr["imgcount"]%>)<br />
  38.                      <span> 创建日期:<%=Convert.ToDateTime(dr["createdatetime"].ToString()).ToShortDateString()%></span><br />
  39.                     所有者:<a href="../../userinfo.aspx?userid=<%=dr["userid"] %>" target="_blank"><%=dr["username"] %></a><%=dr["type"].ToString()=="1"?"(<font color='red'>私有</font>)":""%>
  40.                     </td>
  41.                      <%
  42.                       if (i % 4 == 0)
  43.                       {
  44.                      %>
  45.                         </tr>
  46.                      <%
  47.                       }
  48.                       i++;
  49.                   } %>
  50.                   <tr>
  51.                 <td align="left" valign="bottom" colspan="4" style="border-width:0px;"><%=pagelink %></td>
  52.                   </tr>
  53.               </table>
  54.               </td>
  55.             </tr>
  56.           </table>
  57.           </td>
  58.           </tr>
  59.     </table>
  60. </div>