var ChooseBtnStatu = true ;
function changeWindows () {
var ChooseBtn = document.getElementById('ChooseBtn' );
var barLeftParent = window.frames['myIframe' ].document.getElementById("bar_left" );
if (ChooseBtnStatu == true ) {
$("#showNav" ).hide();
ChooseBtn.style.backgroundImage = 'url(../../App_Themes/Default/custom/images/windowMode.png)' ;
$("#ChooseBtn" ).attr("title" , "退出全屏" )
changeBig();
document.getElementById('iframeWidth' ).style.marginLeft = "0" ;
ChooseBtnStatu = false ;
} else {
$("#showNav" ).show();
ChooseBtn.style.backgroundImage = 'url(../../App_Themes/Default/custom/images/fullscreen.png)' ;
$("#ChooseBtn" ).attr("title" , "点击全屏" )
reset();
document.getElementById('iframeWidth' ).style.marginLeft = "5px" ;
ChooseBtnStatu = true ;
}
barLeftParent = null ;
}
function reset () {
$("#west" ).removeClass("westMarginLeft" );
$(".layout-panel-north" ).css({ "height" : northHeight, "min-height" : "75px" });
$(".layout-panel-center" ).css({
"width" : windowWidth - $("#west" ).width(),
"height" : windowHeight - northHeight + 13 ,
"min-height" : windowHeight - $(".layout-panel-north" ).height() + 13 ,
"left" : $("#west" ).width(),
"top" : 75
});
$(".layout-panel-center .transparent" ).css({
"width" : windowWidth - $("#west" ).width(),
"height" : windowHeight - northHeight + 13
});
myIframe.window.location.reload();
}
var windowWidth = $(window).width();
var windowHeight = $(window).height();
var northHeight = windowHeight * 0.0939 ;
var westWidth = windowWidth * 0.125 ;
var westHeight = windowWidth - 75 ;
function changeBig () {
$(".layout-panel-west" ).css("width" , "0" );
$(".layout-panel-north" ).css({ "height" : "0" , "min-height" : "0" });
$(".layout-panel-center" ).css({
"width" : windowWidth,
"height" : windowHeight,
"left" : "0" ,
"top" : "0" ,
"margin-top" : 0
});
$(".transparent" ).css({
"width" : windowWidth,
"height" : windowHeight
});
}
全部代码
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns ="http://www.w3.org/1999/xhtml" >
<head id ="Head1" runat ="server" >
<title id ="title" > </title >
<meta http-equiv ="X-UA-Compatible" content ="IE=edge,chrome=1" />
<meta http-equiv ="pragma" content ="no-cache" />
<meta http-equiv ="Cache-Control" content ="no-cache, must-revalidate" />
<meta http-equiv ="expires" content ="0" />
<meta name ="viewport" content ="width=device-width, initial-scale=1" />
<link rel ="stylesheet" type ="text/css" href ="../../App_Themes/Default/all.css" />
<link rel ="stylesheet" href ="../../Content/ZtreeStyle/css/zTreeStyle/zTreeStyle.css" type ="text/css" />
<style type ="text/css" >
body
{
background : #2AA1FB ;
}
.accordion
{
background-color : transparent ;
border : 0 ;
font-family : '宋体' , '幼圆' , '黑体' ;
letter-spacing : 2 ;
}
.accordion .accordion-header
{
background : transparent url(../../App_Themes/MapTheme/custom/images/my-accordion-body.png) no-repeat 100 % 50 % ;
color : #fff ;
border : 0 ;
}
.accordion .accordion-header-selected
{
background : url(../../App_Themes/MapTheme/custom/images/accordion-header-selected.png) no-repeat 0 0 ;
color : #F1FFAE ;
}
.my-accordion-body
{
filter : chroma(color= #FF2222) ;
scrollbar-face-color : #FF2222 ;
scrollbar-shadow-color : #FF2222 ;
scrollbar-highlight-color : #8CB1D9 ;
scrollbar-3dlight-color : #8CB1D9 ;
scrollbar-darkshadow-color : #FF2222 ;
scrollbar-arrow-color : #FF2222 ;
scrollbar-base-color : #FF2222 ;
scrollbar-track-color : #FF2222 ;
}
.txt {font-family :"微软雅黑" !important ;}
#north {min-height :75 px ;}
#west {background-color :#fff ;}
.layout-button-left {display :none!important ;}
.info-custom >a {width : 100 px ;height :65 px ;text-align : center ;display :inline-block ;border-left :1 px solid #FFFFFF ;margin :5 px 0 0 0 ;color :#fff ;font-family :'微软雅黑' ;}
#toindex {float :left ;}
#outindex {float : right ;}
.info-custom i {width :100 % ;height :24 px ;display :inline-block ;margin :5 px 0 0 0 ;}
.info-custom span {width :100 % ;height :30 px ;line-height :30 px ;font-size :16 px ;font-family :"微软雅黑" ;text-align :center ;}
#toindex >i {background :url(../../App_Themes/Default/custom/images/toindex.png) no-repeat center center ;}
#outindex >i {background :url(../../App_Themes/Default/custom/images/outindex.png) no-repeat center center ;}
#toindex :hover ,#outindex :hover {opacity :.8 ;}
.panel-header {background-image :none ;border-top-right-radius :10 px ;}
.my-west-header .panel-title {margin-left :18 % ;}
.ztree li ul li a :hover {color :#67B2F5 ;background-color :#DCE0E3 ;}
.ztree li ul li a :hover .ztree li span .button .icon03_ico_docu {margin-right :15 px ;margin-left :10 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/cur17.png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li ul li a { width :100 % ;}
.ztree li ul {padding :0 ;}
.ztree li span .button { height :20 px !important ;background-image :url("../Content/images/left_menuForOutLook.png" ) ; *background-image :url("../Content/images/left_menuForOutLook.gif" ) }
.ztree li span .switch {display :none ;}
.ztree li span .button .noline_open {background-position : 0 0 ;}
.ztree li span .button .noline_close {background-position : -18 px 0 ;}
.ztree li span .button .noline_open .level0 {background-position : 0 -18 px ;}
.ztree li span .button .noline_close .level0 {background-position : -18 px -18 px ;}
.ztree li a :hover {text-decoration :none ;}
.ztree li span .button .pIcon01_ico_open , .ztree li span .button .pIcon01_ico_close {margin-right :15 px ;margin-left :10 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/14 .png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li span .button .pIcon02_ico_open , .ztree li span .button .pIcon02_ico_close {margin-right :15 px ; margin-left :10 px ;background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/13 .png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li span .button .pIcon03_ico_open , .ztree li span .button .pIcon03_ico_close {margin-right :15 px ;margin-left :10 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/15 .png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li span .button .pIcon04_ico_open , .ztree li span .button .pIcon04_ico_close {margin-right :15 px ;margin-left :10 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/16 .png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li span .button .pIcon05_ico_open , .ztree li span .button .pIcon05_ico_close {margin-right :15 px ;margin-left :10 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/11 .png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li span .button .icon02_ico_open , .ztree li span .button .icon02_ico_close {margin-right :15 px ;margin-left :10 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/18 .png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li span .button .Icon01_ico_docu {margin-right :15 px ;margin-left :10 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/10 .png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li span .button .icon03_ico_docu ,.ztree li span .button .icon02_ico_docu {margin-bottom :-4 px ; margin-right :10 px ;margin-left :43 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/17 .png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li span .button .icon03_ico_open ,.ztree li span .button .icon03_ico_close {margin-right :15 px ;margin-left :10 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/maps.png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li span .button .icon4_ico_docu {margin-right :15 px ;margin-left :10 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/maps.png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li {border-bottom :1 px solid #ccc ;}
.westMarginLeft {margin-left :-250 px ;}
.ztree li a span {margin-top :-8 px !important ; color :#5cb3ff ;}
.ztree li :hover a span { color :#fff ;}
.ztree li ul li a span { color :#5f6062 !important ;}
.ztree li ul li a { padding :0 !important ;}
@media \0 screen
{
#iframeWidth {width :100 % !important ;overflow :hidden ;}
.ztree li { margin :0 ; list-style :none ; line-height :40 px !important ; text-align :left ; white-space :nowrap ; outline :0 }
.ztree li a {padding :13 px 3 px 0 0 !important ; margin :0 ; cursor :pointer ; height :40 px ;color :#333 ; background-color : transparent ;text-decoration :none ; vertical-align :top ; display : inline-block ; }
.ztree li a span {font-size :20 px !important ;font-family :"微软雅黑" !important ; margin-top :-10 px !important ;line-height :25 px !important ;}
.ztree li ul li a { width :100 % ; height :35 px !important ; padding-top :10 px !important ;}
.ztree li ul li a span { color :#5f6062 !important ;font-size :18 px !important ;}
.ztree li span .button .icon03_ico_docu ,.ztree li span .button .icon02_ico_docu { margin-right :10 px !important ;margin-left :43 px !important ;}
}
@media only screen and (max-width: 1366 px)
{
#iframeWidth {width :100 % !important ;overflow :hidden ;}
.ztree *{font-size :15 px ;font-family :"微软雅黑" ;}
.ztree li span ,.ztree li a {height :44 px ;line-height :44 px ;}
.panel-title {font-size :15 px ;line-height :15 px ;color :#fff ;}
}
@media only screen and (min-width: 1367 px) and (max-width: 1600 px)
{
#iframeWidth {width :100 % !important ;overflow :hidden ;}
.ztree *{font-size :20 px ;font-family :"微软雅黑" ;}
.ztree li span ,.ztree li a {height :44 px ;line-height :44 px ;}
.ztree li a {padding :5 px 0 5 px 0 ;}
.panel-title {font-size :20 px ;line-height :22 px ;color :#fff ;}
.ztree li ul li a span { font-size :18 px ;}
}
@media only screen and (min-width: 1601 px) and (max-width: 1920 px)
{
#iframeWidth {width :100 % !important ;overflow :hidden ;}
.ztree *{font-size :20 px ;font-family :"微软雅黑" ;}
.ztree li span ,.ztree li a {height :44 px ;line-height :44 px ;}
.ztree li a {padding :5 px 0 5 px 0 ;}
.panel-title {font-size :20 px ;line-height :22 px ;color :#fff ;}
.ztree li ul li a span { font-size :18 px ;}
}
@media only screen and (min-width: 1921 px) and (max-width: 2560 px)
{
.ztree *{font-size :24 px ;font-family :"微软雅黑" ;}
.ztree li span ,.ztree li a {height :44 px ;line-height :44 px ;}
.panel-title {font-size :24 px ;line-height :26 px ;color :#fff ;}
.ztree li ul li a span { font-size :20 px ;}
.ztree li span .button .pIcon01_ico_open , .ztree li span .button .pIcon01_ico_close {width :20 px ;height :20 px ;margin-right :2 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/14 .png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li span .button .pIcon02_ico_open , .ztree li span .button .pIcon02_ico_close {width :20 px ;height :20 px ;margin-right :2 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/13 .png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li span .button .pIcon03_ico_open , .ztree li span .button .pIcon03_ico_close {width :20 px ;height :20 px ;margin-right :2 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/15 .png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li span .button .pIcon04_ico_open , .ztree li span .button .pIcon04_ico_close {width :20 px ;height :20 px ;margin-right :2 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/16 .png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li span .button .pIcon05_ico_open , .ztree li span .button .pIcon05_ico_close {width :20 px ;height :20 px ;margin-right :2 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/11 .png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li span .button .icon02_ico_open , .ztree li span .button .icon02_ico_close {width :20 px ;height :20 px ;margin-right :2 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/18 .png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li span .button .Icon01_ico_docu {width :20 px ;height :20 px ;margin-right :2 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/10 .png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li span .button .icon03_ico_docu ,.ztree li span .button .icon02_ico_docu {width :20 px ;height :20 px ;margin-right :2 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/17 .png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li span .button .icon03_ico_open ,.ztree li span .button .icon03_ico_close {width :20 px ;height :20 px ;margin-right :2 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/maps.png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
.ztree li span .button .icon4_ico_docu {width :20 px ;height :20 px ;margin-right :2 px ; background : url(../Content/ZtreeStyle/css/zTreeStyle/img/diy/maps.png) no-repeat scroll center center transparent ; vertical-align :middle ; *vertical-align :middle }
}
.ztree li a {vertical-align :middle ;}
.ztree li ul li {border :none ;}
.west-header {height :32 px ;line-height :32 px ;background :#fff ;color :#54B6FF ;padding-left :45 px ;font-size :20 px ;font-weight :600 ; border-bottom :1 px solid #ccc ; font-family :"微软雅黑" ;}
a #ChooseBtn {
cursor :pointer ;
background :url(../../App_Themes/Default/custom/images/fullscreen.png) no-repeat center center ;
position :fixed ;
right :24 px ;
display :block ;
height :30 px ;
width :24 px ;
color :white ;
font-family :'微软雅黑' ;
; }
a #ChooseBtn :hover { opacity : .8 ;}
</style >
<script type ="text/javascript" src ="../../Scripts/jquery-1.4.1.min.js" > </script >
<script type ="text/javascript" src ="../../Scripts/jquery.easyui.min.js" > </script >
<script type ="text/javascript" src ="../../Scripts/jquery.ztree.core-3.5.js" > </script >
<script type ="text/javascript" >
function title () {
$.ajax({
type: "POST" ,
dataType: "json" ,
url: "/UserRole/GetSecuritySituationForHomePage" ,
data: "AreaID=" + Index.getCookie("AreaID" ),
error: function (msg) { },
success: function (msg) {
var AreaName = msg.AreaName;
var cookieLogo = $("#cookieLogo" );
$("#title" ).html(AreaName + "移动智慧安防平台" );
cookieLogo.text(AreaName + "移动智慧安防平台" );
}
});
}
var test = 1 ;
var Index = {};
Index.getCookie = function (name) {
var bikky = document.cookie;
name += "=" ;
var i = 0 ;
while (i < bikky.length) {
var offset = i + name.length;
if (bikky.substring(i, offset) == name) {
var endstr = bikky.indexOf(";" , offset);
if (endstr == -1 ) endstr = bikky.length;
return unescape (bikky.substring(offset, endstr));
}
i = bikky.indexOf(" " , i) + 1 ;
if (i == 0 ) break ;
}
return null ;
}
Index.AObject = function (e, treeId, treeNode) {
var ObjOCX = window.frames['mainIframe' ];
try {
ObjOCX.StopAllPlay();
ObjOCX.g_ObjOCX.StopPatrolRealPlay();
} catch (e) { }
try {
ObjOCX.stopLXyls();
} catch (e) { }
try {
ObjOCX.Video.stopLXyls();
} catch (e) { }
}
$(function () {
title();
$.ajax({
type: "POST" ,
dataType: "json" ,
url: "/Main/../Main/GetUserCookie" ,
data: "" ,
error: function (msg) { },
success: function (msg) {
$("#admin" ).html(msg.Message);
}
});
myTime();
$('body' ).layout();
$('body' ).css('visibility' , 'visible' );
var indexMeun_setting = {
view: {
showLine: false ,
selectedMulti: false ,
dblClickExpand: false
},
data: { simpleData: { enable: true } },
callback: { onClick: Index.AObject }
};
$("#addIndex" ).show();
$.ajax({
type: "POST" ,
dataType: "json" ,
async: true ,
url: "/UserRole/GetMenuList2" ,
data: "RoleID=" + Index.getCookie("RoleID" ),
error: function (msg) { alert("加载菜单失败!" ); },
success: function (msg) {
$.fn.zTree.init($("#index_Meun" ), indexMeun_setting, Index.toZtree(msg.rows));
var data = msg.rows;
$(data).each(function (k, v) {
});
$("#addIndex" ).hide();
$(".ztree li" ).mousemove(function () {
$(this ).css("background-color" , "#2ba2fc" );
$(this ).children("a:first" ).css({ "background-color" : "#2ba2fc" , "color" : "#fff" });
$(".ztree li ul" ).css("background-color" , "#fff" );
$(this ).children(".noline_close" ).css("background-position" , "0 -18px" );
}).mouseleave(function () {
$(this ).css("background-color" , "#fff" );
$(this ).children("a:first" ).css({ "background-color" : "#fff" , "color" : "black" });
$(this ).children(".noline_close.level0" ).css({
"background-position" : "-18px -18px"
})
});
$(".ztree li a" ).click(function () {
if ($(this ).prev().hasClass("noline_close" ) == true ) {
$(this ).prev().removeClass("noline_close" ).addClass("noline_open" );
} else {
$(this ).prev().removeClass("noline_open" ).addClass("noline_close" );
}
$(this ).prev().trigger('click' );
});
}
});
function stopDefault (e) {
if (e && e.preventDefault)
e.preventDefault();
else window.event.returnValue = false ;
return false ;
}
});
Index.toZtree = function (Json) {
var ZtreeJson = [];
var nub = -1 ;
var test;
$(Json).each(function (k, v) {
if (v.IsShow) {
nub++;
ZtreeJson[nub] = { "id" : v.ID, "pId" : v.ParentID, "name" : v.MenuName, "url" : v.ViewLink.url, "target" : "myIframe" , "iconSkin" : v.Icon };
}
})
return ZtreeJson;
}
function withdraw (URL) {
$.ajax({
type: "POST" ,
dataType: "json" ,
url: "/Main/OutIndex" ,
data: "" ,
error: function (msg) { },
success: function (msg) {
window.location.href = URL;
}
});
}
function myTime () {
var mydate = new Date ();
var myday = mydate.getDay();
switch (myday) {
case 0 : myday = "星期天" ;
break ;
case 1 : myday = "星期一" ;
break ;
case 2 : myday = "星期二" ;
break ;
case 3 : myday = "星期三" ;
break ;
case 4 : myday = "星期四" ;
break ;
case 5 : myday = "星期五" ;
break ;
case 6 : myday = "星期六" ;
break ;
}
}
var ChooseBtnStatu = true ;
function changeWindows () {
var ChooseBtn = document.getElementById('ChooseBtn' );
var barLeftParent = window.frames['myIframe' ].document.getElementById("bar_left" );
if (ChooseBtnStatu == true ) {
$("#showNav" ).hide();
ChooseBtn.style.backgroundImage = 'url(../../App_Themes/Default/custom/images/windowMode.png)' ;
$("#ChooseBtn" ).attr("title" , "退出全屏" )
changeBig();
document.getElementById('iframeWidth' ).style.marginLeft = "0" ;
ChooseBtnStatu = false ;
} else {
$("#showNav" ).show();
ChooseBtn.style.backgroundImage = 'url(../../App_Themes/Default/custom/images/fullscreen.png)' ;
$("#ChooseBtn" ).attr("title" , "点击全屏" )
reset();
document.getElementById('iframeWidth' ).style.marginLeft = "5px" ;
ChooseBtnStatu = true ;
}
barLeftParent = null ;
}
var windowWidth = $(window).width();
var windowHeight = $(window).height();
var northHeight = windowHeight * 0.0939 ;
var westWidth = windowWidth * 0.125 ;
var westHeight = windowWidth - 75 ;
function changeBig () {
$(".layout-panel-west" ).css("width" , "0" );
$(".layout-panel-north" ).css({ "height" : "0" , "min-height" : "0" });
$(".layout-panel-center" ).css({
"width" : windowWidth,
"height" : windowHeight,
"left" : "0" ,
"top" : "0" ,
"margin-top" : 0
});
$(".transparent" ).css({
"width" : windowWidth,
"height" : windowHeight
});
}
function changeBig2 () {
$("#west" ).removeClass("westMarginLeft" );
$(".layout-panel-center" ).css({
"width" : windowWidth,
"height" : windowHeight,
"left" : "0"
});
$(".layout-panel-center .transparent" ).css({
"width" : windowWidth,
"height" : windowHeight
});
}
function reset () {
$("#west" ).removeClass("westMarginLeft" );
$(".layout-panel-north" ).css({ "height" : northHeight, "min-height" : "75px" });
$(".layout-panel-center" ).css({
"width" : windowWidth - $("#west" ).width(),
"height" : windowHeight - northHeight + 13 ,
"min-height" : windowHeight - $(".layout-panel-north" ).height() + 13 ,
"left" : $("#west" ).width(),
"top" : 75
});
$(".layout-panel-center .transparent" ).css({
"width" : windowWidth - $("#west" ).width(),
"height" : windowHeight - northHeight + 13
});
myIframe.window.location.reload();
}
function resetHome () {
document.getElementById("indexNorth" ).style.display = 'block' ;
$("#west" ).removeClass("westMarginLeft" );
$("#west" ).css({ "height" : windowHeight - 75 });
if (windowWidth <= 2400 ) {
$(".layout-panel-center" ).css({
"width" : windowWidth - $("#west" ).width(),
"height" : windowHeight - 75 ,
"left" : $("#west" ).width(),
"marign-top" : 75
});
$(".layout-panel-center .transparent" ).css({
"width" : windowWidth - westWidth,
"height" : windowHeight - 60
});
} else {
$(".layout-panel-center" ).css({
"width" : 2555 ,
"height" : windowHeight - 75 ,
"left" : $("#west" ).width(),
"marign-top" : 75
});
$(".layout-panel-center .transparent" ).css({
"width" : 2555 ,
"height" : windowHeight - 60
});
}
}
function toindex () {
var indexNorth = document.getElementById("indexNorth" );
indexNorth.style.display = "none" ;
document.getElementById('iframeWidth' ).style.marginLeft = "0" ;
}
var resizeTimer = null ;
window.onresize = function () {
resizeTimer = resizeTimer ? null : setTimeout(doResize, 0 );
}
function doResize () {
};
var getCookieLogout = getCookie("SelectPlace" );
function getCookieLogout () {
$.ajax({
type: "POST" ,
dataType: "json" ,
url: "/UserRole/GetSecuritySituationForHomePage" ,
data: "AreaID=" + Index.getCookie("AreaID" ),
error: function (msg) { },
success: function (msg) {
var AreaName = msg.AreaName;
getCookieLogout = AreaName;
function setCookie (c_name, value) {
var Days = 30 ;
var exdate = new Date ();
exdate.setTime(exdate.getTime() + Days * 24 * 60 * 60 * 1000 );
document.cookie = c_name + "=" + getCookieLogout + ";expires=" + exdate.toGMTString() + ";path=/" ;
alert(document.cookie);
}
return setCookie();
}
});
}
window.onload = function () {
function getCookie (c_name) {
if (document.cookie.length > 0 ) {
var c_start = document.cookie.indexOf(c_name + "=" );
if (c_start != -1 ) {
c_start = c_start + c_name.length + 1 ;
c_end = document.cookie.indexOf(";" , c_start);
if (c_end == -1 ) {
c_end = document.cookie.length;
}
return unescape (document.cookie.substring(c_start, c_end));
}
}
}
}
</script >
</head >
<body >
<div region ="north" border ="false" id ="north" class ="transparent" style ="height:75px;" >
<div class ="logo-custom" id ="logo_custom" >
<%= System.Configuration.ConfigurationManager.AppSettings["WebSiteName" ] %> </div > <span id ="cookieLogo" style =" font-size:40px;color:#fff; font-family:'微软雅黑'; display:inline-block; margin-top:9px;margin-left:20px;" > </span >
<div class ="info-custom" >
<a href ="/Main/HomePage" target ="myIframe" onclick ="toindex();" id ="toindex" > <i > </i > <span > 首页</span > </a >
<a href ="/Main/Logout" id ="outindex" onclick =" getCookieLogout()" > <i > </i > <span > 退出</span > </a >
</div >
<div >
</div >
</div >
<%-- headercls="my-west-header" --%>
<div class ="westMarginLeft" style ="width:240px;margin-top:75px; overflow: auto; height:100%;" id ="west" border ="false" iconcls ="iwestHcon-" >
<div class ="west-header" > 系统菜单</div >
<div id ="index_Meun" class ="ztree" fit ="true" border ="false" >
<div id ="addIndex" style ="display:none; overflow:auto;" > <img src ="../../Content/jquery-easyui-1.4/themes/default/images/loading.gif" /> 正在加载菜单</div >
</div >
</div >
<div id ="iframeWidth" region ="center" class ="transparent" border ="false" > <%--style="overflow:hidden;" --%>
<div id ="indexNorth" style ="height:32px;background:#fff;display:none; border-bottom:1px solid #ccc;" >
<span id ="showNav" onclick ="resetHome();" title ="点击展开菜单" style ="float:left;margin:4px;cursor:pointer;height:24px;width:24px;color:white;background:url(../../App_Themes/Default/custom/images/showNav.png) no-repeat;" > </span >
<a id ="ChooseBtn" onclick ="changeWindows()" title ="点击全屏" > </a >
<span id ="ChooseBtnText" style ="display:none;" > 窗口</span >
</div >
<iframe name ="myIframe" id ="mainIframe" class ="myIframe" frameborder ="0" src ="/Main/HomePage" style ="background-color: transparent;" allowTransparency ="true" >
</iframe >
</div >
<%--<iframe scrolling="no" frameborder="0" marginwidth="0" marginheight="0" style="width:58px;height: 30px; position: absolute;right:3%; top:24px;background: #0C4169;filter='Alpha(style=0,opacity=0)'; z-index:9999;" src="" ></iframe>--%>
</body >
</html >