123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @using Bowin.Common;
- @{
- Layout = "~/Views/Shared/_FrameLayout.cshtml";
- List<string> lurl = new List<string>();
- lurl.Add("Content/");
- lurl.Add("Doc/");
- lurl.Add("Scripts/");
- lurl.Add("Login/");
- lurl.Add("UploadFile/");
- lurl.Add("Account/ChangePassword");
- FormsAuthenticationHelper fahelper = new FormsAuthenticationHelper();
- var cookieName = EMIS.Utility.Const.LOCAL_SETTING_LOGIN_COOKIENAME;
- fahelper.AuthenticateRequest(HttpContext.Current, cookieName, lurl);
- }
- @section scripts{
- <script type="text/javascript">
- $(document).ready(function () {
- var IsStudent = "@ViewBag.IsStudent";
- // debugger;
- if (IsStudent == "True") {
- $("a#UserInfo").hide();
- }
- else if (IsStudent == "False") {
- $("a#UserInfo").show();
- }
- });
- $(function () {
- $.parser.onComplete = function () {
- $("#ddlIndexRoleSelector").combobox({
- onShowPanel: resizePanel
- });
- };
- $(".easyui-tree").tree('collapseAll');
- $.System.addTab('首页', '@Url.Content("~/Home/Main")', 'Main', false);
- });
- function switchRole() {
- $("[name='hdnSelectedRole']").val($("#ddlIndexRoleSelector").combobox('getValue'));
- $("#frmRole").submit();
- }
- function resizePanel() {
- $($(".combo-p")[0]).css("width", "138px");
- $($(".combo-p")[0]).find(".combo-panel").css("width", "138px");
- }
- function changePassword() {
- $.System.addTab('修改密码', '@Url.Content("~/Account/ChangePassword")', 'ChangePassword', false);
- }
- function changeInfo() {
- $.System.addTab('用户信息', '@Url.Content("~/User/UserInfoChange")', 'ChangeInfo', false);
- }
- // function refreshTab(title, index) {
- // var tab = $('#index_center_tabs').tabs('getTab', index);
- // var $iframe = tab.panel('body').find("iframe");
- // var isFirstLoad = false;
- // if ($iframe[0].contentWindow.location.href != "about:blank") {
- // $.each(IndexTabStatus, function (i, v) {
- // if (v.index == index && v.firstLoad) {
- // isFirstLoad = true;
- // v.firstLoad = false;
- // return false;
- // }
- // });
- // if (!isFirstLoad) {
- // $iframe[0].contentWindow.location.reload();
- // }
- // }
- // }
- </script>
- }
- <div data-options="region:'north',title:'',split:false, border:false" class="index_top_banner">
- <div class="index_top_bg">
- <div id="index_top" class="index_top_left">
- <img src="@Url.Content("~/common/resimage?key=HomeLogo")" />
- </div>
- @*<div id="IsStudent" style="display: none">
- ((EMIS.Utility.FormValidate.CustomPrincipal)Context.User).IsStudent
- </div>*@
- <div id="divCurrentInformation">
- <form id="frmRole" action="@Url.Content("~/Home/SwitchRole")" method="post">
- @Html.Hidden("hdnSelectedRole")
- </form>
- 当前用户:@(((EMIS.Utility.FormValidate.CustomPrincipal)Context.User).LoginID + "-" + ((EMIS.Utility.FormValidate.CustomPrincipal)Context.User).Name + (((EMIS.Utility.FormValidate.CustomPrincipal)Context.User).IsStudent ? "同学" : "老师")) @Html.SystemClock(new SystemClockOptions { IsJump = true })
- @*Html.ActionLink("退出系统", "LogOff", "Account")*@
- </div>
- <div style="float: right; padding-right: 30px; padding-top: 40px;">
- @*<a id="UserInfo" href="javascript:changeInfo()" style="z-index: 99999;">
- <img border="0" title="用户信息" src="@Url.Content("~/Content/Bowin.Control.Core/images/h_user.png")" /></a>*@
-
- <a href="javascript:changePassword()" style="z-index: 99999;">
- <img border="0" title="修改密码" src="@Url.Content("~/Content/Bowin.Control.Core/images/h_lock.jpg")" /></a>
- <a href="@Url.Content("~/Account/LogOff")" style="z-index: 99999;">
- <img border="0" title="退出" src="@Url.Content("~/Content/Bowin.Control.Core/images/h_logout.jpg")" /></a>
- </div>
- </div>
- </div>
- <div id="index_left" class="index_left_bg" data-options="region:'west',title:'@Html.DropdownList(new DropdownListOptions
- {
- ID = "ddlIndexRoleSelector",
- ItemSourceUrl = Url.Content("~/User/GetUserRoleDropdownList"),
- BindType = DropdownListBindType.None,
- SelectedValue = EMIS.Utility.FormValidate.CustomPrincipal.Current.RoleID,
- OnSelect = "switchRole",
- Width = 112
- }).ToHtmlString()',split:false,tools:'#tab-tools'"style="width: 140px;">
- @Html.MenuTree(new AccordionTreeOptions()
- {
- OnClick = "$.System.addTab('{MnuName}','{MnuProgram}','{MnuId}')",
- DataOptions = "fit: true",
- })
- @*<div id="tab-tools" class="index_left_tree_bg">
- <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>
- </div>*@
- </div>
- <div region="center" border="true" title="" class="index_center_bg">
- <div id="index_center" class="easyui-panel" data-options="border:false,fit:true">
- <div id="index_center_tabs" class="easyui-tabs" data-options="border:false,fit:true">
- </div>
- </div>
- <div id="index_main" class="easyui-layout" data-options="border:false,fit:true">
- <div data-options="region:'center',border:false">
- </div>
- </div>
- </div>
- <div id="index_bottom" class="index_bottom_bg" region="south" border="true" title="">
- <div style="float: left; width: 40%; text-align: center; white-space: nowrap;">
- 教育部中央教育科学研究所高等教育研究中心监制</div>
- <div style="float: right; width: 40%; text-align:right; white-space: nowrap;">
- <a href="http://www.bowintek.com" target="_blank">Copyright2021<img src="~/Images/copyright.png" style="height:10px"/> 广州市博颖信息科技有限公司 All Rights Reserved
- </a></div>
- </div>
- <div id="sysWindow">
- </div>
|