From aaf1710a3f849b8352f26daa270f27bfe199e6b0 Mon Sep 17 00:00:00 2001 From: Joe Presbrey Date: Tue, 11 Apr 2006 22:31:05 +0000 Subject: [PATCH] new style: conform to new textpattern template git-svn-id: svn://presbrey.mit.edu/sql/mitsql@99 a142d4bd-2cfb-0310-9673-cb33a7e74f58 --- mitsql.css | 75 +++++-------------------------------------------- test.php | 6 ++++ tpl/contact.php | 2 +- tpl/error.php | 2 +- tpl/foot.php | 23 +++++++++++---- tpl/head.php | 30 +++++++++++++------- tpl/index.php | 8 +++--- tpl/login.php | 8 +++--- tpl/main.php | 4 +-- tpl/menu.php | 33 +++++++++++++--------- tpl/offline.php | 2 +- tpl/setup.php | 2 +- tpl/signup.php | 6 ++-- 13 files changed, 87 insertions(+), 114 deletions(-) diff --git a/mitsql.css b/mitsql.css index 721c5be..979deee 100644 --- a/mitsql.css +++ b/mitsql.css @@ -1,80 +1,19 @@ -body { - margin: 1px; - font: 12pt verdana, arial, helvetica, sans-serif; - background-color: #bbb; -} -#body { - position: relative; - width: 640px; - margin-left: auto; - margin-right: auto; - padding: 5px 2px 2px 2px; -} -#content0 { - position: relative; - padding: 5px 0 5px 0; -} -#sitename { - font-size: 24pt; - font-weight: bold; -} -#contact { - position: absolute; - right: 0; - font-size: 10pt; - margin-top: 20px; -} -#content1 { - background-color: #aaa; - border: 1px outset #aaa; - padding: 3px; - font-size: 9pt; - text-align: right; -} -#content2 { - padding: 10px; - background-color: #aaa; - border: 1px inset #999; - font-size: 9pt; - text-align: left; - display: block; - padding-bottom: auto; -} -#content3 { - background-color: #aaa; - padding: 3px; - font-size: 7pt; - text-align: right; - border: 1px outset #999; - font-style: italic; -} -a, a:link, a:visited, a:active { - color: maroon; - text-decoration: none; -} -a:hover { - color: white; - text-decoration: none; - border-bottom: 1px dashed #aaa; -} -form { +#content_wide form { margin: 0; display: inline; } -p { - font-family: Verdana; +#content_wide p { font-size: 10pt; text-indent: 25px; } -h2 { +#content_wide h2 { margin-top: 0; } -input { - font-family: Verdana; +#content_wide input { font-size: 9pt; border: 1px solid black; } -table,tr,td { +#content_wide table,tr,td { padding: 0; } td p { @@ -83,7 +22,7 @@ td p { border-left: 1px solid black; } div.msg { - margin: 0px 20px 20px 20px; + padding: 0px 20px 0px 0px; background-color: #ccc; border: 1px solid black; font-weight: bold; @@ -94,7 +33,7 @@ div.msg li { } div.err { color: maroon; - margin: 0px 20px 20px 20px; + padding: 0px 20px 0px 0px; background-color: #ccc; border: 1px dashed black; font-variant: small-caps; diff --git a/test.php b/test.php index 1aab1e4..16150f4 100755 --- a/test.php +++ b/test.php @@ -36,5 +36,11 @@ print_r($GLOBALS); //checkQuotas(); +printMsgs(array('this is a test msg: test 0')); +printMsgs(array('this is a test msg: test 1', 'this is a test msg: test 2')); + +printErrors(array('this is a test error: test 0')); +printErrors(array('this is a test error: test 1', 'this is a test error: test 2')); + include 'tpl/foot.php'; ?> diff --git a/tpl/contact.php b/tpl/contact.php index 70a721a..3ab17f3 100755 --- a/tpl/contact.php +++ b/tpl/contact.php @@ -2,7 +2,7 @@ include 'head.php'; ?> -

Contact/Help

+

Contact/Help

diff --git a/tpl/error.php b/tpl/error.php index 9b73460..873de8e 100755 --- a/tpl/error.php +++ b/tpl/error.php @@ -2,7 +2,7 @@ include 'head.php'; ?> -

Page Error

+

Page Error

The page you were trying to view experienced an error while loading. diff --git a/tpl/foot.php b/tpl/foot.php index 736734a..4f46d85 100644 --- a/tpl/foot.php +++ b/tpl/foot.php @@ -1,8 +1,21 @@ + + + + + +

+ +
 
+ + + + + -The SIPB MySQL Service is part of the scripts.mit.edu project. -*/?> - - + diff --git a/tpl/head.php b/tpl/head.php index 6bcc7fd..39176ba 100644 --- a/tpl/head.php +++ b/tpl/head.php @@ -12,17 +12,27 @@ if (isOffline()) { } ?> - - + + + MIT SIPB MySQL Service for Athena - - + + + - -
-
MIT SIPB MySQL ServiceContact/Help
-
 
-
+
+
+
+
+

sql.mit.edu

+

MIT SIPB MySQL Service for Athena
+ email:

+
+
+ +
+
+
diff --git a/tpl/index.php b/tpl/index.php index ba88c0e..24ee7b8 100644 --- a/tpl/index.php +++ b/tpl/index.php @@ -1,7 +1,7 @@ -

About

+

About

This service provides MySQL databases to MIT certificate holders. @@ -17,7 +17,7 @@ All uses of this service must comply with the scripts.mit.edu project.

-

Backups

+

Backups

We strongly recommend you keep your own backups of your SQL schema and data. Your MySQL data is not stored in AFS. @@ -25,7 +25,7 @@ Although we use various technical means to try to ensure the availability of you

Quotas +

Quotas

By default, new users can create up to 5 databases, consuming a total of 50 megabytes of SQL data. @@ -43,7 +43,7 @@ Although you can drop any of your databases outside this interface, doing so wil

*/?> -

Disclaimer

+

Disclaimer

Although this service has been designed with reliability in mind, the SIPB MySQL service should not be used to host critical applications that cannot tolerate downtime. diff --git a/tpl/login.php b/tpl/login.php index cd9acc5..a9ce2b5 100644 --- a/tpl/login.php +++ b/tpl/login.php @@ -4,21 +4,21 @@ include 'head.php'; $thisTxt = isSSL()?' using this Certificate':' using your MySQL Password'; ?> -

Login

+

Login

-

Please enter your MySQL login information:

+

Please enter your MySQL login information:

username:

password:

-

You are identified as:

+

You are identified as:

@@ -31,7 +31,7 @@ $thisTxt = isSSL()?' using this Certificate':' using your MySQL Password'; -

Sign up to use this service.

+

Sign up to use this service.

diff --git a/tpl/main.php b/tpl/main.php index c52a23b..d3744eb 100644 --- a/tpl/main.php +++ b/tpl/main.php @@ -12,7 +12,7 @@ if (isset($i_dropask)) { } ?> -

Databases

+

Databases

@@ -58,7 +58,7 @@ if (isset($i_dropask)) {

-

Manage Data

+

Manage Data

One interface we recommend for managing SQL data is phpMyAdmin. Feel free to use it after you've created your databases.

+
getUsername(); if (isImpersonating()) { - $loggedInText = ''.$loggedInText.''; + $loggedInText = '
  • '.$loggedInText.'
  • '; } ?> -Logged in: @ +
    +Logged in: @  +
    -
    -Sign up | -phpMyAdmin | -Home + -
    -Login via SQL Password or MIT Certificate + + +
    diff --git a/tpl/offline.php b/tpl/offline.php index dffa7e0..c330bc7 100755 --- a/tpl/offline.php +++ b/tpl/offline.php @@ -2,7 +2,7 @@ include 'head.php'; ?> -

    System Maintenance

    +

    System Maintenance

    The MySQL Service interface is temporarily offline while we perform system maintenance. diff --git a/tpl/setup.php b/tpl/setup.php index fb5b6fe..284a69a 100755 --- a/tpl/setup.php +++ b/tpl/setup.php @@ -2,7 +2,7 @@ include 'head.php'; ?> -

    Change MySQL Password

    +

    Change MySQL Password

    Your MySQL password should be different from your Athena account password.

    diff --git a/tpl/signup.php b/tpl/signup.php index e5e532e..b980a4a 100644 --- a/tpl/signup.php +++ b/tpl/signup.php @@ -4,12 +4,12 @@ include 'head.php'; $thisTxt = isSSL()?' with this Certificate':' via SQL'; ?> -

    Signup

    +

    Signup

    canSignup()): ?> -

    You are registering as: getUsername()?>

    +

    You are registering as: getUsername()?>

    getName()?>

    getEmail()?>

    @@ -23,7 +23,7 @@ Your MySQL password should be different from your Athena account password. canLogin()): ?> -

    This account is already signed up.

    +

    Your account [getUsername()?>] is already signed up.

    -- 2.45.0