DTcms.Web/index.aspx.cs
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace DTcms.Web
{
public partial class index : System.Web.UI.Page
{
public string url = "";
public string spurl = "";
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
BLL.article bll = new BLL.article();
DataSet ds = bll.GetList(1, "channel_id=1 and (link_url<>'' or seo_title<>'') and status=0 and is_slide=1", "add_time desc");
if (ds.Tables[0].Rows.Count > 0)
{ //视频
if (ds.Tables[0].Rows[0]["link_url"].ToString() != "")
{
url = ds.Tables[0].Rows[0]["link_url"].ToString().Trim();
Panel1.Visible = true;
Panel2.Visible = false;
}
if (ds.Tables[0].Rows[0]["seo_title"].ToString() != "")
{
spurl = ds.Tables[0].Rows[0]["seo_title"].ToString().Trim();
Panel2.Visible = true;
Panel1.Visible = false;
}
}
this.rptList_pic.DataSource = bll.GetList(8, "channel_id=1 and is_msg=1 and status=0 and img_url<>'' ", "is_red desc, sort_id asc, add_time desc");
this.rptList_pic.DataBind();//推荐文章中有图的幻灯显示
this.rptList_pic_num.DataSource = bll.GetList(8, "channel_id=1 and is_msg=1 and status=0 and img_url<>'' ", "is_red desc, sort_id asc, add_time desc");
this.rptList_pic_num.DataBind();//推荐文章中有图的幻灯显示中的数字
this.rptList_xxxw.DataSource = bll.GetList(9, "channel_id=1 and category_id=51 and status=0 ", "is_red desc, sort_id asc, add_time desc");
this.rptList_xxxw.DataBind();//学校新闻
this.rptList_jyxw.DataSource = bll.GetList(9, "channel_id=1 and category_id=50 and status=0 ", "is_red desc, sort_id asc, add_time desc");
this.rptList_jyxw.DataBind();//每周安排
this.rptList_gg.DataSource = bll.GetList(20, "channel_id=1 and category_id=53 and status=0", "is_red desc,sort_id asc, add_time desc");
this.rptList_gg.DataBind();//校园公告
this.rptList_zt.DataSource = bll.GetList(10, "channel_id=5 and category_id=49 and status=0 and is_hd=1 and img_url<>'' ", "is_red desc, sort_id asc, add_time desc");
this.rptList_zt.DataBind();//专题专栏
//this.rptList_top.DataSource = bll.GetList(8, " channel_id=1 and status=0 ", "click desc");
//this.rptList_top.DataBind();//推荐文章
this.rptList_bjzx.DataSource = bll.GetList(10, "channel_id=1 and category_id=77 and status=0 and img_url<>'' ", "is_red desc,sort_id asc, add_time desc");
this.rptList_bjzx.DataBind();//班级之星
this.rptList_gdpic.DataSource = bll.GetList(20, "channel_id=1 and category_id=22 and status=0 and img_url<>'' ", "is_red desc,sort_id asc, add_time desc");
后面还有 156 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
