Changeset 108


Ignore:
Timestamp:
02/21/06 23:38:14 (7 years ago)
Author:
anarcat
Message:

[project @ alternc: changeset 2003-06-10 12:14:09 by root]
Fin de la XHTML 1.0 conformité. A tester maintenant ;)

Original author: root
Date: 2003-06-10 12:14:09

Location:
bureau/admin
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • bureau/admin/adm_add.php

    r102 r108  
    11<?php 
    22/* 
    3  $Id: adm_add.php,v 1.2 2003/06/10 06:45:16 root Exp $ 
     3 $Id: adm_add.php,v 1.3 2003/06/10 12:14:09 root Exp $ 
    44 ---------------------------------------------------------------------- 
    55 AlternC - Web Hosting System 
     
    4545<?php 
    4646if ($error) { 
    47         echo "<font color=red>$error</font>"; 
     47        echo "<p class=\"error\">$error</p>"; 
    4848} 
    4949?> 
    50 <br /> 
    51 <br /> 
    5250<form method="post" action="adm_doadd.php"> 
    5351<table border="1" cellspacing="0" cellpadding="4"> 
    54 <tr><th><?php __("Username"); ?></th><td> 
    55         <input type="text" class="int" name="login" value="<?php echo $login; ?>" size="20" maxlength="64"> 
     52<tr><th><label for="login"><?php __("Username"); ?></label></th><td> 
     53        <input type="text" class="int" name="login" id="login" value="<?php echo $login; ?>" size="20" maxlength="64" /> 
    5654</td></tr> 
    5755<tr> 
    58         <th><?php __("Initial password"); ?></th> 
    59         <td><input type="text" name="pass" class="int" value="<?php echo $pass; ?>" size="20" maxlength="64"></td> 
     56        <th><label for="pass"><?php __("Initial password"); ?></label></th> 
     57        <td><input type="text" id="pass" name="pass" class="int" value="<?php echo $pass; ?>" size="20" maxlength="64" /></td> 
    6058</tr> 
    6159<tr> 
    62         <th><?php __("Can he change its password"); ?></th> 
    63         <td><select class="inl" name="canpass"> 
     60        <th><label for="canpass"><?php __("Can he change its password"); ?></label></th> 
     61        <td><select class="inl" name="canpass" id="canpass"> 
    6462        <?php  
    6563        for($i=0;$i<count($bro->l_icons);$i++) { 
    6664          echo "<option"; 
    67           if ($canpass==$i) echo " selected"; 
     65          if ($canpass==$i) echo " selected=\"selected\""; 
    6866          echo " value=\"$i\">"._($bro->l_icons[$i])."</option>"; 
    6967        } 
     
    7270</tr> 
    7371<tr> 
    74         <th><?php echo _("Surname")." / "._("First Name"); ?></th> 
    75         <td><input class="int" type="text" name="nom" value="<?php echo $nom; ?>" size="20" maxlength="128">&nbsp;/&nbsp;<input type="text" name="prenom" value="<?php echo $prenom; ?>" class="int" size="20" maxlength="128"></td> 
     72        <th><label for="nom"><?php echo _("Surname")."</label> / <label for=\"prenom\">"._("First Name"); ?></label></th> 
     73        <td><input class="int" type="text" id="nom" name="nom" value="<?php echo $nom; ?>" size="20" maxlength="128" />&nbsp;/&nbsp;<input type="text" name="prenom" id="prenom" value="<?php echo $prenom; ?>" class="int" size="20" maxlength="128" /></td> 
    7674</tr> 
    7775<tr> 
    78         <th><?php __("Email address"); ?></th> 
    79         <td><input type="text" name="nmail" class="int" value="<?php echo $nmail; ?>" size="30" maxlength="128"></td> 
     76        <th><label for="nmail"><?php __("Email address"); ?></label></th> 
     77        <td><input type="text" name="nmail" id="nmail" class="int" value="<?php echo $nmail; ?>" size="30" maxlength="128" /></td> 
    8078</tr> 
    8179<tr> 
    82         <td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Create a new member"); ?>"></td> 
     80        <td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Create a new member"); ?>" /></td> 
    8381</tr> 
    8482</table> 
  • bureau/admin/adm_defquotas.php

    r1 r108  
    11<?php 
    22/* 
    3  $Id: adm_defquotas.php,v 1.1.1.1 2003/03/26 17:41:29 root Exp $ 
     3 $Id: adm_defquotas.php,v 1.2 2003/06/10 12:14:09 root Exp $ 
    44 ---------------------------------------------------------------------- 
    55 AlternC - Web Hosting System 
     
    3939</head> 
    4040<body> 
    41 <div align="center"><h3><?php __("Change the default quotas"); ?></h3></div> 
     41<h3><?php __("Change the default quotas"); ?></h3> 
    4242<?php 
    4343        if ($error) { 
    44                 echo "<font color=red>$error</font></body></html>"; 
     44          echo "<p class=\"error\">$error</p>"; 
    4545        } 
    4646 
     
    6262 
    6363<tr class="lst<?php echo $col; ?>"> 
    64 <td><?php echo $val["name"]; ?></td> 
    65 <td><input type="text" class="int" size="16" maxlength="16" name="q_<?php echo $key; ?>" value="<?php echo $val["value"]; ?>"></td></tr> 
     64<td><label for="q_<?php echo $key; ?>"><?php echo $val["name"]; ?></label></td> 
     65<td><input type="text" class="int" size="16" maxlength="16" name="q_<?php echo $key; ?>" id="q_<?php echo $key; ?>" value="<?php echo $val["value"]; ?>" /></td></tr> 
    6666 
    6767<?php 
    6868} 
    6969?> 
    70 <tr><td colspan="3"><input type="submit" class="inb" value="<?php __("Edit the default quotas"); ?>"></td></tr> 
     70<tr><td colspan="3"><input type="submit" class="inb" value="<?php __("Edit the default quotas"); ?>" /></td></tr> 
    7171</table> 
    7272</form> 
  • bureau/admin/adm_edit.php

    r102 r108  
    11<?php 
    22/* 
    3  $Id: adm_edit.php,v 1.2 2003/06/10 06:45:16 root Exp $ 
     3 $Id: adm_edit.php,v 1.3 2003/06/10 12:14:09 root Exp $ 
    44 ---------------------------------------------------------------------- 
    55 AlternC - Web Hosting System 
     
    4343</head> 
    4444<body> 
    45 <div align="center"><h3><?php __("Member Edition"); ?></h3></div> 
     45<h3><?php __("Member Edition"); ?></h3> 
    4646<?php 
    4747        if ($error) { 
    48                 echo "<font color=red>$error</font></body></html>"; 
     48                echo "<p class=\"error\">$error</p>"; 
    4949        } 
    5050?> 
    5151<form method="post" action="adm_doedit.php"> 
    52 <input type="hidden" name="uid" value="<?php echo $uid ?>"> 
    5352<table border="1" cellspacing="0" cellpadding="4"> 
    5453<tr> 
    55         <th><?php __("Username"); ?></th> 
     54        <th><input type="hidden" name="uid" value="<?php echo $uid ?>" /> 
     55<?php __("Username"); ?></th> 
    5656        <td><?php echo $r["login"]; ?></td> 
    5757</tr> 
    5858<tr> 
    59         <th><?php __("Account Enabled ?"); ?></th> 
    60         <td><select class="inl" name="enabled"> 
     59        <th><label for="enabled"><?php __("Account Enabled ?"); ?></label></th> 
     60        <td><select class="inl" name="enabled" id="enabled"> 
    6161        <?php 
    6262        for($i=0;$i<count($bro->l_icons);$i++) { 
    6363          echo "<option"; 
    64           if ($r["enabled"]==$i) echo " selected"; 
     64          if ($r["enabled"]==$i) echo " selected=\"selected\""; 
    6565          echo " value=\"$i\">"._($bro->l_icons[$i])."</option>"; 
    6666        } 
     
    6969 
    7070<tr> 
    71         <th><?php __("Password"); ?></th> 
    72         <td><input type="text" class="int" name="pass" value="<?php echo $r["pass"]; ?>" size="20" maxlength="64"></td> 
     71        <th><label for="pass"><?php __("Password"); ?></label></th> 
     72        <td><input type="text" class="int" id="pass" name="pass" value="<?php echo $r["pass"]; ?>" size="20" maxlength="64" /></td> 
    7373</tr> 
    7474<tr> 
    75         <th><?php __("Can he change its password"); ?></th> 
    76         <td><select class="inl" name="canpass"> 
     75        <th><label for="canpass"><?php __("Can he change its password"); ?></label></th> 
     76        <td><select class="inl" name="canpass" id="canpass"> 
    7777        <?php  
    7878        for($i=0;$i<count($bro->l_icons);$i++) { 
    7979          echo "<option"; 
    80           if ($r["canpass"]==$i) echo " selected"; 
     80          if ($r["canpass"]==$i) echo " selected=\"selected\""; 
    8181          echo " value=\"$i\">"._($bro->l_icons[$i])."</option>"; 
    8282        } 
     
    8585</tr> 
    8686<tr> 
    87         <th><?php echo _("Surname")." / "._("First Name"); ?></th> 
    88         <td><input type="text" class="int" name="nom" value="<?php echo $r["nom"]; ?>" size="20" maxlength="128">&nbsp;/&nbsp;<input type="text" class="int" name="prenom" value="<?php echo $r["prenom"]; ?>" size="20" maxlength="128"></td> 
     87        <th><label for="nom"><?php echo _("Surname")."</label> / <label for=\"prenom\">"._("First Name"); ?></label></th> 
     88        <td><input type="text" class="int" name="nom" id="nom" value="<?php echo $r["nom"]; ?>" size="20" maxlength="128" />&nbsp;/&nbsp;<input type="text" class="int" name="prenom" id="prenom" value="<?php echo $r["prenom"]; ?>" size="20" maxlength="128" /></td> 
    8989</tr> 
    9090<tr> 
    91         <th><?php __("Email address"); ?></th> 
    92         <td><input type="text" class="int" name="nmail" value="<?php echo $r["mail"]; ?>" size="30" maxlength="128"></td> 
     91        <th><label for="nmail"><?php __("Email address"); ?></label></th> 
     92        <td><input type="text" class="int" name="nmail" id="nmail" value="<?php echo $r["mail"]; ?>" size="30" maxlength="128" /></td> 
    9393</tr> 
    9494<tr> 
    95         <td colspan="2" align="center"><input type="submit" class="inb" name="submit" value="<?php __("Edit this account"); ?>"> 
     95        <td colspan="2" align="center"><input type="submit" class="inb" name="submit" value="<?php __("Edit this account"); ?>" /> 
    9696</td> 
    9797</tr> 
    9898</table> 
    9999</form> 
    100  
    101100 
    102101<p> 
  • bureau/admin/adm_list.php

    r102 r108  
    11<?php 
    22/* 
    3  $Id: adm_list.php,v 1.4 2003/06/10 06:45:16 root Exp $ 
     3 $Id: adm_list.php,v 1.5 2003/06/10 12:14:09 root Exp $ 
    44 ---------------------------------------------------------------------- 
    55 AlternC - Web Hosting System 
     
    4343</head> 
    4444<body> 
    45 <div align="center"><h3><?php __("Member list"); ?></h3></div> 
     45<h3><?php __("Member list"); ?></h3> 
    4646<?php 
    4747        if ($error) { 
    48                 echo "<font color=red>$error</font></body></html>"; 
     48          echo "<p class=\"error\">$error</p>"; 
    4949        } 
    5050?> 
     
    5252<?php __("Here is the list of hosted members"); ?> 
    5353</p> 
    54  
     54<p> 
    5555<a href="adm_add.php"><?php __("Create a new member"); ?></a> 
    56 <br /> 
     56</p> 
    5757<form method="post" action="adm_dodel.php"> 
    5858<?php  
     
    7575                        <td>&nbsp;</td> 
    7676<?php } else { ?> 
    77  <td align="center"><input type="checkbox" class="inc" name="d[]" value="<?php echo $val["uid"]; ?>"></td> 
     77 <td align="center"><input type="checkbox" class="inc" name="d[]" value="<?php echo $val["uid"]; ?>" /></td> 
    7878<?php } ?> 
    7979                <td align="center"><a href="adm_edit.php?uid=<?php echo $val["uid"] ?>"><?php __("Edit"); ?></a></td> 
     
    8181                <td align="center"><?php 
    8282                if (!$val["enabled"]) 
    83                         echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Account")."\">"; 
     83                        echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Account")."\" />"; 
    8484                else { 
    8585                ?> 
     
    9595} // Normal Mode 
    9696 
    97 if ($mem->user["admlist"]==1) { // Short mode TODO : make 3 columns instead of 2  
     97if ($mem->user["admlist"]==1) { // Short mode TODO : make 3 columns instead of 2  + XHTML compliance instead of 1px img trick ;) 
    9898?> 
    9999<table cellspacing="0" cellpadding="0"> 
     
    159159 
    160160?> 
    161 <tr><td colspan="6"><input type="submit" class="inb" name="submit" value="<?php __("Delete checked accounts"); ?>"></td></tr> 
     161<tr><td colspan="6"><input type="submit" class="inb" name="submit" value="<?php __("Delete checked accounts"); ?>" /></td></tr> 
    162162</table> 
    163163</form> 
  • bureau/admin/adm_login.php

    r1 r108  
    11<?php 
    22/* 
    3  $Id: adm_login.php,v 1.1.1.1 2003/03/26 17:41:29 root Exp $ 
     3 $Id: adm_login.php,v 1.2 2003/06/10 12:14:09 root Exp $ 
    44 ---------------------------------------------------------------------- 
    55 AlternC - Web Hosting System 
     
    4747</head> 
    4848<body> 
    49 <div align="center"><h3><?php __("Member login"); ?></h3></div> 
     49<h3><?php __("Member login"); ?></h3> 
    5050<?php 
    5151        if ($error) { 
    52                 echo "<font color=red>$error</font></body></html>"; 
     52                echo "<p class=\"error\">$error</p></body></html>"; 
    5353                exit(); 
    5454        } 
  • bureau/admin/adm_panel.php

    r1 r108  
    11<?php 
    22/* 
    3  $Id: adm_panel.php,v 1.1.1.1 2003/03/26 17:41:29 root Exp $ 
     3 $Id: adm_panel.php,v 1.2 2003/06/10 12:14:09 root Exp $ 
    44 ---------------------------------------------------------------------- 
    55 AlternC - Web Hosting System 
     
    3939</head> 
    4040<body> 
    41 <div align="center"><h3><?php __("Admin Control Panel"); ?></h3></div> 
     41<h3><?php __("Admin Control Panel"); ?></h3> 
    4242<?php 
    4343        if ($error) { 
    44                 echo "<font color=red>$error</font></body></html>"; 
     44                echo "<p class=\"error\">$error</p></body></html>"; 
    4545                exit(); 
    4646        } 
  • bureau/admin/adm_quotaedit.php

    r1 r108  
    11<?php 
    22/* 
    3  $Id: adm_quotaedit.php,v 1.1.1.1 2003/03/26 17:41:29 root Exp $ 
     3 $Id: adm_quotaedit.php,v 1.2 2003/06/10 12:14:09 root Exp $ 
    44 ---------------------------------------------------------------------- 
    55 AlternC - Web Hosting System 
     
    4646</head> 
    4747<body> 
    48 <div align="center"><h3><?php __("Editing the quotas of a member"); ?></h3></div> 
     48<h3><?php __("Editing the quotas of a member"); ?></h3> 
    4949<?php 
    5050        if ($error) { 
    51                 echo "<font color=red>$error</font></body></html>"; 
    52                 exit(); 
     51          echo "<p class=\"error\">$error</p>"; 
     52          exit(); 
    5353        } 
    5454?> 
    5555<form method="post" action="adm_quotadoedit.php"> 
    56 <input type="hidden" name="uid" value="<?php echo $uid ?>"> 
    5756<table border="1" cellspacing="0" cellpadding="6"> 
    58 <tr><th><?php __("Username"); ?></th><td colspan="3"><code><big><?php echo $us["login"]; ?></big></code>&nbsp;</td></tr> 
     57<tr><th><input type="hidden" name="uid" value="<?php echo $uid ?>" /> 
     58<?php __("Username"); ?></th><td colspan="3"><code><big><?php echo $us["login"]; ?></big></code>&nbsp;</td></tr> 
    5959<tr><th><?php __("Quota"); ?></th><th><?php __("Total"); ?></th><th><?php __("Used"); ?></th></tr> 
    6060<?php 
     
    6767        echo _("quota_".$key)."</td>"; 
    6868        if ($r[$key]["t"]==$r[$key]["u"] && $r[$key]["u"]) echo "</font>"; 
    69         echo "<td align=\"center\"><input type=\"text\" class=\"int\" style=\"text-align: right\" size=\"10\" maxlength=\"10\" value=\"".$r[$key]["t"]."\" name=\"q_".$key."\"></td>"; 
    70         echo "<td align=\"right\"><code>".$r[$key]["u"]."</code>&nbsp;</td>"; 
     69        echo "<td align=\"center\"><input type=\"text\" class=\"int\" style=\"text-align: right\" size=\"10\" maxlength=\"10\" value=\"".$r[$key]["t"]."\" name=\"q_".$key."\" id=\"q_".$key."\" /></td>"; 
     70        echo "<td align=\"right\"><code><label for=\"q_$key\">".$r[$key]["u"]."</label></code>&nbsp;</td>"; 
    7171        echo "</tr>"; 
    7272} 
    7373?> 
    74 <tr><td colspan="4" align="center"><input class="inb" type="submit" name="submit" value="<?php __("Edit the quotas"); ?>"> 
    75 <input class="inb" type="submit" name="recalc" value="<?php __("Recalculate the quotas of the account"); ?>"></td></tr> 
     74<tr><td colspan="4" align="center"><input class="inb" type="submit" name="submit" value="<?php __("Edit the quotas"); ?>" /> 
     75<input class="inb" type="submit" name="recalc" value="<?php __("Recalculate the quotas of the account"); ?>" /></td></tr> 
    7676</table> 
    7777</form> 
  • bureau/admin/adm_tld.php

    r102 r108  
    11<?php 
    22/* 
    3  $Id: adm_tld.php,v 1.2 2003/06/10 06:45:16 root Exp $ 
     3 $Id: adm_tld.php,v 1.3 2003/06/10 12:14:09 root Exp $ 
    44 ---------------------------------------------------------------------- 
    55 AlternC - Web Hosting System 
     
    5050</head> 
    5151<body> 
    52 <div align="center"><h3><?php __("Manage allowed domains (TLD)"); ?></h3></div> 
     52<h3><?php __("Manage allowed domains (TLD)"); ?></h3> 
    5353<?php 
    5454        if ($error) { 
    55                 echo "<font color=red>$error</font></body></html>"; 
     55          echo "<p class=\"error\">$error</p>"; 
    5656        } 
    5757 
     
    7474 
    7575<tr class="lst<?php echo $col; ?>"> 
    76 <td><input type="checkbox" name="sel[]" class="inc" value="<?php echo $c[$i]["tld"]; ?>">&nbsp;<a href="adm_tldedit.php?tld=<?php echo urlencode($c[$i]["tld"]); ?>"><?php __("Edit"); ?></a></td> 
    77 <td><?php echo $c[$i]["tld"]; ?></td> 
     76<td><input id="sel<?php echo $i; ?>" type="checkbox" name="sel[]" class="inc" value="<?php echo $c[$i]["tld"]; ?>" />&nbsp;<a href="adm_tldedit.php?tld=<?php echo urlencode($c[$i]["tld"]); ?>"><?php __("Edit"); ?></a></td> 
     77<td><label for="sel<?php echo $i; ?>"><?php echo $c[$i]["tld"]; ?></label></td> 
    7878<td><?php __($admin->tldmode[$c[$i]["mode"]]); ?></td></tr> 
    7979 
     
    8181} 
    8282?> 
    83 <tr><td colspan="3"><input type="submit" class="inb" value="<?php __("Delete the checked TLD"); ?>"></td></tr> 
     83<tr><td colspan="3"><input type="submit" class="inb" value="<?php __("Delete the checked TLD"); ?>" /></td></tr> 
    8484</table> 
    8585</form> 
  • bureau/admin/adm_tldadd.php

    r102 r108  
    11<?php 
    22/* 
    3  $Id: adm_tldadd.php,v 1.2 2003/06/10 06:45:16 root Exp $ 
     3 $Id: adm_tldadd.php,v 1.3 2003/06/10 12:14:09 root Exp $ 
    44 ---------------------------------------------------------------------- 
    55 AlternC - Web Hosting System 
     
    3939</head> 
    4040<body> 
    41 <div align="center"><h3><?php __("Manage allowed domains (TLD)"); ?></h3></div> 
     41<h3><?php __("Manage allowed domains (TLD)"); ?></h3> 
    4242<?php 
    4343        if ($error) { 
    44                 echo "<font color=red>$error</font></body></html>"; 
     44          echo "<p class=\"error\">$error</p>"; 
    4545        } 
    4646 
     
    5656 
    5757<table border="0" cellpadding="4" cellspacing="0"> 
    58 <tr><th><?php __("TLD"); ?></th><td><input type="text" name="tld" class="int" value="<?php echo $tld; ?>" size="20" maxlength="64"></td></tr> 
    59 <tr><th><?php __("Allowed Mode"); ?></th><td><select name="mode" class="inl"> 
     58<tr><th><label for="tld"><?php __("TLD"); ?></label></th><td><input type="text" id="tld" name="tld" class="int" value="<?php echo $tld; ?>" size="20" maxlength="64" /></td></tr> 
     59<tr><th><label for="mode"><?php __("Allowed Mode"); ?></label></th><td><select name="mode" id="mode" class="inl"> 
    6060        <?php $admin->selecttldmode($mode); ?> 
    6161</select></td></tr> 
    62 <tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Add a new TLD"); ?>"></td></tr> 
     62<tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Add a new TLD"); ?>" /></td></tr> 
    6363</table> 
    6464</form> 
  • bureau/admin/adm_tldedit.php

    r1 r108  
    11<?php 
    22/* 
    3  $Id: adm_tldedit.php,v 1.1.1.1 2003/03/26 17:41:29 root Exp $ 
     3 $Id: adm_tldedit.php,v 1.2 2003/06/10 12:14:09 root Exp $ 
    44 ---------------------------------------------------------------------- 
    55 AlternC - Web Hosting System 
     
    4646</head> 
    4747<body> 
    48 <div align="center"><h3><?php __("Manage allowed domains (TLD)"); ?></h3></div> 
     48<h3><?php __("Manage allowed domains (TLD)"); ?></h3> 
    4949<?php 
    5050        if ($error) { 
    51                 echo "<font color=red>$error</font></body></html>"; 
     51                echo "<p class=\"error\">$error</p>"; 
    5252        } 
    5353?> 
     
    5555 
    5656<form method="post" action="adm_tlddoedit.php"> 
    57  
    5857<table border="0" cellpadding="4" cellspacing="0"> 
    59 <tr><th><?php __("TLD"); ?></th><td><code><?php echo $tld; ?></code><input type="hidden" name="tld" value="<?php echo $tld; ?>"></t\d></tr> 
    60 <tr><th><?php __("Allowed Mode"); ?></th><td><select name="mode" class="inl"> 
     58<tr><th><label for="tld"><?php __("TLD"); ?></label></th><td><code><?php echo $tld; ?></code><input type="hidden" name="tld" id="tld" value="<?php echo $tld; ?>" /></td></tr> 
     59<tr><th><label for="mode"><?php __("Allowed Mode"); ?></label></th><td><select name="mode" class="inl" id="mode"> 
    6160        <?php $admin->selecttldmode($mode); ?> 
    6261</select></td></tr> 
    63 <tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Edit this TLD"); ?>"></td></tr> 
     62<tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Edit this TLD"); ?>" /></td></tr> 
    6463</table> 
    6564</form> 
  • bureau/admin/browseforfolder.php

    r102 r108  
    7676if ($submit=="Valider") { 
    7777        /* Go ahead, let's send the javascript ...*/ 
    78         echo "<html><head><script language=\"javascript\">\n"; 
     78        echo "<html><head><script type=\"text/javascript\">\n"; 
    7979        echo "window.opener.document.".$caller.".value='".addslashes($file)."';\n"; 
    8080        echo "window.opener.window.focus();\n"; 
    8181        echo "window.close();\n"; 
    8282        echo "</script>\n"; 
     83        echo "</head><body></body></html>"; 
    8384        exit(); 
    8485} 
    8586 
    86 ?><html> 
     87?> 
     88<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     89<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> 
    8790<head> 
    8891<title>Recherche d'un dossier</title> 
    89 <link rel="stylesheet" href="styles/style.css" type="text/css"> 
    90 <script language="javascript"> 
     92<link rel="stylesheet" href="styles/style.css" type="text/css" /> 
     93<script type="text/javascript"> 
    9194/* Fonction appellée lors du lancement d'un popup Fichier : */ 
    9295function popupfile() { 
     
    106109        echo "Erreur, Fichier introuvable<br />"; 
    107110        /* Retour : */ 
    108         echo "<a href=\"browseforfolder.php?caller=".urlencode($caller)."&curdir=".$root."\">Retourner au dossier racine</a><br />"; 
     111        echo "<a href=\"browseforfolder.php?caller=".urlencode($caller)."&amp;curdir=".$root."\">Retourner au dossier racine</a><br />"; 
    109112} else { 
    110113        /* Sinon, tout va bien, on affiche le tableau */ 
    111114        reset($ar); 
    112115?> 
    113 <form method="POST" name="main" action="browseforfolder.php"> 
    114 <input type="hidden" name="caller" value="<?php echo $caller; ?>"> 
    115 <input type="hidden" name="lastcurdir" value="<?php echo $curdir; ?>"> 
     116<form method="post" id="main" action="browseforfolder.php"> 
     117<p> 
     118<input type="hidden" name="caller" value="<?php echo $caller; ?>" /> 
     119<input type="hidden" name="lastcurdir" value="<?php echo $curdir; ?>" /> 
    116120 
    117 <input type="text" class="int" name="file" size="20" value="<?php echo $file ?>"><input class="inb" type="submit" name="submit" value="..."><br /> 
     121<input type="text" class="int" name="file" size="20" value="<?php echo $file ?>" /><input class="inb" type="submit" name="submit" value="..." /><br /> 
    118122 
    119 <input type="submit" name="submit" value="Valider" class="inb" >&nbsp; 
    120 <input type="button" name="cancel" value="Annuler" class="inb" onclick="window.close();">&nbsp;<br /> 
     123<input type="submit" name="submit" value="Valider" class="inb" />&nbsp; 
     124<input type="button" name="cancel" value="Annuler" class="inb" onclick="window.close();" />&nbsp; 
     125</p> 
    121126</form> 
    122127 
     
    130135                if ($val["put"]!="") { 
    131136                        ?> 
    132                         <td width="16"><img src="icon/folder.png" width="16" height="16"></td> 
     137                        <td width="16"><img src="icon/folder.png" width="16" height="16" alt="" /></td> 
    133138                        <?php 
    134139                } else { 
    135140                                ?> 
    136                         <td width="16"><img src="icon/openfold.png" width="16" height="16"></td> 
     141                        <td width="16"><img src="icon/openfold.png" width="16" height="16" alt="" /></td> 
    137142                        <?php 
    138143                } 
    139144                echo "<td colspan=\"".($maxlevel-$val["level"]+1)."\">"; 
    140145                if ($val["put"]!="") { 
    141                         echo "<a href=\"browseforfolder.php?caller=".urlencode($caller)."&file=".urlencode($val["put"])."\">".$val["dir"]."</a>"; 
     146                        echo "<a href=\"browseforfolder.php?caller=".urlencode($caller)."&amp;file=".urlencode($val["put"])."\">".$val["dir"]."</a>"; 
    142147                } else { 
    143148                        echo "<b>".$val["dir"]."</b>"; 
  • bureau/admin/dom_add.php

    r104 r108  
    11<?php 
    22/* 
    3  $Id: dom_add.php,v 1.3 2003/06/10 07:20:29 root Exp $ 
     3 $Id: dom_add.php,v 1.4 2003/06/10 12:14:09 root Exp $ 
    44 ---------------------------------------------------------------------- 
    55 AlternC - Web Hosting System 
     
    3636</head> 
    3737<body onload="document.forms['main'].newdomain.focus();"> 
    38 <div align="center"><h3><?php __("Domain hosting"); ?></h3></div> 
     38<h3><?php __("Domain hosting"); ?></h3> 
    3939<?php 
    4040if (!$quota->cancreate("dom")) { ?> 
    41 <font color="red"><?php echo _("You cannot add any new domain, your quota is over.")." "._("Contact your administrator for more information."); ?></font> 
     41<p class="error"><?php echo _("You cannot add any new domain, your quota is over.")." "._("Contact your administrator for more information."); ?></p> 
    4242<?php 
    4343exit(); 
    4444} 
    45 if ($error) echo "<font color=red>$error</font>"; 
     45if ($error) echo "<p class=\"error\">$error</p>"; 
    4646?> 
    47 <form method="post" action="dom_doadd.php" name="main"> 
     47<form method="post" action="dom_doadd.php" id="main"> 
    4848<table><tr><td> 
    49 <b><?php __("Domain name"); ?> : www.</b></td><td><input type="text" class="int" name="newdomain" value="<?php echo $newdomain ?>" size="32" maxlength="255" /> 
     49<b><label for="newdomain"><?php __("Domain name"); ?> : www.</label></b></td><td><input type="text" class="int" id="newdomain" name="newdomain" value="<?php echo $newdomain ?>" size="32" maxlength="255" /> 
    5050</td></tr><tr><td></td><td><input type="submit" class="inb" name="submit" value="<?php __("Add this domain"); ?>" /></td></tr> 
    5151</table> 
    5252<input type="checkbox" name="dns" class="inc" value="1" id="yndns" <?php if ($dns=="1") echo "checked=\"checked\""; ?> /></td><td colspan="2"><label for="yndns"><?php __("host my dns here"); ?></label> 
    53 <p> 
     53<p class="error"> 
    5454<small> 
    55 <font color="red"><?php __("If you don't want to host in our server the DNS of your domain, don't check the box 'host my dns here'. If you don't know what it mean, leave it checked."); ?></font></small></p> 
     55<?php __("If you don't want to host in our server the DNS of your domain, don't check the box 'host my dns here'. If you don't know what it mean, leave it checked."); ?></small></p> 
    5656<?php $mem->show_help("add_domain"); ?> 
    5757<p>&nbsp;</p> 
Note: See TracChangeset for help on using the changeset viewer.