Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     if (!IsPostBack)
     {
         string filePath   = Request.QueryString["objfile"];
         string folderPath = Request.QueryString["objfolder"];
         if (string.IsNullOrEmpty(folderPath))
         {
             if (File.Exists(filePath))
             {
                 string fileContent;
                 string getEncode;
                 new FileManagerProcessor().ReadTextFile(filePath, out fileContent, out getEncode);
                 lblNew.Text             = "false";
                 txtFilePath.Text        = filePath;
                 txtFileContent.Text     = fileContent;
                 ddlEncode.SelectedValue = getEncode;
             }
             else
             {
                 lblMsg.Text = "<script type=\"text/javascript\">alert(\"没有找到文件\");</script>";
             }
         }
         else
         {
             lblNew.Text          = "true";
             txtFilePath.Text     = folderPath + "\\newText.txt";
             txtFilePath.ReadOnly = false;
             txtFileContent.Text  = "在此输入文本内容";
         }
     }
     btnSave.Click += new EventHandler(OnSaveFile);
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginCheck.AdminManage();
        Pages = StringDeal.ToInt(Request.QueryString["Page"]);
        string Action = Request.QueryString["Action"];

        mA.Temp = Request.Params["Id"];
        if (Action == "del")
        {
            bA.AdminDel(mA);
            Response.Redirect("Admin_Manage.aspx?Page=" + Pages);
        }
        else if (Action == "lock")
        {
            mA.Id = StringDeal.ToInt(Request.QueryString["Id"]);
            if (bA.GetAdminLock(mA))
            {
                mA.IsLock = false;
            }
            else
            {
                mA.IsLock = true;
            }
            bA.AdminLock(mA);
            Response.Redirect("Admin_Manage.aspx?Page=" + Pages);
        }
        if (!IsPostBack)
        {
            AdminBind();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginCheck.AdminManage();
        AdminSetting.isPermissions("2", "5");
        string Action = Request.QueryString["Action"];
        int    Id     = StringDeal.ToInt(Request.QueryString["Id"]);

        if (Action == "del")
        {
            AdminSetting.isPermissions("2", "3");
            string Result = bC.ChannelDel(Id).ToString();
            if (Result == "1")
            {
                StringDeal.Alter("此频道下存在子频道,请先删除子频道!");
            }
        }
        else if (Action == "lock")
        {
            bC.ChannelLock(Id);
        }
        else if (Action == "down" || Action == "up")
        {
            bC.ChannelMove(Id, Action);
        }
        dsList = (DataSet)bC.ChannelList(-1);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginCheck.AdminManage();
        if (!IsPostBack)
        {
            bTable bT     = new bTable();
            string Action = Request.QueryString["Action"];
            if (Action == "del")
            {
                mTable mT = new mTable();
                mT.Id = StringDeal.ToInt(Request.QueryString["Id"]);
                if (bT.GetIsSystem(mT))
                {
                    StringDeal.Alter("此模型为系统模型禁止删除!");
                }
                mT.TableName = bT.GetTableName(mT.Id);
                bT.TableDel(mT);
                HXD.ModelField.BLL.Table bt = new HXD.ModelField.BLL.Table();
                bt.DeleteXml(mT);
            }

            DBList.DataSource = bT.TableList();
            DBList.DataBind();
        }
    }
Exemple #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     Pages = HXD.Common.StringDeal.ToInt(Request.QueryString["Page"]);
     this.DropDownList1.Attributes.Add("onchange", "selectvalue(this);");
     this.Button1.Attributes.Add("onmouseover", "this.className='button1'");
     this.Button1.Attributes.Add("onmouseout", "this.className='button'");
 }
Exemple #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     if (Request.QueryString["id"] != null)
     {
         this.TextBox1.Text = "<script type=\"text/javascript\" src=\"" + Web.Model.PublicModel.XADJsFile + Request.QueryString["id"].ToString() + ".js\"></script>";
     }
 }
Exemple #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     if (Request.QueryString["id"] != null)
     {
         id = Convert.ToInt32(Request.QueryString["id"]);
     }
 }
Exemple #8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage(null);
     UserName = Session["AdminManage"].ToString();
     Caches.RemoveCache("Admin_" + UserName);
     Session.Remove("AdminManage");
     Response.Write("<script>window.parent.location='Logine.aspx'</script>");
 }
Exemple #9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     if (!IsPostBack)
     {
         this.DBList.DataSource = GetBackUpList().DefaultView;
         this.DBList.DataBind();
     }
 }
Exemple #10
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     InputName = Request.QueryString["InputName"];
     if (!IsPostBack)
     {
         GetConfigInfo();
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     id    = HXD.Common.StringDeal.ToInt(Request.QueryString["fid"]);
     Pages = HXD.Common.StringDeal.ToInt(Request.QueryString["Page"]);
     if (!IsPostBack)
     {
         databiner(id);
     }
 }
Exemple #12
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     if (Request.QueryString["_path"] != null)
     {
         _path = Request.QueryString["_path"];
     }
     if (!IsPostBack)
     {
         binder();
     }
 }
Exemple #13
0
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginCheck.AdminManage(null);
        int Id = StringDeal.ToInt(Request.QueryString["Id"]);

        if (Id == 0)
        {
            Id = b.GetChannelFirstParentId(Session["AdminManage"].ToString());
        }
        Titles            = b.GetChannelTitle(Id);
        DBList.DataSource = b.GetChannelMenu(Id, Session["AdminManage"].ToString())[0].Tables[0];
        DBList.DataBind();
    }
Exemple #14
0
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginCheck.AdminManage();
        string UploadPath = Request.QueryString["UploadPath"];

        if (String.IsNullOrEmpty(UploadPath))
        {
            UploadPath = "../../Upload/";
        }
        string FileName = Request.QueryString["FileName"];

        Files.DeleteFile(UploadPath + FileName);
        Files.DeleteFile(UploadPath + "ico/" + FileName);
    }
Exemple #15
0
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginCheck.AdminManage();
        string Action = Request.QueryString["Action"];

        if (!IsPostBack)
        {
            GetConfig(Action);
        }
        else
        {
            SetConfig(Action);
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginCheck.AdminManage();
        TableId = StringDeal.ToInt(Request.QueryString["TableId"]);
        bTable bT = new bTable();

        mF.TableName = bT.GetTableName(TableId);

        if (!IsPostBack)
        {
            Operation();
            DBList.DataSource = bF.FieldList(mF);
            DBList.DataBind();
        }
    }
Exemple #17
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     if (IsPostBack)
     {
         mAdmin mA = new mAdmin();
         bAdmin bA = new bAdmin();
         mA.UserName = Session["AdminManage"].ToString();
         mA.UserPwd  = Encryp.DESEncrypt(this.UserPwd.Text);
         if (bA.AdminPwdEdit(mA))
         {
             StringDeal.Alter("修改完成!");
         }
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     this.Button1.Attributes.Add("onmouseover", "this.className='button1'");
     this.Button1.Attributes.Add("onmouseout", "this.className='button'");
     this.Button2.Attributes.Add("onmouseover", "this.className='button1'");
     this.Button2.Attributes.Add("onmouseout", "this.className='button'");
     this.Button3.Attributes.Add("onmouseover", "this.className='button1'");
     this.Button3.Attributes.Add("onmouseout", "this.className='button'");
     if (!IsPostBack)
     {
         dsList = (DataSet)bM.MenuList();//栏目列表
         BindMenu(MenuId, "┣");
     }
 }
Exemple #19
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     Response.ContentType = "text/plain";
     if (Request.QueryString["File"] != null)
     {
         string files = Request.QueryString["File"].ToString();
         if (files.IndexOf("/") == 0)
         {
             string imgico = files.Insert(files.LastIndexOf("/"), "/ico");
             HXD.Common.FileOperate.DeleteFile(files);
             HXD.Common.FileOperate.DeleteFile(imgico);
         }
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     if (Request.QueryString["act"] == "check")
     {
         LoginProcessor login = new LoginProcessor();
         if (login.LoginState)
         {
             Response.Redirect("Manage/Main.aspx");
         }
         else
         {
             loginResult = login.Value;
         }
     }
 }
Exemple #21
0
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginCheck.AdminManage();
        bField       bF = new bField();
        mField       mF = new mField();
        bMenu        bM = new bMenu();
        GetAttribute ga = new GetAttribute();

        mF.Id = StringDeal.ToInt(Request.QueryString["Id"]); //字段ID
        mF    = bF.GetTableAndField(mF);                     //字段名与表名

        ga.FieldType = Request.QueryString["Type"];          //字段类型
        ga.TableName = mF.TableName;
        ga.Field     = mF.Field;
        ga.dsList    = (DataSet)bM.MenuList(); //.MenuList();
        ga.Attribute();                        //输入字段属性配置信息
    }
Exemple #22
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     this.DelBut.Attributes.Add("onclick", "return Exec();");//删除
     fid   = HXD.Common.StringDeal.ToInt(Request.QueryString["fid"]);
     Pages = HXD.Common.StringDeal.ToInt(Request.QueryString["Page"]);
     id    = HXD.Common.StringDeal.ToInt(Request.QueryString["id"]);
     type  = Request.QueryString["type"];
     if (!IsPostBack)
     {
         if (type == "del")
         {
             deletevideo(id.ToString());
         }
         binder(fid);
     }
 }
Exemple #23
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     mM.Id      = StringDeal.ToInt(Request.QueryString["Id"]);
     mM.Temp    = "Menu_Field";
     Arry_Field = bM.GetMenuField(mM, mM.Id).Split('|'); //获取此栏目所需字段
     mM.Temp    = "Menu_List";
     Arry_List  = bM.GetMenuField(mM, mM.Id).Split('|'); //获取此栏目列表所显示字段
     if (!IsPostBack)
     {
         MenuSetBind();
     }
     else
     {
         MenuSetSave();
     }
 }
Exemple #24
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     mT.Id = StringDeal.ToInt(Request.QueryString["Id"]);
     if (!IsPostBack)
     {
         TableRead();
         if (mT.Id > 0)
         {
             this.TableName.ReadOnly = true;
         }
     }
     else
     {
         TableSave();
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     mUG.Id = StringDeal.ToInt(Request.QueryString["Id"]);
     if (!IsPostBack)
     {
         mUG.ParentId = -1;
         ug_dsList    = (DataSet)bUG.UserGroupList(mUG);
         UserGroupBind(0, "┣");
         ModelBind();
         UserGroupReader();
     }
     else
     {
         UserGroupSave();
     }
 }
Exemple #26
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     mA.Id = StringDeal.ToInt(Request.QueryString["Id"]);
     if (!IsPostBack)
     {
         mAG.ParentId = -1;
         ag_dsList    = (DataSet)bAG.AdminGroupList(mAG);
         AdminGroupBind(0, "┣");
         this.IsModifyPassword.SelectedIndex = 0;
         this.IsMultiLogin.SelectedIndex     = 0;
         AdminReader();
     }
     else
     {
         AdminSave();
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     this.DelBut.Attributes.Add("onclick", "return Exec();");//删除
     type  = Request.QueryString["type"];
     Pages = HXD.Common.StringDeal.ToInt(Request.QueryString["Page"]);
     id    = Convert.ToInt32(Request.QueryString["id"]);
     if (!IsPostBack)
     {
         switch (type)
         {
         case "del":
             deletes(id.ToString());
             break;
         }
         binder();
     }
 }
Exemple #28
0
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginCheck.AdminManage(null);
        UserName = Session["AdminManage"].ToString();
        bChannel b = new bChannel();

        DBList.DataSource = b.GetChannelMenu(0, UserName)[0].Tables[0];
        DBList.DataBind();

        mAdmin mA = new mAdmin();
        bAdmin bA = new bAdmin();

        mA.UserName = UserName;
        if (!bA.GetAdminEditPwd(mA))
        {
            this.EditPwdId.Visible = false;
        }
    }
Exemple #29
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     mM.Id        = StringDeal.ToInt(Request.QueryString["Id"]);
     mM.Temp      = "Model_Field";
     Arry_Field   = bM.GetMenuField(mM, mM.Id).Split('|');                         //获取此信息编辑所需字段
     mM.Temp      = "Model_List";
     Arry_List    = bM.GetMenuField(mM, mM.Id).Split('|');                         //获取此信息列表所显示字段
     mM.Temp      = "Model";
     mF.TableName = bT.GetTableName(StringDeal.ToInt(bM.GetMenuField(mM, mM.Id))); //获取模型表名
     if (!IsPostBack)
     {
         SetBind();
     }
     else
     {
         SetSave();
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginCheck.AdminManage();
        TableId = StringDeal.ToInt(Request.QueryString["TableId"]);
        Id      = StringDeal.ToInt(Request.QueryString["Id"]);
        mF.Id   = Id;
        bTable bT = new bTable();

        mF.TableName = bT.GetTableName(TableId);
        if (!IsPostBack)
        {
            this.TableName.Text = mF.TableName;
            FieldRead();
        }
        else
        {
            FieldSave();
        }
    }