static public function getHistoryInstance()
 {
   $allInstances = AccountCollection::getHistory();
   if((isset($_GET['number']))&&(isset($allInstances[$_GET['number']])))
     return $allInstances[$_GET['number']];
   else
     return $allInstances[0];
 }
Example #2
0
<?php
include('../config.php');
include('../functions.php');
include('../classes/accountcollection.class.php');

loginAdmin();
if(!loggedAdmin())
  header('location: index.php');

  include("$templates/menu.php");

  $total = count(AccountCollection::getHistory())-1; 
  $instance = AccountCollection::getHistoryInstance(); 
  
  include("$templates/account_history.php");

  include("$templates/footer.php");
?>