/*************************** Module Header ******************************* * * Module Name: list.php * * Script to create a status list out of the db\* files * * Copyright (c) Netlabs EPM Distribution Project 2002 * * $Id$ * * =========================================================================== * * This file is part of the Netlabs EPM Distribution package and is free * software. You can redistribute it and/or modify it under the terms of the * GNU General Public License as published by the Free Software * Foundation, in version 2 as it comes in the "COPYING" file of the * Netlabs EPM Distribution. This library is distributed in the hope that it * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * *************************************************************************/ ?> include( "filedb.inc") ?>
// some basic default values $bgcolor_bright = "#ffffff"; $bgcolor_dark = "#dddddd"; $bgcolor_header = "#bbbbbb"; $bgcolor_selected = $bgcolor_dark; // check for any commit file $commit = filedb_querycommitstatus( "db"); $commit_color = filedb_getstatuscolor( $commit); // read filenames $aaentry = filedb_queryentries( "db"); // define background colors for header line $bgcolor_u = $bgcolor_header; $bgcolor_t = $bgcolor_header; $bgcolor_p = $bgcolor_header; $bgcolor_c = $bgcolor_header; $bgcolor_s = $bgcolor_header; $bgcolor_m = $bgcolor_header; // sort here $sort = $_GET[ "sort"]; if ($sort == "t") { $bgcolor_t = $bgcolor_selected; usort( $aaentry, "filedb_sorttitle"); } else if ($sort == "p") { $bgcolor_p = $bgcolor_selected; usort( $aaentry, "filedb_sortprio"); } else if ($sort == "c") { $bgcolor_c = $bgcolor_selected; usort( $aaentry, "filedb_sortcategory"); } else if ($sort == "s") { $bgcolor_s = $bgcolor_selected; usort( $aaentry, "filedb_sortstatus"); } else if ($sort == "m") { $bgcolor_m = $bgcolor_selected; usort( $aaentry, "filedb_sortmodified"); } ?>> # | > prio | > category | > title | > status | > >CVS | > last modified |
---|---|---|---|---|---|---|
"; echo $i + 1; echo " | "; echo ""; echo $prio; echo " | "; echo ""; echo $category; echo " | "; echo ""; echo "".$title.""; echo " | "; echo ""; echo $status; echo " | "; echo ""; echo $cvsstat; echo " | "; echo ""; echo $modified; echo " | "; echo "
=$NOTE?>:
=$NOTETEXT?>