<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="OAWeb.Modules._default" Title="无标题页" Theme="Default" EnableViewState="true" %>

<%@ Register Src="leftMenu.ascx" TagName="leftMenu" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" runat="server">

    <script language="Javascript" type="text/javascript">
    
        var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
        //extra height in px to add to iframe in FireFox 1.0+ browsers
        var FFextraHeight=getFFVersion>=0.1? 16 : 0 
        window.onload=function dyniframesize(iframename) {
        var pTar = null;
        if (document.getElementById){
        pTar = document.getElementById(iframename);
        }
        else{
        eval('pTar = ' + iframename + ';');
        }
        if (pTar && !window.opera){
        //begin resizing iframe
        pTar.style.display="block"

        if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight){
        //ns6 syntax
        pTar.height = pTar.contentDocument.body.offsetHeight+FFextraHeight; 
        }
        else if (pTar.Document && pTar.Document.body.scrollHeight){
        //ie5+ syntax
        pTar.height = pTar.Document.body.scrollHeight;
        }
        }
        }
    </script>

    <table style=" margin-left:5%;  width:80%">
        <tr>
            <td class="tb-label w200px" valign="top">
                <uc1:leftMenu ID="leftMenu1" runat="server" />
            </td>
            <td class="tb-label" valign="top" align="left">
                <iframe id="iframeContent" name="iframeContent" width="100%" onload="javascript:{dyniframesize('iframeContent');}" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" ></iframe>
            </td>
        </tr>
    </table>
</asp:Content>
