<?php include('config.php'); include('functions.php'); include('classes/client.class.php'); include('classes/security.class.php'); include('classes/securitycollection.class.php'); login(); if(!logged()) { include('login_header.php'); } else { $collection = new SecurityCollection(); $securities = $collection->getSecurities($_SESSION['login']); $total = count(SecurityCollection::getHistory())-1; $instances = SecurityCollection::getHistoryInstance(); //var_dump($instances); include($templates.'menu.html'); include($templates.'show_securities_history.php'); include($templates.'footer.html'); } ?>
<?php include('config.php'); include('functions.php'); include('classes/client.class.php'); include('classes/security.class.php'); include('classes/securitycollection.class.php'); //check, if client is already logged in. login(); if(!logged()) { include('login_header.php'); } else { $collection = new SecurityCollection(); $securities = $collection->getSecurities(1); include($templates.'menu.html'); include($templates.'show_securities.php'); include($templates.'footer.html'); } // include('templates/index.html'); //login /* */ ?>
<?php include('../config.php'); include('../functions.php'); include('../classes/clientcollection.class.php'); include('../classes/security.class.php'); include('../classes/securitycollection.class.php'); $userid = mysql_real_escape_string($_GET['userid']); loginAdmin(); if(!loggedAdmin()) header('location: index.php'); if(exist($_POST['add'])) header('location: portfolio_add.php?userid='.$_GET['userid']); if(exist($_POST['delete'])) SecurityCollection::deleteSecurities($userid); if(exist($_POST['update'])) SecurityCollection::updateSecurities($userid,maxQuantity); include("$templates/menu.php"); $securities = SecurityCollection::getSecurities($userid); //var_dump($securities); //die(); include("$templates/portfolio.php"); include("$templates/footer.php"); ?>