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

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}>
<{if $topic_post.poster_sig}>
<DIV CLASS="newbbViewtopicThreadPostSignature">
<IMG SRC="<{$xoops_url}>/modules/newbb/images/underwrite.gif" ><BR /><{$topic_post.poster_sig}>
</DIV>
<{/if}>
</DIV>
</DIV>
<DIV CLASS="newbbViewtopicThreadDown">
<DIV CLASS="newbbViewtopicThreadFunctionImg"><{foreach item=abtn from=$topic_post.thread_action}> <A HREF="<{$abtn.link}>&amp;post_id=<{$topic_post.post_id}>" TARGET="_blank" TITLE="<{$abtn.name}>"> <{$abtn.image}></A> <{/foreach}>
<DIV CLASS="newbbViewtopicthreadUP"><A HREF="#threadtop" TITLE="<{$smarty.const._MD_UP}>"><{$p_up}></A></DIV>
</DIV>
<DIV CLASS="newbbViewtopicThreadUserbar"><{$topic_post.poster_userbar}></DIV>
<DIV CLASS="newbbViewtopicThreadPosterIp"><{if $viewer_is_admin == true and $topic_post.poster_ip}> IP: <{$topic_post.poster_ip}> <{/if}></DIV>
</DIV>
<!-- end comment post -->


newbb_header.html 源码
<LINK REL="stylesheet" TYPE="text/css" MEDIA="all" HREF="<{$xoops_url}>/modules/newbb/newbb.css" />
<DIV ID="newbbHeaderTop">
<DIV ID="newbbHeaderTopImg"><A HREF="<{$xoops_url}>/modules/newbb/"><IMG SRC="<{$xoops_url}>/modules/newbb/images/top.gif" WIDTH="200" HEIGHT="100" BORDER="0" ALIGN="LEFT" ></A></DIV>
<DIV ID="newbbHeaderLogo"><A HREF="<{$xoops_url}>/modules/newbb/"><IMG SRC="<{$xoops_url}>/modules/newbb/images/logo.gif" BORDER="0" ALIGN="RIGHT"></A></DIV>
<DIV ID="newbbHeaderLink">
<A HREF="<{$unread_link}>"><{$smarty.const._MD_UNREAD}></A> <A HREF="<{$digest_link}>"><{$smarty.const._MD_DIGEST}></A> <A HREF="<{$all_link}>"><{$smarty.const._MD_ALL}></A> <A HREF="<{$unreplied_link}>"><{$smarty.const._MD_UNREPLIED}></A> <A HREF="<{$xoops_url}>/modules/newbb/search.php"><{$smarty.const._MD_ADVSEARCH}></A><{if $xoops_isadmin}><{$forum_index_cpanel}><{/if}>
</DIV>
</DIV>
<DIV ID="newbbHeaderNav">
<IMG SRC="<{$xoops_url}>/modules/newbb/images/lead.gif" WIDTH="16" HEIGHT="16">
<A HREF="<{$xoops_url}>/modules/newbb/">绿色学院 - Green Institute - Xoops 技术论坛</A>
<{if $parent_forum}>
-> <A HREF="<{$xoops_url}>/modules/newbb/"><{$lang_forum_index}></A>
<A HREF="<{$xoops_url}>/modules/newbb/forum_<{$parent_forum}>.htm"><{$parent_name}></A>
-> <A HREF="<{$xoops_url}>/modules/newbb/forum_<{$forum_id}>.htm"><{$forum_name}></A>
<{$topic_title}>
<{else}> 
<A HREF="<{$xoops_url}>/modules/newbb/forum_<{$forum_id}>.htm"><{$forum_name}></A>
 <{$topic_title}>
<{/if}>
</DIV>





newbb_online.html 源码
<DIV CLASS="newbbOnlineTotal"><{$smarty.const._MD_USERS_ONLINE}><{$online.num_total}>  <{$smarty.const._MD_BROWSING_FORUM}></DIV>
<DIV CLASS="newbbOnline">
<div CLASS="newbbOnlineImage"><{$online.image}></div>
<DIV CLASS="NewbbOnlineInfo">
[ <span style="color:<{$color_admin}>"><{$smarty.const._MD_ADMINISTRATOR}></span> ] [ <span style="color:<{$color_mod}>"><{$smarty.const._MD_MODERATOR}></span> ]<br />
<{$online.num_anonymous}> <{$smarty.const._MD_ANONYMOUS_USERS}>
<{if $online.num_user}><br />
<{$online.num_user}>
<{$smarty.const._MD_REGISTERED_USERS}>
<{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}>
</DIV>
</DIV>



/****************************************************************/
*
* author : Emerald<btbtd@yahoo.com.cn>
*
* homepage : http://gi.2288.org:88/
*
* Seo-Gi : http://seo.2288.org:99
*
* sitename : 绿色学院 - Green Institute
*
* date : 2005-3-16 22:41:34
*
/****************************************************************/
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
提供的源码资源涵盖了安卓应用、小程序、Python应用和Java应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值