Changeset 2

Show
Ignore:
Timestamp:
20/08/06 14:15:43 (7 years ago)
Author:
dez
Message:

Fixes to make the XHTML validate

Location:
components
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • components/branding.php

    r1 r2  
    44        <div class="cornerTopRight"> 
    55                <div id="logo"> 
    6                         <a href="/"><img src="images/sucslogo-halo.png" /></a> 
     6                        <a href="/"><img src="images/sucslogo-halo.png" width="170px" height="76px" alt="SUCS" /></a> 
    77                </div> 
    88 
     
    1212 
    1313                <div id="loginForm"> 
    14                         <form> 
     14                        <form method="post" action="/"> 
     15                                <div> 
    1516                                <label for="username">Username</label> <input type="text" name="username" id="username" style="width: 8em;" /><br /> 
    1617                                <label for="password">Password</label> <input type="password" name="password" id="password" style="width: 8em;" /><br /> 
    1718                                <input type="submit" name="submit" id="submit" value="Login" /> 
     19                                </div> 
    1820                        </form> 
    1921                </div> 
  • components/head.php

    r1 r2  
    11<?php 
     2if (isset($_SERVER['HTTP_ACCEPT'])) { 
    23        if (ereg('application/xhtml\+xml', $_SERVER['HTTP_ACCEPT'])) { 
    34                header('Content-Type: application/xhtml+xml'); 
     5                echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; 
    46        } else { 
    57                header('Content-Type: text/html'); 
    68        } 
    7 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; 
     9} else { 
     10                header('Content-Type: application/xhtml+xml'); 
     11                echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; 
     12} 
    813?> 
    914<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
     
    3035<!--[if lt IE 7]> 
    3136        <link rel="stylesheet" type="text/css" href="css/ielt7.css" /> 
    32         <script defer type="text/javascript" language="JavaScript" src="js/pngfix.js"></script> 
    3337        <link rel="stylesheet" type="text/css" href="css/boxie.css" /> 
    3438 
     39        <script defer type="text/javascript" language="JavaScript" src="js/pngfix.js"></script> 
     40 
    3541<![endif]--> 
     42 
    3643 
    3744 
  • components/search.php

    r1 r2  
    22                <h3>Search SUCS</h3> 
    33                <form method="get" action="http://www.google.com/custom"> 
     4                <div> 
    45                <input type="text" name="q" size="16" maxlength="255" value="" /> 
    56                <input type="submit" name="sa" value="Search" /> 
     
    78                <input type="hidden" name="domains" value="sucs.org" /> 
    89                <input type="hidden" name="sitesearch" value="sucs.org" /><br />&nbsp;<br /> 
     10                </div> 
    911                </form> 
    1012        </div>