<%@ Page Language="c#" Inherits="Web.Wpdcc.saveTemplates" CodeBehind="saveTemplate.aspx.cs" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title>saveTemplate</title>
    <script language="javascript">
	function place(name)
	{
	 
	 var index=name.selectedIndex;
	 document.system.templateName.value=name.options[index].text;
	
	 
	}
    </script>

    <link href="../Css/Admin_STYLE.CSS" type="text/css" rel="stylesheet">
</head>
<body leftmargin="0" topmargin="0">
    <form id="system" method="post" runat="server">
    <table id="Table1" style="width: 232px; height: 334px" cellspacing="0" cellpadding="0"
        width="232" border="0">
        <tr height="10">
            <td width="10">
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td width="10">
                &nbsp;
            </td>
            <td background="Images/admin.gif">
                <p align="center">
                    <asp:Label ID="info" runat="server" ForeColor="Red" Font-Size="Medium">Label</asp:Label></p>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td bgcolor="#e8e8e8">
                <font face="宋体">
                    <asp:ListBox ID="templateListBox" runat="server" Height="200px" Width="216px" onchange="place(this)"
                        DataValueField="pkId" DataTextField="name"></asp:ListBox>
                </font>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td bgcolor="#e8e8e8">
                <font face="宋体">&nbsp;</font>
                <table id="Table2" style="width: 208px; height: 90px" cellspacing="1" cellpadding="1"
                    width="208" border="0">
                    <tr>
                        <td>
                            <asp:Label ID="nameLabel" runat="server">保存模板名称：</asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="templateName" runat="server"></asp:TextBox><asp:Button ID="save"
                                runat="server" Text="保存" OnClick="save_Click"></asp:Button>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:CheckBox ID="bestrowTemplate" runat="server" Text="覆盖现有模板"></asp:CheckBox><font
                                face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredInfo" runat="server" ControlToValidate="templateName"
                                ErrorMessage="模板名称不能为空！"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p align="center">
                                <asp:Button ID="delTemplate" runat="server" Text="删除选中模板" OnClick="delTemplate_Click">
                                </asp:Button></p>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
