<%@ 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);
    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";
    }
%>
<head>
    <meta http-equiv="Pragma" content="no-cache" />
    <title>MyDB</title>
    <script type="text/javascript">
        function resizeLeft(){
            var width = window.frames['index'].document.getElementById('datable').offsetWidth + 30;
            var maxwidth = 300;
            document.getElementById('index').width = width < maxwidth?width:maxwidth;
        }
    </script>
    <link href="cjobs.css" rel="stylesheet" />
</head>
<body>
    <table id="itable" style="width: 100%; height: 100%;" cellpadding="0" cellspacing="0">
        <tr>
            <td style="height:10;" colspan="2">
                <uc2:Header ID="Header2" runat="server" />
            </td>
        </tr>
        <tr >
            <td style="vertical-align: top;">
                <iframe name="index" id="index" height="100%" scrolling="auto" src="mydbindex.aspx"
                    frameborder="0" style=""></iframe>
            </td>
            <td style="width: 100%; vertical-align: top;">
                <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>
