Exemple #1
0
login();
if(!logged())
{
  include('login_header.php');
}
elseif(isset($_POST['button']))
{
//process data	
  $transaction = new TransactionCollection();
  $collection = new SecurityCollection();
  $isinCollection = new IsinCollection;
  $client = new Client;
  $isins = $isinCollection->getIsins();
  $accounts = getAccounts();

  $result = $transaction->saveTransaction();

  if(empty($result))
  {
    header('location: create_success.php');
  }
  else
  {
    include($templates.'menu.html');
    $show= 'MANDATORY FIELDS * ARE: '.implode($result,',');;
    echo '<span id="error">'.$show.'</span><br/><br/>';
    include($templates.'create_transaction.php');
  }

  include($templates.'footer.html');
}