| [ PHPXref.com ] | [ Generated: Sun Jul 20 19:45:06 2008 ] | [ PhpLabware 0.6 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Source view] [Print]
functions used by general.php, user-defined tabels
| File Size: | 1410 lines (66 kb) |
| Included or required: | 8 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| user_entry($id,$real_tablename) X-Ref |
| Displays information on the record's owner needs to be called within a table |
| date_entry($id,$real_tablename) X-Ref |
| * Prints name and date Needs to be called within a table |
| searchfield($db,$tableinfo,$nowfield,$_POST,$jscript) X-Ref |
| Displays searchbar in table view For data of type table, recursive calls are used The ugly stuff with _POST could be done better it would also be nicer if a string was returned instead of writing directly |
| viewlist($db,$tableinfo,$viewid) X-Ref |
| * Generated comma separated list of columns based on view prefs |
| viewmenu($db, $tableinfo,$viewid,$useronly=1,$jscript='OnChange="document.g_form.submit() X-Ref |
| * Generated menu with user-defined views |
| display_table_change($db,$tableinfo,$Fieldscomma,$pr_query,$num_p_r,$pr_curr_page,$page_array,$r=false) X-Ref |
| * Displays information in table in edit mode |
| display_table_info($db,$tableinfo,$Fieldscomma,$pr_query,$num_p_r,$pr_curr_page,$page_array,$r=false,$viewid=false) X-Ref |
| * Displays all information within the table |
| display_record($db,$Allfields,$id,$tableinfo,$backbutton=true,$previousid=false,$nextid=false,$viewid=false) X-Ref |
| * Display a record in a nice format |
| make_link($id,$DBNAME) X-Ref |
| * make a nice link to the record |
| show_reports($db,$tableinfo,$recordid=false,$viewid=false) X-Ref |
| * Make dropdown menu with available templates When one is chosen, open the formatted record in a new window |
| display_add($db,$tableinfo,$Allfields,$id,$namein,$system_settings) X-Ref |
| * display addition and modification form |
| getvalues($db,$tableinfo,$fields,$qfield=false,$field=false) X-Ref |
| * Get all description table values out for a display Returns an array with lots of information on every column If qfield is set, database values for that record will be returned as well |
| check_g_data($db,&$field_values,$tableinfo,$modify=false) X-Ref |
| Checks input data before they are entered in the database returns false if something can not be fixed |
| set_default($db,$tableinfo,$Fieldscomma,$USER,$system_settings) X-Ref |
| Go through the comma-separated list $Fieldscomma, and retrun an array ($fields) with every field that needs a value set to a default |
| add_g_form($db,$tableinfo,$field_values,$id,$USER,$PHP_SELF,$system_settings) X-Ref |
| Prints a form with addition stuff $fields is a comma-delimited string with column names $field_values is hash with column names as keys $id=0 for a new entry, otherwise it is the id |
| show_g($db,$tableinfo,$id,$USER,$system_settings,$backbutton=true,$previousid=false,$nextid=false,$viewid=false) X-Ref |
| Shows a page with nice information on the record |
| process_file($db,$fileid,$system_settings) X-Ref |
| Tries to convert a MsWord file into html It calls wvHtml. When succesfull, the file is added to the database Returns id of uploaded file |
| indexfile($db,$tableinfo,$indextable,$recordid,$fileid,$htmlfileid) X-Ref |
| Indexes the content of the given file The file is converted to a text file (pdfs with ghost script, word files were already converted to html,html characters are stripped), all words are lowercased, it is checked whether an entry in the table words already exists, if not, it is added. A relation to the word is made in the table associated with the given column |
| find_nested_match($db,$tableinfo,$field,$value,$first=true) X-Ref |
| Searches (nested) for a match with $value returns the id of the record in the associated value by searching recursively that can be used in a SQL search |
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |