<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="JuSNS.Web.app.frame.index" %>

<!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>
    <title id="ptitle" runat="server">应用</title>
    <script type="text/javascript" src="../../js/ajax.js"></script>
    <script type="text/javascript" src="../../js/public.js"></script>
    <link href="../../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/css/base.css"
        id="skinpath" type="text/css" rel="stylesheet" />
</head>
<body>
    <!--头部-->
    <%=this.GetHtmlShort()%>
    <div id="divhead">
        <%=this.GetHtmlHead()%>
    </div>
    <div id="divbody">
        <div id="body_first">
            <div class="body_menu">
                <%=this.GetHtmlLeft()%>
            </div>
        </div>
        <div id="body_sec">
            <div id="body_mid">
                <div class="body_frame">
                    <!--主题内容中-->
                    <div id="errmsg"></div>
                    <iframe id="ifr" width="100%" onunload="this.height=100%;" onload="sns_iframeResize();sns_Scrolliframe();" frameborder="0" height="600px"  scrolling="no" src="<%=url%>"></iframe>
                    <div class="spline">
                    </div>
                </div>
            </div>
            <!--底部-->
            <div class="divbottom">
                <%=this.GetHtmlFoot()%>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="../js/2.js"></script>
</body>
</html>
 <script language="JavaScript" type="text/javascript">
        function sns_Scrolliframe()
        {
	        document.body.scrollTop=0;
        }
        var resizeflag='1';

        function sns_iframeResize()
        {  
	        var dyniframe   = null;
	        var indexwin    = null;

	        if (document.getElementById)
	        {
		        dyniframe       = document.getElementById("ifr");
		        indexwin        = window;
		        if (dyniframe)
		        {
			        if(resizeflag=='0'){resizeflag='1';dyniframe.height="800";return false}
			        if (dyniframe.contentDocument){
				        dyniframe.height = dyniframe.contentDocument.body.scrollHeight + 80;
			        }
			        else if (dyniframe.document && dyniframe.document.body.scrollHeight)
			        {
				        iframeheight	= document.body.scrollHeight + 80;
				        dyniframe.height = iframeheight;
			        }
		        }
	        }
        }
        if (window.addEventListener)
        {
            window.addEventListener("load", sns_iframeResize, false)
        }
        else if (window.attachEvent)
        {
            window.attachEvent("onload", sns_iframeResize)
        }
        else
        {
            window.onload=sns_iframeResize	
        }
    </script>
