table_expand_width BGCOLOR=$default->main_header_bgcolor CELLSPACING=0 CELLPADDING=0 BORDER=$default->table_border HEIGHT=30>"); ?> "); } print uid_to_name($userid); print (""); ?> $lang_logout");?> ");?> "); // generates a navigation bar and provides details for the docs print("table_expand_width BORDER=$default->table_border>"); print(""); print("
$lang_viewlog ".gen_navbar($parent)."/".flid_to_name($id)."

table_expand_width>
$filename"); print ("table_expand_width border=$default->table_border cellpadding=3 cellspacing=0> "); $sql = new Owl_DB; // SPECIFIC SQL LOG QUERY - NOT USED (problematic) // This SQL log query is designed for repository assuming there is only 1 // digit in major revision, and noone decides to have a "_x-" in their // filename. // // Has to be changed if the naming structure changes. // Also a problem that it didn't catch the "current" // file because of the "_x-" matching (grr) // //$sql->query("select * from $default->owl_files_table where filename LIKE '$filesearch[0]\__-%$filesearch[1]' order by major_revision desc, minor_revision desc"); // GENERIC SQL LOG QUERY - currently used. // prone to errors when people name a set of docs // Blah.doc // Blah_errors.doc // Blah_standards.doc // etc. and search for a log on Blah.doc (it brings up all 3 docs) //$sql->query("select * from $default->owl_files_table where filename LIKE '$filesearch[0]%$filesearch[1]' order by major_revision desc, minor_revision desc"); //$SQL = "select * from $default->owl_files_table where filename LIKE '$filesearch[0]%$filesearch[1]' order by major_revision desc, minor_revision desc"; //printError("PARENT: $parent",$SQL); if ($default->owl_use_fs) { $sql->query("Select id from $default->owl_folders_table where name='backup' and parent='$parent'"); while($sql->next_record()) { $backup_parent = $sql->f("id"); } $sql->query("select * from $default->owl_files_table where filename LIKE '$filesearch[0]%$filesearch[1]' AND (parent = $backup_parent OR parent = $parent) order by major_revision desc, minor_revision desc"); } else { // name based query -- assuming that the given name for the file doesn't change... $name = flid_to_name($id); $sql->query("select * from $default->owl_files_table where name='$name' AND parent='$parent' order by major_revision desc, minor_revision desc"); } //global $sess; // prints out all the relevant information on the specific document while($sql->next_record()) { $choped = split("\.", $sql->f("filename")); $pos = count($choped); $ext = strtolower($choped[$pos-1]); print(""); } //print(" // // //"); //} print("
$lang_ver $lang_user $lang_log_file $lang_modified
".$sql->f("major_revision").".".$sql->f("minor_revision")." ".uid_to_name($sql->f("creatorid"))." "); printFileIcons($sql->f("id"),$sql->f("filename"),$sql->f("checked_out"),$sql->f("url"),$default->owl_version_control,$ext); print("  [ ".$sql->f("filename")." ]
".$sql->f("description")."
".$sql->f("modified")."
".$sql->f("major_revision").".".$sql->f("minor_revision")."".uid_to_name($sql->f("creatorid"))."[ ".$sql->f("filename")." ]
//
".$sql->f("description")."
".$sql->f("modified")."
"); include("./lib/footer.inc"); ?>