_main_top.aspx.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*******************************************************************************
  2. * iNethinkCMS - 网站内容管理系统
  3. * Copyright (C) 2012-2013 inethink.com
  4. *
  5. * @author jackyang <69991000@qq.com>
  6. * @website http://cms.inethink.com
  7. * @version 1.3.6.0 (2013-08-14)
  8. *
  9. * This is licensed under the GNU LGPL, version 3.0 or later.
  10. * For details, see: http://www.gnu.org/licenses/gpl-3.0.html
  11. *******************************************************************************/
  12. using System;
  13. using System.Collections.Generic;
  14. using System.Web;
  15. using System.Web.UI;
  16. using System.Web.UI.WebControls;
  17. using iNethinkCMS.Command;
  18. using iNethinkCMS.Web.UI;
  19. namespace iNethinkCMS.Web.admin
  20. {
  21. public partial class _main_top : Admin_BasePage
  22. {
  23. protected void Page_Load(object sender, EventArgs e)
  24. {
  25. CheckUserPower("login");
  26. string vTopInfo = "<span>"
  27. + "<a href=\"_main_desk.aspx\" target=\"main\">返回桌面</a>"
  28. + "&nbsp;&nbsp;|&nbsp;&nbsp;"
  29. + "<a href=\"sys/sys_cache.aspx?act=clearcache\" target=\"main\">清空缓存</a>"
  30. + "&nbsp;&nbsp;|&nbsp;&nbsp;"
  31. + "<a href=\"sys/sys_settings.aspx?act=copyright\" target=\"main\">版权声明</a>"
  32. + "</span>";
  33. vTopInfo += "当前登录:" + SysLoginUserName + "(利亚方舟科技)&nbsp;&nbsp;"
  34. + "<a href=\"index.aspx?act=loginout\" target=\"_parent\">[退出登录]</a>";
  35. this.topinfo.InnerHtml = vTopInfo;
  36. string vTopMenuInfo = "";
  37. if (CheckUserPower("a", "bool") == true)
  38. {
  39. vTopMenuInfo += "<a href=\"#\" onclick=\"JumpFrame('_main_left.aspx?menu=news','news/news_content.aspx');\">内容管理</a>";
  40. }
  41. if (CheckUserPower("b", "bool") == true)
  42. {
  43. vTopMenuInfo += "<a href=\"#\" onclick=\"JumpFrame('_main_left.aspx?menu=column','news/news_column.aspx');\">栏目&专题</a>";
  44. }
  45. if (CheckUserPower("c", "bool") == true)
  46. {
  47. vTopMenuInfo += "<a href=\"#\" onclick=\"JumpFrame('_main_left.aspx?menu=module','extend/extend_blogroll.aspx');\">扩展模块</a>";
  48. }
  49. if (CheckUserPower("d", "bool") == true)
  50. {
  51. vTopMenuInfo += "<a href=\"#\" onclick=\"JumpFrame('_main_left.aspx?menu=label','custom/custom_tags.aspx');\">标签&页面</a>";
  52. }
  53. if (CheckUserPower("e", "bool") == true)
  54. {
  55. vTopMenuInfo += "<a href=\"#\" onclick=\"JumpFrame('_main_left.aspx?menu=sys','sys/sys_user.aspx');\">系统管理</a>";
  56. }
  57. this.menuinfo.InnerHtml = vTopMenuInfo;
  58. }
  59. }
  60. }