<%@ Page Language="C#" AutoEventWireup="true" Inherits="PowerEasy.Module.General.WebSite.Admin.Accessories.TemplateList"
    CodeBehind="TemplateList.aspx.cs" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>文件管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 100%; height: 85%" border="0" cellpadding="2" cellspacing="0"
            class="border">
            <tr style="height: 100%; width: 100%">
                <td class="tdbg" align="center" valign="top" style="width: 30%;">
                    <iframe id="fileList" name="fileList" scrolling="yes" style="width: 100%; height: 100%"
                        src="TemplateTree.aspx" frameborder="0"></iframe>
                </td>
                <td class="tdbg" align="left" valign="top" colspan="2" style="width: 70%;">
                    <iframe id="template_main_right" name="template_main_right" scrolling="yes" style="width: 100%; height: 100%"
                        src="ShowTemplates.aspx" frameborder="0" marginheight="0" marginwidth="1"></iframe>
                </td>
            </tr>
        </table>
        <table style="width: 100%;" border="0" cellpadding="2" cellspacing="0"
            class="border">
            <tr class="title" style="height: 22;">
                <td style="width: 103px" align="right">
                    文件名称：
                </td>
                <td align="left">
                    <input type="text" id="FileName" size="60" style="height: 22px;" readonly="readOnly"
                        class="inputtext" />
                    <input type="hidden" id="ParentDirText" />
                    <asp:HiddenField ID="HdnParentDir" runat="server" />
                </td>
                <td align="center" style="width: 177px">
                    <input type="button" class="inputbutton" id="BtnSubmit" value="　确定　" onclick="add()" />
                    <input type="button" class="inputbutton" id="BtnCancel" value="　取消　" onclick="closefloatDivDialog()" />
                </td>
            </tr>
        </table>
    </div>
    </form>

    <script language="javascript" type="text/javascript">

        function add() {
            if (document.getElementById('FileName').value == null || document.getElementById('FileName').value == "") {
                alert("请选着一个模板");
            }
            else {
                parent.document.getElementById('<%= FilePathInput %>').value = document.getElementById('FileName').value;
                parent.document.getElementById('<%= CloseByID %>').style.display = "none";
                if (parent.document.getElementById('jqDnrFloatDivBg')) {
                    parent.document.getElementById('jqDnrFloatDivBg').style.display = "none";
                }
                
            }


        }
        function closefloatDivDialog() {
            parent.document.getElementById('<%= CloseByID %>').style.display = "none";
            if (parent.document.getElementById('jqDnrFloatDivBg')) {
                parent.document.getElementById('jqDnrFloatDivBg').style.display = "none";
            }
        }
    </script>

</body>
</html>
