/** * @author aoksenholt@gmail.com * * - Lists entries in ttime.entries.txt * - Lists entries in chosen database * * Feel free to modify/improve, but keep footer. I'm happy if you * notify me about changes you make. (attach index.php and URL to page * in an email). * */ include ("config.inc"); include ("messages.inc"); if (isset($_GET['language'])) $language=$_GET['language']; else $language=$DEFAULT_LANG; $LANG = $language; $VERSION = "0.16.1"; // requires allow_url_fopen TRUE //if (isset($_GET['version'])) { // print $VERSION; // return; //} ?>
".msg('dateHeader')." | ".msg('commentHeader')." | ".msg('numEntriesHeader')." | ".msg('entryListHeader')." | "; if ($showDbDlLink) print "".msg('downloadDbHeader')." | "; print "".$date." ".$time." | "; print "".$comment." | "; print "".$numEntries." | "; print "".msg('showListLink')." | "; if ($showDbDlLink) print "".msg('showDownloadLink')." | "; print ""; } } print "
---|
"; print msg('preface'); print "
"; } function printFooter() { global $VERSION; $changelog="http://www.pvv.ntnu.no/~oksenhol/ttime_db/ChangeLog"; $dl="http://www.pvv.ntnu.no/~oksenhol/ttime_db/ttimeserver.zip"; print " "; } function printEntryList($f,$comment) { global $norwegian; global $norEntity; global $preface; global $INDEX; global $LANG; $fc = file_get_contents($f); $fc_array = split("\n",$fc); // printLanguages(); print "".msg('tblIdHeader')." | "; print "".msg('tblEntryHeader')." | "; print "".msg('tblNameHeader')." | "; print "".msg('tblTeamHeader')." | "; print "".msg('tblClassHeader')." | "; print "".msg('tblEcardHeader')." | "; print "".msg('tblNoteHeader')." | "; print ""; if ($line[0]==""?print " ":print $line[0]) print " | "; print ""; if ($line[1]==""?print " ":print $line[1]); // print " | "; print " "; print " | ".$line[2]." | "; print ""; if ($line[4]==""?print " ":print $line[4]) print " | "; print ""; if ($line[3]==""?print " ":print $line[3]) print " | "; print ""; if ($line[6]==""?print " ":print $line[6]) print " | "; // comment field print ""; print ""; } } print " |
---|