| void ClassList (string divider) |
此函数显示所有分类的连接 divider 为分类名之间的分隔字符(html) |
| void ClassTree () |
| 此函数树型显示当前分类的两级分类 |
| void TopList (Int32 id,string type, string toptype,Int32 topNum,Int32 maxLength,bool showClass,bool showHits, bool showDate, bool showNew, bool showAuthor, bool remarkLink) |
此函数按指定方式调用指定类型的新闻 id 为要调用新闻的分类或专题或会员ID type 为要调用新闻类型,"sort"为分类新闻,"topic"为专题新闻,"member"为会员新闻 toptype 为调用类型,"hot"为热门新闻,"new"为最新添加新闻,"weekhot"为本周热门新闻,"dayhot"为本日热门新闻 topNum 为调用新闻数量 maxLength 为新闻标题长度限制 showClass 设置是否显示新闻所在分类的连接 showHits 设置是否显示新闻点击数 showDate 设置是否显示新闻日期 showNew 设置是否在新闻添加新闻后显示new图标 showAuthor 设置是否显示新闻作者 remarkLink 设置是否显示新闻评论链接(还取决于新闻的属性) |
|
void TopListSummary (Int32 id, string toptype, Int32 topNum, bool showHits) void TopListSummary (string toptype, Int32 topNum, bool showHits) void TopListSummary (string toptype, Int32 topNum) |
此函数按简介方式调用指定分类的新闻 id 为要调用新闻的一级分类ID toptype 为调用类型,"hot"为热门新闻,"new"为最新添加新闻,"weekhot"为本周热门新闻,"dayhot"为本日热门新闻 topNum 为调用新闻数量 showHits 设置是否显示新闻点击数 |
void ImgTopList (Int32 classID,Int32 topNum,Int32 cols,string imgAlign,bool showSummary, bool showHits, bool showTitle, int titleLength) void ImgTopList (Int32 classID,Int32 topNum,Int32 cols,string imgAlign,bool showSummary, bool showHits, bool showTitle) void ImgTopList (Int32 classID,Int32 topNum,Int32 cols,string imgAlign,bool showSummary, bool showHits) void ImgTopList (Int32 classID,Int32 topNum,Int32 cols) void ImgTopList (Int32 topNum,Int32 cols) void ImgTopList (Int32 topNum) |
此函数按指定方式显示指定分类的最新图片新闻 classID 指定分类 topNum 调用数量 cols 显示多少列(showSummary为false时有用) imgAlign 图片位置,"left"为左,"right"为右(showSummary为true时有用) showSummary 是否显示图片简介 showHits 是否显示新闻点击数 showTitle 是否显示新闻标题 titleLength 是标题限制到此长度 |
| void Headline(int topNum,int maxLength,bool showSort) |
此函数显示头条文字新闻 topNom 为调用新闻数量 maxLength 为新闻标题长度限制 showSort 为是否显示分类链接 |
void ImgHeadline(int topNum,string type,int width,bool showTitle,int titleLength) void ImgHeadline(int topNum,string type,int width,bool showTitle) void ImgHeadline (int topNum,string type,int width) |
此函数显示头条图片新闻 topNum 为调用新闻数量 type 为排列方式,"horizon"为横排,"verticle"为竖排,"summary_left"为在左边显示简介,"summary_right"为在右边显示简介 width 为每个新闻占用宽度 showTitle 是否显示新闻标题 titleLength 是标题限制长度 |
| void NavList(Int32 columns) |
此函数显示所有一二级分类导航 columns 为每行显示二级分类数 |
| void RelateNews(int num, int maxLength) |
此函数在新闻显示页取相关新闻,在show.aspx文件内 num 为显示相关新闻数 maxLength 为新闻标题长度限制 |
| void Remarks(int num, int maxLength) |
此函数在新闻显示页取评论,在show.aspx文件内 num 为显示评论数 maxLength 为评论长度限制 |
|