protected void Page_Load(object sender, EventArgs e) { ZoomLa.Common.function.AccessRulo(); B_Admin ba = new B_Admin(); if (!IsPostBack) { if (!string.IsNullOrEmpty(Request.QueryString["ID"])) { PID = int.Parse(Request.QueryString["ID"]); M_Scheme ms = bs.GetSelect(PID); txtName.Text = ms.SName; RadioButtonList1.SelectedValue = ms.SType.ToString(); if (ms.SStartTime.ToString() == ms.SEndTime.ToString()) { txtEndTime.Text = ""; txtStartTime.Text = ""; } else { txtStartTime.Text = ms.SStartTime.Date.ToString(); txtEndTime.Text = ms.SEndTime.Date.ToString(); } PromoBind(ms.SList); type = "修改"; } Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='ProductManage.aspx'>商城管理</a></li><li><a href='PresentProject.aspx'>促销方案管理</a></li><li>" + type + "打折方案</li>"); } }
//B_Zone_SheetStyle bzss = new B_Zone_SheetStyle(); protected void Page_Load(object sender, EventArgs e) { B_Admin badmin = new B_Admin(); if (!B_ARoleAuth.Check(ZLEnum.Auth.page, "AddPageStyle")) { function.WriteErrMsg("没有权限进行此项操作"); } if (!IsPostBack) { string menu = DataSecurity.FilterBadChar(Request.QueryString["menu"]); int sid = Convert.ToInt32(Request.QueryString["sid"]); if (menu == "edit") { //M_Zone_SheetStyle mzs = bzss.Select(sid); //this.Alias.Text = mzs.Alias; //this.Lname.Text = mzs.Lname; //this.ShowImg.Text = mzs.Img; //this.Price.Text = mzs.Price.ToString(); //this.lblid.Value = mzs.ID.ToString(); //this.Ltype.SelectedValue = mzs.Groups.ToString(); //this.Button1.Text = "修改"; //Label1_Hid.Value = "修改样式"; } else { Label1_Hid.Value = "添加样式"; } Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='PageManage.aspx'>企业黄页</a></li> <li><a href='SheetStyleManage.aspx'>黄页标签管理</a></li><li>" + Label1_Hid.Value + "</li>"); } }
public ActionResult CL() { if (!B_Admin.CheckIsLogged(Request.RawUrl)) { return(null); } M_QrCode qrcodeMod = null; int Mid = DataConverter.CLng(Request["ID"]); if (Mid > 0) { qrcodeMod = codeBll.SelReturnModel(Mid); } if (qrcodeMod != null) { ViewBag.alias = qrcodeMod.UserName; ViewBag.android = codeBll.GetUrlByAgent(DeviceHelper.Agent.Android, qrcodeMod); ViewBag.iphone = codeBll.GetUrlByAgent(DeviceHelper.Agent.iPhone, qrcodeMod); ViewBag.ipad = codeBll.GetUrlByAgent(DeviceHelper.Agent.iPad, qrcodeMod); ViewBag.wphone = codeBll.GetUrlByAgent(DeviceHelper.Agent.WindowsPhone, qrcodeMod); ViewBag.pc = codeBll.GetUrlByAgent(DeviceHelper.Agent.PC, qrcodeMod); string url = StrHelper.UrlDeal(SiteConfig.SiteInfo.SiteUrl + "/app/appurl?id=" + qrcodeMod.ID); ViewBag.link = codeBll.GetUrl(qrcodeMod.ID); ViewBag.code = "<img src='/Common/Common.ashx?url=" + url + "' class='codeimg' />"; } ViewBag.navLabel = "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='/APP/Default'>移动应用</a></li><li><a href='CLList'>APP颁发</a></li><li class='active'>颁发管理</li>"; return(View()); }
protected void Page_Load(object sender, EventArgs e) { B_Admin.CheckIsLogged(); if (!IsPostBack) { DataTable dt = new DataTable(); if (string.IsNullOrEmpty(SiteUrl))//取本地 { if (!string.IsNullOrEmpty(ModelIDS)) { dt = nodeBll.SelNodeByModel(ModelIDS); } else { dt = nodeBll.SelToNodeList(); } } else { WSHelper wsHelper = new WSHelper(); dt = wsHelper.GetNodeList(SiteUrl); } BindNode(dt); } }
//用于后台确认支付 public static void FinalStep(M_OrderList mod) { if (mod.id < 1) { throw new Exception("未指定订单ID"); } if (mod.Ordertype < 1) { throw new Exception("未指定订单类型"); } if (string.IsNullOrEmpty(mod.OrderNo)) { throw new Exception("未指定订单号"); } M_AdminInfo adminMod = B_Admin.GetLogin(); B_Payment payBll = new B_Payment(); M_Payment pinfo = new M_Payment(); pinfo.PaymentNum = mod.OrderNo; pinfo.UserID = mod.Userid; pinfo.PayNo = payBll.CreatePayNo(); pinfo.MoneyPay = (decimal)mod.Ordersamount; pinfo.MoneyTrue = pinfo.MoneyPay;//看是否需要支持手输 pinfo.Status = (int)M_Payment.PayStatus.HasPayed; pinfo.CStatus = true; pinfo.Remark = "管理员确认支付,ID:" + adminMod.AdminId + ",登录名:" + adminMod.AdminName + ",真实姓名:" + adminMod.AdminTrueName; pinfo.PaymentID = payBll.Add(pinfo); pinfo.SuccessTime = DateTime.Now; pinfo.PayPlatID = (int)M_PayPlat.Plat.CashOnDelivery;//默认为线下支付 pinfo.PlatformInfo = ""; M_Order_PayLog paylogMod = new M_Order_PayLog(); FinalStep(pinfo, mod, paylogMod); }
protected void EBtnSubmit_Click(object sender, EventArgs e) { M_AdminInfo adminMod = B_Admin.GetLogin(); M_MailTemp tlpMod = new M_MailTemp(); if (Mid > 0) { tlpMod = bll.SelReturnModel(Mid); } tlpMod.TempName = TxtTempName.Text; tlpMod.Type = Convert.ToInt32(drType.SelectedValue); tlpMod.Content = TxtContent.Value; tlpMod.AddUser = adminMod.AdminName; if (string.IsNullOrEmpty(tlpMod.Pic)) { tlpMod.Pic = ""; } if (!tlpMod.Pic.Equals(SFileUp.FVPath)) { tlpMod.Pic = SFileUp.SaveFile(); } if (Mid > 0) { bll.UpdateByID(tlpMod); } else { bll.insert(tlpMod); } function.WriteSuccessMsg("操作成功", "MailTemplist.aspx"); }
private void MyBind() { M_AdminInfo adminMod = B_Admin.GetLogin(); Grade_Radio.DataSource = B_GradeOption.GetGradeList(6, 0); Grade_Radio.DataBind(); if (Grade_Radio.Items.Count > 0) { Grade_Radio.SelectedIndex = 0; } NodeTree.DataSource = nodeBll.Select_All(); NodeTree.MyBind(); if (Mid > 0) { verMod = verBll.SelReturnModel(Mid); VName_T.Text = verMod.VersionName; Inputer_T.Text = verMod.Inputer; VTime_T.Text = verMod.VersionTime; Grade_Radio.SelectedValue = verMod.Grade.ToString(); Node_Hid.Value = verMod.NodeID.ToString(); Volume_T.Text = verMod.Volume; SectionName_T.Text = verMod.SectionName; CourseName_T.Text = verMod.CourseName; Price_T.Text = verMod.Price.ToString("f2"); if (!string.IsNullOrEmpty(verMod.Knows)) { TagKey_T.Value = knowBll.GetNamesByIDS(verMod.Knows); } } else { Inputer_T.Text = adminMod.AdminName; } }
protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { B_Admin badmin = new B_Admin(); badmin.CheckMulitLogin(); if (!badmin.ChkPermissions("UserGroup")) { function.WriteErrMsg("没有权限进行此项操作"); } string id = base.Request.QueryString["id"]; if (!string.IsNullOrEmpty(id)) { this.HdnGroupID.Value = id; } else { this.HdnGroupID.Value = "0"; id = "0"; } if (id != "0") { M_Group info = this.bll.GetByID(DataConverter.CLng(id)); this.TxtGroupName.Text = info.GroupName; this.TxtDescription.Text = info.Description; this.RBLReg.SelectedValue = DataConverter.CLng(info.RegSelect).ToString(); } } }
protected void Page_Load(object sender, EventArgs e) { B_Admin badmin = new B_Admin(); badmin.CheckMulitLogin(); if (!badmin.ChkPermissions("FileManage")) { function.WriteErrMsg("没有权限进行此项操作"); } this.m_CurrentDir = base.Request.QueryString["Dir"]; if (string.IsNullOrEmpty(this.m_CurrentDir)) { this.m_CurrentDir = SiteConfig.SiteOption.UploadDir; } this.HdnPath.Value = this.m_CurrentDir; if (!string.IsNullOrEmpty(this.m_CurrentDir) && (this.m_CurrentDir.LastIndexOf("/") > 0)) { this.m_ParentDir = this.m_CurrentDir.Remove(this.m_CurrentDir.LastIndexOf("/"), this.m_CurrentDir.Length - this.m_CurrentDir.LastIndexOf("/")); } this.m_CurrentDir = this.m_CurrentDir + "/"; DirectoryInfo info = new DirectoryInfo(base.Request.PhysicalApplicationPath + this.m_CurrentDir); if (info.Exists) { this.BindData(); } this.LblCurrentDir.Text = this.m_CurrentDir; }
private void BtnRegister_Click(object sender, EventArgs e) { string ImgCode = TbRandomCode.Text.ToLower(); int Sex = 0; if (CbMan.Checked != true) { Sex = 1; } Hashtable HtUser = new Hashtable(); HtUser.Add("NickName", TbNickName.Text); HtUser.Add("UserCode", TbPhone.Text); HtUser.Add("UserPass", PubicHelp.MD5Encrypt(TbPass.Text)); HtUser.Add("UserSex", Sex); HtUser.Add("UserGuid",PubicHelp.GetNetGuid()); if (ImgCode != TheImgCode) { MessageBox.Show("验证码错误!请重新输入","提示",MessageBoxButtons.OK); return; } //BAL层 B_Admin ba = new B_Admin(); if (ba.b_Register(HtUser)) { MessageBox.Show("注册成功!","提示",MessageBoxButtons.OK); } else { //错误信息 MessageBox.Show(ba.Msg, "提示", MessageBoxButtons.OK); } }
private string g_content; //短信内容 protected void Page_Load(object sender, EventArgs e) { function.AccessRulo(); B_Admin badmin = new B_Admin(); if (!B_ARoleAuth.Check(ZLEnum.Auth.other, "SiteConfig")) { function.WriteErrMsg("没有权限进行此项操作"); } if (!this.IsPostBack) { WebSMS wsm = new WebSMS(); g_uid = SiteConfig.SiteOption.G_uid; g_eid = SiteConfig.SiteOption.G_eid; g_pwd = SiteConfig.SiteOption.G_pwd; g_gate_id = SiteConfig.SiteOption.G_gate_id; g_content = SiteConfig.SiteOption.G_content; this.x_uid.Value = g_uid.ToString(); this.x_eid.Value = g_eid.ToString(); this.x_pwd_md5.Value = g_pwd.ToString(); this.h_gate_id.Value = g_gate_id.ToString(); this.txtContent.Value = g_content.ToString(); string strIdentity = wsm.GetIdentityMark(Int32.Parse(g_eid), g_uid, g_pwd, Int32.Parse(g_gate_id)); this.Label1.Text = "当前余额:" + wsm.GetMoney(strIdentity).ToString("0.00"); if (g_uid == "" || g_eid == "" || g_pwd == "" || g_gate_id == "") { Response.Write("参数不全!"); return; } } }
//传入ID才可修改最新的词条 public IActionResult BKEditor() { switch (Mode) { case "admin": //if (!B_Admin.CheckIsLogged(Request.RawUrl)) { return null; } M_AdminInfo adminMod = B_Admin.GetLogin(HttpContext); if (adminMod == null) { return(WriteOK("无权访问")); } break; case "user": default: //是否限定创建权限,用户所在组是否拥有创建权限 //B_User.CheckIsLogged(Request.RawUrl); if (!bkBll.AuthCheck(GuestConfig.GuestOption.BKOption.CreateBKGroup, mu.GroupID)) { return(WriteErr("你没有创建或编辑词条的权限")); } break; } M_Baike bkMod = GetModel_Editor(ref err); if (!string.IsNullOrEmpty(err)) { return(WriteErr(err)); return(null); } if (bkMod == null) { bkMod = new M_Baike(); } return(View(bkMod)); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { M_AdminInfo adminMod = B_Admin.GetLogin(); ScenceFunc(adminMod.Theme); nameL.InnerHtml = "<span style='cursor:pointer;'>" + adminMod.AdminName + "</span>"; AsyncInvokeFunc preFunc = InvokeFunc; preFunc.BeginInvoke(this, null, null); //---Logo后期改为拼接 if (!string.IsNullOrEmpty(SiteConfig.SiteInfo.LogoAdmin)) { zlogo3.Visible = true; zlogo4.Visible = true; newbody_logo2.Visible = true; zlogo3.InnerHtml = ComRE.Img_NoPic(SiteConfig.SiteInfo.LogoAdmin, ""); zlogo4.InnerHtml = SiteConfig.SiteInfo.LogoPlatName; } else { zlogo1.Visible = true; zlogo2.Visible = true; newbody_logo1.Visible = true; } if (Call.AppSettValue("ShowedAD").ToLower().Equals("false")) { function.Script(this, "ShowStartScreen();"); } if (Application["Page_Init"] == null) { Application["Page_Init"] = true; function.Script(this, "PrePageInit()"); } } }
protected void Page_Load(object sender, EventArgs e) { B_Admin badmin = new B_Admin(); if (!IsPostBack) { Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='DatalistProfile.aspx'>扩展功能</a></li><li><a href='DatalistProfile.aspx'>开发中心</a></li><li class='active'>添加插件</li>"); if (!string.IsNullOrEmpty(Request["ID"])) { int id = DataConvert.CLng(Request["ID"]); model = bll.SelReturnModel(id); txtName.Text = model.TagName; txtTableName.Text = model.TableName.Replace("ZL_my_", ""); txtUnit.Text = model.Unit; txtIcon.Text = model.Icon; txtExplain.Text = model.Explain; txtRunNum.Text = model.RunNum.ToString(); TxtUserID.Value = model.UserID.ToString(); txtUserName.Text = model.UserID.ToString(); txtBtnName.Text = model.BtnName; txtSqlUrl.Text = model.SqlUrl; txtRunTime.Text = model.RunTime; } } if (Convert.ToInt32(Request["type"]) == 2) { this.CreateBtn.Text = "修改"; } }
protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { B_Admin badmin = new B_Admin(); if (!B_ARoleAuth.Check(ZLEnum.Auth.page, "PageModelManage")) { function.WriteErrMsg("没有权限进行此项操作"); } DataBaseList(); } string menu = base.Request.QueryString["menu"]; if (menu == "del") { int modeid = DataConverter.CLng(Request.QueryString["id"]); if (bll.DelModel(modeid)) { Response.Write("<script language=javascript>alert('删除成功!');location.href='UserModelManage.aspx';</script>"); } else { Response.Write("<script language=javascript>alert('删除失败!');</script>"); } } Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='PageManage.aspx'>企业黄页</a></li><li class='active'>黄页申请设置<a href='UserModel.aspx'>[添加申请模型]</a></li>" + Call.GetHelp(85)); }
public ContentResult Logout() { if (DataConvert.CLng(Request.GetParam("preload")) == 1) { return(null); } //try //{ //} //catch (Exception ex) //{ // ZLLog.L(ZLEnum.Log.safe, "admin signout err:" + ex.Message); //} B_Admin.ClearLogin(HttpContext); string url = Request.GetParam("ReturnUrl"); if (string.IsNullOrEmpty(url)) { url = CustomerPageAction.customPath2 + "login"; } //回发清除cookies //Response.Write("<script></script>"); return(Content("<script>location='" + url + "';</script>")); }
protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { B_Admin badmin = new B_Admin(); if (!B_ARoleAuth.Check(ZLEnum.Auth.page, "PageModelManage")) { function.WriteErrMsg("没有权限进行此项操作"); } if (string.IsNullOrEmpty(base.Request.QueryString["FieldID"])) { function.WriteErrMsg("没有指定要修改字段的字段ID!"); } int FieldID = DataConverter.CLng(base.Request.QueryString["FieldID"]); int ModelID = DataConverter.CLng(base.Request.QueryString["ModelID"]); this.HdfFieldID.Value = FieldID.ToString(); M_ModelField field = this.bll.GetModelByID(ModelID.ToString(), FieldID); //int ModelID = field.ModelID; M_ModelInfo model = this.bModel.GetModelById(ModelID); this.HdfModelID.Value = ModelID.ToString(); this.GetShow(field); Call.SetBreadCrumb(Master, "<li>后台管理</li><li>企业黄页</li><li>字段列表</li><li>修改[" + model.ModelName + "模型]字段</li>"); } }
protected void Page_Load(object sender, EventArgs e) { B_Admin ba = new B_Admin(); M_SchemeInfo msi = new M_SchemeInfo(); if (!IsPostBack) { if (Request.QueryString["AID"] != null) { AID = int.Parse(Request.QueryString["AID"].ToString()); proName = bs.GetSelect(AID).SName; } if (Request.QueryString["ID"] != null) { type = "修改"; msi = bsi.GetSelect(int.Parse(Request.QueryString["ID"].ToString())); txtStartNum.Text = msi.SIULimit.ToString(); txtEndNum.Text = msi.SILLimit.ToString(); txtAgio.Text = msi.SIAgio.ToString(); } Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='ProductManage.aspx'>商城管理</a></li><li><a href='PresentProject.aspx'>促销方案管理</a></li><li><a href='AgioProject.aspx'>打折方案管理</a></li><li><a href='AgioList.aspx?ID=" + Request.QueryString["AID"] + "'>" + proName + "方案打折信息管理</a></li><li class='active'>添加打折信息</a></li>"); } }
protected void Page_Load(object sender, EventArgs e) { B_Admin badmin = new B_Admin(); badmin.CheckMulitLogin(); if (!badmin.ChkPermissions("FileManage")) { function.WriteErrMsg("没有权限进行此项操作"); } string uploadDir = SiteConfig.SiteOption.UploadDir; this.AppPath = base.Request.PhysicalApplicationPath; TreeNode tmpNd; tmpNd = new TreeNode(); tmpNd.Value = uploadDir; tmpNd.Text = uploadDir; tmpNd.NavigateUrl = "UploadFile.aspx?Dir=" + base.Server.UrlEncode(uploadDir); tmpNd.Target = "main_right"; tmpNd.ImageUrl = ""; tmpNd.ToolTip = "根目录"; tvNav.Nodes.Add(tmpNd); InitTreeNode(tmpNd.ChildNodes, uploadDir); tvNav.ExpandAll(); }
protected void Page_Load(object sender, EventArgs e) { B_Admin badmin = new B_Admin(); badmin.CheckMulitLogin(); this.FilePathInput = base.Request.QueryString["OpenerText"]; }
protected void Page_Load(object sender, EventArgs e) { ZoomLa.Common.function.AccessRulo(); if (!this.Page.IsPostBack) { B_Admin badmin = new B_Admin(); if (!B_ARoleAuth.Check(ZLEnum.Auth.model, "ShopModelEdit")) { function.WriteErrMsg("没有权限进行此项操作"); } if (string.IsNullOrEmpty(base.Request.QueryString["FieldID"])) { function.WriteErrMsg("没有指定要修改字段的字段ID!"); } int FieldID = DataConverter.CLng(base.Request.QueryString["FieldID"]); int ModelID = DataConverter.CLng(base.Request.QueryString["ModelID"]); this.HdfFieldID.Value = FieldID.ToString(); M_ModelField field = this.bll.GetModelByIDXML(FieldID); ModelID = field.ModelID; // M_ModelField field = this.bll.GetModelByID(ModelID.ToString(), FieldID); //int ModelID = field.ModelID; M_ModelInfo model = this.bModel.GetModelById(ModelID); this.lblModel.Text = model.ModelName; this.HdfModelID.Value = ModelID.ToString(); this.GetShow(field); } }
public void Product_AddToNew() { if (!B_ARoleAuth.AuthCheckEx(ZLEnum.Auth.shop, "product")) { return; } DataTable table = new DataTable(); M_Product proMod = proBll.GetproductByid(Mid); proMod = FillProductModel(ref table, proMod); //------------------ proMod.ProCode = B_Product.GetProCode(); proMod.AddUser = B_Admin.GetLogin().AdminName; proMod.Stock = 0; proMod.AddTime = DateTime.Now; proMod.UpdateTime = DateTime.Now; proMod.ID = 0; proMod.ID = proBll.Add(table, proMod); //------------------ IsNeedVerBak(proMod); IsHaveMaterial(proMod); IsAddStock(proMod, DataConvert.CLng(Request.Form["Stock"])); IsUserProduct(proMod, Request.Form["uprouids_old_hid"], Request.Form["uprouids_hid"]); IsHavePresent(proMod); Response.Redirect(CustomerPageAction.customPath + "Shop/ProductShow.aspx?ID=" + proMod.ID); }
protected void Page_Load(object sender, EventArgs e) { string str = "分类名称"; B_Admin badmin = new B_Admin(); Egv.txtFunc = txtPageFunc; if (!this.Page.IsPostBack) { int CateID = string.IsNullOrEmpty(Request.QueryString["CateID"]) ? 0 : DataConverter.CLng(Request.QueryString["CateID"]); if (CateID <= 0) { function.WriteErrMsg("缺少留言分类ID", "../Plus/GuestCateMana.aspx"); } else { this.HdnCateID.Value = CateID.ToString(); } guestMod = cateBll.SelReturnModel(Convert.ToInt32(Request.QueryString["CateID"])); if (guestMod != null) { str = guestMod.CateName; } cateName = ">>" + guestMod.CateName; DataBind(); } Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li></li><li><a href='GuestManage.aspx'>留言管理</a></li><li><a href='Default.aspx?CateID=" + Request.QueryString["CateID"] + "'>" + str + "</a></li><li class='active'>留言回复列表</li>"); }
public string UserAgent = ""; //服务器语言种类 protected void Page_Load(object sender, EventArgs e) { B_Admin.CheckIsLogged(); if (!IsPostBack) { lbServerName.Text = "http://" + HttpContext.Current.Request.Url.Host + HttpContext.Current.Request.ApplicationPath; IISVersion_L.Text = Request.ServerVariables["Server_SoftWare"].ToString(); NFVersion_L.Text = string.Concat(new object[] { Environment.Version.Major, ".", Environment.Version.Minor, Environment.Version.Build, ".", Environment.Version.Revision }); } tdMac.InnerText = getMacs(); HttpBrowserCapabilities brObject = Request.Browser; browser = brObject.Type + " 版本:" + brObject.Version; if (brObject.Cookies) { cookiesSurrport = "支持(<font color='red'>推荐</font>)"; } else { cookiesSurrport = "不支持(请使用ie5以上的浏览器或检查Cookies设置)"; } currentIP = Page.Request.UserHostAddress; UserAgent = Page.Request.UserAgent; currentWindow = "深度:" + brObject.ScreenBitDepth;// " 屏大小:(" + brObject.ScreenPixelsWidth + "px," + brObject.ScreenPixelsHeight + "px)"; }
protected void Page_Load(object sender, EventArgs e) { if (!B_Admin.CheckLogByAU()) { function.WriteErrMsg("无权访问该页面"); } }
protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { B_Admin badmin = new B_Admin(); badmin.CheckMulitLogin(); if (!badmin.ChkPermissions("ContentSpec")) { function.WriteErrMsg("没有权限进行此项操作"); } if (string.IsNullOrEmpty(base.Request.QueryString["SpecID"])) { this.SpecID = this.bspec.GetFirstID(); if (this.SpecID == 0) { function.WriteErrMsg("没有指定专题ID或没有建立专题"); } } else { this.SpecID = DataConverter.CLng(base.Request.QueryString["SpecID"]); } this.ViewState["SpecID"] = this.SpecID.ToString(); RepNodeBind(); } }
protected void Page_Load(object sender, EventArgs e) { function.AccessRulo(); B_Admin badmin = new B_Admin(); Call.SetBreadCrumb(Master, "<li>后台管理</li><li><a href='ProjectManage.aspx'>项目管理</a></li>"); }
protected void Save_Btn_Click(object sender, EventArgs e) { if (Mid > 0) { desMod = desBll.SelReturnModel(Mid); } else { desMod = new M_Logo_Design(); } desMod.Alias = Alias_T.Text; desMod.LogoContent = StrHelper.CompressString(Save_Hid.Value); ImgHelper imghelp = new ImgHelper(); System.Drawing.Bitmap bmp = imghelp.Base64ToImg(Base64_Hid.Value); //用于减小尺寸 desMod.PreviewImg = "data:image/png;base64," + imghelp.ImgToBase64ByImage(bmp); if (desMod.ID > 0) { desMod.ZType = 1; desBll.UpdateByID(desMod); } else { M_AdminInfo adminMod = B_Admin.GetLogin(); desMod.ZType = 1; desMod.ZStatus = 99; desMod.AdminID = adminMod.AdminId; desMod.ID = desBll.Insert(desMod); } SnsHelper.UpdateModel(desMod.ID , new string[] { "BackGround" } , new string[] { BKUrl_T.Text.Trim() }); function.WriteSuccessMsg("操作成功", "DesTlpList.aspx"); }
public ActionResult Default() { B_Admin badmin = new B_Admin(); if (badmin.CheckLogin() && !buser.CheckLogin()) { M_AdminInfo adminMod = B_Admin.GetLogin(); M_UserInfo mu = new M_UserInfo(); if (adminMod.AddUserID > 0) { mu = buser.SelReturnModel(adminMod.AddUserID); } if (mu.UserID < 1) { mu = buser.AuthenticateUser(adminMod.AdminName, adminMod.AdminPassword, true); } if (mu.UserID > 0) { buser.SetLoginState(mu); } } B_User.CheckIsLogged(Request.RawUrl); ViewBag.url = "www.z01.com"; ViewBag.showmsg = !DomainCheck(); ViewBag.authsp = SafeSC.ReadFileStr("/APP/Other/auth.html"); int APKMode = DataConverter.CLng(Request["APKMode"]); ViewBag.apkmode = APKMode; return(View()); }
protected void Page_Load(object sender, EventArgs e) { B_Admin badmin = new B_Admin(); if (Request.QueryString["menu"] == "download") { string filename = Request.QueryString["filename"]; if (!string.IsNullOrEmpty(filename)) { Response.Write("<BR /><p><center><a href=\"Download.aspx?f=" + filename + "\">点击下载邮件列表</a></center></p>"); Response.Write("<script>location.href='Download.aspx?f=" + filename + "';</script>"); Response.End(); } else { Response.Write("<script>window.close();</script>"); } } else { if (!IsPostBack) { if (Request.QueryString["typeid"] != null) { DropDownList2.SelectedIndex = 7; } DropDownList2_SelectedIndexChanged(null, null); } } Call.SetBreadCrumb(Master, "<li>后台管理</li><li>附件管理</li><li>邮件订阅</li><li>邮箱列表</li>"); }