diff --git a/main/admin/user_list.php b/main/admin/user_list.php index 67a5fffd94..bf73d3ded7 100755 --- a/main/admin/user_list.php +++ b/main/admin/user_list.php @@ -73,6 +73,30 @@ function clear_course_list (div_course) { $("div#"+div_course).html(" "); $("div#"+div_course).hide(""); } + +function display_advanced_search_form () { + if ($("#advanced_search_form").css("display") == "none") { + $("#advanced_search_form").css("display","block"); + $("#img_plus_and_minus").html(\' '.Display::return_icon('div_hide.gif',get_lang('Hide'),array('style'=>'vertical-align:middle')).' '.get_lang('AdvancedSearch').'\'); + } else { + $("#advanced_search_form").css("display","none"); + $("#img_plus_and_minus").html(\' '.Display::return_icon('div_show.gif',get_lang('Show'),array('style'=>'vertical-align:middle')).' '.get_lang('AdvancedSearch').'\'); + } +} + +$(document).ready(function() { + + var select_val = $("#input_select_extra_data").val(); + + if (select_val != 0) { + document.getElementById(\'extra_data_text\').style.display="block"; + document.getElementById(\'input_extra_text\').value = ""; + } else { + document.getElementById(\'extra_data_text\').style.display="none"; + } + +}); + '; $htmlHeadXtra[] = '