function student_search_render_small_search

6.x student_search.module student_search_render_small_search()
4.x student_search.module student_search_render_small_search()
5.x student_search.module student_search_render_small_search()

This is meant to be called directly from the theme template, to draw the small search box in the corner of the screen.

As such, we need to include any javascript we need here, rather than using fp_add_js.

1 call to student_search_render_small_search()
fp_render_top_nav_content in includes/theme.inc
Returns the HTML for the top navigation content of the screen itself.

File

modules/student_search/student_search.module, line 303

Code

function student_search_render_small_search() {
  global $current_student_id;

  $rtn = "";

  $url = fp_url("student-search/search");

  $rtn .= "<form action='" . $url . "' method='post' id='small-search-form' >
                     <input type='text' class='smallinput' name='search_for' id='search_bar_value'  autocomplete='off' placeholder = '" . t("Search students by name or CWID") . "'>                     
                     <a href='javascript:void(0);' class='small-search-submit' onClick='this.closest(\"form\").submit();'><i class='fa fa-search'></i></a>
                     <input type='hidden' name='current_student_id' value='$current_student_id'>   
                     <input type='hidden' name='did_search' value='true'>                  
                    </form>
                    ";

  return $rtn;

}