<%@ page language="C#" masterpagefile="~/SiteServer/MasterPage/PageTemplate.Master" autoeventwireup="true" inherits="SiteServer_Extension_SinglePage_edit, v5star.Web" title="Untitled Page" theme="Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" Runat="Server">
    <aspx:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server" ButtonList-Capacity="4"
        HeadTitleTxt="单页管理">
        <aspx:HeadMenuButtonItem ButtonIcon="back.gif" ButtonName="返回" ButtonPopedom="List"
            ButtonUrl="list.aspx" ButtonUrlType="Href" ButtonVisible="True" />
    </aspx:HeadMenuWebControls>
    <aspx:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
        <aspx:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="详细信息">
        <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                <tr>
                    <td class="table_title" colspan="2">
                        详细信息
                    </td>
                </tr>
                <tr>
                    <td align="right" class="table_body table_body_NoWidth" style="width:80px;">
                        单页名称：</td>
                    <td class="table_none table_none_NoWidth"  style="width:80%;">
                        <asp:TextBox ID="txtPageName" runat="server"  title="请输入单页名称，长度不超过50个汉字~50:!"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" class="table_body table_body_NoWidth" style="width: 80px" >
                        单页文件名：</td>
                    <td class="table_none table_none_NoWidth" >
                        <asp:TextBox ID="txtPageFile" runat="server" title="请输入单页文件名~20:!"></asp:TextBox>
                        以.htm结尾，如：test.htm</td>
                </tr>
                <tr>
                    <td align="right" class="table_body table_body_NoWidth" >
                        模板文件：</td>
                    <td class="table_none table_none_NoWidth" style="white-space:nowrap;">
                        <asp:TextBox ID="txtPageTemplate" runat="server" title="如果选择了模板，生成页面使将以这个模板页生成文件。~50:!" Width="65%"></asp:TextBox>
                        <input id="button4" class="cbutton" name="buttonselect" onclick="javascript:ShowTempID()"
                            type="button" value="选择模板" />
                        <input class="cbutton" onclick="javascript:ClearTempVal();" type="button" value="清除" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                    </td>
                </tr>
                <tr>
                    <td align="right" colspan="2">
                        <asp:Button ID="btnSave" runat="server" CssClass="button_bak" Text="确定" OnClick="btnSave_Click" />
                        <input id="Reset1" class="button_bak" type="reset" value="重填" />&nbsp;
                    </td>
                </tr>
            </table>
        </aspx:TabOptionItem>
    </aspx:TabOptionWebControls>
    <script type="text/javascript">
        function openWin(u, w, h) {
            var l = (screen.width - w) / 2;
            var t = (screen.height - h) / 2;
            var s = 'width=' + w + ', height=' + h + ', top=' + t + ', left=' + l;
            s += ', toolbar=no, scrollbars=yes, menubar=no, location=no, resizable=no';
            window.open(u, 'oWin', s);
        }
         function ShowTempID() {          
            openWin("ShowTemplate.aspx", 400, 300);
        }
        function ClearTempVal() {       
            $("#<%=this.txtPageTemplate.ClientID %>").val("");      
        }
    </script>
</asp:Content>

