<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="FloatingDialog.ascx.cs"
    Inherits="PowerEasy.Module.General.WebSite.Admin.Controls.Common.FloatingDialog" %>
<pe:ExtendedLiteral ID="LitText" HtmlEncode="false" runat ="server"></pe:ExtendedLiteral>
<div id="floatingDialog<%=m_JSPrefix%>" style="position:absolute;width: <%=m_Width+20%><%=m_Units%>; height: <%=m_Height%><%=m_Units%>; display:none; "
    class="floatingDialog">
    <div id="floatingDialog_handle<%=m_JSPrefix%>" class="fdtop floatingDialog_handle">
        <dl>
            <dd>
                <ul>
                    <li class="close"><a id="close<%=m_JSPrefix%>" href="javascript:" title="关闭" class="floatingDialogClose"></a></li>
                    <li class="title"><%=m_Title%></li>
                </ul>
            </dd>
        </dl>
    </div>
    <div id="floatingDialog_content<%=m_JSPrefix%>" class="floatingDialog_content">
    </div>
    <div class="fdbottom"><dl><dt></dt></dl></div>
    <asp:HiddenField ID="HdnLoadUrl" runat="server" />
    <script type="text/javascript">

    function <%=m_JSPrefix%>BtnClick(path)
	{
	    var width = <%=m_Width%>-10;
        var height = <%=m_Height%>-30;
        
        if(path==null||path=='')
        {
         path=jQuery('#<%=HdnLoadUrl.ClientID%>').val();
        }
        jQuery('#floatingDialog_content<%=m_JSPrefix%>')[0].innerHTML = "<iframe marginwidth=0 marginheight=0 frameborder=0  width='" + width + "<%=m_Units%>' height='" + height + "<%=m_Units%>' src='"+path +"'></iframe>";
	}

    function <%=LitText.ClientID%>_Init()
    {
        jQuery("#floatingDialog<%=m_JSPrefix%>").floatForm({controlTag:"#<%=LitText.ClientID%>"});  
        
        jQuery('#<%=LitText.ClientID%>').bind("click",function()
        {
            <%=m_JSPrefix%>BtnClick(<%=PreExecuteJs %>)
        });    
    }

	jQuery(document).ready(function(){
        <%=LitText.ClientID%>_Init();
	});

//	function <%=m_JSPrefix%>BtnClick()
//	{
//	    var width = <%=m_Width%>-10;
//        var height = <%=m_Height%>-30;
//        var path=jQuery('#<%=HdnLoadUrl.ClientID%>').val();
//        jQuery('#floatingDialog_content<%=m_JSPrefix%>')[0].innerHTML = "<iframe marginwidth=0 marginheight=0 frameborder=0  width='" + width + "<%=m_Units%>' height='" + height + "<%=m_Units%>' src='"+path +"'></iframe>";
//	}



    
</script>
<iframe id="iframe_IE6_Z-Index<%=m_JSPrefix%>" width="<%=m_Width%>" frameborder=0 height="<%=m_Height%>" style="position:absolute; top:5px; left:3px; z-index:-1; border-style:none;"></iframe>
</div>
