<%@ Page Language="c#" AutoEventWireup="false" %>

<%@ Register TagPrefix="uc2" TagName="Header" Src="top.ascx" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="edu.jhu.Cas.Web" %>
<%@ Import Namespace="edu.jhu.Cas.Util" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<%
    WebUtils.CheckLoggedIn(Session, Response, Request);
    string text = Request.Params["lmessage"];
    if (null == text) text = "";
    string pars = "";
    string tableName = Request.Params["tablename"];
    if (null != tableName && tableName.Length > 0) {
        pars = "&tableName=" + tableName + "&kind=tables";
    }

    string objName = Request.Params["ObjName"];
    if (null != objName) pars += "&ObjName=" + objName;
    string objType = Request.Params["ObjType"];
    if (null != objType) pars += "&ObjType=" + objType;
    string context = Request.Params["context"];
    if (null != context) pars += "&context=" + context;
    string type = Request.Params["type"];
    if (null != type) pars += "&type=" + type;
    
%>
<head>
    <meta http-equiv="Pragma" content="no-cache" />
    <title>MyDB</title>
    <link href="cjobs.css" rel="stylesheet" />
</head>
<body>
    <table id="itable" style="width: 100%; height: 100%; table-layout: fixed;" cellpadding="0"
        cellspacing="0">
        <colgroup>
            <col style="width: 300" />
            <col style="width: 100%" />
        </colgroup>
        <tr>
            <td colspan="2">
                <uc2:Header ID="Header2" runat="server" />
            </td>
        </tr>
        <tr>
            <td style="vertical-align: top; height:100%;" id="indextd">
                <iframe name="index" id="index" width="100%" height="100%" scrolling="auto" src="mydbindex.aspx"
                    frameborder="0" style=""></iframe>
            </td>
            <td style="height:100%; vertical-align: top; padding:0 0 0 5;">
                <iframe name="content" id="content" width="100%" height="100%" scrolling="auto" src="mydbcontent.aspx?lmessage=<%=text%><%=pars%>"
                    frameborder="0"></iframe>
            </td>
        </tr>
    </table>
</body>
</html>
