HTML->XHTML preparation (still *A LOT* to convert
[mailer.git] / inc / modules / admin / admin-inc.php
index fe98128..95e56d6 100644 (file)
@@ -247,12 +247,12 @@ function admin_WriteData ($file, $comment, $prefix, $suffix, $DATA, $seek=0) {
                $tmp = $file.".tmp";
 
                // Open the source file
-               $fp = @fopen($file, 'r') or OUTPUT_HTML("<STRONG>READ:</STRONG> ".$file."<br />");
+               $fp = @fopen($file, 'r') or OUTPUT_HTML("<strong>READ:</strong> ".$file."<br />");
 
                // Is the resource valid?
                if (is_resource($fp)) {
                        // Open temporary file
-                       $fp_tmp = @fopen($tmp, 'w') or OUTPUT_HTML("<STRONG>WRITE:</STRONG> ".$tmp."<br />");
+                       $fp_tmp = @fopen($tmp, 'w') or OUTPUT_HTML("<strong>WRITE:</strong> ".$tmp."<br />");
 
                        // Is the resource again valid?
                        if (is_resource($fp_tmp)) {
@@ -291,16 +291,16 @@ function admin_WriteData ($file, $comment, $prefix, $suffix, $DATA, $seek=0) {
                                @unlink($tmp);
                                define('_FATAL', false);
                        } elseif (!$found) {
-                               OUTPUT_HTML("<STRONG>CHANGE:</STRONG> 404!");
+                               OUTPUT_HTML("<strong>CHANGE:</strong> 404!");
                                define('_FATAL', true);
                        } else {
-                               OUTPUT_HTML("<STRONG>TMP:</STRONG> UNDONE!");
+                               OUTPUT_HTML("<strong>TMP:</strong> UNDONE!");
                                define('_FATAL', true);
                        }
                }
        } else {
                // File not found, not readable or writeable
-               OUTPUT_HTML("<STRONG>404:</STRONG> ".$file."<br />");
+               OUTPUT_HTML("<strong>404:</strong> ".$file."<br />");
        }
 }
 
@@ -437,23 +437,23 @@ function ADD_ADMIN_MENU($act, $wht, $return=false) {
                                }
                                $OUT .= "<TR>
        <TD class=\"admin_menu\" colspan=\"2\">
-               <NOBR>&nbsp;<STRONG>&middot;</STRONG>&nbsp;";
+               <NOBR>&nbsp;<strong>&middot;</strong>&nbsp;";
                                if (($menu == $act) && (empty($wht)))
                                {
-                                       $OUT .= "<STRONG>";
+                                       $OUT .= "<strong>";
                                }
                                 else
                                {
-                                       $OUT .= "[<A href=\"".URL."/modules.php?module=admin&amp;action=".$menu."\">";
+                                       $OUT .= "[<a href=\"".URL."/modules.php?module=admin&amp;action=".$menu."\">";
                                }
                                $OUT .= $title;
                                if (($menu == $act) && (empty($wht)))
                                {
-                                       $OUT .= "</STRONG>";
+                                       $OUT .= "</strong>";
                                }
                                 else
                                {
-                                       $OUT .= "</A>]";
+                                       $OUT .= "</a>]";
                                }
                                $OUT .= "</NOBR></TD>
 </TR>\n";
@@ -483,16 +483,16 @@ function ADD_ADMIN_MENU($act, $wht, $return=false) {
                                                        $menuDesription[$wht_sub] = $desc_what;
                                                        $OUT .= "<TR>
        <TD class=\"admin_menu\" colspan=\"2\">
-               <NOBR>&nbsp;<STRONG>--&gt;</STRONG>&nbsp;";
+               <NOBR>&nbsp;<strong>--&gt;</strong>&nbsp;";
                                                        if ($readable)
                                                        {
                                                                if ($wht == $wht_sub)
                                                                {
-                                                                       $OUT .= "<STRONG>";
+                                                                       $OUT .= "<strong>";
                                                                }
                                                                 else
                                                                {
-                                                                       $OUT .= "[<A href=\"".URL."/modules.php?module=admin&amp;what=".$wht_sub."\">";
+                                                                       $OUT .= "[<a href=\"".URL."/modules.php?module=admin&amp;what=".$wht_sub."\">";
                                                                }
                                                        }
                                                         else
@@ -504,16 +504,16 @@ function ADD_ADMIN_MENU($act, $wht, $return=false) {
                                                        {
                                                                if ($wht == $wht_sub)
                                                                {
-                                                                       $OUT .= "</STRONG>";
+                                                                       $OUT .= "</strong>";
                                                                }
                                                                 else
                                                                {
-                                                                       $OUT .= "</A>]";
+                                                                       $OUT .= "</a>]";
                                                                }
                                                        }
                                                         else
                                                        {
-                                                               $OUT .= "</I>";
+                                                               $OUT .= "</em>";
                                                        }
                                                        $OUT .= "</NOBR></TD>
 </TR>\n";
@@ -574,13 +574,13 @@ function ADD_MEMBER_SELECTION_BOX ($def="0", $add_all=false, $return=false, $non
        $OUT = "";
 
        // USe this only for adding points (e.g. adding refs really makes no sence ;-) )
-       if ($add_all) $OUT = "      <OPTION value=\"all\">".ALL_MEMBERS."</OPTION>\n";
-        elseif ($none) $OUT = "      <OPTION value=\"0\">".SELECT_NONE."</OPTION>\n";
+       if ($add_all) $OUT = "      <option value=\"all\">".ALL_MEMBERS."</option>\n";
+        elseif ($none) $OUT = "      <option value=\"0\">".SELECT_NONE."</option>\n";
        while (list($id, $sname, $fname) = SQL_FETCHROW($result))
        {
-               $OUT .= "      <OPTION value=\"".bigintval($id)."\"";
+               $OUT .= "      <option value=\"".bigintval($id)."\"";
                if ($def == $id) $OUT .= " selected=\"selected\"";
-               $OUT .= ">".$sname." ".$fname." (".bigintval($id).")</OPTION>\n";
+               $OUT .= ">".$sname." ".$fname." (".bigintval($id).")</option>\n";
        }
 
        // Free memory
@@ -608,19 +608,19 @@ function ADMIN_MENU_SELECTION($MODE, $default="", $defid="") {
         array($MODE), __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
                // Load menu as selection
-               $OUT = "<SELECT name=\"".$MODE."_menu";
+               $OUT = "<select name=\"".$MODE."_menu";
                if ((!empty($defid)) || ($defid == "0")) $OUT .= "[".$defid."]";
                $OUT .= "\" size=\"1\" class=\"admin_select\">
-       <OPTION value=\"\">".SELECT_NONE."</OPTION>\n";
+       <option value=\"\">".SELECT_NONE."</option>\n";
                while (list($menu, $title) = SQL_FETCHROW($result)) {
-                       $OUT .= "  <OPTION value=\"".$menu."\"";
+                       $OUT .= "  <option value=\"".$menu."\"";
                        if ((!empty($default)) && ($default == $menu)) $OUT .= " selected=\"selected\"";
-                       $OUT .= ">".$title."</OPTION>\n";
+                       $OUT .= ">".$title."</option>\n";
                } // END - while
 
                // Free memory
                SQL_FREERESULT($result);
-               $OUT .= "</SELECT>\n";
+               $OUT .= "</select>\n";
        } else {
                // No menus???
                $OUT = ADMIN_PROBLEM_NO_MENU;
@@ -776,9 +776,9 @@ function ADMIN_USER_PROFILE_LINK ($uid, $title="", $wht="list_user") {
                return $title;
        } // END - if
 
-       //* DEBUG: */ echo "A:".$title."<br />";
+       //* DEBUG: */ echo "a:".$title."<br />";
        // Return link
-       return "<A href=\"".URL."/modules.php?module=admin&amp;what=".$wht."&amp;u_id=".$uid."\" title=\"".ADMIN_USER_PROFILE_TITLE."\">".$title."</A>";
+       return "<a href=\"".URL."/modules.php?module=admin&amp;what=".$wht."&amp;u_id=".$uid."\" title=\"".ADMIN_USER_PROFILE_TITLE."\">".$title."</a>";
 }
 //
 function ADMIN_CHECK_MENU_MODE() {