<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .
Source: https://habr.com/ru/post/106075/