Friday 15 December 2006 9:49:24 am
in filemanager i have 10 folders that have files inside, that works ok. Problem is that i also have files outside the folders. i have a limit of 10, so that when i have that number of files it puts a "Next" link so i can navigate to the next page with item/files outside the folders. But that does not heapon, when i click next it goes to the next page of the last folder that is in the home dir... i think the problem is in the filelist.php, some where else here: $fileNumber = $folder->countFiles();
if ( $Offset > 0 )
{
$t->set_var( "prev_offset", ( $Offset - $Limit ) > 0 ? $Offset - $Limit : 0 );
$t->parse( "prev", "prev_tpl" );
}
else
{
$t->set_var( "prev", "" ); }
if ( $fileNumber > $Offset + $Limit )
{
$t->set_var( "next_offset", $Offset + $Limit );
$t->parse( "next", "next_tpl" );
}
else
{
$t->set_var( "next", "" ); }
if ( count( $fileList ) > 0 )
{
$t->parse( "file_list", "file_list_tpl" );
}
else
{
$t->set_var( "file_list", "" ); } the prob i have so that i solved it my self is that i am a php almost noob. :(
|