Go to the source code of this file.
Variables | |
| $lang = (isset($_GET['lang'])) ? $_GET['lang'] : $lang_default | |
| $text = $text_multi[$lang] | |
| $buttons = $buttons_multi[$lang] | |
| $months = $months_multi[$lang] | |
| $valid_params | |
| valid choices for parameters | |
| $default_params | |
| initialization values for parameters | |
| $default_sortkeys = array( 'last_name', 'first_name', 'birthday') | |
| $sort = $_SESSION['sort'] | |
| $text ['status'] | |
| $text ['order'] | |
| $link = mysql_pconnect($dbhost, $dbuser, $dbpass)) or db_error_mysql() | |
| $table_columns | |
| $q = "DELETE FROM persons WHERE persons.status='old'" | |
| $_SESSION ["button"] = "" | |
| $sortkeys = $_SESSION["sort"] | |
| $q = "SELECT id FROM persons WHERE status = " | |
| $q = "'" . $_SESSION["status"] . "' " | |
| $q = "ORDER BY $sortkeys" | |
| $res = db_query_mysql($link,$q, array()) | |
| print</th > | n |
| print< th > & | nbsp |
| </th > print</tr > | n |
| $v = (isset($r[1][0])) ? $r[1][0] : "" | |
| </td > | n |
| print< td > | $id = $row["id"] |
| print< ahref=\"action.php?&lang=$lang&action=show&id=".$id."\"> print | $text ['details'] |
| print</td > | n |
| print</tr > | n |
Library staff has access to a web frontend that allows you to:
This is the entry page (index page) for this web frontend. It extracts all applicants' records from the database and displays them in a list.
| sort | primary key by which the list is sorted | |
| order | 'ascending' or 'descending' | |
| status | 'new' if we should display those records that have not yet been submitted to PICA, 'old' otherwise. | |
| button | whether the user has pressed a submit button (and which one) |
Definition in file admin/index.php.
| $valid_params |
Initial value:
array(
"sort" => "/^(last_name|first_name|birthday|sex|entry_date)$/",
"order"=> "/^(up|down)$/",
"status" => "/^(new|old)$/",
"button" => "/^(" . $buttons['delete_all'] . "|" . $buttons['ok'] . "|" .
$buttons['cancel'] . "|)$/",
"action"=> "/^(delete_all|)$/",
"lang" => "/^(de|en)$/"
)
This associative array is used as first parameter for the param_ok() function, and is used for validating user input that is delivered to the script via GET or POST request.
Definition at line 57 of file admin/index.php.
1.4.7