$autopass = "******"; } $filename = test_get_filename($test_id); # FIGURE OUT WHAT SYMBOL TO EXPORT ("M", "A", "M/A", OR "") if ($manual == "YES") { if ($automated == "YES") { $script = "M/A"; } else { $script = "M"; } } elseif ($automated == "YES") { $script = "A"; } else { $script = ""; } $file_type = util_get_filetype(test_get_filename($test_id)); print "{$test_id},{$script},{$file_type},{$autopass},{$test_name},{$ba_owner},{$qa_owner},{$tester},{$test_type},{$area_tested}\r" . NEWLINE; } exit; # --------------------------------------------------------------------- # $Log: test_csv_export.php,v $ # Revision 1.3 2007/03/14 17:45:53 gth2 # removing code that passes varables by reference - gth # # Revision 1.2 2006/08/05 22:09:13 gth2 # adding NEWLINE constant to support multiple OS newline chars - gth # # Revision 1.1.1.1 2005/11/30 23:00:58 gth2 # importing initial version - gth # # ---------------------------------------------------------------------
function html_file_type($file_name) { $file_type = util_get_filetype($file_name); switch ($file_type) { case 'xls': return "<IMG SRC='" . ICON_SRC . "/xls.jpg' alt='xls' title='microsoft excel document'>"; break; case 'csv': return "<IMG SRC='" . ICON_SRC . "/xls.jpg' alt='xls' title='microsoft excel document'>"; break; case 'doc': return "<IMG SRC='" . ICON_SRC . "/doc.jpg' alt='doc' title='microsoft word document'>"; break; case 'txt': return "<IMG SRC='" . ICON_SRC . "/file.gif' alt='txt' title='plain text file'>"; break; case 'rtf': return "<IMG SRC='" . ICON_SRC . "/doc.jpg' alt='rtf' title='rich text document'>"; break; case 'pdf': return "<IMG SRC='" . ICON_SRC . "/pdf.jpg' alt='pdf' title='pdf'>"; break; case 'html': return "<IMG SRC='" . ICON_SRC . "/html.jpg' alt='html' title='html document'>"; break; case 'htm': return "<IMG SRC='" . ICON_SRC . "/htm.jpg' alt='html' title='html document'>"; break; case 'jpg': return "<IMG SRC='" . ICON_SRC . "/jpg.jpg' alt='jpg' title='jpg image'>"; break; case 'gif': return "<IMG SRC='" . ICON_SRC . "/gif.jpg' alt='gif' title='gif image'>"; break; default: return " "; } }