protected void Page_Load(object sender, EventArgs e) { B_User.CheckIsLogged(Request.RawUrl); mu = buser.GetLogin(); if (ExHelper.IsTeacher(mu.GroupID)) { Response.Redirect("/Extend/Teacher/Default.aspx"); return; } Gid = userBll.GetGid(mu.UserID); if (!IsPostBack) { student_empty.Visible = Gid == 0; student_ok.Visible = Gid != 0; string tlp = "<a href=\"{0}\"><i class=\"zi zi_storealt\"></i>{1}<small><i class=\"zi zi_pathRight\"></i></small></a>"; if (mu.PageID < 1) { store_l.Text = string.Format(tlp, "/Extend/Common/Store.aspx", "申请成为店家"); } else { B_Ex_Store stBll = new B_Ex_Store(); DataRow storeDR = stBll.SelReturnModel(mu.PageID); if (DataConvert.CLng(storeDR["dpzt"]) == 99) { store_l.Text = string.Format(tlp, "/Extend/Store/Default.aspx", "店铺管理"); } else { store_l.Text = string.Format(tlp, "javascript:;", "店铺管理<span style='color:red;'>(待审核)</span>"); } } } }
protected void Page_Load(object sender, EventArgs e) { B_User.CheckIsLogged(Request.RawUrl); mu = buser.GetLogin(); if (mu.GroupID == (int)ExOrder.Group.家长) { Response.Redirect("/Class_38/Default.aspx"); return; } if (!IsPostBack) { //通过审核后,status=99 DataRow dr = teaBll.SelByUid(mu.UserID); if (dr == null) { Status_L.Text = "<span style='color:red;'>未提交资料</span>"; } else if (DataConvert.CLng(dr["Status"]) != 99) { Status_L.Text = "<span style='color:orange;'>待审核</span>"; } else if (DataConvert.CLng(dr["status"]) == 99) { Status_L.Text = "<span style='color:#fff;'>已审核</span>"; Status_L.Text += "<a href='/Item/" + dr["GeneralID"] + ".aspx' class='weui-btn weui-btn_mini weui-btn_primary' target='_blank' style='position:absolute;margin-left:10px;margin-top:-5px;'><i class='zi zi_eye'></i> 个人主页</a>"; } if (dr != null) { Gid = DataConvert.CLng(dr["GeneralID"]); } string tlp = "<a href=\"{0}\"><i class=\"zi zi_storealt\"></i>{1}<small><i class=\"zi zi_pathRight\"></i></small></a>"; if (mu.PageID < 1) { store_l.Text = string.Format(tlp, "/Extend/Common/Store.aspx", "申请成为店家"); } else { B_Ex_Store stBll = new B_Ex_Store(); DataRow storeDR = stBll.SelReturnModel(mu.PageID); if (DataConvert.CLng(storeDR["dpzt"]) == 99) { store_l.Text = string.Format(tlp, "/Extend/Store/Default.aspx", "店铺管理"); } else { store_l.Text = string.Format(tlp, "javascript:;", "店铺管理<span style='color:red;'>(待审核)</span>"); } } } }
protected void Page_Load(object sender, EventArgs e) { M_AdminInfo adminMod = B_Admin.GetLogin(); if (adminMod == null || adminMod.AdminId != 1) { throw new Exception("no access"); } //---------------------181120 if (false) { #region 初始化填充店铺数据 B_Ex_Store stBll = new B_Ex_Store(); DataTable userDT = DBCenter.Sel("ZL_User", "PageID>0"); DBCenter.UpdateSQL(stBll.TbName, "cdate='" + DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss") + "',dpzt=99", ""); foreach (DataRow user in userDT.Rows) { DataRow stDR = stBll.SelReturnModel(DataConvert.CLng(user["PageID"])); stDR["djid"] = Convert.ToInt32(user["UserID"]); stBll.UpdateById(stDR); } #endregion } if (true) { #region 内容迁移为移动编辑器 B_CodeModel codeBll = new B_CodeModel("ZL_C_LSSQ"); DataTable dt = codeBll.Sel(); //jxtd jxjl cgal for (int i = 0; i < dt.Rows.Count; i++) { DataRow dr = dt.Rows[i]; dr["jxtd"] = UeditorToMB(DataConvert.CStr(dr["jxtd"])); dr["jxjl"] = UeditorToMB(DataConvert.CStr(dr["jxjl"])); dr["cgal"] = UeditorToMB(DataConvert.CStr(dr["cgal"])); codeBll.UpdateByID(dr); } #endregion } throw new Exception("操作完成"); }