blob: 97023f5d1bd6b40fd4724e5c9dfa1fe71ebef82c [file] [log] [blame]
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<title>My Portfolio</title>
<link rel="stylesheet" type="text/css" href="../style.css"></link>
<script type="text/javascript" src="../amq/amq.js"></script>
<script type="text/javascript">amq.uri='../amq';</script>
<script type="text/javascript" src="portfolio.js"></script>
<style>
.stocks { border: 1 solid black; }
.stocks td, .stocks th { width: 200; text-align: right; }
.stocks .up { background-color: #9f9; }
.stocks .down { background-color: #f99; }
</style>
</head>
<body>
<h1>My Portfolio</h1>
<p>This example displays an example stock portfolio. In a real system
this page would be generated dynamically based on the users current
stock portfolio</p>
<table class="stocks">
<tr>
<th>Stock</th>
<th>Description</th>
<th>Amount</th>
<th>Price</th>
<th>Value</th>
<th>Cost</th>
<th>P & L</th>
</tr>
<tr id="IBMW">
<td>IBMW</td>
<td>IBM Stock</td>
<td id="amount">1000</td>
<td id="price"></td>
<td id="value"></td>
<td id="cost">19000</td>
<td id="pl"></td>
</tr>
<tr id="MSFT">
<td>MSFT</td>
<td>Microsoft</td>
<td id="amount">6000</td>
<td id="price"></td>
<td id="value"></td>
<td id="cost">22000</td>
<td id="pl"></td>
</tr>
<tr id="BEAS">
<td>BEAS</td>
<td>BEA Stock</td>
<td id="amount">1100</td>
<td id="price"></td>
<td id="value"></td>
<td id="cost">12342</td>
<td id="pl"></td>
</tr>
<tr id="SUNW">
<td>SUNW</td>
<td>Sun Microsystems Inc</td>
<td id="amount">3000</td>
<td id="price"></td>
<td id="value"></td>
<td id="cost">7700</td>
<td id="pl"></td>
</tr>
</table>
</body>
</html>