PhpLabWare version 0.3 

Directory: /includes/

general_inc.php

Author(s): (none)

functions used by general.php, user-defined tabels

1036 lines [source]

Referenced 6 times

Defines the following functions:



Function Guide

user_entry($id,$real_tablename)   X-Ref
No description


date_entry($id,$real_tablename)   X-Ref
No description


searchfield($db,$tableinfo,$nowfield,$HTTP_POST_VARS,$jscript)   X-Ref
Displays searchbar in table view
For data of type table, recursive calls ar used
The ugly stuff with HTTP_POST_VARS could be done better
it would also be nicer if a string was returned instead of writing directly


display_table_change($db,$tableinfo,$Fieldscomma,$pr_query,$num_p_r,$pr_curr_page,$page_array,$r=false)   X-Ref
No description


display_table_info($db,$tableinfo,$Fieldscomma,$pr_query,$num_p_r,$pr_curr_page,$page_array,$r=false)   X-Ref
No description


display_record($db,$Allfields,$id,$tableinfo,$backbutton=true,$previousid=false,$nextid=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)   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 to addition
returns false if something can not be fixed


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)   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 associated value by searching recursively
that can be used in a SQL search




Generated: Sun Oct 5 21:17:35 2003 SourceForge Logo Generated by PHPXref 0.2