@@ 2717-2730 (lines=14) @@ | ||
2714 | * @param $dirarray |
|
2715 | * @param $namearray |
|
2716 | */ |
|
2717 | public static function xtubeGetDirSelectOption($selected, $dirarray, $namearray) |
|
2718 | { |
|
2719 | echo "<select size='1' name='workd' onchange='location.href=\"upload.php?rootpath=\"+this.options[this.selectedIndex].value'>"; |
|
2720 | echo "<option value=''>--------------------------------------</option>"; |
|
2721 | foreach ($namearray as $namearray => $workd) { |
|
2722 | if ($workd == $selected) { |
|
2723 | $opt_selected = 'selected'; |
|
2724 | } else { |
|
2725 | $opt_selected = ''; |
|
2726 | } |
|
2727 | echo '<option value="' . htmlspecialchars($namearray, ENT_QUOTES) . '" $opt_selected>' . $workd . '</option>'; |
|
2728 | } |
|
2729 | echo '</select>'; |
|
2730 | } |
|
2731 | ||
2732 | /** |
|
2733 | * @param $selected |
|
@@ 2737-2750 (lines=14) @@ | ||
2734 | * @param $dirarray |
|
2735 | * @param $namearray |
|
2736 | */ |
|
2737 | public static function xtubeVGetDirSelectOption($selected, $dirarray, $namearray) |
|
2738 | { |
|
2739 | echo "<select size='1' name='workd' onchange='location.href=\"vupload.php?rootpath=\"+this.options[this.selectedIndex].value'>"; |
|
2740 | echo "<option value=''>--------------------------------------</option>"; |
|
2741 | foreach ($namearray as $namearray => $workd) { |
|
2742 | if ($workd == $selected) { |
|
2743 | $opt_selected = 'selected'; |
|
2744 | } else { |
|
2745 | $opt_selected = ''; |
|
2746 | } |
|
2747 | echo '<option value="' . htmlspecialchars($namearray, ENT_QUOTES) . '" $opt_selected>' . $workd . '</option>'; |
|
2748 | } |
|
2749 | echo '</select>'; |
|
2750 | } |
|
2751 | ||
2752 | /** |
|
2753 | * @param $FILES |