HRDIODB
[ class tree: HRDIODB ] [ index: HRDIODB ] [ all elements ]

Procedural File: search_forms.php

Source Location: /search_forms.php



Page Details:

Search forms.

This file contains the function used to display various parts of the search forms.




Tags:

filesource:  Source Code for this file


Includes:

require_once("uars_day_class.php") [line 28]
UARS day class

require_once("common_class.php") [line 30]
Common class







display_page_selector [line 56]

void display_page_selector( mixed $page, mixed $page_size, mixed $num_records)

Displays the page selector.

This function figures out which page we're on and displays the search results page selector.




[ Top ]



display_search_results [line 112]

void display_search_results( search_class $search, hrdi_db $hdb, integer $page, integer $page_size)

Displays search results.

This function is responsible for displaying the search results.




Parameters

search_class   $search   Search class instance containing search results
hrdi_db   $hdb   HRDI database instance
integer   $page   The search results page we're on
integer   $page_size   The number of results per page
[ Top ]



file_filter_form [line 215]

void file_filter_form( array $types, array $got)

Prints file filter form.

This function takes an array of file types and the sanitized get variable and prints the html form for filtering searches by file types.




Parameters

array   $types   File types and their ids
array   $got   The sanitized get variable
[ Top ]



free_search_forms [line 237]

void free_search_forms( hrdi_db $hdb, array $got, [ $search_results = FALSE])

Takes a hrdi_db class instance and prints the HTML forms for the free form searches.



Parameters

hrdi_db   $hdb   The hrdi_db instance
array   $got   The sanitized $_GET array
   $search_results  
[ Top ]



is_selected_operator [line 40]

string is_selected_operator( mixed $value, mixed $index, mixed $got)

Checks if the operator is selected.

This utility function checks to see if the current operator is selected.




Tags:

return:  The string "SELECTED" or ""


[ Top ]



pid_day_coverage_form [line 451]

void pid_day_coverage_form( array $got, array $pids, array $types, [ $search_results = FALSE])

Displays day coverage form.

This function displays the pid day coverage form.




Parameters

array   $got   The clean $_GET array
array   $pids   Array of pids
array   $types   File types
   $search_results  
[ Top ]



pid_form [line 397]

void pid_form( array $got, $types)

Displays pid search form.

This function displays the pid day coverage form. It has been put here for users following the tutorial on writing new search functions.




Parameters

array   $got   The clean $_GET array
   $types  
[ Top ]



predefined_search_forms [line 358]

void predefined_search_forms( hrdi_db $hdb, array $got, [ $search_results = FALSE])

Prints predefined search forms.

Controls the layout of search forms. Calls all predefined search forms.




Parameters

hrdi_db   $hdb   The hrdi_db instance
array   $got   The clean $_GET array
   $search_results  
[ Top ]



Documentation generated on Tue, 23 Jan 2007 22:57:52 -0500 by phpDocumentor 1.3.0RC6