You are viewing a plain text version of this content. The canonical link for it is here.
Posted to stonehenge-commits@incubator.apache.org by sh...@apache.org on 2009/04/27 12:30:52 UTC

svn commit: r768951 - in /incubator/stonehenge/trunk/stocktrader/php/trader_client: account.php glossary.php home.php

Author: shankar
Date: Mon Apr 27 12:30:52 2009
New Revision: 768951

URL: http://svn.apache.org/viewvc?rev=768951&view=rev
Log:
applying patches from STONEHENGE-36, STONEHENGE-37, STONEHENGE-38

Modified:
    incubator/stonehenge/trunk/stocktrader/php/trader_client/account.php
    incubator/stonehenge/trunk/stocktrader/php/trader_client/glossary.php
    incubator/stonehenge/trunk/stocktrader/php/trader_client/home.php

Modified: incubator/stonehenge/trunk/stocktrader/php/trader_client/account.php
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/trader_client/account.php?rev=768951&r1=768950&r2=768951&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/php/trader_client/account.php (original)
+++ incubator/stonehenge/trunk/stocktrader/php/trader_client/account.php Mon Apr 27 12:30:52 2009
@@ -214,7 +214,7 @@
 						$userAccountProfileDataReturn->password."\" id=\"\" size=\"25\"/></td></tr>");
 					print ("<tr><td colspan=\"4\" class=\"button\"><input type=\"submit\" 
 						name=\"UPDATEUSERPROFILE\"value=\"Update\" class=\"button\"/></td></tr>");
-					print ("</table></form");
+					print ("</table></form>");
 
 					/*Display the account information of a the user*/
 					if ($userAccountDataReturn)	
@@ -246,7 +246,7 @@
 						{
 							print("<td>$".$userAccountDataReturn->balance."</td>");
 						}	
-						print("<td class=\"left\">Total Logous:</td>
+						print("<td class=\"left\">Total Logouts:</td>
 							<td>".$userAccountDataReturn->logoutCount."</td></tr>");
 						print("</tbody></table>");
 					}

Modified: incubator/stonehenge/trunk/stocktrader/php/trader_client/glossary.php
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/trader_client/glossary.php?rev=768951&r1=768950&r2=768951&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/php/trader_client/glossary.php (original)
+++ incubator/stonehenge/trunk/stocktrader/php/trader_client/glossary.php Mon Apr 27 12:30:52 2009
@@ -94,117 +94,117 @@
 						</tr>
 							<td class="left">Company</td>
 							<td>The full company name for an individual stock.</td>
-						</tr>
+						<tr>
 							<td class="left">Current Gain/Loss</td>
 							<td>The total gain or loss of this account, computed by substracting the current sum of cash/holdings minus the opening account balance.</td>
 						</tr>
 							<td class="left">Current Price</td>
 							<td>The current trading price for a given stock symbol.</td>
-						</tr>
+						<tr>
 							<td class="left">Gain/Loss</td>
 							<td>The current gain or loss of an individual stock holding, computed as (current market value - holding basis).</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Last Login</td>
 							<td>The date and time this user last logged in to Trade.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Market Value</td>
 							<td>The current total value of a stock holding, computed as (quantity * current price).</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Number of Holdings</td>
 							<td>The total number of stocks currently owned by this account.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Open Price</td>
 							<td>The price of a given stock at the open of the trading session.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Order ID</td>
 							<td>A unique Integer based key. Each order is assigned an order ID at order creation time.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Opening Balance</td>
 							<td>The initial cash balance in this account when it was opened.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Order Status</td>
 							<td>orders are opened, processed, closed and completed. Order status shows the current stat for this order.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Price Range</td>
 							<td>The low and high prices for this stock during the current trading session</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Purchase Date</td>
 							<td>The date and time the a stock was purchased.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Purchase Price</td>
 							<td>The price used when purchasing the stock.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Purchase Basis</td>
 							<td>The total cost to purchase this holding. This is computed as (quantity * purchase price).</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Quantity</td>
 							<td>The number of stock shares in the order or user holding.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Session Created</td>
 							<td>An HTTP session is created for each user at during login. Session created shows the time and day when the session was created.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Sum of Cash/Holdings</td>
 							<td>The total current value of this account. This is the sum of the cash balance along with the value of current stock holdings.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Symbol</td>
 							<td>The symbol for a Trade stock.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Total Logins</td>
 							<td>The total number of logins performed by this user.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Total Logouts</td>
 							<td>The total number of logouts performed by this user.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Total of Holdings</td>
 							<td>The current total value of all stock holdings in this account given the current valuation of each stock held.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Top gainers</td>
 							<td>The list of stocks (matching LIKE CLAUSE 's:1__%' per WebSphere Trade 6.1 behavior) gaining the most in price during the current trading session.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Top Losers</td>
 							<td>The list of stocks (matching LIKE CLAUSE 's:1__%' per WebSphere Trade 6.1 behavior) falling the most in price during the current trading session.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Trader Stock Index (TSIA)</td>
 							<td>A computed index of the top 20 stocks (matching LIKE CLAUSE 's:1__%' per WebSphere Trade 6.1 behavior) in Trade.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Trading Volume</td>
 							<td>The total number of shares traded for stocks (matching LIKE CLAUSE 's:1__%' per WebSphere Trade 6.1 behavior) during this trading session.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Txn Fee</td>
 							<td>The fee charged by the brokerage to process this order.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Type</td>
 							<td>The order type (buy or sell).</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">User ID</td>
 							<td>The unique user ID for the account chosen by the user at account registration.</td>
 						</tr>
-						</tr>
+						<tr>
 							<td class="left">Volume</td>
 							<td>The total number of shares traded for this stock.</td>
 						</tr>

Modified: incubator/stonehenge/trunk/stocktrader/php/trader_client/home.php
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/trader_client/home.php?rev=768951&r1=768950&r2=768951&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/php/trader_client/home.php (original)
+++ incubator/stonehenge/trunk/stocktrader/php/trader_client/home.php Mon Apr 27 12:30:52 2009
@@ -297,7 +297,10 @@
 							?>
 
 			<div class="bottom">
-			<input type="text" value="" id="" size="25"/><input type="button" value="Get Quote" class="button"/>
+			<form method="post"  action="quotes.php">
+				<input type="text" name="SYMBOLS" size="25"/>
+				<input type="submit" value="Get Quote" name="GETQUOTE" class="button"/>
+			</form>
 			</div>
 			</div>
 			<div id="footer">