Location: PHPKode > projects > Changelog > changelog/index.php
<?php
/*
	Changelog
	~~~~~~~~~~
	Author	: Thomas Whitecotton
	Email	: hide@address.com
	Website	: http://www.ciamosbase.com

*/
include("header.php");
OpenTable();

// Display folders first
$query = $db->query("SELECT fid,name,folder FROM ".$db->prefix("changelog_folders")." ORDER BY name ASC");
while (list($fid,$name,$folder)=$db->fetch_row($query)) {
	if ($folder == 0) {
		print('
		<a href="changelog.php?folderid='.$fid.'" title='.$name.'>
			<img src="' . SYS_URL .'/modules/changelog/images/folderc.gif" alt="[ ]" title='.$name.'> '.$name.'</a><br>'); 
	}
}

// Display files last
$query = $db->query("SELECT cid,name,folder FROM ".$db->prefix("changelog_files")." ORDER BY name ASC");
while (list($cid,$name,$folder)=$db->fetch_row($query)) {
	if ($folder == 0) {
		print('
		<a href="changelog.php?cid='.$cid.'" title='.$name.'>
			<img src="' . SYS_URL .'/modules/changelog/images/file.gif" alt="|~|" title='.$name.'> '.$name.'</a><br>'); 
	}
}

CloseTable();
include("footer.php");
?>
Return current item: Changelog