<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SchemaBrowser.aspx.cs" Inherits="CasJobsWeb.schema.Default" %>
<%@ Register Src="schema/DbObjectDetails.ascx" TagName="DbObjectDetails" TagPrefix="jgwc" %>
<%@ Register TagPrefix="uc1" TagName="Trailer" Src="Trailer.ascx" %>
<%@ Register TagPrefix="uc2" TagName="Header" Src="top.ascx" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Pragma" content="no-cache" />
    <title>CasJobs</title>
    <link href="cjobs.css" rel="stylesheet" />
    
    <!--#dmedv-->
    <style type="text/css">
      samp  {color:#ffff88;}
    </style>

</head>
<body>
     <uc2:Header ID="Header" runat="server" />
    <form id="form1" runat="server">
    <div>
        <script>
            function ShowRefreshing() {
                var datasetList = document.getElementById("<%= DatasetList.ClientID %>");
            var objectTypeList = document.getElementById("<%= ObjectTypeList.ClientID %>");
            var objectList = document.getElementById("<%= ObjectList.ClientID %>");


            datasetList.disabled = true;
            objectTypeList.disabled = true;
            objectList.disabled = true;

            objectList.options.length = 0;
            var opt = new Option("Refreshing...", "");
            objectList.options.add(opt);
        }

        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_initializeRequest(ShowRefreshing);
    </script>
        <table>
            <tr>
                <th>
                    <asp:Label ID="DatasetListLabel" runat="server" Text="Catalog:" />
                </th>
                <th>
                    <asp:Label ID="ObjectTypeListLabel" runat="server" Text="Object category:" />
                   
                </th>
                <th>
                    <asp:Label ID="ObjectListLabel" runat="server" Text="Object:" Width="150px" />
                </th>
            </tr>
            <tr>
                <td>
                     <asp:DropDownList ID="DatasetList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DatasetList_SelectedIndexChanged"
                        CssClass="ToolbarControl" Width="140px">
                    </asp:DropDownList>
                </td>
                <td>
                     <asp:DropDownList ID="ObjectTypeList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ObjectTypeList_SelectedIndexChanged"
                        CssClass="ToolbarControl" Width="140px">
                        <asp:ListItem Selected="True" Value="Table">Tables</asp:ListItem>
                        <asp:ListItem Value="View">Views</asp:ListItem>
                        <asp:ListItem Value="StoredProcedure">Stored Procedures</asp:ListItem>
                        <asp:ListItem Value="ScalarFunction">Scalar Functions</asp:ListItem>
                        <asp:ListItem Value="TableValuedFunction">Table-valued Functions</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ObjectList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ObjectList_SelectedIndexChanged"
                        CssClass="ToolbarControl" Style="width: 100%; box-sizing: border-box;">
                    </asp:DropDownList>
                </td>
                   
            </tr>
 
                    
        </table>
        
            <asp:ScriptManager runat="server"></asp:ScriptManager>
            <jgwc:DbObjectDetails runat="server" ID="DetailsPanel" Visible="true" />
            


    </div>
    </form>
     <uc1:Trailer ID="Trailer1" runat="server" cvsTag="$Name$" cvsRev="$Revision: 126024 $">
                </uc1:Trailer>
</body>
</html>
