<%csharp%> if (model.fields["huiyuanzu"] != null) { int group = Convert.ToInt32(model.fields["huiyuanzu"]); if (group > 0) { int group_id = 0; DTcms.Model.users userModel = GetUserInfo(); StringBuilder sb2 = new StringBuilder(); if (userModel != null) { group_id = userModel.group_id; if (group_id < group) { HttpContext.Current.Response.Redirect(linkurl("error", "?msg=" + Utils.UrlEncode("您的用户组别不能访问此内容,请充值变更后再次查看"))); } } if (userModel == null) { HttpContext.Current.Response.Redirect(linkurl("login")); } } } <%/csharp%> <%set string category_title=get_category_title(model.category_id,"新闻资讯")%> {model.title} - {category_title} - {config.webname}
<%template src="_header.html"%>
{category_title}
{model.title}
文章来源:{model.fields[source]}     发布日期:(<%datetostr({model.add_time},yyyy-MM-dd)%>)          
{model.content}
上一篇:<%=get_prevandnext_article("news_show", -1, "没有啦!", 0)%> 下一篇:<%=get_prevandnext_article("news_show", 1, "没有啦!", 0)%>
分享到:
相关文章
<%template src="_comment_box.html"%>
<%template src="_paihang.html"%> <%template src="_school.html"%>
<%template src="_qijushangcheng.html"%> <%template src="_diaocha.html"%>
<%template src="_footer.html"%>