Discuz.Web/templates/default/_attachmentinfo.htm

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%if {attachment.attachimgpost}==1%>
<dl class="t_attachlist_img attachimg cl">
<%else%>
<dl class="t_attachlist attachimg cl">
<%/if%>
	<%if {attachment.attachimgpost}==1%>
	<dt>
	</dt>
	<%else if {attachment.filename}.Trim().ToLower().EndsWith("rar")||{attachment.filename}.Trim().ToLower().EndsWith("zip")%>
	<dt>
	<img class="absmiddle" border="0" alt="" src="images/attachicons/rar.gif"/>
	</dt>
	<%else%>
	<dt>
	<img class="absmiddle" border="0" alt="" src="images/attachicons/attachment.gif"/>
	</dt>
	<%/if%>
	</dt>
	<dd>
	<%if {attachment.attachprice}<=0%>
	   <a target="_blank" onclick="return ShowDownloadTip({post.posterid});" href="attachment.aspx?attachmentid={attachment.aid}" class="xg2">{attachment.attachment}</a>
	<%else%>
		<%if {attachment.isbought}==1 || {post.posterid}=={userid}%>
		   <a target="_blank" onclick="return ShowDownloadTip({post.posterid});"  href="attachment.aspx?attachmentid={attachment.aid}" class="xg2">{attachment.attachment}</a>
		<%else%>
		   <%if {usergroupinfo.radminid}==1%>
			  <a target="_blank"  onclick="return ShowDownloadTip({post.posterid});" href="attachment.aspx?attachmentid={attachment.aid}" class="xg2">{attachment.attachment}</a>
		   <%else%>
			  {attachment.attachment}
		   <%/if%>
		<%/if%>
	<%/if%>
	<em class="xg1">(<script type="text/javascript">ShowFormatBytesStr({attachment.filesize});</script>, 下载次数:{attachment.downloads})</em>
<%set (bool) {viewattach} = false %>									    
<%if {attachment.attachprice}>0%>
	<p>
	售价({Scoresets.GetTopicAttachCreditsTransName()}):<strong>{attachment.attachprice} </strong>									
	[<a onclick="loadattachpaymentlog({attachment.aid});" href="javascript:void(0);">记录</a>]
	<%set {viewattach} = {attachment.isbought}==1%>
	<%if {post.posterid}!={userid} && !{viewattach}%>
	  <%if {usergroupinfo.radminid}!=1%>
		[<a onclick="loadbuyattach({attachment.aid});" href="javascript:void(0);">购买</a>] 
	  <%/if%>
	<%/if%>	
	</p>
<%/if%>
	<p><%if {attachment.description}!=""%>{attachment.description}<%/if%><span style="color:#666">({attachment.postdatetime} 上传)</span></p>
	<%if {attachment.preview}!=""%>
	<p>{attachment.preview}</p>
	<%/if%>
	<p>
<%if {post.posterid}=={userid} || {usergroupinfo.radminid}==1%>
	 <%set {viewattach} = true%>  
<%/if%>									
	<a name="attach{attachment.aid}"></a>
<%if {UserAuthority.DownloadAttachment(forum,userid,usergroupinfo)}%><!--当用户有下载附件权限时-->
	<%if {config.showimages}==1%>
			<%if {attachment.attachimgpost}==1%>
                <%if {attachment.attachprice}<=0 || {viewattach}%>
                    <%if {config.showimgattachmode}==0%>
后面还有 36 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。