* correction of bad HTML of the new banner
authorArt Cancro <ajc@citadel.org>
Tue, 16 Jan 2007 14:14:32 +0000 (14:14 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 16 Jan 2007 14:14:32 +0000 (14:14 +0000)
webcit/auth.c
webcit/static/beginbox.html
webcit/static/endbox.html
webcit/static/login.html
webcit/static/webcit.css

index 474f65d3703296fc12d43604263d1fd0c90c10ae..01f53a1c46a9f8a221cad7c2df1da3d0128ab79d 100644 (file)
@@ -41,7 +41,7 @@ void display_login(char *mesg)
        char buf[SIZ];
 
        output_headers(1, 1, 2, 0, 0, 0);
-       wprintf("<div style=\"position:absolute; top:20px; left:20px; right:20px\">\n");
+       wprintf("<div id=\"login_screen\">\n");
 
        if (mesg != NULL) if (strlen(mesg) > 0) {
                stresc(buf, mesg, 0, 0);
index 0cb7c646b3b6a3beb13952b12c3c0ea3705a7655..91d088dbfdbf592b5a383c47099b2d70fcf81ce1 100644 (file)
@@ -1,6 +1,5 @@
 <! start beginbox.html>
-<table border=1 cellspacing=0 cellpadding=0 width=100%><tr><td>
-<table border=0 cellspacing=0 cellpadding=3 width=100%>
-<tr bgcolor="#000088"><td align=center><span class="boxlabel"><?BOXTITLE></span></td></tr>
-<tr bgcolor="#FFFFFF"><td>
+<div class="box">
+<div class="boxlabel"><?BOXTITLE></span></div>
+<div class="boxcontent">
 <! end beginbox.html>
index bbf33b1398f8bfb32caba9045994d0a6a73b29f0..e04ad1b9cddc2f54fb0fcafad9c6328c0d5ab17c 100644 (file)
@@ -1,3 +1 @@
-</td></tr></table>
-</td></tr></table>
-<br />
+</div></div>
index 6ec9261b39399073f53aa6dd7d8e80f588fe2228..369c7493908fff7656030bffb7ce38cbb2b8a3c5 100644 (file)
@@ -1,13 +1,9 @@
 <?=beginbox>
-<center>
-<font color="#FF0000"><?MESG></font>
-<table border=0>
-<tr>
-<td align=center>
-       <?HELLO>
+<div class="login_message"><?MESG></div>
+<div class="login_hello"><?HELLO></div>
+<div class="login_form">
        <form action="login" method="POST">
-
-       <table border="0" cellspacing="5" cellpadding="5" bgcolor="#EEEEEE">
+       <table border="0" cellspacing="5" cellpadding="5">
                <tr><td><?USERNAME_BOX></td>
                <td><input type="text" name="name" maxlength="25"></td></tr>
                <tr><td><?PASSWORD_BOX></td>
        <?NEWUSER_BUTTON_POST>
        <input type="submit" name="exit_action" value="<?EXIT_BUTTON>">
        </td></tr>
-
        </table>
        </form>
-
-       </td>
-       <td align="center"><p><img src="image&name=hello"></p></td>
-       </tr>
-       <tr>
-               <td colspan="2">
-               <?LOGIN_INSTRUCTIONS>
-               </td>
-</tr>
-</table>
-</center>
+</div>
+<div class="login_infos"><?LOGIN_INSTRUCTIONS></div>
 <?=endbox>
index 470ed24e2b7804acf8f8d548ad3ce657d82a08a2..3dfddc49a5d8b6cce164ec5d3bdb153a93c8bc0a 100644 (file)
@@ -636,3 +636,53 @@ div.auto_complete ul strong.highlight {
         width: 100%;
         background-color: #dddddd;
 }
+
+#login_screen {
+       position:absolute; 
+       top:20px; 
+       left:20px; 
+       right:20px;
+}
+
+
+.login_content {
+        background-color: white;
+}
+
+
+.box {
+        width: 100%;
+        padding: 0px;
+        background-color: white;
+}
+
+.boxlabel, .boxcontent {
+        padding: 5px;
+}
+
+.boxlabel {
+        background-color: #000088;
+        text-align: center;
+}
+
+
+#login_screen {
+        position:absolute;
+        top:20px;
+        left:20px;
+        right:20px
+}
+
+.login_form table {
+        margin-left: auto;
+        margin-right: auto;
+        background-color: #DDDDDD;
+}
+
+.login_infos {
+        margin-left: auto;
+        margin-right: auto;
+        width: 80% ;
+        text-align: left;
+}
+