⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 topics.ftl

📁 新技术论坛系统 v1.0 前后台管理的初始用户名 : admin 密码 123456
💻 FTL
字号:
<#assign isType = request.getParameter("type")?exists>
<#if isType>
	<#assign type = request.getParameter("type")>
	<#if "js"==type>
		function Topic(id,title,dateCreated,username){
			this.id = id;
			this.title = title;
			this.dateCreated = dateCreated;
			this.username = username;
		}
		var topics = new Array();
		<#list topics as topic>
		topics[topics.length] = new Topic(${topic.id},"${topic.title}","${topic.dateCreated?string("MM-dd")}","${URLEncoder.encode(topic.username)}");
		</#list>
	<#else>
		<#list topics as topic>
		<ul>
          <li><a href="http://bbs.ntsky.com/topic.action?topicId=${topic.id}" title="${topic.title}">${topic.title}</a><span style="padding-left:8px;color:#666;"> (${topic.dateCreated?datetime}) </span></li>
		</ul>
		</#list>
	</#if>
</#if>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -