<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CMSLeft.aspx.cs" Inherits="CY.WebForm.Pages.common.CMSLeft" %>
|
|
<!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 runat="server">
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<title>左侧菜单</title>
|
<link href="../../css/base.css" rel="stylesheet" type="text/css" />
|
<link href="../../css/admin.css" rel="stylesheet" type="text/css" />
|
<script src="../../js/utils/jquery-1.5.1.js" type="text/javascript"></script>
|
<style type="text/css">
|
a { cursor: pointer; }
|
.icon_btn_down { background-image: url("../../images/Common/h2_H_Cms.gif"); background-position: 140px 8px; background-repeat: no-repeat; display: block; float: left; padding: 0 5px 0 18px; word-break: keep-all; word-wrap: normal; width: 100%;}
|
.icon_btn_down:hover{ background-image: url("../../images/Common/h2_H_Cms.gif"); background-position: 140px -41px; background-repeat: no-repeat; display: block; float: left; padding: 0 5px 0 18px; word-break: keep-all; word-wrap: normal; width: 100%;}
|
.icon_btn_up { background-image: url("../../images/Common/h2_H_Cms.gif"); background-position: 140px -41px; background-repeat: no-repeat; display: block; float: left; padding: 0 5px 0 18px; word-break: keep-all; word-wrap: normal; width: 100%;}
|
</style>
|
<script type="text/javascript">
|
$(function () {
|
$("#menu").find("dt").click(function () {
|
$(this).parent().parent().find("dd").hide();
|
$(this).parent().find("dd").fadeIn(500);
|
$(this).parent().parent().find("span").removeClass("icon_btn_up");
|
$(this).parent().parent().find("span").addClass("icon_btn_down");
|
$(this).parent().parent().find("dl").removeClass("active");
|
$(this).parent().addClass("active");
|
$(this).find("span").removeClass("icon_btn_down");
|
$(this).find("span").addClass("icon_btn_up");
|
});
|
$("#menu").find("li").find("a").click(function () {
|
$(".Aselected").removeClass("Aselected");
|
$(this).addClass("Aselected");
|
var Parentstitle = $(this).parent().parent().parent().parent().find("dt").text();
|
var Sontitle = $(this).text();
|
$('#ParentsName', window.parent.document).html(Parentstitle);
|
$('#SonName', window.parent.document).html(Sontitle);
|
|
var abc = $(this).attr("url");
|
if (abc != "") {
|
window.parent.parent.parent.showWaitDiv();
|
$("#frmright", window.parent.document).attr("src", abc)
|
} else {
|
window.parent.parent.alertMsg("此功能 [" + Sontitle + "] 完善中,敬请期待");
|
}
|
$("#menu").find("li").removeClass("active");
|
$(this).parent().addClass("active");
|
});
|
|
var Height = $('#frmleft', window.parent.document).height();
|
$("#Scroll").height(Height);
|
$("#menu").find("dl").first().addClass("active");
|
$("#menu").find("span").first().removeClass("icon_btn_down");
|
$("#menu").find("span").first().addClass("icon_btn_up");
|
if ('<%=Request["i"] %>' != '1') {
|
$("#menu").find("li").first().find("a").click();
|
}
|
});
|
</script>
|
</head>
|
<body style="background-color: #FFFFFF;">
|
<div id="Scroll">
|
<div id="menu" class="menu_list">
|
<%=LeftMenusHtml%>
|
</div>
|
</div>
|
</body>
|
</html>
|