HTML->XHTML preparation (still *A LOT* to convert
[mailer.git] / inc / mysql-manager.php
index 82ebd0721b1a4201f2057a7c2ef3a441ef38963f..f3a7aba8246c3a89b3d09588a32ca88f7f2b12de 100644 (file)
@@ -264,7 +264,7 @@ function ADD_DESCR ($ACC_LVL, $file, $return = false, $output = true) {
        }
        if ((!isset($NAV_DEPTH)) && (!$return)) {
                $NAV_DEPTH = 0;
-               $prefix = "<DIV class=\"you_are_here\">".YOU_ARE_HERE."&nbsp;<STRONG><A class=\"you_are_here\" href=\"".URL."/modules.php?module=".$GLOBALS['module'].$LINK_ADD."\">Home</A></STRONG>";
+               $prefix = "<div class=\"you_are_here\">".YOU_ARE_HERE."&nbsp;<strong><a class=\"you_are_here\" href=\"".URL."/modules.php?module=".$GLOBALS['module'].$LINK_ADD."\">Home</a></strong>";
        } else {
                if (!$return) $NAV_DEPTH++;
                $prefix = "";
@@ -293,7 +293,7 @@ function ADD_DESCR ($ACC_LVL, $file, $return = false, $output = true) {
                        return $ret;
                } elseif (((GET_EXT_VERSION("sql_patches") >= "0.2.3") && (getConfig('youre_here') == "Y")) || ((IS_ADMIN()) && ($modCheck == "admin"))) {
                        // Output HTML code
-                       $OUT = $prefix."<STRONG><A class=\"you_are_here\" href=\"".URL."/modules.php?module=".$modCheck."&amp;".$type."=".$search.$LINK_ADD."\">".$ret."</A></STRONG>\n";
+                       $OUT = $prefix."<strong><a class=\"you_are_here\" href=\"".URL."/modules.php?module=".$modCheck."&amp;".$type."=".$search.$LINK_ADD."\">".$ret."</a></strong>\n";
 
                        // Can we close the you-are-here navigation?
                        //* DEBUG: */ echo __LINE__."*".$type."/".$GLOBALS['what']."*<br />\n";
@@ -373,26 +373,26 @@ function ADD_MENU ($MODE, $act, $wht) {
                                        $test = (FILE_READABLE($test_inc));
                                        if ($test) {
                                                if ((!empty($wht)) && (($wht == $sub_what))) {
-                                                       $content = "<STRONG>";
+                                                       $content = "<strong>";
                                                }
 
                                                // Navigation link
-                                               $content .= "<A name=\"menu\" class=\"menu_blur\" href=\"".URL."/modules.php?module=".$GLOBALS['module']."&amp;what=".$sub_what.ADD_URL_DATA("")."\" target=\"_self\">";
+                                               $content .= "<a name=\"menu\" class=\"menu_blur\" href=\"".URL."/modules.php?module=".$GLOBALS['module']."&amp;what=".$sub_what.ADD_URL_DATA("")."\" target=\"_self\">";
                                        } else {
-                                               $content .= "<I>";
+                                               $content .= "<em>";
                                        }
 
                                        // Menu title
                                        $content .= getConfig('menu_blur_spacer') . $sub_title;
 
                                        if ($test) {
-                                               $content .= "</A>";
+                                               $content .= "</a>";
                                        } else {
-                                               $content .= "</I>";
+                                               $content .= "</em>";
                                        }
 
                                        if ((!empty($wht)) && (($wht == $sub_what))) {
-                                               $content .= "</STRONG>";
+                                               $content .= "</strong>";
                                        }
                                        $wht = $sub_what; $cnt++;
                                        // Prepare array
@@ -513,11 +513,11 @@ function ADD_MAX_RECEIVE_LIST($MODE, $default="", $return=false)
                        $OUT = "";
                        while (list($value, $comment) = SQL_FETCHROW($result))
                        {
-                               $OUT .= "      <OPTION value=\"".$value."\"";
+                               $OUT .= "      <option value=\"".$value."\"";
                                if ($_POST['max_mails'] == $value) $OUT .= " selected=\"selected\"";
                                $OUT .= ">".$value." ".PER_DAY;
                                if (!empty($comment)) $OUT .= " (".$comment.")";
-                               $OUT .= "</OPTION>\n";
+                               $OUT .= "</option>\n";
                        }
                        define('__MAX_RECEIVE_OPTIONS', $OUT);
 
@@ -539,11 +539,11 @@ function ADD_MAX_RECEIVE_LIST($MODE, $default="", $return=false)
                        $OUT = "";
                        while (list($value, $comment) = SQL_FETCHROW($result))
                        {
-                               $OUT .= "      <OPTION value=\"".$value."\"";
+                               $OUT .= "      <option value=\"".$value."\"";
                                if ($default == $value) $OUT .= " selected=\"selected\"";
                                $OUT .= ">".$value." ".PER_DAY;
                                if (!empty($comment)) $OUT .= " (".$comment.")";
-                               $OUT .= "</OPTION>\n";
+                               $OUT .= "</option>\n";
                        }
                        define('__MAX_RECEIVE_OPTIONS', $OUT);
                        SQL_FREERESULT($result);
@@ -802,25 +802,25 @@ function SEND_MODE_MAILS($mod, $modes) {
                                        $sub_mem = MEMBER_CHANGED_DATA;
 
                                        // Output success message
-                                       $content = "<SPAN class=\"member_done\">".MYDATA_MAIL_SENT."</SPAN>";
+                                       $content = "<span class=\"member_done\">".MYDATA_MAIL_SENT."</span>";
                                        break;
 
                                default:
                                        DEBUG_LOG(__FUNCTION__, __LINE__, sprintf("Unsupported module %s detected.", $mod));
-                                       $content = "<SPAN class=\"member_failed\">".UNKNOWN_MODULE."</SPAN>";
+                                       $content = "<span class=\"member_failed\">".UNKNOWN_MODULE."</span>";
                                        break;
                                } // END - switch
                        } else {
                                // Could not load profile data
-                               $content = "<SPAN class=\"member_failed\">".MEMBER_CANNOT_LOAD_PROFILE."</SPAN>";
+                               $content = "<span class=\"member_failed\">".MEMBER_CANNOT_LOAD_PROFILE."</span>";
                        }
                } else {
                        // Passwords mismatch
-                       $content = "<SPAN class=\"member_failed\">".MEMBER_PASSWORD_ERROR."</SPAN>";
+                       $content = "<span class=\"member_failed\">".MEMBER_PASSWORD_ERROR."</span>";
                }
        } else {
                // Could not load profile
-               $content = "<SPAN class=\"member_failed\">".MEMBER_CANNOT_LOAD_PROFILE."</SPAN>";
+               $content = "<span class=\"member_failed\">".MEMBER_CANNOT_LOAD_PROFILE."</span>";
        }
 
        // Send email to user if required
@@ -839,7 +839,7 @@ function SEND_MODE_MAILS($mod, $modes) {
                        $content = CANNOT_SEND_ADMIN_MAILS;
                } else {
                        // No mail to admin
-                       $content = "<SPAN class=\"member_done\">".MYDATA_MAIL_SENT."</SPAN>";
+                       $content = "<span class=\"member_done\">".MYDATA_MAIL_SENT."</span>";
                }
        } // END - if
 
@@ -1455,9 +1455,9 @@ function ADD_OPTION_LINES ($table, $id, $name, $default="", $special="", $where=
                if (is_array($id) && is_array($name) && sizeof($id) == sizeof($name)) {
                        // Both are arrays
                        foreach ($id as $idx => $value) {
-                               $ret .= "<OPTION value=\"".$value."\"";
+                               $ret .= "<option value=\"".$value."\"";
                                if ($default == $value) $ret .= " selected checked";
-                               $ret .= ">".$name[$idx]."</OPTION>\n";
+                               $ret .= ">".$name[$idx]."</option>\n";
                        } // END - foreach
                } // END - if
        } else {
@@ -1472,17 +1472,17 @@ function ADD_OPTION_LINES ($table, $id, $name, $default="", $special="", $where=
                        // Found data so add them as OPTION lines: $id is the value and $name is the "name" of the option
                        while (list($value, $title, $add) = SQL_FETCHROW($result)) {
                                if (empty($special)) $add = "";
-                               $ret .= "<OPTION value=\"".$value."\"";
+                               $ret .= "<option value=\"".$value."\"";
                                if ($default == $value) $ret .= " selected checked";
                                if (!empty($add)) $add = " (".$add.")";
-                               $ret .= ">".$title.$add."</OPTION>\n";
+                               $ret .= ">".$title.$add."</option>\n";
                        } // END - while
 
                        // Free memory
                        SQL_FREERESULT($result);
                } else {
                        // No data found
-                       $ret = "<OPTION value=\"x\">".SELECT_NONE."</OPTION>\n";
+                       $ret = "<option value=\"x\">".SELECT_NONE."</option>\n";
                }
        }
 
@@ -1831,7 +1831,7 @@ WHERE userid=%s AND status='CONFIRMED' AND receive_mails > 0".PREPARE_SQL_HTML_H
                $OUT = "";
                foreach ($CATS['id'] as $key => $value) {
                        if (strlen($CATS['name'][$key]) > 20) $CATS['name'][$key] = substr($CATS['name'][$key], 0, 17)."...";
-                       $OUT .= "      <OPTION value=\"".$value."\">".$CATS['name'][$key]." (".$CATS['uids'][$key]." ".USER_IN_CAT.")</OPTION>\n";
+                       $OUT .= "      <option value=\"".$value."\">".$CATS['name'][$key]." (".$CATS['uids'][$key]." ".USER_IN_CAT.")</option>\n";
                }
        } else {
                // No cateogries are defined yet