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

<%@ Register TagPrefix="uc1" TagName="Trailer" Src="Trailer.ascx" %>
<%@ Register TagPrefix="uc2" TagName="Header" Src="top.ascx" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="edu.jhu.Cas.Util" %>
<%@ Import Namespace="edu.jhu.Cas" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>CasJobs</title>
    <link href="cjobs.css" rel="stylesheet" />
</head>
<body>
    <uc2:Header ID="Header" runat="server"/>
    <%
        string text = Request.Params["lmessage"];
        string casnews = null;
        if (null == text) text = "";
        string parms = "message=" + text;
        string cvsRevision = "$Revision: 1.31 $";
        string cvsTag = "$Name: v3_5_18 $";
        string cvsVersion = cvsTag.Substring(7, cvsTag.Length - 9);

        parms += "&" + "cvsTag=" + cvsTag.Replace(":", " ")
                + "&" + "cvsRevision=" + cvsRevision.Replace(":", " ");

        try {
            StreamReader r = new StreamReader(Server.MapPath("casnews.txt"));
            casnews = r.ReadToEnd();
            r.Close();
            casnews = casnews.Replace("$cvsTag$", cvsVersion);
        }
        catch { casnews = null; }
    %>
    <div class="textWidth">
        <p class="message">
            <%=text%>
        </p>
        <%if (casnews != null) {%>
        <fieldset>
            <legend>News</legend>
            <%=casnews%>
        </fieldset>
        <%}%>
        <p>
            CasJobs is an online workbench for large scientific catalogs, designed to emulate
            and enhance local free-form query access in a web environment.
        </p>
        <p>
            Some features of this application include...</p>
        <ul>
            <li>Both synchronous and asynchronous query execution, in the form of 'quick' and 'long'
                jobs.</li>
            <li>A query 'History' that records queries and their status. </li>
            <li>A server-side, personalized user database, called 'MyDB', enabling persistant table/function/procedure
                creation.</li>
            <li>Data sharing between users, via the 'Groups' mechanism.</li>
            <li>Data download, via MyDB table extraction, in various formats.</li>
            <li>Multiple interface options, including a browser client as well as a java-based command
                line tool.</li>
        </ul>
        <p>
            The web interface for CasJobs is fully compatible with recent versions of the following
            browsers:
        </p>
        <ul>
            <li>Internet Explorer</li>
            <li>FireFox</li>
        </ul>
        <p>
            CasJobs is partially compatible with recent versions of the following browsers:
        </p>
        <ul>
            <li>Mozilla</li>
            <li>Opera</li>
            <li>Safari</li>
        </ul>
        <p>
            For more information, try the CasJobs <a href="faq.aspx">FAQ</a>, or <a href="Guide.aspx">
                guide</a>. Or, to get started right away, either <a href="login.aspx">login</a>
            or <a href="createaccount.aspx">create</a> an account.
        </p>
        <uc1:Trailer ID="Trailer1" runat="server" cvsTag="$Name: v3_5_18 $" cvsRev="$Revision: 1.31 $">
        </uc1:Trailer>
    </div>
</body>
</html>
