This file represents a View layer of the BMLT MVC pattern. It will do a meeting search, and return the results as comma-separated values (CSV). It is not an object-oriented file, and is quite simple to use. For many people, the procedural View Layer files may be all they need to see. The object-oriented stuff is encapsulated within. More...
Functions | |
| DisplaySearchResultsList ($in_http_vars, $in_root_offset= '/../') | |
| This function does a search, then builds an HTML markup of a tabular result, with each row being a meeting. It also allows sorting of the list vie 3 different axes. | |
| DisplayPageData (&$in_ar, $in_sort_keys, $in_page_no, $in_sort_key, $in_sort_dir, $in_http_vars, $in_query, $in_script_name, $in_radius=null, $in_long=null, $in_lat=null) | |
| This is called after the search has been executed. It lays out the table headers, sets up the sort links, and displays each meeting in its row. | |
| DisplayDataEditor ($in_localized_strings, $in_http_vars, $in_script_name) | |
| This creates the HTML for the edit data item, at the bottom of a logged-in search results page. | |
| DisplayMeeting (c_comdef_meeting &$in_mtg_obj, $in_http_vars, $in_script_name) | |
| This arranges one table row to be displayed for one meeting. | |
| DisplayResultCount ($in_num_results, $in_first, $in_last, $in_script_name, $in_radius=null, $in_long=null, $in_lat=null, $in_loc=null) | |
| This Builds a brief display over the table, indicating which meeting records are being covered by the current page. | |
| DisplayResultNav ($in_page_no, $in_sort_key, $in_sort_dir, $in_num_pages, $in_page_display_size, $in_query, $in_script_name, $in_radius=null, $in_long=null, $in_lat=null) | |
| This creates the numbered page navigation bar. | |
This file represents a View layer of the BMLT MVC pattern. It will do a meeting search, and return the results as comma-separated values (CSV). It is not an object-oriented file, and is quite simple to use. For many people, the procedural View Layer files may be all they need to see. The object-oriented stuff is encapsulated within.
This file represents a View layer of the BMLT MVC pattern. It will do a meeting search, and display the results as a paged list. It will present a simple table list, with each line being a meeting, and will provide UI for sorting the results. It is not an object-oriented file, and is quite simple to use. For many people, the procedural View Layer files may be all they need to see. The object-oriented stuff is encapsulated within.
The way you use this file is to call DisplaySearchResultsCSV with an array that contains values that specify the search.
This file is part of the Basic Meeting List Toolbox (BMLT).
Find out more at: http://magshare.org/bmlt
BMLT is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
BMLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this code. If not, see <http://www.gnu.org/licenses/>.
This is the list display for the basic HTML implementation of the BMLT.
This file generates HTML structure that is modified by the presentation code in the search_results_list.css and search_results_list_print.css files.
The way you use this file is to call DisplaySearchResultsList with an array that contains values that specify the search.
This file is part of the Basic Meeting List Toolbox (BMLT).
Find out more at: http://magshare.org/bmlt
BMLT is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
BMLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this code. If not, see <http://www.gnu.org/licenses/>.
| DisplayDataEditor | ( | $ | in_localized_strings, |
| $ | in_http_vars, | ||
| $ | in_script_name | ||
| ) |
This creates the HTML for the edit data item, at the bottom of a logged-in search results page.
| in_localized_strings | The localized strings |
| in_http_vars | The HTTP GET and POST arguments. |
| in_script_name | A string. The name of the script for the links. |
Referenced by DisplayPageData().
| DisplayMeeting | ( | c_comdef_meeting &$ | in_mtg_obj, |
| $ | in_http_vars, | ||
| $ | in_script_name | ||
| ) |
This arranges one table row to be displayed for one meeting.
| in_mtg_obj | A reference to an instance of c_comdef_meeting. |
| in_http_vars | The HTTP GET and POST arguments. |
| in_script_name | A string. The name of the script for the links. |
Referenced by DisplayPageData().
| DisplayPageData | ( | &$ | in_ar, |
| $ | in_sort_keys, | ||
| $ | in_page_no, | ||
| $ | in_sort_key, | ||
| $ | in_sort_dir, | ||
| $ | in_http_vars, | ||
| $ | in_query, | ||
| $ | in_script_name, | ||
| $ | in_radius = null, |
||
| $ | in_long = null, |
||
| $ | in_lat = null |
||
| ) |
This is called after the search has been executed. It lays out the table headers, sets up the sort links, and displays each meeting in its row.
| in_ar | A reference to an array of c_comdef_meeting objects to be displayed. |
| in_sort_keys | An array of strings, representing the various sort keys. |
| in_page_no | The page number. |
| in_sort_key | The sort key used for this display. |
| in_sort_dir | The sort direction used for this display. |
| in_http_vars | The HTTP GET and POST arguments. |
| in_query | A string. The query parameters for links. |
| in_script_name | The name of the script, for links. |
| in_radius | A floating-point number. If this is the result of a radius search, this is the radius, in Km or miles. |
| in_long | A floating-point number. If this is the result of a radius search, this is the longitude of the center point. |
| in_lat | A floating-point number. If this is the result of a radius search, this is the latitude of the center point. |
Referenced by DisplaySearchResultsList().
| DisplayResultCount | ( | $ | in_num_results, |
| $ | in_first, | ||
| $ | in_last, | ||
| $ | in_script_name, | ||
| $ | in_radius = null, |
||
| $ | in_long = null, |
||
| $ | in_lat = null, |
||
| $ | in_loc = null |
||
| ) |
This Builds a brief display over the table, indicating which meeting records are being covered by the current page.
| in_num_results | An integer. The number of meetings total in the search. |
| in_first | An integer. The index of the first meeting displayed (1-based) |
| in_last | An integer. The index of the last meeting displayed. |
| in_script_name | The script name for the link. |
| in_radius | A floating-point number. If this is the result of a radius search, this is the radius, in Km or miles. |
| in_long | A floating-point number. If this is the result of a radius search, this is the longitude of the center point. |
| in_lat | A floating-point number. If this is the result of a radius search, this is the latitude of the center point. |
| in_loc | A string. If a string search was used for the location, the location string is given here. |
Referenced by DisplaySearchResultsList().
| DisplayResultNav | ( | $ | in_page_no, |
| $ | in_sort_key, | ||
| $ | in_sort_dir, | ||
| $ | in_num_pages, | ||
| $ | in_page_display_size, | ||
| $ | in_query, | ||
| $ | in_script_name, | ||
| $ | in_radius = null, |
||
| $ | in_long = null, |
||
| $ | in_lat = null |
||
| ) |
This creates the numbered page navigation bar.
| in_page_no | The page selected. |
| in_sort_key | The sort key used for this display. |
| in_sort_dir | The sort direction used for this display. |
| in_num_pages | The number of pages in this search result. |
| in_page_display_size | The number of page links to be shown before paging arrows are displayed. |
| in_query | A string. The query parameters for links. |
| in_script_name | The name of the script, for links. |
| in_radius | A floating-point number. If this is the result of a radius search, this is the radius, in Km or miles. |
| in_long | A floating-point number. If this is the result of a radius search, this is the longitude of the center point. |
| in_lat | A floating-point number. If this is the result of a radius search, this is the latitude of the center point. |
Referenced by DisplaySearchResultsList().
| DisplaySearchResultsList | ( | $ | in_http_vars, |
| $ | in_root_offset = '/../' |
||
| ) |
This function does a search, then builds an HTML markup of a tabular result, with each row being a meeting. It also allows sorting of the list vie 3 different axes.
| in_http_vars | The various HTTP GET and POST parameters. If this is defined and set to 'yes', then that means the client supports AJAX.
|
This is necessary for links:
The values that are important to the list paging are:
These are used to specify a search:
The following values specify a start time "window." The meeting must start on, or after StartsAfterH/M, and can start no later than StartsBeforeH/M
The following values specify a time duration "window." The meeting can last no longer than MaxDurationH/M, and no less than MinDurationH/M.
This is how meetings are located. We don't use address lookups. Instead, we geolocate the meetings via the longitude and latitude fields in each record. If you don't specify a geolocation, then the entire database is searched. If you do specify one, then only the portion within the radius is searched.
| in_root_offset | This is used for administration. It makes sure that the URIs to the AJAX handlers are referenced correctly. I am not proud of this. It represents a design flaw. My design has a glass jaw, and can't handle the context being shifted around without some handholding. |
Referenced by GetSearchResults().
1.7.4