VideoHome.Web/admin/Film/Control/UClass.ascx.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Maticsoft.DBUtility;
using myfilm.Config;
using myfilm.Entity;
using myfilm.Vod;

namespace myfilm.Web.Control
{
    public partial class UClass : System.Web.UI.UserControl
    {
        public string Url = "";
        public GeneralConfigInfo config = GeneralConfigs.Deserialize(HttpContext.Current.Server.MapPath("/config/general.config"));
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
               // string fisrtClassName = DbHelperSQL.GetSingle("SELECT [Name] FROM  [" + BaseConfigs.GetTablePrefix + "CourseClass] where status=1 and id=" + classId) + "";
             

                FilmClassInfo filmClassInfo = FilmClass.GetFilmClassInfoNew(classId);

                Url = filmClassInfo.Url;
                this.lbfrirtClassName.Text = "<a href='http://" + filmClassInfo.Url + "'><h1>" + filmClassInfo.Name + "</h1></a>";
                //this.lbfrirtClassName.Text = "<a href='http://" + filmClassInfo.Url + "/CourseList.aspx?classId=" + classId + "'><h1>" + filmClassInfo.Name + "</h1></a>";

                this.rpTwoClassList.DataSource = DbHelperSQL.Query("SELECT [id],[Name] FROM  [" + BaseConfigs.GetTablePrefix + "CourseClass] where status=1 and ParentID=" + classId);
                this.rpTwoClassList.DataBind();


                this.rpCourseList.DataSource = DbHelperSQL.Query("SELECT top " + Num + " [CourseId],[CourseName],AddTime FROM  [" + BaseConfigs.GetTablePrefix + "CourseInfo] where IsIndexShow=1 and shenStatus=1 and CourseStatus=1 and ZYClassId=" + classId + " order by AddTime desc");
                this.rpCourseList.DataBind();
            }

        }

        private int _Num;

        public int Num
        {
            get { return _Num; }
            set { _Num = value; }
        }

        private int _classId;
        public int classId
        {
            get { return _classId; }
            set { _classId = value; }
        }
        

        private string _css;

        public string CssClass
        {
后面还有 13 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。