Ejemplo n.º 1
0
loginAdmin();
if(!loggedAdmin())
  header('location: index.php');

  $transaction = new TransactionCollection();
  $clients = ClientCollection::getClients();
  $isins = IsinCollection::getIsins();
  $collection = new SecurityCollection();
  $isinCollection = new IsinCollection;

  $accounts = CustodyCollection::getAccountsForClientByTransactionId(mysql_real_escape_string($_GET['id']));

  if(exist($_POST['button']))
  {
    $result = TransactionCollection::updateTransaction();
  }
  else
  {
    TransactionCollection::loadTransaction();
    $result = array();
  }
  include("$templates/menu.php");

  $clients = ClientCollection::getClients();
  $isins = IsinCollection::getIsins();
  include("$templates/transaction_edit.php");

  include("$templates/footer.php");
?>
Ejemplo n.º 2
0
<?php
include('config.php');
include('functions.php');
include('classes/client.class.php');
include('classes/security.class.php');
include('classes/securitycollection.class.php');
include('classes/isin.class.php');
include('classes/isincollection.class.php');
include('classes/transactioncollection.class.php');
//check, if client is already logged in.
login();
if(!logged())
{
  include('login_header.php');
}
//process data	
  $transaction = new TransactionCollection();
  $collection = new SecurityCollection();
  $isinCollection = new IsinCollection;
  $client = new Client;
  $isins = $isinCollection->getIsins();
  $accounts = getAccounts();

  include($templates.'menu.html');
  echo strtoupper('THANK YOU!<br/><br/>YOUR ORDER HAS BEEN SUCCESSFULLY PROCESSED!');  
  include($templates.'welcome.html');
  include($templates.'footer.html');

?>