Document Search

Permit Search

result = $result; } // Prints multiple records in horizontal format // Accepts array of field names to exclude from the table. function print_table_multi($excludedFields=array()) { if ( (!isset($this->result)) || (mssql_num_rows($this->result) == 0) ) { echo ("No results for this query
"); return; } $num_fields = mssql_num_fields($this->result); echo ("

\n\n"); $icnt=0; echo (""); for ($i = $icnt; $i < $num_fields; $i++) { if((array_search(mssql_field_name($this->result,$i),$excludedFields) === false)){ $this->fields[$i] = mssql_field_name($this->result,$i); echo (""); } } echo ("\n"); $row_count = 0; while ($row = mssql_fetch_array($this->result)) { $row_color = ""; if (++$row_count % 2 == 0) { //$row_color = "bgcolor=#b0c4de"; } echo (""); echo (""); foreach ($this->fields as $field_name) { if($row[$field_name] == "" or $row[$field_name] == NULL){ echo (""); }else{ echo (""); } } echo ("\n"); } echo ("
Click Link" . $this->fields[$i] . "
GET DOC - " . $row[$field_name] . "
\n"); } } ?>