<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="webformdetailmanage.aspx.cs"
    Inherits="Us.Web.admin.webform.webformdetailmanage" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>表单项目管理</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />

    <link href="../style/default/style.css" rel="stylesheet" type="text/css" />
<%=ImportScriptStr %>
    <asp:Literal ID="litregscript" runat="server" Text=""></asp:Literal>
    <script language="javascript" type="text/javascript">
        function changeState(sType) {
            if (sType == "1" || sType == "2" || sType == "3" || sType == "5") {

                $("#drpFDAuthentication")[0].selectedIndex = 1;
                $("#drpFDAuthentication").attr("disabled", "disabled");
                $("#drpFDAuthenticationType").attr("disabled", "disabled");
                $("#txtFDAuthenticationError").attr("disabled", "disabled");
            }
            else {
                $("#drpFDAuthentication").attr("disabled", "");
                $("#drpFDAuthenticationType").attr("disabled", "");
                $("#txtFDAuthenticationError").attr("disabled", "");
            }
        }
        $(document).ready(function() {
            $("#topURLul").children().click(function() {
                $(this).siblings().removeClass().end().addClass("divURLed");
                $("#mypanel").children().css("display", "none");
                $("#d" + this.id).css("display", "");

                //alert(this.id);
            });
            $("#topURLul").children().hover(
              function() {
                  $(this).addClass("divURLon");
                  //akon(this);
              },
              function() {
                  if ($(this).attr("class") != "divURLed") {
                      $(this).removeClass("divURLon");
                  }
              }
            );

            $("#drpFDType").change(function() {
                var sType;
                sType = $(this).val();
                changeState(sType);
                //alert(sType);
            });
            changeState($("#drpFDType").val());
        });
    </script>

</head>
<body onload="win_onLoad();">
    <form id="Form1" method="post" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div id="tbMain">
                <div class="divTbg">
                    <div class="divTbgL">
                    </div>
                    <div class="divTbgInfo">
                        <div class="divTbgTitle">
                            表单项目管理</div>
                    </div>
                </div>
                <div class="divTbgF">
                </div>
                <div class="divTNavBG" id="topURL">
                    <ul id="topURLul">
                        <li class="divURLed" id="div1">
                            <div>
                                <img src="../style/green/images/mini_icons_046.gif" width="10" height="10" />
                                基本信息</div>
                        </li>
                        <li class="" id="div2">
                            <div>
                                <img src="../style/green/images/mini_icons_046.gif" width="10" height="10" />
                                高级信息</div>
                        </li>
                    </ul>
                </div>
                <div id="mypanel">
                    <div  id="ddiv1">
                        <div class="divInfoblack">
                        <div class="divInfoTopList">
                            <div class="listLeft">
                                <div class="navtitle">
                                    基本信息</div>
                            </div>
                        </div>
                    </div>
                        <div class="divInfoContext">
                            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="tablist">
                                <tr class="tablisttr">
                                    <td width="100" align="center" class="tablisttitle">
                                        表单项目编号
                                    </td>
                                    <td class="tabmanagertr">
                                        <asp:TextBox ID="txtFID" runat="server" Width="200px" ToolTip="表单项目编号"></asp:TextBox>
                                        (不用填写)
                                    </td>
                                </tr>
                                <tr class="tablisttr">
                                    <td align="center" class="tablisttitle">
                                        表单项目名称
                                    </td>
                                    <td class="tabmanagertr">
                                        <asp:TextBox ID="txtFDName" runat="server" CssClass="1" ToolTip="表单项目名称" Width="200px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr class="tablisttr">
                                    <td align="center" class="tablisttitle">
                                        项目说明
                                    </td>
                                    <td class="tabmanagertr">
                                        <asp:TextBox ID="txtFDInfo" runat="server" Height="70px" TextMode="MultiLine" Width="200px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr class="tablisttr">
                                    <td align="center" class="tablisttitle">
                                        项目类型
                                    </td>
                                    <td class="tabmanagertr">
                                        <asp:DropDownList ID="drpFDType" runat="server" Width="200px">
                                            <asp:ListItem Value="WebFormFDType">codeno</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr class="tablisttr">
                                    <td align="center" class="tablisttitle">
                                        项目内容
                                    </td>
                                    <td class="tabmanagertr">
                                        <asp:TextBox ID="txtFDValue" runat="server" Height="70px" TextMode="MultiLine" Width="200px"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <div class="divInfo" id="ddiv2" style="display: none">
                        <div class="divInfoblack">
                        <div class="divInfoTopList">
                            <div class="listLeft">
                                <div class="navtitle">
                                    高级信息</div>
                            </div>
                        </div>
                    </div>
                        <div class="divInfoContext">
                            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="tablist">
                                <tr class="tablisttr">
                                    <td width="100" align="center" class="tablisttitle">
                                        是否必填
                                    </td>
                                    <td class="tabmanagertr">
                                        <asp:DropDownList ID="drpFDMust" runat="server" Width="200px">
                                            <asp:ListItem Value="SysIsUsed">codeno</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr class="tablisttr">
                                    <td align="center" class="tablisttitle">
                                        是否验证
                                    </td>
                                    <td class="tabmanagertr">
                                        <asp:DropDownList ID="drpFDAuthentication" runat="server" Width="200px">
                                            <asp:ListItem Value="SysIsUsed">codeno</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr class="tablisttr">
                                    <td align="center" class="tablisttitle">
                                        验证规则
                                    </td>
                                    <td class="tabmanagertr">
                                        <asp:DropDownList ID="drpFDAuthenticationType" runat="server" Width="200px">
                                            <asp:ListItem Value="SysRegType">codeno</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr class="tablisttr">
                                    <td align="center" class="tablisttitle">
                                        错误提示&nbsp;
                                    </td>
                                    <td class="tabmanagertr">
                                        <asp:TextBox ID="txtFDAuthenticationError" runat="server" Height="70px" TextMode="MultiLine"
                                            Width="200px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr class="tablisttr">
                                    <td align="center" class="tablisttitle">
                                        显示顺序
                                    </td>
                                    <td class="tabmanagertr">
                                        <asp:TextBox ID="txtShowID" runat="server" CssClass="2" ToolTip="显示顺序" Width="200px"
                                            ForeColor="#000000">1</asp:TextBox>
                                    </td>
                                </tr>
                                <tr class="tablisttr">
                                    <td align="center" class="tablisttitle">
                                        项目有效性
                                    </td>
                                    <td class="tabmanagertr">
                                        <asp:DropDownList ID="drpFDState" runat="server" Width="200px">
                                            <asp:ListItem Value="SysIsUsed">codeno</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="divSave">
                    <asp:Button ID="btnSubmit" runat="server" Text="保存(S)" CssClass="SkyButtonFocus"
                        OnClick="btnSubmit_Click" AccessKey="S" CommandName="save"></asp:Button>
                   

                    <asp:Button ID="btnSubmitClose" runat="server" CommandName="saveclose" CssClass="SkyButtonFocus"
                            OnClick="btnSubmit_Click" Text="取消(C)" />
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
        <ProgressTemplate>
            <div id="divLoading">
                <img src="/admin/images/loading.gif" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    </form>
</body>
</html>
