diff -Naru --exclude=.svn trader_client/account.php trader_client_new/account.php --- trader_client/account.php 2009-04-21 12:09:36.000000000 +0530 +++ trader_client_new/account.php 2009-04-21 12:09:45.000000000 +0530 @@ -52,14 +52,14 @@ - WSF/PHP StockTrader Welcome + Apache Stonehenge StockTrader Welcome
+
+ + Trade Alert: + The following orders have completed.

"); + print(" + + + + "); + + $index = 0; + while ($getClosedOrdersReturn->OrderDataBean[$index]) + { + print (" + + + + + + + "); + $index ++; + } + print("
Order IDOrder StatusCreation DateCompletion DateTxn FeeTypeSymbolQuantity
".$getClosedOrdersReturn->OrderDataBean[$index]->orderID."".$getClosedOrdersReturn->OrderDataBean[$index]->orderStatus."".date("m/d/Y h:i:s A", $getClosedOrdersReturn->OrderDataBean[$index]->openDate)."".date("m/d/Y h:i:s A", $getClosedOrdersReturn->OrderDataBean[$index]->completionDate)."$".$getClosedOrdersReturn->OrderDataBean[$index]->orderFee."".$getClosedOrdersReturn->OrderDataBean[$index]->orderType."".$getClosedOrdersReturn->OrderDataBean[$index]->symbol."".$getClosedOrdersReturn->OrderDataBean[$index]->quantity."


"); + } + + /*Display the account summary information of a particular user.*/ + if ($accountSummary) + { + print ("

Account Information +

"); + + print (" + "); + + printf("", $accountSummary->totalBuys); + printf("", $accountSummary->totalSells); + printf("", $accountSummary->totalTax); + printf("
Subtotal BuysSubtotal SellsSubtotal Fees + Net Impact Cash Balance
$%.2f$%.2f$%.2f"); + + if ($accountSummary->totalImpact > 0) + { + printf("$%.2f", $accountSummary->totalImpact); + } + else if ($accountSummary->totalImpact < 0) + { + printf("$%.2f", $accountSummary->totalImpact); + } + else + { + printf("($%.2f)", $accountSummary->totalImpact); + } + printf("
"); + } + + /*Display the orders a particular user is associated with.*/ + if ($ordersReturn) + { + print("

Total Orders Shown

"); + print(""); + print(""); + + $index = 0; + while ($ordersReturn->OrderDataBean[$index]) + { + print (" + + + + "); + + print (""); + + print (" + + "); + + $index ++; + } + print ("
Order IDOrder StatusCreation DateCompletion Date + Txn FeeTypeSymbolQuantityPrice + Total
".$ordersReturn->OrderDataBean[$index]->orderID."".$ordersReturn->OrderDataBean[$index]->orderStatus."".date("m/d/Y h:i:s A", $ordersReturn->OrderDataBean[$index]->openDate)." + ".date("m/d/Y h:i:s A", $ordersReturn->OrderDataBean[$index]->completionDate)."$".$ordersReturn->OrderDataBean[$index]->orderFee."".$ordersReturn->OrderDataBean[$index]->orderType."
+ OrderDataBean[$index]->symbol."\"/> + OrderDataBean[$index]->symbol."\"/>
".$ordersReturn->OrderDataBean[$index]->quantity."$".$ordersReturn->OrderDataBean[$index]->price."$".(($ordersReturn->OrderDataBean[$index]->price * + $ordersReturn->OrderDataBean[$index]->quantity) + + $ordersReturn->OrderDataBean[$index]->orderFee)."
"); + } + + /*Display the account profile information associted to a + the user.*/ + if ($userAccountProfileDataReturn) + { + print ("
+ + "); + print (" + "); + print (" + "); + print (" + + + "); + print(""); + + if ($userAccountDataReturn->balance > 0) + { + print(""); + } + else if($userAccountDataReturn->balance < 0) + { + print(""); + } + else + { + print(""); + } + print(" + "); + print("
Update Account Profile:".GetUserFromCookie()."
"); + print (""); + print (""); + print (" + "); + print (" + "); + print (""); + print ("
Full Name:fullName."\" id=\"\" size=\"25\"/> + Email Address:email."\" id=\"\" size=\"25\"/>
Address:address."\" id=\"\" size=\"25\"/>Password:password."\" id=\"\" size=\"25\"/>
Credit Card:creditCard."\" id=\"\" size=\"25\"/>Confirm Password:password."\" id=\"\" size=\"25\"/>
Account ID:".$userAccountDataReturn->accountID." + Account Created".date("m/d/Y h:i:s A", $userAccountDataReturn->creationDate)."
User ID:".$userAccountDataReturn->profileID." + Last Login:".date("m/d/Y h:i:s A", $userAccountDataReturn->lastLogin)."
Opening Balance:".$userAccountDataReturn->openBalance."Total Logins:".$userAccountDataReturn->loginCount."
Cash Balance:$". + $userAccountDataReturn->balance."$". + (-1) * $userAccountDataReturn->balance."$".$userAccountDataReturn->balance."Total Logous:".$userAccountDataReturn->logoutCount."
"); + } + print(""); + } + ?> +
+ + + + +
+
+ +
+ + + diff -Naru --exclude=.svn trader_client/config.php trader_client_new/config.php --- trader_client/config.php 2009-04-21 12:09:36.000000000 +0530 +++ trader_client_new/config.php 2009-04-21 12:09:45.000000000 +0530 @@ -34,7 +34,7 @@ - WSF/PHP StockTrader Welcome + Apache Stonehenge StockTrader Welcome @@ -44,7 +44,7 @@
+ + diff -Naru --exclude=.svn trader_client/images/logo.png trader_client_new/images/logo.png --- trader_client/images/logo.png 1970-01-01 05:30:00.000000000 +0530 +++ trader_client_new/images/logo.png 2009-04-21 12:09:45.000000000 +0530 @@ -0,0 +1,36 @@ +PNG + + IHDR/ӱn.sRGBbKGD pHYs  tIME8 JIDATxwpT?leUV5@*l`RDbld1)܀qb;ox27 KLCly' cD@aHT(Z*jyvFeerXy_}VeYF›g 3[1Q +Q@B6 +(P +Q@B6 +(P +6ԊnU<.X"}P8c:'#%X>sÁ#olҒ… dڴideeNdd"X + Hmnb`@IO 4*=vQqX咸1.lƕhR⯄ܹsl۶˗/3uTҘ8qB4 +6^0&nZ;0շ_na^!pQ0zey58 ft9vitTܟ ^Ǐs=Gnn.DEE)+LQ'LN??kW8oHrEKLqNo^Z-4?M$Zv^vD˖h"***B~äIj0 +Flĸ_ +$$.k >uZ?Dׯߦ bZ$qDdDUs'ާƥM+z1MTD#3y;zC.7\d% f͜3>#,`0(*~w +ƴFeA@e@9 ==X?߽MA/b9 ASРV &sDs]oɠل[&erʸn's6$M~)ڎ g+>l*t[OYOV!qZ"e/Vn > nوWtVKtUt\F 2G mZ6>Je)jR`N[7~@eZ>#f?V.vQ`J$H1N"ԪN.ODPqY;s =M =TL&Ēӑ0'5^ۺpj\o b!.6FYQ +|ɦ\@sv -xޠl.taw{DHLA#k]1i0bu!tQq|,Na!ZhH 8K GHq(u,b"qjR4_U>j`L6i6!cjRS_IZoYdgc+桂1N6Í`;vy +K>b#9q]&ˇ]ґQ!nYhGyM:.Db@s@d ǢJ?hjKƃ?.H"=V)IFYxh<ĺ]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"H ܹsȒ%K;w.qqqFE@ +|>,_'Nn:6oތdbĉ;vL9K0Qc@1(P@! +|vHFΎ"IENDB` \ No newline at end of file diff -Naru --exclude=.svn trader_client/index.php trader_client_new/index.php --- trader_client/index.php 2009-04-21 12:09:36.000000000 +0530 +++ trader_client_new/index.php 2009-04-21 12:09:45.000000000 +0530 @@ -24,14 +24,14 @@ - WSF/PHP StockTrader Welcome + Apache Stonehenge StockTrader Welcome
+
+
+

Welcome!

+ +
+ + + + +
+
+

+This application is an end-to-end sample application for WSO2 +middleware technologies. It is a service-oriented application written +using PHP that utilize WSO2 WSF/PHP. +

+ +

+The application also offers a rich set of interoperability options +with other platforms. This includes interoperability with Java-based +application servers and IBM +WebSphere's Trade 6.1 sample application, and Microsoft +.NET Stocktrader sample application. The application offers an +excellent opportunity for developers to learn about WSO2 WSF/PHP and +building interoperable, service-oriented applications. +

+ +

For more details, check Apache Stonehenge home +page.

+ +
+
+
+

Sample of Technologies Demonstrated

+ + + + + + +
+
    +
  • Service-oriented, n-tier design with PHP, Java and .NET
  • +
  • Clean separation of UI, business services and DB access
  • +
  • WSO2 Web Services Framework For PHP
  • +
  • WSO2 Web Services Application Server
  • +
  • Interoperability with .NET
  • +
  • Loosely-coupled, message-oriented design
  • +
+
+
+
+
+ +
+ + + diff -Naru --exclude=.svn trader_client/login.php trader_client_new/login.php --- trader_client/login.php 2009-04-21 12:09:36.000000000 +0530 +++ trader_client_new/login.php 2009-04-21 12:09:45.000000000 +0530 @@ -52,7 +52,7 @@ - WSF/PHP StockTrader Welcome + Apache Stonehenge StockTrader Welcome @@ -60,7 +60,7 @@