Index1.cshtml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMISOnline.Web.Controls;
  3. @using Bowin.Common;
  4. @{
  5. Layout = "~/Views/Shared/_FrameLayout.cshtml";
  6. List<string> lurl = new List<string>();
  7. lurl.Add("Content/");
  8. lurl.Add("Doc/");
  9. lurl.Add("Scripts/");
  10. lurl.Add("Login/");
  11. lurl.Add("UploadFile/");
  12. lurl.Add("Account/ChangePassword");
  13. FormsAuthenticationHelper fahelper = new FormsAuthenticationHelper();
  14. var cookieName = EMISOnline.Utility.Const.LOCAL_SETTING_LOGIN_COOKIENAME;
  15. fahelper.AuthenticateRequest(HttpContext.Current, cookieName, lurl);
  16. }
  17. @section scripts{
  18. <script type="text/javascript">
  19. $(function () {
  20. $(".easyui-tree").tree('collapseAll');
  21. $.System.addTab('首页', '@Url.Content("~/Home/Main")', 'Main', false);
  22. });
  23. function changePassword() {
  24. $.System.addTab('修改密码', '@Url.Content("~/Account/ChangePassword")', 'ChangePassword', false);
  25. }
  26. // function refreshTab(title, index) {
  27. // var tab = $('#index_center_tabs').tabs('getTab', index);
  28. // var $iframe = tab.panel('body').find("iframe");
  29. // var isFirstLoad = false;
  30. // if ($iframe[0].contentWindow.location.href != "about:blank") {
  31. // $.each(IndexTabStatus, function (i, v) {
  32. // if (v.index == index && v.firstLoad) {
  33. // isFirstLoad = true;
  34. // v.firstLoad = false;
  35. // return false;
  36. // }
  37. // });
  38. // if (!isFirstLoad) {
  39. // $iframe[0].contentWindow.location.reload();
  40. // }
  41. // }
  42. // }
  43. </script>
  44. }
  45. <div data-options="region:'north',title:'',split:false, border:false" class="index_top_banner">
  46. <div class="index_top_bg">
  47. <div id="index_top" class="index_top_left">
  48. <img src="@Url.Content("~/controls/handler/imagereader.ashx?key=HomeLogo")" />
  49. </div>
  50. <div id="divCurrentInformation">
  51. 当前用户:@(((EMISOnline.Utility.FormValidate.CustomPrincipal)Context.User).LoginID + "-" + ((EMISOnline.Utility.FormValidate.CustomPrincipal)Context.User).Name + (((EMISOnline.Utility.FormValidate.CustomPrincipal)Context.User).IsStudent ? "同学" : "老师"))&nbsp;&nbsp;@Html.SystemClock(new SystemClockOptions { IsJump = true })
  52. @*Html.ActionLink("退出系统", "LogOff", "Account")*@
  53. </div>
  54. <div style="float: right; padding-right: 30px; padding-top: 40px;">
  55. <a href="javascript:changePassword()" style="z-index: 99999;">
  56. <img border="0" title="修改密码" src="@Url.Content("~/Content/Bowin.Control.Core/images/h_lock.jpg")" /></a>
  57. &nbsp;&nbsp; <a href="@Url.Content("~/Account/LogOff")" style="z-index: 99999;">
  58. <img border="0" title="退出" src="@Url.Content("~/Content/Bowin.Control.Core/images/h_logout.jpg")" /></a>
  59. </div>
  60. </div>
  61. </div>
  62. <div id="index_left" class="index_left_bg" data-options="region:'west',title:'&nbsp;34343',split:false,tools:'#tab-tools'"
  63. style="width: 150px;">
  64. @*<div id="tab-tools" class="index_left_tree_bg">
  65. <a href="javascript:void();" class="easyui-linkbutton" plain="true" iconCls="icon-home" style="width:60px; margin-top:-5px;" onclick="javascript:$.System.addTab('首页','@Url.Content("~/Home/Main")','Main', false)">首页</a>
  66. </div>*@
  67. </div>
  68. <div region="center" border="true" title="" class="index_center_bg">
  69. <div id="index_center" class="easyui-panel" data-options="border:false,fit:true">
  70. <div id="index_center_tabs" class="easyui-tabs" data-options="border:false,fit:true">
  71. </div>
  72. </div>
  73. <div id="index_main" class="easyui-layout" data-options="border:false,fit:true">
  74. <div data-options="region:'center',border:false">
  75. </div>
  76. </div>
  77. </div>
  78. <div id="index_bottom" class="index_bottom_bg" region="south" border="true" title="">
  79. <div style="float: left; width: 60%; text-align: center; white-space: nowrap;">
  80. 教育部中央教育科学研究所高等教育研究中心监制</div>
  81. <div style="float: right; width: 40%; text-align: center; white-space: nowrap;">
  82. <a href="http://www.bowintek.com" target="_blank">Copyright 2016 广州市博颖信息科技有限公司</a></div>
  83. </div>
  84. <div id="sysWindow">
  85. </div>