Advertisement
Jodyone

portfolio.php

Apr 20th, 2014
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.83 KB | None | 0 0
  1. <form action="index.php" method="post">
  2. <html><head>
  3.  
  4.         <link href="/css/bootstrap.min.css" rel="stylesheet">
  5.         <link href="/css/bootstrap-theme.min.css" rel="stylesheet">
  6.         <link href="/css/styles.css" rel="stylesheet">
  7.  
  8.                     <title>C$50 Finance: Portfolio</title>
  9.        
  10.         <script src="/js/jquery-1.10.2.min.js"></script>
  11.         <script src="/js/bootstrap.min.js"></script>
  12.         <script src="/js/scripts.js"></script>
  13.  
  14.     </head>
  15.  
  16.     <body style="">
  17.  
  18.         <div class="container">
  19.             <div id="middle">
  20.               <ul  class="nav nav-pills new_class">
  21.                 <li><a href="quote.php">Quote</a></li>
  22.                 <li><a href="buy.php">Buy</a></li>
  23.                 <li><a href="sell.php">Sell</a></li>
  24.                 <li><a href="history.php">History</a></li>
  25.                 <li><a href="logout.php"><strong>Log Out</strong></a></li>
  26.              </ul>
  27.  
  28.           <table class="table table-striped">
  29.      
  30.  
  31.             <thead>
  32.               <tr>
  33.                 <th>Symbol</th>
  34.                 <th>Name</th>
  35.                 <th>Shares</th>
  36.                 <th>Price</th>
  37.                 <th>TOTAL</th>
  38.              </tr>
  39.            </thead>
  40.      <tbody>
  41.           <table>
  42.           <?php
  43.            
  44.               foreach ($positions as $position)
  45.               {
  46.                   print("<tr>");
  47.                   print("<td>".$position["symbol"]."</td>");
  48.                   print("<td>".$position["shares"]."</td>");
  49.                   print("<td>".$position["price"]."</td>");
  50.                   print("</tr>");
  51.               }
  52.          
  53.           ?>
  54.           </table>
  55.        <tr>
  56.          <td colspan="4">CASH</td>
  57.          <td>$10,000.00</td>
  58.        </tr>
  59.     </tbody>
  60.   </table>
  61.  </div>
  62. </div>
  63.    
  64.  
  65.  
  66. </body></html>
  67.  
  68.  
  69. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement