主题 : jeebbs二次开发学习中,发现首页的板块不能四个一排,像官网一样。 |
级别: 举人
![]() |
11# 发表于:2014-05-04 15:39:13 IP:121.69.*.*
|
||||
---|---|---|---|---|---|
级别: 总版主
![]() |
12# 发表于:2014-05-04 15:46:44 IP:182.10.*.*
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>${site.name} - JEECMS官方论坛|开源java cms,jsp cms,jsp bbs</title> <meta name="keywords" content="java,cms,jsp,cms,jsp bbs,开源网站内容管理系统,网站群,站群,多站点,jeecms" /> <meta name="description" content="讨论jsp cms、jsp bbs相关资讯,struts,hibernate,spring,freemarker最新技术研究" /> <link href="${resSys}/front.css" rel="stylesheet" type="text/css"/> <script src="${resSys}/jquery.js" type="text/javascript"></script> <script src="${resSys}/front.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="/${res}/bbs_forum/css/whole.css" /> <link rel="stylesheet" type="text/css" href="/${res}/bbs_forum/css/layout.css" /> <style> li{ list-style-type:none;} </style> </head> <body> <div style="width:1000px; margin:auto;"> <!--header--> [#include "../include/页头.html"/] <!--/header--> <!--20条信息_Begin--> [#include "../include/信息.html"/]<!--/End--> <!--登录统计栏_Begin-->[#include "../include/登录统计.html"/]<!--登录统计栏_End--> <div style="line-height:28px;"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td width="30"><img src="/r/cms/www/blue/bbs_forum/img/top/icon001.gif" /></td> <td>[@config_count] <span style="color:#838383;">今日:</span>${configcache.postToday!} <span style="color:#838383;">| </span> <span style="color:#838383;">昨日:</span> ${configcache.postYestoday!} <span style="color:#838383;">| </span> <span style="color:#838383;">最高日:</span>${configcache.postMax!} 于 ${configcache.postMaxDate?string("yyyy-MM-dd")!} <span style="color:#838383;">| </span> <span style="color:#838383;">主题:</span>${configcache.topicTotal!} <span style="color:#838383;">| </span> <span style="color:#838383;">帖子:</span>${configcache.postTotal!} <span style="color:#838383;">| </span> <span style="color:#838383;">会员:</span>${configcache.userTotal!} <span style="color:#838383;">| </span> <span style="color:#838383;">欢迎新会员:</span><span class="black">[#if configcache.lastUser??]${configcache.lastUser.username!}[#else]无[/#if]</span> [/@config_count]</td> </tr> </table> </div> </div> <!--main--> <div class="main-wrap"> <div id="main"> <div id="content"> <div class="contentwrap z"> <div class="t z"> <table width="100%" cellspacing="0" cellpadding="0"> <tbody> <tr> <th class="h" colspan="6"><a class="closeicon fr"><img alt="" src="/${res}/bbs_forum/img/cate_fold.gif" /></a> <h2>» <a class="cfont">≡论坛快讯一≡</a></h2> </th> </tr> </tbody> <tr class="tr3"> <td bgcolor="#FFFFFF"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="35%" height="30" align="center" bgcolor="#f1f1f1"><span style="color:#4284ce; font-weight:bold;">最新主题</span></td> <td width="35%" align="center" bgcolor="#f1f1f1"><span style="color:#4284ce; font-weight:bold;">最新回复</span></td> <td align="center" bgcolor="#f1f1f1"><span style="color:#4284ce; font-weight:bold;">今日热门话题</span></td> </tr> <tr> <td valign="top"> <table width="100%" border="0" cellspacing="1" cellpadding="1" style="border-right:1px solid #d4eff7;"> <tr> <td style="line-height:24px;"> [@newtopic_list count='8' ] [#list tag_list as topic] ${topic_index+1}. <a href="${topic.url}" style="color:#4284ce;" title="${topic.title!?html}"> [@text_cut s=topic.title?html len=16 append="..."/]</a> [[@text_cut s=topic.creater.username?html len=5 append="..."/]] <br/> [/#list] [/@newtopic_list] </td> </tr> </table> </td> <td valign="top"> <table width="100%" border="0" cellspacing="1" cellpadding="1" style="border-right:1px solid #d4eff7;"> <tr> <td style="line-height:24px;"> [@post_list count='8' orderby='1'] [#list tag_list as post] ${post_index+1}. <a href="${post.topic.url}" style="color:#4284ce;" title="${post.topic.title!?html}" > [@text_cut s=post.topic.title?html len=15 append="..."/]</a> [[@text_cut s=post.creater.username?html len=5 append="..."/]] <br/> [/#list] [/@post_list] </td> </tr> </table> </td> <td valign="top"> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td style="line-height:24px;"> [@newtopic_list count='8' orderby='7'] [#list tag_list as topic] ${topic_index+1}. <a href="${topic.url}" style="color:#4284ce;" title="${topic.title?html}">[@text_cut s=topic.title?html len=16 append="..."/]</a>[${topic.replyCountDay!}] <br/> [/#list] [/@newtopic_list] </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </div> [@category_list] [#list tag_list as ctg] <div class="t z"> <table width="100%" cellspacing="0" cellpadding="0"> <tbody> <tr> <th class="h" colspan="6"><a class="closeicon fr"><img alt="" src="/${res}/bbs_forum/img/cate_fold.gif" /></a> <h2>» <a class="cfont">${ctg.title!?html}</a></h2> </th> </tr> <!-- <tr class="tr2"> <td width="*" colspan="2" class="tac">论坛</td> <td class="tal y-style e">主题 / 文章</td> <td class="tal y-style f">最后发表</td> <td style="width: 120px;" class="tal">版主</td> </tr> --> </tbody> <tr class="tr3"> <ul> <td bgcolor="#FFFFFF"> [@forum_list categoryId=ctg.id] [#list tag_list as forum] <li style="width:247px; height:107px; float:left; overflow:hidden; margin-bottom:10px;"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="30" rowspan="2" valign="top"> <table width="30" border="0" cellspacing="0" cellpadding="0" style="margin-top:12px !important; margin-top:5px;"> <tr> <td valign="top"> [#if forum.postToday gt 0] <div> <img src="/r/cms/www/blue/bbs_forum/img/top/tie002.gif" /> </div> [#else] <div> <img src="/r/cms/www/blue/bbs_forum/img/top/tie001.gif" /> </div> [/#if] </td> </tr> </table> </td> <td> </td></tr> <tr> <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> </td> </tr> <tr> <td> <h3 class="b"><a href="${forum.url!}">${forum.title!?html}</a></h3> [#if forum.postToday gt 0]<span class="b" style="color:#FF0000;">(${forum.postToday!})</span>[/#if] </td> </tr> <tr> <td class="tal y-style e"> <span style="color:#838383;">主题:</span>${forum.topicTotal!} <span style="color:#838383;">贴数:</span> <span class="gray2 ">${forum.postTotal!}</span></td></tr> <tr> <td> [#if forum.lastPost??]<span style="color:#838383;">标题:</span> <a href="${forum.lastPost.url!}" title="${forum.lastPost.topic.title!?html}">[#if forum.lastPost.topic.title?? && forum.lastPost.topic.title?length > 10] ${forum.lastPost.topic.title?substring(0,10)}..[#else]${forum.lastPost.topic.title!?html}[/#if]</a> [#else]无[/#if]</td></tr> <tr> <td> [#if forum.lastPost??]<span style="color:#838383;">最后发表:</span> <span class="f9">[${forum.lastTime!?string("yyyy-MM-dd")}]</span> [#else]无[/#if]</td></tr> <tr> <td> [#if forum.lastPost??] <span style="color:#838383;">作者:</span><span class="gray2">${forum.lastReply.username!}</span> [#else]无[/#if] </td></tr> </table> </td> </tr> </table> </li> [/#list] [/@forum_list] </td> </ul> </tr> </table> </div> [/#list] [/@category_list] </div> </div> </div> [#include "../include/页脚友情链接栏.html"/] </div> <!--/main--> <!--footer--> [#include "../include/页脚.html"/] <!--footer--> </body> </html> 这是官网论坛的首页模板,你看看?? |
||
---|---|---|---|
级别: 童生
![]() |
13# 发表于:2014-07-08 17:53:25 IP:117.152.*.*
在 [#list tag_list as forum] 后面加了
[#if forum%4==3] <br/> 这里换行 [/#if] 还是不行啊,求大神解决,页面报错: freemarker.core.NonNumericalException: Error on line 122, column 12 in WEB-INF/t/cms/www/blue/index/首页.html Expression forum is not numerical |
||
---|---|---|---|
级别: 童生
![]() |
14# 发表于:2014-07-08 17:54:09 IP:117.152.*.*
囧
|
||
---|---|---|---|