<div class="attachmentinfo">
<div>文件名:<a href="attachment.aspx?attachmentid={attachment.aid}">{attachment.attachment}</a></div>
<div>下载次数:{attachment.downloads}</div>
<div>文件类型:{attachment.filetype}</div>
<div>文件大小:
<script language="javascript" type="text/javascript">
ShowFormatBytesStr({attachment.filesize});
</script>
</div>
<div>上传时间:{attachment.postdatetime}</div>
<div>描述:{attachment.description}</div>
<%if {attachment.preview}!=""%>
<div>预览信息:{attachment.preview}</div>
<%/if%>
</div>
<%if {allowdownloadattach}%><!--当用户有下载附件权限时-->
<%if {config.showimages}==1%>
<%if {config.attachimgpost}==1%>
<%if {attachment.attachimgpost}==1%>
<br /><br />
<img
<%if {config.showattachmentpath}==1%>
src="upload/{attachment.filename}"
<%else%>
src="attachment.aspx?attachmentid={attachment.aid}"
<%/if%>
onload="if(this.width>body.clientWidth/2) {this.resized=true; this.width=body.clientWidth/2; this.alt='点击在新窗口浏览图片\nCTRL+Mouse 滚轮可放大/缩小';$('attachment_{attachment.aid}').style.width=this.width+25+'px';}" onmouseover="if(this.width>body.clientWidth/2) {this.resized=true; this.width=body.clientWidth/2; this.style.cursor='hand'; this.alt='点击在新窗口浏览图片\nCTRL+Mouse 滚轮可放大/缩小';$('attachment_{attachment.aid}').style.width=this.width+25+'px';}" onclick="if(!this.resized) { return true; } else { window.open(this.src); }" onmousewheel="return imgzoom(this);" />
<%/if%>
<%/if%>
<br />
<%/if%>
<%else%>
<br /><br />
<span class=\"attachnotdown\">您所在的用户组无法下载或查看附件</span>
<%/if%>
搜索了论坛N次了,也没找到答案,最后自己看了模版对照文件修改了附件显示模版还是那样,希望高手给解答下,谢谢!
http://www.new0546.com/Club/showtopic-95.aspx对比了下官方生成出的代码不跟我的一样,到底哪个变量代表图片在自己服务器上的路径那?img src="/Club/attachment.aspx?attachmentid=70" 我的老生成一上路径,官方直接生成的是图片真实地址/2008/07/06/XXX。GIF