中国IT动力,最新最全的IT技术教程
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档 | 网通镜像
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 硬件维护 | 未整理篇 | 站长教程
ASP JS PHP工程 ASP.NET 网站建设 UML J2EESUN .NET VC VB VFP 网络维护 数据库 DB2 SQL2000 Oracle Mysql
服务器 Win2000 Office C DreamWeaver FireWorks Flash PhotoShop 上网宝典 CorelDraw 协议大全 网络安全 微软认证
硬件维护  CPU  主板  硬盘  内存  显卡  显示器  键盘鼠标  声卡音箱  打印机  机箱电源  BIOS  网卡  C#  Java  Delphi  vs.net2005
  当前位置:> 操作系统 > 服务器 > Web服务器
XoopsNewbbModules标准化(WebStandard)全过程byEmerald绿色学院-GreenInstitute
作者:佚名 时间:2004-10-22 10:52 出处:互连网 责编:chinaitpower
              摘要:XoopsNewbbModules标准化(WebStandard)全过程byEmerald绿色学院-GreenInstitute













绿色学院 - green institute - 不听人间乐 - 想得到 - 做得到 - xoops



Xoops Newbb Modules 标准化 (Web Standard) 全过程 by Emerald 绿色学院 - Green Institute

PS: 这是我的备忘录., 其中使用的技巧我不想解说,也不想回答任何问题.



对应的模板: themes/Emerald-Forum
theme.html  源码






style.css 源码






效果预览:
http://blog.csdn.net/images/blog_csdn_net/btbtd/95726/o_newbb.index.jpg





Newbb_index.html 源码

效果预览: http://blog.csdn.net/images/blog_csdn_net/btbtd/95726/o_newbb.index.jpg

<!-- start module contents -->
<{include file="db:newbb_header.html" }>
<div>
<DIV CLASS="newbbMdForum"><{$smarty.const._MD_FORUM}></DIV>
<DIV CLASS="newbbMdTopics"><{$smarty.const._MD_TOPICS}></DIV>
<DIV CLASS="newbbMdPosts"><{$smarty.const._MD_POSTS}></DIV>
<DIV CLASS="newbbMdLastpost"><{$smarty.const._MD_LASTPOST}></DIV>
</div>
<!-- start forum categories -->
<{foreach item=category from=$categories}>
<{if $category.forums }>
<{if $category.permission}>
<DIV CLASS="newbbBodyCatTitle"><a href="<{$xoops_url}>/modules/newbb/forum-cat_<{$category.cat_id}>.htm"><{$category.cat_title}></a> </DIV>
<{$category.cat_description}>
<!-- start forums -->
<{foreach item=forum from=$category.forums}>
<{if $forum.forum_permission}>
<DIV>
<{if $forum.subforum}>
<DIV CLASS="newbbBodySubForumFolder"><{$forum.forum_folder}></DIV>
<{else}>
<DIV CLASS="newbbBodyForumFolder"><{$forum.forum_folder}></DIV>
<{/if}>
<DIV CLASS="newbbBodyForumName" onMouseOver ="this.style.backgroundColor='#F3F4F5'" onMouseOut ="this.style.backgroundColor='#efefef'">
<a href="<{$xoops_url}>/modules/newbb/forum_<{$forum.forum_id}>.htm"><{$forum.forum_name}></a>
<{$forum.forum_desc}>
<{if $forum.forum_moderators}><{$smarty.const._MD_MODERATOR}><{$forum.forum_moderators}><{/if}>
</DIV>
<DIV CLASS="newbbBodyForumTopics"><{$forum.forum_topics}></DIV>
<DIV CLASS="newbbBodyForumPosts"><{$forum.forum_posts}></DIV>
<DIV CLASS="newbbBodyLastpostInfo">
<{$forum.forum_lastpost_time}> <br />
<{$forum.forum_lastpost_icon}> <br />
<{$forum.forum_lastpost_user}>
</DIV>
</DIV>
<{if $forum.subforum}>
<DIV CLASS="newbbBodyForumSubforum" onMouseOver ="this.style.backgroundColor='#F3F4F5'" onMouseOut ="this.style.backgroundColor='#efefef'">
<{$smarty.const._MD_SUBFORUMS}><{$img_subforum}>
<{foreach item=subforum from=$forum.subforum}>
| <a href="forum_<{$subforum.forum_id}>.htm"><{$subforum.forum_name}></a><{/foreach}> |
</DIV>
<{/if}>
<{/if}>
<{/foreach}>
<!-- end forums -->
<{/if}>
<{/if}>
<{/foreach}>
<!-- end forum categories -->
<DIV ID="newbbBodyMarkForum"><a href="<{$mark_read}>" ><{$smarty.const._MD_MARK_ALL_FORUMS}><{$smarty.const._MD_MARK_READ}></a> <a href="<{$mark_UNread}>"><{$smarty.const._MD_MARK_ALL_FORUMS}><{$smarty.const._MD_MARK_UNREAD}></a> <{$rss_enable}></DIV>
<DIV>
<div ID="newbbBodyOnline"><{if $online}><{include file='db:newbb_online.html'}><{/if}></div>
<DIV ID="newbbBodyImgDescription"><{$img_hotfolder}> = <{$smarty.const._MD_NEWPOSTS}> <{$img_folder}> = <{$smarty.const._MD_NONEWPOSTS}> <{$img_locked_newposts}> = <{$smarty.const._MD_PRIVATEFORUM_NEWPOSTS}> <{$img_locked_nonewposts}> = <{$smarty.const._MD_PRIVATEFORUM_NONEWPOSTS}></DIV>
</DIV>
<{include file='db:system_notification_select.html'}>
<!-- end module contents -->








newbb_viewforum.html 源码

效果预览: http://blog.csdn.net/images/blog_csdn_net/btbtd/95726/o_newbb_viewforum.html.jpg


<!-- start module contents -->
<{include file="db:newbb_header.html" }>
<{if $subforum}>
<!-- start forum categories -->
<A NAME="xoops"></A>
<DIV>
<DIV CLASS="newbbViewforumMdSubForum"><{$smarty.const._MD_SUBFORUMS}></DIV>
<DIV CLASS="newbbViewforumMdTopics"><{$smarty.const._MD_TOPICS}></DIV>
<DIV CLASS="newbbViewforumMdPosts"><{$smarty.const._MD_POSTS}></DIV>
<DIV CLASS="newbbViewforumMdLastpost"><{$smarty.const._MD_LASTPOST}></DIV>
</DIV>
<!-- start forums -->
<{section name=forum loop=$subforum}>
<{if $subforum[forum].forum_permission}>
<DIV>
<DIV CLASS="newbbViewforumForumFolder"><{$subforum[forum].forum_folder}></DIV>
<DIV CLASS="newbbViewforumForumName"><A HREF="<{$xoops_url}>/modules/newbb/forum_<{$subforum[forum].forum_id}>.htm"><{$subforum[forum].forum_name}></A><{$subforum[forum].forum_desc}>
<{if $subforum[forum].forum_moderators}><{$smarty.const._MD_MODERATOR}>:<{$subforum[forum].forum_moderators}><{/if}> </DIV>
<DIV CLASS="newbbViewforumForumTopics"><{$subforum[forum].forum_topics}></DIV>
<DIV CLASS="newbbViewforumForumPosts"><{$subforum[forum].forum_posts}></DIV>
<DIV CLASS="newbbViewforumLastpostInfo"><{$subforum[forum].forum_lastpost_time}><BR /><{$subforum[forum].forum_lastpost_icon}><BR /><{$subforum[forum].forum_lastpost_user}></DIV>
</DIV>
<{/if}>
<{/section}>
<!-- end forums -->
<{/if}>
<{if $forum_moderators}><DIV>(<{$smarty.const._MD_MODERATEDBY}>: <{$forum_moderators}>)</DIV><{/if}>
<DIV CLASS="newbbViewforumAddPostAndPageNavTop">
<DIV CLASS="newbbViewforumAddpollPostOrRegister"><{$forum_addpoll}><{$forum_post_or_register}></DIV>
<DIV CLASS="newbbViewforumPageNav"><{$forum_pagenav}></DIV>
</DIV>
<A NAME="xoops"></A>
<DIV CLASS="newbbViewforumForumNameParent"><{$forum_name}></DIV>
<DIV CLASS="newbbViewforumMdAll1">
<DIV CLASS="newbbViewforumMdTopics2"><A HREF="<{$h_topic_link}>"><{$smarty.const._MD_TOPICS}></A></DIV>
<DIV CLASS="newbbViewforumMdPoster"><A HREF="<{$h_poster_link}>"><{$smarty.const._MD_POSTER}></A></DIV>
<DIV CLASS="newbbViewforumMdReplies"><A HREF="<{$h_reply_link}>"><{$smarty.const._MD_REPLIES}></A></DIV>
<DIV CLASS="newbbViewforumMdViews"><A HREF="<{$h_views_link}>"><{$smarty.const._MD_VIEWS}></A></DIV>
<{if $rating_enable}>
<DIV CLASS="newbbViewforumMdRatings"><A HREF="<{$h_rating_link}>"><{$smarty.const._MD_RATINGS}></A></DIV>
<{/if}>
<DIV CLASS="newbbViewforumMddate"><A HREF="<{$h_date_link}>"><{$smarty.const._MD_DATE}></A></DIV>
</DIV>
<{if $sticky > 0}>
<{if $rating_enable}>
<DIV CLASS="newbbViewforumMdImTopics"><{$smarty.const._MD_IMTOPICS}></DIV>
<{else}>
<DIV CLASS="newbbViewforumMdImTopics"><{$smarty.const._MD_IMTOPICS}></DIV>
<{/if}>
<{/if}>
<!-- start forum topic -->
<{foreach name=loop item=topic from=$topics}>
<{if $topic.stick}>
<{if $smarty.foreach.loop.iteration == $sticky+1}>
<{if $rating_enable}>
<DIV CLASS="newbbViewforumCommonTopics"><{$smarty.const._MD_NOTIMTOPICS}></DIV>
<{else}>
<DIV CLASS="newbbViewforumCommonTopics"><{$smarty.const._MD_NOTIMTOPICS}></DIV>
<{/if}>
<{/if}>
<{/if}>
<DIV>
<DIV CLASS="newbbViewforumTopicFolder"><{$topic.topic_folder}></DIV>
<DIV CLASS="newbbViewforumTopicIcon"><{$topic.topic_icon}></DIV>
<DIV CLASS="newbbViewforumTopicsTitle" onMouseOver ="this.style.backgroundColor='#F3F4F5'" onMouseOut ="this.style.backgroundColor='#efefef'">
<A HREF="<{$topic.topic_link}>">
<{if $topic.allow_prefix}>
<{if $topic.topic_subject eq NONE}>
<{else}>
<{$topic.topic_subject}>
<{/if}>
<{/if}>
<{$topic.topic_title}>
</A>
<{$topic.attachment}>
<{$topic.topic_page_jump}>
</DIV>
<DIV CLASS="newbbViewforumTopicPoster"><{$topic.topic_poster}></DIV>
<DIV CLASS="newbbViewforumTopicReplies"><{$topic.topic_replies}></DIV>
<DIV CLASS="newbbViewforumTopicViews"><{$topic.topic_views}></DIV>
<DIV CLASS="newbbViewforumTopicRating">
<{if $rating_enable}>
<{$topic.rating_img}>
<{/if}>
</DIV>
<DIV CLASS="newbbViewforumTopicLastpost">
<{$topic.topic_last_posttime}><BR />
<{$topic.topic_page_jump_icon}><BR />
<{$smarty.const._MD_BY}> <{$topic.topic_last_poster}>
</DIV>
</DIV>
<{/foreach}>
<!-- end forum topic -->
<DIV CLASS="newbbViewforumSelectionForm">
<{strip}>
<FORM METHOD="get" ACTION="viewforum.php">
<{$smarty.const._MD_SORTEDBY}>:<{$forum_selection_sort}><{$forum_selection_order}><{$forum_selection_since}>
<INPUT TYPE="hidden" NAME="forum" VALUE="<{$forum_id}>" />
<INPUT TYPE="submit" NAME="refresh" VALUE="<{$smarty.const._MD_GO}>" />
</FORM>
<{/strip}>
</DIV>
<DIV CLASS="newbbViewforumAddPostAndPageNavTop">
<DIV CLASS="newbbViewforumAddpollPostOrRegister"><{$forum_addpoll}><{$forum_post_or_register}></DIV>
<DIV CLASS="newbbViewforumPageNav"><{$forum_pagenav}></DIV>
</DIV>
<!-- end forum main table -->
<DIV ID="newbbViewforumMarkForum"><A HREF="<{$mark_read}>"><{$smarty.const._MD_MARK_ALL_TOPICS}><{$smarty.const._MD_MARK_READ}></A> <A HREF="<{$mark_unread}>"><{$smarty.const._MD_MARK_ALL_TOPICS}><{$smarty.const._MD_MARK_UNREAD}></A> <{$rss_enable}></DIV>
<DIV>
<DIV CLASS="newbbViewforumJumboxAndOnline">
<{if $show_jumpbox == true}> <{$forum_jumpbox}><{/if}>
<{if $online}><{include file='db:newbb_online.html'}><{/if}>
<DIV CLASS="newbbViewforumDescriptionImg">
<{$img_newposts}>=<{$smarty.const._MD_NEWPOSTS}>
<{$img_hotnewposts}>=<{$smarty.const._MD_MORETHAN}>
<{$img_locked}>=<{$smarty.const._MD_TOPICLOCKED}>
<{$img_digest}>=<{$smarty.const._MD_TOPICDIGEST}><BR />
<{$img_folder}>=<{$smarty.const._MD_NONEWPOSTS}>
<{$img_hotfolder}>=<{$smarty.const._MD_MORETHAN2}>
<{$img_sticky}>=<{$smarty.const._MD_TOPICSTICKY}>
<{$img_poll}>=<{$smarty.const._MD_TOPICHASPOLL}>
</DIV>
</DIV>
<DIV CLASS="newbbViewforumPermissionTable"><{$permission_table}></DIV>
</DIV>

<!-- end module contents -->

<{include file='db:system_notification_select.html'}>




newbb_viewtopic_flat.html 源码

效果预览: http://blog.csdn.net/images/blog_csdn_net/btbtd/95726/o_newbb_viewtopic_flat.html.jpg

<!-- start module contents -->
<{include file="db:newbb_header.html" }>
<{if $online}>
<DIV CLASS="newbbViewtopicOnline">
<{$smarty.const._MD_BROWSING}>
<{foreach item=user from=$online.users}>
<A HREF="<{$user.link}>">
<{if $user.color}>
<SPAN STYLE="color:<{$user.color}>"><{$user.uname}></SPAN>
<{else}>
<{$user.uname}>
<{/if}>
</A>
<{/foreach}>
<{if $online.num_anonymous}>
<{$online.num_anonymous} <{$smarty.const._MD_ANONYMOUS_USERS}>
<{/if}>
</DIV>
<{/if}>
<{if $topic_poll}>
<DIV CLASS="newbbViewtopicPollResult">
<{if $topic_pollresult}>
<{include file="db:newbb_poll_results.html poll=$poll}">
<{else}>
<{include file="db:newbb_poll_view.html" poll=$poll}>
<{/if}>
</DIV>
<{/if}>
<DIV CLASS="newbbViewtopicAddPostAndPageNavTop">
<DIV CLASS="newbbViewtopicAddpollPostOrRegister"><{$forum_addpoll}><{$forum_post_or_register}> &nbsp;<{$forum_reply}></DIV>
<DIV CLASS="newbbViewtopicPageNav"><{if $forum_page_nav}><{$forum_page_nav}><{/if}> </DIV>
</DIV>
<!-- start topic thread -->
<DIV CLASS="newbbViewtopicMainHeader">
<DIV CLASS="newbbViewtopicMdposter">
<{$smarty.const._MD_POSTER}>
</DIV>
<DIV CLASS="newbbViewtopicDown2"><A HREF="#threadbottom"><{$down2}></A><A NAME="threadtop"></A></DIV>
<DIV CLASS="newbbViewtopicMdthreadTopicTitle"><{$smarty.const._MD_THREAD}> <{$topic_title}></DIV>
<DIV CLASS="newbbViewtopicViewStylePN">
<A HREF="viewtopic.php?viewmode=flat&amp;order=<{$order_current}>&amp;topic_id=<{$topic_id}>&amp;forum=<{$forum_id}>" /><{$smarty.const._FLAT}></a> | <A HREF="viewtopic.php?viewmode=thread&amp;order=<{$order_other}>&amp;topic_id=<{$topic_id}>&amp;forum=<{$forum_id}>" /><{$lang_order_other}></a> | <A HREF="viewtopic.php?viewmode=threaded&amp;order=<{$order_current}>&amp;
topic_id=<{$topic_id}>&amp;forum=<{$forum_id}>&amp;move=prev&amp;topic_time=<{$topic_time}>"> <{$smarty.const._MD_PREVTOPIC}></A> | <A HREF="viewtopic.php?viewmode=threaded&amp;order=<{$order_current}>&amp;
topic_id=<{$topic_id}>&amp;forum=<{$forum_id}>&amp;move=next&amp;topic_time=<{$topic_time}>"> <{$smarty.const._MD_NEXTTOPIC}></A>
</DIV>
</DIV>
<DIV><{foreach item=topic_post from=$topic_posts}> <{include file="db:newbb_thread.html" topic_post=$topic_post}> <{/foreach}></DIV>

<DIV CLASS="newbbViewtopicRateRadioParent">

<DIV CLASS="newbbViewtopicRateRadio">

<FORM ACTION="ratethread.php" METHOD="post">

<{$rss_enable}><INPUT TYPE="radio" NAME="rate" ID="rate5" VALUE="5" /> <{$rate5}> <{$smarty.const._MD_RATE5}> | <INPUT TYPE="radio" NAME="rate" ID="radio" VALUE="4" /> <{$rate4}> <{$smarty.const._MD_RATE4}> | <INPUT TYPE="radio" NAME="rate" ID="radio2" VALUE="3" /> <{$rate3}> <{$smarty.const._MD_RATE3}>

| <INPUT TYPE="radio" NAME="rate" ID="radio3" VALUE="2" /> <{$rate2}> <{$smarty.const._MD_RATE2}>

| <INPUT TYPE="radio" NAME="rate" ID="radio4" VALUE="1" /> <{$rate1}> <{$smarty.const._MD_RATE1}> | <INPUT TYPE="hidden" NAME="topic_id" VALUE="<{$topic_id}>" /><INPUT TYPE="hidden" NAME="forum" VALUE="<{$forum_id}>" /><INPUT TYPE="submit" CLASS="button" VALUE="<{$smarty.const._MD_RATING}>" />

</FORM>

</DIV>

<DIV CLASS="newbbViewtopicPrevNextTopicDwon">

<A HREF="viewtopic.php?viewmode=threaded&amp;order=<{$order_current}>&amp;

topic_id=<{$topic_id}>&amp;forum=<{$forum_id}>&amp;move=prev&amp;topic_time=<{$topic_time}>"> <{$smarty.const._MD_PREVTOPIC}></A> | <A HREF="viewtopic.php?viewmode=threaded&amp;order=<{$order_current}>&amp;

topic_id=<{$topic_id}>&amp;forum=<{$forum_id}>&amp;move=next&amp;topic_time=<{$topic_time}>"> <{$smarty.const._MD_NEXTTOPIC}></A>

</DIV>

</DIV>

<DIV CLASS="newbbViewtopicAddPostAndPageNavTop">

<DIV CLASS="newbbViewtopicAddpollPostOrRegister"><{$forum_addpoll}><{$forum_post_or_register}> &nbsp;<{$forum_reply}> &nbsp;<A HREF="#threadbottom" onClick="ToggleBlock('quick_reply', this)" ><{$display_icon}></A></DIV>

<DIV CLASS="newbbViewtopicPageNav"><{if $forum_page_nav}><{$forum_page_nav}><{/if}> </DIV>

</DIV>

<!-- end topic thread -->

<DIV>

<DIV CLASS="newbbViewtopicJumpboxAndManageIcon">

<{$forum_jumpbox}><BR />

<A HREF="<{$topic_print_link}>" TARGET="_blank" TITLE="<{$smarty.const._MD_PRINTTOPICS}>"><{$printer}></A>

<{if $viewer_is_admin == true}>

<{foreach item=act from=$admin_actions}> <{$act}> <{/foreach}>

<{if count($adminpoll_actions)>0 }>

<{foreach item=actpoll from=$adminpoll_actions}> <{$actpoll}> <{/foreach}>

<{elseif $xoops_isuser == true && $xoops_userid == $topic_post.poster_uid}>

<{foreach item=actpoll from=$adminpoll_actions}> <{$actpoll}> <{/foreach}>

<{/if}>

<{/if}><BR /><BR />

<A HREF="#threadtop"><{$up}></A><A NAME="threadbottom"></A>

</DIV>

<DIV CLASS="newbbViewtopicPermissionTable"><{$permission_table}></DIV>

</DIV>

<!-- end module contents -->

<{if $quickreply.show}>

<{if $display_stat}>

<DIV ID="quick_reply" STYLE="display: <{$display}>"><{$quickreply.form}></DIV>

<{/if}>

<{/if}>

<div><{include file='db:system_notification_select.html'}></div>





newbb_viewtopic_thread.html.jpg 源码

效果预览: http://blog.csdn.net/images/blog_csdn_net/btbtd/95726/o_newbb_viewtopic_thread.html.jpg


<!-- start module contents -->
<{include file="db:newbb_header.html" }>
<{if $online}>
<DIV CLASS="newbbViewtopicOnline">
<{$smarty.const._MD_BROWSING}>
<{foreach item=user from=$online.users}>
<A HREF="<{$user.link}>">
<{if $user.color}>
<SPAN STYLE="color:<{$user.color}>"><{$user.uname}></SPAN>
<{else}>
<{$user.uname}>
<{/if}>
</A>
<{/foreach}>
<{if $online.num_anonymous}>
<{$online.num_anonymous} <{$smarty.const._MD_ANONYMOUS_USERS}>
<{/if}>
</DIV>
<{/if}>
<{if $topic_poll}>
<DIV CLASS="newbbViewtopicPollResult">
<{if $topic_pollresult}>
<{include file="db:newbb_poll_results.html poll=$poll}">
<{else}>
<{include file="db:newbb_poll_view.html" poll=$poll}>
<{/if}>
</DIV>
<{/if}>
<!-- start topic tree -->
<DIV CLASS="newbbViewtopicThreadTreeParent">
<DIV class="newbbViewtopicThreadTreeSubject"><{$smarty.const._MD_SUBJECT}></DIV>
<div CLASS="newbbViewtopicThreadTreeMdPoster"><{$smarty.const._MD_POSTER}></div>
<DIV CLASS="newbbViewtopicThreadTreeMdDate"><{$smarty.const._MD_DATE}></DIV>
</DIV>
<{foreach item=topic_tree from=$topic_trees}>
<div CLASS="<{cycle values="EVEN,ODD"}>">
<DIV CLASS="newbbViewtopicThreadTreePostTitle"><{$topic_tree.post_prefix}> <{$topic_tree.post_image}> <{$topic_tree.post_title}></DIV>
<DIV CLASS="newbbViewtopicThreadTreePoster"><{$topic_tree.poster}></DIV>
<DIV CLASS="newbbViewtopicThreadPostTime"><{$topic_tree.post_time}></DIV>
</div>
<{/foreach}>

<!-- end topic tree -->

<DIV CLASS="newbbViewtopicAddPostAndPageNavTop">

<DIV CLASS="newbbViewtopicAddpollPostOrRegister"><{$forum_addpoll}><{$forum_post_or_register}> &nbsp;<{$forum_reply}></DIV>

<DIV CLASS="newbbViewtopicPageNav"><{if $forum_page_nav}><{$forum_page_nav}><{/if}> </DIV>

</DIV>

<!-- start topic thread -->

<DIV CLASS="newbbViewtopicMainHeader">

<DIV CLASS="newbbViewtopicMdposter">

<{$smarty.const._MD_POSTER}>

</DIV>

<DIV CLASS="newbbViewtopicDown2"><A HREF="#threadbottom"><{$down2}></A><A NAME="threadtop"></A></DIV>

<DIV CLASS="newbbViewtopicMdthreadTopicTitle"><{$smarty.const._MD_THREAD}> <{$topic_title}></DIV>

<DIV CLASS="newbbViewtopicViewStylePN">

<A HREF="viewtopic.php?viewmode=flat&amp;order=<{$order_current}>&amp;topic_id=<{$topic_id}>&amp;forum=<{$forum_id}>" /><{$smarty.const._FLAT}></a> | <A HREF="viewtopic.php?viewmode=thread&amp;order=<{$order_other}>&amp;topic_id=<{$topic_id}>&amp;forum=<{$forum_id}>" /><{$lang_order_other}></a> | <A HREF="viewtopic.php?viewmode=threaded&amp;order=<{$order_current}>&amp;

topic_id=<{$topic_id}>&amp;forum=<{$forum_id}>&amp;move=prev&amp;topic_time=<{$topic_time}>"> <{$smarty.const._MD_PREVTOPIC}></A> | <A HREF="viewtopic.php?viewmode=threaded&amp;order=<{$order_current}>&amp;

topic_id=<{$topic_id}>&amp;forum=<{$forum_id}>&amp;move=next&amp;topic_time=<{$topic_time}>"> <{$smarty.const._MD_NEXTTOPIC}></A>

</DIV>

</DIV>

<{foreach item=topic_post from=$topic_posts}> <{include file="db:newbb_thread.html" topic_post=$topic_post}> <{/foreach}>

<DIV CLASS="newbbViewtopicRateRadioParent">

<DIV CLASS="newbbViewtopicRateRadio">

<FORM ACTION="ratethread.php" METHOD="post">

<{$rss_enable}><INPUT TYPE="radio" NAME="rate" ID="rate5" VALUE="5" /> <{$rate5}> <{$smarty.const._MD_RATE5}> | <INPUT TYPE="radio" NAME="rate" ID="radio" VALUE="4" /> <{$rate4}> <{$smarty.const._MD_RATE4}> | <INPUT TYPE="radio" NAME="rate" ID="radio2" VALUE="3" /> <{$rate3}> <{$smarty.const._MD_RATE3}>

| <INPUT TYPE="radio" NAME="rate" ID="radio3" VALUE="2" /> <{$rate2}> <{$smarty.const._MD_RATE2}>

| <INPUT TYPE="radio" NAME="rate" ID="radio4" VALUE="1" /> <{$rate1}> <{$smarty.const._MD_RATE1}> | <INPUT TYPE="hidden" NAME="topic_id" VALUE="<{$topic_id}>" /><INPUT TYPE="hidden" NAME="forum" VALUE="<{$forum_id}>" /><INPUT TYPE="submit" CLASS="button" VALUE="<{$smarty.const._MD_RATING}>" />

</FORM>

</DIV>

<DIV CLASS="newbbViewtopicPrevNextTopicDwon">

<A HREF="viewtopic.php?viewmode=threaded&amp;order=<{$order_current}>&amp;

topic_id=<{$topic_id}>&amp;forum=<{$forum_id}>&amp;move=prev&amp;topic_time=<{$topic_time}>"> <{$smarty.const._MD_PREVTOPIC}></A> | <A HREF="viewtopic.php?viewmode=threaded&amp;order=<{$order_current}>&amp;

topic_id=<{$topic_id}>&amp;forum=<{$forum_id}>&amp;move=next&amp;topic_time=<{$topic_time}>"> <{$smarty.const._MD_NEXTTOPIC}></A>

</DIV>

</DIV>

<DIV CLASS="newbbViewtopicAddPostAndPageNavTop">

<DIV CLASS="newbbViewtopicAddpollPostOrRegister"><{$forum_addpoll}><{$forum_post_or_register}> &nbsp;<{$forum_reply}> &nbsp;<A HREF="#threadbottom" onClick="ToggleBlock('quick_reply', this)" ><{$display_icon}></A></DIV>

<DIV CLASS="newbbViewtopicPageNav"><{if $forum_page_nav}><{$forum_page_nav}><{/if}> </DIV>

</DIV>

<!-- end topic thread -->

<DIV>

<DIV CLASS="newbbViewtopicJumpboxAndManageIcon">

<{$forum_jumpbox}><BR />

<A HREF="<{$topic_print_link}>" TARGET="_blank" TITLE="<{$smarty.const._MD_PRINTTOPICS}>"><{$printer}></A>

<{if $viewer_is_admin == true}>

<{foreach item=act from=$admin_actions}> <{$act}> <{/foreach}>

<{if count($adminpoll_actions)>0 }>

<{foreach item=actpoll from=$adminpoll_actions}> <{$actpoll}> <{/foreach}>

<{elseif $xoops_isuser == true && $xoops_userid == $topic_post.poster_uid}>

<{foreach item=actpoll from=$adminpoll_actions}> <{$actpoll}> <{/foreach}>

<{/if}>

<{/if}><BR /><BR />

<A HREF="#threadtop"><{$up}></A><A NAME="threadbottom"></A>

</DIV>

<DIV CLASS="newbbViewtopicPermissionTable"><{$permission_table}></DIV>

</DIV>

<!-- end module contents -->

<{if $quickreply.show}>

<{if $display_stat}>

<DIV ID="quick_reply" STYLE="display: <{$display}>"><{$quickreply.form}></DIV>

<{/if}>

<{/if}>

<DIV><{include file='db:system_notification_select.html'}></DIV>





newbb_thread.html 源码

<!-- start comment post -->
<A ID="forumpost<{$topic_post.post_id}>?"></A><A ID="forumpost<{$topic_post.post_id}>"></A>
<DIV CLASS="newbbViewtopicThreadHeader">
<DIV CLASS="newbbViewtopicThreaedPoster"><A HREF="#threadbottom"><{$down}></A><{$topic_post.poster_name}></DIV>
<DIV CLASS="newbbViewtopicThreaedPostDate"><{$smarty.const._MD_POSTEDON}><{$topic_post.post_date}></DIV>
<DIV CLASS="newbbViewtopicThreaedBottons"><{foreach item=btn from=$topic_post.thread_buttons}> <A HREF="<{$btn.link}>&amp;post_id=<{$topic_post.post_id}>" TITLE="<{$btn.name}>"> <{$btn.image}></A> <{/foreach}></DIV>
</DIV>
<DIV CLASS="newbbViewtopicThreadPostBody">
<DIV CLASS="newbbViewtopicThreadPosterInfo">
<{if $topic_post.poster_uid != 0}>
<{$topic_post.poster_rank_title}><BR />
<{$topic_post.poster_rank_image}><BR>
<IMG CLASS="comUserImg" SRC="<{$xoops_upload_url}>/<{$topic_post.poster_avatar}>" ALT="" /><BR>
<{$smarty.const._MD_JOINED}>: <{$topic_post.poster_regdate}><BR>
<{$smarty.const._MD_FROM}> <{$topic_post.poster_from}><BR>
<{$smarty.const._MD_POSTS}>: <{$topic_post.poster_postnum}><BR>
<{if $groupbar_enable}> <{$smarty.const._MD_GROUP}> <BR />
<{$topic_post.poster_groups}> <BR>
<{/if}>
<{$topic_post.poster_status}><BR>
<{else}>
<{$anonymous_prefix}>
<{$topic_post.poster_uname}>
<{/if}>
</DIV>
<DIV CLASS="newbbViewtopicThreadPostBodyText">
<DIV CLASS="newbbViewtopicThreadPostCount">第 <{$topic_post.post_no}> 楼</DIV>
<DIV >
<DIV CLASS="newbbViewtopicThreadPostTextLeft"><{$topic_post.post_text}></DIV>
<DIV CLASS="newbbViewtopicThreadPostTextRight"></DIV>
</DIV>
<{if $topic_post.post_attachment}><DIV CLASS="newbbViewtopicThreadPostAttachment"><{$topic_post.post_attachment}></DIV><{/if}>
<{if $topic_post.post_edit}><DIV CLASS="newbbViewtopicThreadPostEdit"><{$topic_post.post_edit}></DIV><{/if}>
关闭本页
 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 chinaitpower.com All rights reserved. www.chinaitpower.com 版权所有