login(); if(!logged()) { include('login_header.php'); } elseif(isset($_POST['button'])) { //process data $transaction = new TransferCollection(); $collection = new SecurityCollection(); $isinCollection = new IsinCollection; $client = new Client; $isins = $isinCollection->getIsins(); $accounts = getAccounts(); $result = $transaction->saveTransfer(); 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.'fund_rec.php'); } include($templates.'footer1.html'); }
loginAdmin(); if(!loggedAdmin()) header('location: index.php'); $transaction = new TransferCollection(); $clients = ClientCollection::getClients(); $isins = IsinCollection::getIsins(); $collection = new SecurityCollection(); $isinCollection = new IsinCollection; $accounts = CustodyCollection::getAccountsForClient(mysql_real_escape_string($_GET['id'])); if(exist($_POST['button'])) { $result = TransferCollection::saveTransfer(); if(empty($result)) header('location: create_success.php'); } else $result=array(); //var_dump($result); include("$templates/menu.php"); include("$templates/transfer_add.php"); include("$templates/footer.php"); ?>