else { $option_array[$tablelist_counter]['text'] = $row2[0]; $option_array[$tablelist_counter]['dir'] = $default_lang_direction; } // end else (if there is no table alias) localize(1); // Go back to the localization for the user's choice of language } // end else (if there is no table alias or table heading in the user's language) $tablelist_counter++; } // end if } // end foreach (of all the tables being added to the drop-down menu) // Run function to sort a multidimensional array (the 2nd dimension only) by a specified field $option_mult_arr[] = fieldSort($option_array, 'text'); $advancedaccessno = $accesskeynobutton - 1; $advancedaccess = chr($advancedaccessno); if ($advancedaccessno >= 106) { $advancedaccess = "accesskey=\"".$advancedaccess."\""; } // end if (if the letters are still greater than the last possible ("j"), give an accesskey) else { $advancedaccess = ''; // Don't make any more accesskey's after counting down to "a" } // end else (if the letters are exhausted, don't give an accesskey) $check = htmlentities($_GET['check']); if ($check) { $checked = "checked=\"checked\""; } // end if
$option_array[$tablelist_counter]['text'] = $tableheading; $option_array[$tablelist_counter]['dir'] = $textdirec; } else { $option_array[$tablelist_counter]['text'] = $row2[0]; $option_array[$tablelist_counter]['dir'] = $default_lang_direction; } // end else (if there is no table alias) localize(1); // Go back to the localization for the user's choice of language } // end else (if there is no table alias or table heading in the user's language) $tablelist_counter++; } // end while (of all the tables being added to the drop-down menu) // Run function to sort a multidimensional array (the 2nd dimension only) by a specified field $option_array = fieldSort($option_array, 'text'); for ($i = 0; $i < $tablelist_counter; $i++) { print <<<HERE \t\t\t\t<option class="{$m}option" id="option{$m}-{$i}" value="{$option_array[$i]['value']}" HERE; if ($i == 0) { print "selected=\"selected\" "; } // end if (if the table is the first in the list, give it the selected value for accessibility purposes) print <<<HERE dir="{$option_array[$i]['dir']}">{$option_array[$i]['text']}</option> HERE; } // end for (looping through the now-sorted array to print out the menu options $langu = $ck_language;