diff --git a/COMCMS.Web/Areas/AdminCP/Controllers/MemberController.cs b/COMCMS.Web/Areas/AdminCP/Controllers/MemberController.cs index 0e3b424..1b9d632 100644 --- a/COMCMS.Web/Areas/AdminCP/Controllers/MemberController.cs +++ b/COMCMS.Web/Areas/AdminCP/Controllers/MemberController.cs @@ -11,14 +11,578 @@ using COMCMS.Web.Common; using COMCMS.Core.Models; using Microsoft.AspNetCore.Hosting; using System.IO; +using Microsoft.AspNetCore.Http; namespace COMCMS.Web.Areas.AdminCP.Controllers { - public class MemberController : Controller + /// + /// 后台用户管理控制器 + /// + public class MemberController : AdminBaseController { - public IActionResult Index() + #region 修改密码 + //修改个人信息 + [MyAuthorize("view", "editme")] + public IActionResult EditMe() { + Core.Admin my = Core.Admin.GetMyInfo(); + Core.Admin.WriteLogActions("查看/编辑我的信息;"); + return View(my); + } + [HttpPost] + [MyAuthorize("view", "editme", "JSON")] + public IActionResult EditMe(FormCollection fc) + { + Core.Admin my = Core.Admin.GetMyInfo(); + + string userName = fc["UserName"]; + string oldPwd = fc["txtOldPwd"]; + string newPwd = fc["txtNewPwd"]; + string renewPwd = fc["txtreNewPwd"]; + string realname = fc["RealName"]; + string tel = fc["Tel"]; + string email = fc["Email"]; + string editor = fc["Editor"]; + if (!Utils.IsInt(editor)) editor = "0"; + //判断 + if (string.IsNullOrWhiteSpace(userName)) + { + tip.Message = "用户名不能为空!"; + return Json(tip); + } + userName = userName.Trim(); + if (Utils.GetStringLength(userName) < 5) + { + tip.Message = "用户名不能小于5个字符!"; + return Json(tip); + } + if (!string.IsNullOrEmpty(email) && !Utils.IsValidEmail(email)) + { + tip.Message = "请填写正确的Email地址!"; + return Json(tip); + } + + if (userName != my.UserName)//修改用户名 + { + if (Core.Admin.FindCount(Core.Admin._.UserName == userName.Trim() & Core.Admin._.Id != my.Id, null, null, 0, 0) > 0) + { + tip.Message = "新用户名在已经存在,请选择其他用户名!"; + return Json(tip); + } + my.UserName = userName.Trim(); + } + + if (!string.IsNullOrEmpty(newPwd)) + { + //修改密码的情况 + if (string.IsNullOrWhiteSpace(oldPwd) || oldPwd.Length < 5) + { + tip.Message = "您修改密码,旧密码不能为空!"; + return Json(tip); + } + if (newPwd.Length < 5) + { + tip.Message = "新密码不能小于5个字符!"; + return Json(tip); + } + if (newPwd != renewPwd) + { + tip.Message = "您输入的两次密码不一样!"; + return Json(tip); + } + //判断旧密码是否正确 + if (my.PassWord != Utils.MD5(my.Salt + oldPwd.Trim())) + { + tip.Message = "您输入的旧密码不正确,请重新输入!"; + return Json(tip); + } + my.PassWord = Utils.MD5(my.Salt + newPwd); + } + tip.Message = "测试版暂时屏蔽修改密码,敬请原谅!"; + return Json(tip); + //my.Tel = tel; + //my.Email = email; + //my.RealName = realname; + //my.Update(); + //Core.Admin.WriteLogActions("修改我的信息;"); + //tip.Status = JsonTip.SUCCESS; + //tip.Message = "编辑我的信息成功!"; + + //return Json(tip); + } + #endregion + + #region 管理组管理 + [MyAuthorize("viewlist", "adminrole")] + public IActionResult AdminRole() + { + IList list = AdminRoles.FindAll(AdminRoles._.Id > 0, AdminRoles._.Rank.Asc(), null, 0, 0); + Core.Admin.WriteLogActions("查看管理组列表;"); + return View(list); + } + //添加管理组 + [MyAuthorize("add", "adminrole")] + public IActionResult AddAdminRole() + { + //获取所有的菜单列表 + IList list = AdminMenu.GetListTree(0, -1, false, false); + ViewBag.MenuList = list; + Core.Admin.WriteLogActions("查看添加管理页面;"); return View(); } + //执行添加管理组 + [HttpPost] + [MyAuthorize("add", "adminrole", "JSON")] + public IActionResult AddAdminRole(FormCollection fc) + { + string RoleName = fc["RoleName"]; + string RoleDescription = fc["RoleDescription"]; + string IsSuperAdmin = fc["IsSuperAdmin"]; + string NotAllowDel = fc["NotAllowDel"]; + if (string.IsNullOrEmpty(RoleName)) + { + tip.Message = "管理组名称不能为空!"; + return Json(tip); + } + + AdminRoles entity = new AdminRoles(); + + entity.RoleName = RoleName; + entity.RoleDescription = RoleDescription; + entity.IsSuperAdmin = int.Parse(IsSuperAdmin); + entity.NotAllowDel = !string.IsNullOrEmpty(NotAllowDel) && NotAllowDel == "1" ? 1 : 0; + + //处理权限 + if (entity.IsSuperAdmin == 1) + { + entity.Powers = ""; + entity.Menus = ""; + } + else + { + //第一步,获取菜单 + string[] menuids = Request.Form["menuid"]; + //获取所有的菜单列表 + IList alllist = AdminMenu.GetListTree(0, -1, false, false); + IList list = new List(); + IList listevents = new List(); + if (menuids != null && menuids.Length > 0) + { + foreach (string s in menuids) + { + if (Utils.IsInt(s) && alllist.FirstOrDefault(v => v.Id == int.Parse(s)) != null) + { + AdminMenu tmp = alllist.FirstOrDefault(a => a.Id == int.Parse(s)).CloneEntity(); + list.Add(tmp); + //处理详细权限 详细权限,每一行,则每一个菜单的详细权限,则同一个name + string[] eventids = Request.Form["EventKey_" + s]; + if (eventids != null && eventids.Length > 0) + { + foreach (var item in eventids) + { + if (Utils.IsInt(item)) + { + AdminMenuEvent model = AdminMenuEvent.Find(AdminMenuEvent._.Id == int.Parse(item)); + if (model != null) + { + listevents.Add(model); + } + } + } + } + } + } + //序列化成json + if (list != null && list.Count > 0) + { + entity.Menus = JsonConvert.SerializeObject(list); + } + if (listevents != null && listevents.Count > 0) + { + entity.Powers = JsonConvert.SerializeObject(listevents); + } + } + } + + entity.Insert(); + tip.Status = JsonTip.SUCCESS; + tip.Message = "添加管理组成功"; + tip.ReturnUrl = "close"; + Core.Admin.WriteLogActions($"添加新管理组({entity.Id});"); + + return Json(tip); + } + + //查看编辑管理组 + [MyAuthorize("edit", "adminrole")] + public IActionResult EditAdminRole(int id) + { + AdminRoles entity = AdminRoles.Find(AdminRoles._.Id == id); + if (entity == null) + { + return EchoTipPage("系统找不到本记录!", 0, true, ""); + } + if (string.IsNullOrEmpty(entity.Powers)) + entity.Powers = "[]"; + if (string.IsNullOrEmpty(entity.Menus)) + entity.Menus = "[]"; + //获取所有的菜单列表 + IList list = AdminMenu.GetListTree(0, -1, false, false); + ViewBag.MenuList = list; + Core.Admin.WriteLogActions($"查看管理组({id})详情;"); + return View(entity); + } + //执行编辑管理组 + [HttpPost] + [MyAuthorize("edit", "adminrole", "JSON")] + public IActionResult EditAdminRole(FormCollection fc) + { + string Id = fc["Id"]; + string RoleName = fc["RoleName"]; + string RoleDescription = fc["RoleDescription"]; + string IsSuperAdmin = fc["IsSuperAdmin"]; + string NotAllowDel = fc["NotAllowDel"]; + if (string.IsNullOrEmpty(Id)) + { + tip.Message = "错误参数传递!"; + return Json(tip); + } + + if (string.IsNullOrEmpty(RoleName)) + { + tip.Message = "管理组名称不能为空!"; + return Json(tip); + } + + AdminRoles entity = AdminRoles.Find(AdminRoles._.Id == int.Parse(Id)); + if (entity == null) + { + tip.Message = "系统找不到本记录!"; + return Json(tip); + } + entity.RoleName = RoleName; + entity.RoleDescription = RoleDescription; + entity.IsSuperAdmin = int.Parse(IsSuperAdmin); + entity.NotAllowDel = !string.IsNullOrEmpty(NotAllowDel) && NotAllowDel == "1" ? 1 : 0; + + //处理权限 + if (entity.IsSuperAdmin == 1) + { + entity.Powers = ""; + entity.Menus = ""; + } + else + { + //第一步,获取菜单 + string[] menuids = Request.Form["menuid"]; + //获取所有的菜单列表 + IList alllist = AdminMenu.GetListTree(0, -1, false, false); + IList list = new List(); + IList listevents = new List(); + if (menuids != null && menuids.Length > 0) + { + foreach (string s in menuids) + { + if (Utils.IsInt(s) && alllist.FirstOrDefault(v => v.Id == int.Parse(s)) != null) + { + AdminMenu tmp = alllist.FirstOrDefault(a => a.Id == int.Parse(s)).CloneEntity(); + list.Add(tmp); + //处理详细权限 详细权限,每一行,则每一个菜单的详细权限,则同一个name + string[] eventids = Request.Form["EventKey_" + s]; + if (eventids != null && eventids.Length > 0) + { + foreach (var item in eventids) + { + if (Utils.IsInt(item)) + { + AdminMenuEvent model = AdminMenuEvent.Find(AdminMenuEvent._.Id == int.Parse(item)); + if (model != null) + { + listevents.Add(model); + } + } + } + } + } + } + //序列化成json + if (list != null && list.Count > 0) + { + entity.Menus = JsonConvert.SerializeObject(list); + } + if (listevents != null && listevents.Count > 0) + { + entity.Powers = JsonConvert.SerializeObject(listevents); + } + } + } + entity.Update(); + tip.Status = JsonTip.SUCCESS; + tip.Message = "编辑管理组详情成功"; + tip.ReturnUrl = "close"; + Core.Admin.WriteLogActions($"执行编辑管理组({entity.Id})详情;"); + return Json(tip); + } + //删除管理组 + [HttpPost] + [MyAuthorize("del", "adminrole", "JSON")] + public IActionResult DelAdminRole(int id) + { + AdminRoles entity = AdminRoles.Find(AdminRoles._.Id == id); + if (entity == null) + { + tip.Message = "系统找不到本管理组详情!"; + return Json(tip); + } + if (entity.NotAllowDel == 1) + { + tip.Message = "本管理组设定不允许删除,如果需要删除,请先解除限制!"; + return Json(tip); + } + //如果不是超级管理员,不允许删除 + Core.Admin my = Core.Admin.GetMyInfo(); + if (my.Roles.IsSuperAdmin != 1) + { + tip.Message = "非超级管理员,不能执行此操作!"; + return Json(tip); + } + //如果只有一个管理组,不允许删除! + if (AdminRoles.FindCount(null, null, null, 0, 0) == 1) + { + tip.Message = "只有一个管理组,不能删除!"; + return Json(tip); + } + //删除管理组,并删除旗下所有管理员 + Core.Admin.WriteLogActions($"执行删除管理组({entity.Id}:{entity.RoleName})详情;"); + entity.Delete(); + + tip.Status = JsonTip.SUCCESS; + tip.Message = "删除管理组成功"; + return Json(tip); + } + #endregion + + #region 管理员管理 + //管理员管理 + [MyAuthorize("viewlist", "admins")] + public IActionResult Admins() + { + //加载管理组 + IList list = AdminRoles.FindAll(AdminRoles._.Id > 0, AdminRoles._.Rank.Asc(), null, 0, 0); + ViewBag.RoleList = list; + Core.Admin.WriteLogActions("查看管理员列表"); + return View(); + } + [MyAuthorize("viewlist", "admins", "JSON")] + public IActionResult GetAdmins(string keyword, int page = 1, int limit = 20, int roleid = 0) + { + int numPerPage, currentPage, startRowIndex; + long totalCount = 0; + + numPerPage = limit; + currentPage = page; + startRowIndex = (currentPage - 1) * numPerPage; + Expression ex = Core.Admin._.Id > 0; + + if (roleid > 0) + ex &= Core.Admin._.RoleId == roleid; + + if (!string.IsNullOrWhiteSpace(keyword)) + ex &= Core.Admin._.UserName.Contains(keyword); + + IList list = Core.Admin.FindAll(ex, null, null, startRowIndex, numPerPage); + totalCount = Core.Admin.FindCount(ex, null, null, startRowIndex, numPerPage); + return Content(JsonConvert.SerializeObject(new { total = totalCount, rows = list }), "text/plain"); + } + //添加管理员 + [MyAuthorize("add", "admins")] + public IActionResult AddAdmin() + { + //加载管理组 + IList list = AdminRoles.FindAll(AdminRoles._.Id > 0, AdminRoles._.Rank.Asc(), null, 0, 0); + ViewBag.RoleList = list; + Core.Admin.WriteLogActions("查看添加管理员页面;"); + return View(); + } + //执行添加管理员 + [HttpPost] + [MyAuthorize("add", "admins", "JSON")] + public IActionResult AddAdmin(FormCollection fc) + { + string userName = fc["UserName"]; + string newPwd = fc["PassWord"]; + string renewPwd = fc["PassWord2"]; + string roleid = fc["RoleId"]; + string realname = fc["RealName"]; + + if (!Utils.IsInt(roleid)) + { + tip.Message = "请选择一个管理组!"; + return Json(tip); + } + + if (string.IsNullOrEmpty(userName)) + { + tip.Message = "登录用户名不能为空!"; + return Json(tip); + } + if (Utils.GetStringLength(userName.Trim()) < 5) + { + tip.Message = "登录用户名不能小于5个字节!"; + return Json(tip); + } + if (string.IsNullOrEmpty(newPwd)) + { + tip.Message = "密码不能为空!"; + return Json(tip); + } + if (newPwd.Length < 5) + { + tip.Message = "密码不能小于5个字符!"; + return Json(tip); + } + if (newPwd != renewPwd) + { + tip.Message = "两次输入密码不一致,请重新输入!"; + return Json(tip); + } + //验证用户名 + if (Core.Admin.FindCount(Core.Admin._.UserName == userName, null, null, 0, 0) > 0) + { + tip.Message = "该用户名已经存在,请选择其他用户名!"; + return Json(tip); + } + + Core.Admin entity = new Core.Admin(); + entity.UserName = userName; + entity.RealName = realname; + entity.Salt = Utils.GetRandomChar(10); + entity.PassWord = Utils.MD5(entity.Salt + newPwd); + entity.RoleId = int.Parse(roleid); + entity.Insert(); + tip.Status = JsonTip.SUCCESS; + tip.Message = "添加管理员成功!"; + tip.ReturnUrl = "close"; + Core.Admin.WriteLogActions($"添加新管理员({entity.UserName});"); + return Json(tip); + } + + //查看,编辑管理员 + [MyAuthorize("edit", "admins")] + public IActionResult EditAdmin(int id) + { + //加载管理组 + IList list = AdminRoles.FindAll(AdminRoles._.Id > 0, AdminRoles._.Rank.Asc(), null, 0, 0); + ViewBag.RoleList = list; + + Core.Admin entity = Core.Admin.Find(Core.Admin._.Id == id); + if (entity == null) + { + return EchoTipPage("系统找不到本记录!"); + } + Core.Admin.WriteLogActions($"查看/编辑管理员({entity.UserName});"); + return View(entity); + } + //执行编辑管理员 + [HttpPost] + [MyAuthorize("edit", "admins", "JSON")] + public IActionResult EditAdmin(FormCollection fc) + { + string userName = fc["UserName"]; + string newPwd = fc["PassWord"]; + string renewPwd = fc["PassWord2"]; + string roleid = fc["RoleId"]; + string realname = fc["RealName"]; + string Id = fc["Id"]; + if (!Utils.IsInt(Id)) + { + tip.Message = "错误参数传递!"; + return Json(tip); + } + Core.Admin entity = Core.Admin.Find(Core.Admin._.Id == int.Parse(Id)); + if (entity == null) + { + tip.Message = "系统找不到本记录!"; + return Json(tip); + } + if (!Utils.IsInt(roleid)) + { + tip.Message = "请选择一个管理组!"; + return Json(tip); + } + + if (string.IsNullOrEmpty(userName)) + { + tip.Message = "登录用户名不能为空!"; + return Json(tip); + } + if (Utils.GetStringLength(userName.Trim()) < 5) + { + tip.Message = "登录用户名不能小于5个字节!"; + return Json(tip); + } + if (entity.UserName != userName)//修改用户名 + { + //验证用户名是否存在 + if (Core.Admin.FindCount(Core.Admin._.Id != entity.Id & Core.Admin._.UserName == userName, null, null, 0, 0) > 0) + { + tip.Message = "该用户名已经存在,请选择其他用户名!"; + return Json(tip); + } + entity.UserName = userName; + } + if (!string.IsNullOrEmpty(newPwd))//修改密码 + { + if (newPwd.Length < 5) + { + tip.Message = "密码不能小于5个字符!"; + return Json(tip); + } + if (newPwd != renewPwd) + { + tip.Message = "两次输入密码不一致,请重新输入!"; + return Json(tip); + } + entity.PassWord = Utils.MD5(entity.Salt + newPwd); + } + entity.RoleId = int.Parse(roleid); + entity.RealName = realname; + entity.Update(); + tip.Status = JsonTip.SUCCESS; + tip.Message = "修改管理员信息成功!"; + tip.ReturnUrl = "close"; + Core.Admin.WriteLogActions($"修改新管理员({entity.Id}:{entity.UserName});"); + return Json(tip); + } + //删除管理员 + [HttpPost] + [MyAuthorize("del", "admins", "JSON")] + public IActionResult DelAdmin(int id) + { + Core.Admin entity = Core.Admin.Find(Core.Admin._.Id == id); + if (entity == null) + { + tip.Message = "系统找不到本记录!"; + return Json(tip); + } + Core.Admin my = Core.Admin.GetMyInfo(); + if (entity.Id == my.Id) + { + tip.Message = "您不可以删除自己!"; + return Json(tip); + } + //如果是普通管理员,不能删除超级管理员 + if (entity.Roles.IsSuperAdmin == 1 && my.Roles.IsSuperAdmin != 1) + { + tip.Message = "您不可以删除超级管理员!"; + return Json(tip); + } + Core.Admin.WriteLogActions($"删除管理员(id:{entity.Id};usernmae:{entity.UserName});"); + entity.Delete(); + tip.Status = JsonTip.SUCCESS; + tip.Message = "删除管理员成功"; + return Json(tip); + } + #endregion } } \ No newline at end of file diff --git a/COMCMS.Web/Areas/AdminCP/Views/Member/AddAdmin.cshtml b/COMCMS.Web/Areas/AdminCP/Views/Member/AddAdmin.cshtml new file mode 100644 index 0000000..75061b6 --- /dev/null +++ b/COMCMS.Web/Areas/AdminCP/Views/Member/AddAdmin.cshtml @@ -0,0 +1,68 @@ + +@{ + ViewBag.title = "添加管理员"; +} +
+
+
+
@ViewBag.title
+
+
+
+
+ @using (Html.BeginForm(null, null, FormMethod.Post, new { id = "addAdminForm", @class = "form-horizontal m-t" })) + { +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+
+ + +
+
+ } +
+
+ + +
+ \ No newline at end of file diff --git a/COMCMS.Web/Areas/AdminCP/Views/Member/AddAdminRole.cshtml b/COMCMS.Web/Areas/AdminCP/Views/Member/AddAdminRole.cshtml new file mode 100644 index 0000000..5534802 --- /dev/null +++ b/COMCMS.Web/Areas/AdminCP/Views/Member/AddAdminRole.cshtml @@ -0,0 +1,130 @@ + +@{ + ViewBag.title = "添加新管理组"; +} +
+
+
+
@ViewBag.title
+
+
+
+
+ @using (Html.BeginForm(null, null, FormMethod.Post, new { id = "addadminroleForm", @class = "form-horizontal m-t" })) + { +
+ +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+
+ 温馨提示:如果选择『超级管理员』级别,则默认拥有所有权限,不需要在此勾选权限;若版面不正常,请最大化查看 +
+ + + + + + + + + @foreach (AdminMenu m in ViewBag.MenuList) + { + + + + + + } +
菜单名称菜单Key权限详情
+ + @m.MenuKey + @foreach (var e in @m.ListEvent) + { + + + + } + +
+ +
+
+
+
+ +
+
+
+
+ + +
+
+
+ } +
+
+ + +
+ \ No newline at end of file diff --git a/COMCMS.Web/Areas/AdminCP/Views/Member/AdminRole.cshtml b/COMCMS.Web/Areas/AdminCP/Views/Member/AdminRole.cshtml new file mode 100644 index 0000000..c6ef8c1 --- /dev/null +++ b/COMCMS.Web/Areas/AdminCP/Views/Member/AdminRole.cshtml @@ -0,0 +1,70 @@ +@model IList +@{ + ViewBag.title = "管理组管理"; +} +
+
+
+
@ViewBag.title
+
+
+
+ +
+ +
+ +
+ + + + + + + + + + + + + @if (Model.Count == 0) + { + + } + @foreach (var m in Model) + { + + + + + + + + + + } +
ID管理组名称是否超级管理员是否不许删除排序管理组简介操作
暂无记录...
@m.Id + @m.RoleName + + @if (m.IsSuperAdmin == 1) + { + + } + + @if (m.NotAllowDel == 1) + { + + } + @m.Rank@m.RoleDescription + 编辑 + 删除 +
+
+
+ + +
\ No newline at end of file diff --git a/COMCMS.Web/Areas/AdminCP/Views/Member/Admins.cshtml b/COMCMS.Web/Areas/AdminCP/Views/Member/Admins.cshtml new file mode 100644 index 0000000..243fc8e --- /dev/null +++ b/COMCMS.Web/Areas/AdminCP/Views/Member/Admins.cshtml @@ -0,0 +1,167 @@ + +@{ + ViewBag.title = "管理员管理"; +} +
+
+
+
@ViewBag.title
+
+
+
+
+
+
筛选条件
+
+
+
+ + + + + + +
+
+
+
+
+ +
+
+ + +
+
+ + +
diff --git a/COMCMS.Web/Areas/AdminCP/Views/Member/EditAdmin.cshtml b/COMCMS.Web/Areas/AdminCP/Views/Member/EditAdmin.cshtml new file mode 100644 index 0000000..d9930df --- /dev/null +++ b/COMCMS.Web/Areas/AdminCP/Views/Member/EditAdmin.cshtml @@ -0,0 +1,65 @@ +@model Admin +@{ + ViewBag.title = "查看/编辑管理员"; +} +
+
+
+
@ViewBag.Title
+
+
+
+
+ @using (Html.BeginForm(null, null, FormMethod.Post, new { id = "eidtAdminForm", @class = "form-horizontal m-t" })) + { +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+
+ + + +
+
+ } +
+
+
+ diff --git a/COMCMS.Web/Areas/AdminCP/Views/Member/EditAdminRole.cshtml b/COMCMS.Web/Areas/AdminCP/Views/Member/EditAdminRole.cshtml new file mode 100644 index 0000000..9b2f6bb --- /dev/null +++ b/COMCMS.Web/Areas/AdminCP/Views/Member/EditAdminRole.cshtml @@ -0,0 +1,129 @@ +@model AdminRoles +@{ + ViewBag.title = "查看/编辑管理组详情"; +} +
+
+
+
@ViewBag.title
+
+
+
+
+ @using (Html.BeginForm(null, null, FormMethod.Post, new { id = "editadminroleForm", @class = "form-horizontal m-t" })) + { +
+ +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+
+ 温馨提示:如果选择『超级管理员』级别,则默认拥有所有权限,不需要在此勾选权限;若版面不正常,请最大化查看 +
+ + + + + + + + + @foreach (AdminMenu m in ViewBag.MenuList) + { + + + + + + } +
菜单名称菜单Key权限详情
+ + @m.MenuKey + @foreach (var e in @m.ListEvent) + { + + + + } + +
+ +
+
+
+
+ +
+
+
+
+ + + +
+
+
+ } +
+
+
+ \ No newline at end of file diff --git a/COMCMS.Web/Areas/AdminCP/Views/Member/EditMe.cshtml b/COMCMS.Web/Areas/AdminCP/Views/Member/EditMe.cshtml new file mode 100644 index 0000000..3fdef70 --- /dev/null +++ b/COMCMS.Web/Areas/AdminCP/Views/Member/EditMe.cshtml @@ -0,0 +1,85 @@ +@model COMCMS.Core.Admin +@{ + ViewBag.title = "编辑我的信息"; +} +
+
+
+ +
+
+
+
+ 您可以修改密码,请务必设置一个比较复杂的密码,以免被爆破! +
+ @using (Html.BeginForm(null, null, FormMethod.Post, new { id = "editmyinfoForm", @class = "form-horizontal m-t" })) + { +
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+
+ +
+
+ } +
+
+
+ +
+ +
+ +
+ \ No newline at end of file diff --git a/COMCMS.Web/COMCMS.Web.csproj b/COMCMS.Web/COMCMS.Web.csproj index 03b687c..69a25f1 100644 --- a/COMCMS.Web/COMCMS.Web.csproj +++ b/COMCMS.Web/COMCMS.Web.csproj @@ -8,7 +8,7 @@ - +