<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Index.aspx.cs" Inherits="System_SystemFrame_Index" %>

<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="templet/Default/silverStyle.css" />
<script type="text/javascript" src="../../Scripts/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/AmysqlFun.js"></script>
<script type="text/javascript" src="js/AmysqlConfig.aspx"></script>
<script type="text/javascript" src="js/AmysqlMain.js"></script>

<script type="text/javascript" src="js/PlugIn/PluginManage/AmysqlPluginManage.js"></script>
<script type="text/javascript" src="js/PlugIn/AllTag/AmysqlAllTag.js"></script>
<!--
<script type="text/javascript" src="js/PlugIn/NewTag/AmysqlNewTag.js"></script>
<script type="text/javascript" src="js/PlugIn/AmysqlRecoveryTag.js"></script>

<script type="text/javascript" src="js/PlugIn/AmysqlNextTag.js"></script>
<script type="text/javascript" src="js/PlugIn/AmysqlPreviousTag.js"></script>
<script type="text/javascript" src="js/PlugIn/AmysqlCloseTag.js"></script>
-->
<script>
    /**
    **** Amysql Framework 框架总体结构 *********************************
    *
    *----- 程序加载顺序 ----------------------------------
    *
    *		- AmysqlContent -> AmysqlTag -> AmysqlLeft
    *
    *----- 操作流程 ----------------------------------
    *
    *		- AmysqlContent.html		创建 内容对象		AmysqlContent
    *		- AmysqlTag.html			创建 标签对象		AmysqlTab
    *		- AmysqlLeft.html			创建 列表内容对象		Amysql

    *		- AmysqlLeft.html -> Amysql对象触发 -> 增加标签至 AmysqlTab 对象 -> 增加内容项至 AmysqlContent 对象
    *
    ****************************************************************
    */


    // 控制整体加载开始 ***************
    window.onload = function () {
        G("AmysqlContent").src = _ContentUrl;
        _AmysqlContent = window.frames.AmysqlContent;
        _AmysqlLeft = window.frames.AmysqlLeft;
        _AmysqlTag = window.frames.AmysqlTag;
    }
    function test() {
        //var AmysqlTabObject = new AmysqlTab();
        //AmysqlMainObject.add(new AmysqlTabItem('', '1237', 'testU', 'http://www.baidu.com'));
        OpenWindow('Activate', '379', 'test', 'http://www.baidu.com');
    }
    //退出系统
    function log_out() {
        if (!confirm("确定要退出系统吗?")) return;
        $.ajax({
            type: "POST",
            url: "LogOut.aspx",
            data: "",
            success: function (data) {
                if (data == "success") {
                    window.location = "../../";
                }
            }
        });
    }

    $(document).ready(function () {
        //60秒提交一次,防止session超时
        //setInterval("prevent_session_time_out()", 60000);
    });


    window.onbeforeunload = function () {
        $.ajax({
            type: "POST",
            url: "LogOut.aspx",
            data: "",
            success: function (data) {
                if (data == "success") {
                }
            }
        });
    }
    //禁止F5刷新
    document.onkeydown = function (ev) {
        var oEvent = ev || event;
        if (oEvent.keyCode == 116) {
            if (!/firefox/i.test(window.navigator.userAgent)) oEvent.keyCode = 0;
            oEvent.cancelBubble = true;
            return false;
        }
    };

</script>
</head>
<frameset rows="31,*" cols="*" border="0" framespacing="0">
	<frame  name="AmysqlTag" id="AmysqlTag" scrolling="No" frameborder="0" border="0" noresize >
	<frameset rows="*" cols="150,*" border="0"  framespacing="0">
		<frame  name="AmysqlLeft"  id="AmysqlLeft" frameborder="0" border="0" >
		<frame  scrolling="No" name="AmysqlContent" id="AmysqlContent"  frameborder="0" border="0">
	</frameset>
</frameset>
</html>
