$value) { if ($debug==1) { print "$key ($value)
"; } if ( ((strpos($value,'Ticker')) !== false) || ((strpos($value,'Symbol')) !== false) ) { print "Please enter a ticker symbol.


"; return; } if ($key=='symbol') { $value=urlencode($value); if ( ((strpos($value,'USA%')) !== false) || ((strpos($value,'IND%')) !== false) ) { if ($debug==1) { print "($value)
"; } $value=str_replace('%A0',' ',$value); if ($debug==1) { print "($value)
"; } $qtmp=explode(' ',$value); $ticker=$qtmp[2]; if ($debug==1) { print "(Opera/Firefox) ticker: $ticker

"; } } else if ( ((strpos($value,'USA+')) !== false) || ((strpos($value,'IND+')) !== false) ) { $qtmp=explode('+',$value); $ticker=$qtmp[2]; if ($debug==1) { print "(IE) ticker: $ticker

"; } } else { $ticker=$value; } } if ((strpos($key,'sec_filing')) !== false) { if ($ticker=='') { print "Please enter a ticker symbol.


"; exit; } //header("Location: http://sec.gov/cgi-bin/browse-idea?company=&match=&CIK=$ticker&filenum=&State=&Country=&SIC=&owner=exclude&Find=Find+Companies&action=getcompany"); //header("Location: http://sec.gov/cgi-bin/browse-edgar?company=$ticker&match=&CIK=&filenum=&State=&Country=&SIC=&owner=exclude&Find=Find+Companies&action=getcompany"); header("Location: http://sec.gov/cgi-bin/browse-edgar?company=&match=&CIK=$ticker&filenum=&State=&Country=&SIC=&owner=exclude&Find=Find+Companies&action=getcompany"); } if ((strpos($key,'investors')) !== false) { $qry="SELECT investor_relations,financial_info,corporate_history_profile from links_from_google where ticker='$ticker'"; //print "($qry)"; $result = SelectQry($qry); if(count($result) != "") { if ($result[0]['investor_relations']!='') { $ir_link=$result[0]['investor_relations']; } else if ($result[0]['financial_info']!='') { $ir_link=$result[0]['financial_info']; } else if ($result[0]['corporate_history_profile']!='') { $ir_link=$result[0]['corporate_history_profile']; } header("Location: $ir_link"); } // else { print "Investor Relation's link is unavailable for $ticker.


"; } } } $ticker=strtoupper($ticker); $ticker=str_replace('+',' ',$ticker); ?> <? if ($ticker!='') { print "$ticker Quote Page - $ticker Profile "; } ?>
 QUOTE 

$compTitle "; //if (($indices!='') && (is_numeric($ticker)!=1)) { print "($ticker:$indices)
"; } //else { print "($ticker)
"; } print "($ticker)
"; $currencyqry="select distinct Currency from financial_summary WHERE ticker='$ticker'"; $currencyrec=SelectQry($currencyqry); if (($currencyrec[0]['Currency']=="USD") || ($currencyrec[0]['Currency']=="")) { $currency="$"; } else { $currency=""; } ?> $curr_close$change ($percent_change%)$curr_month $curr_day"; } elseif ($change!='0.00') { print " $curr_close$change ($percent_change%)$curr_month $curr_day"; }else { print " $curr_close$curr_month $curr_day"; } ?> ",',',$compAddr1); $compAddr1=str_replace(":,",':',$compAddr1); $compAddr1=str_replace(",,",',',$compAddr1); if(strlen($compAddr1)>=80) { $comparr=explode(",",$compAddr1); $compAddr1=$comparr[0] . "," . $comparr[2] . "," . $comparr[3] . "," . $comparr[4]; } if (strpos($compAddr1,':')!== false) { $compAddr1 = substr(strrchr($compAddr1, ':'), 1 ); } if ((!((strpos($compWebsite,'http')) !== false)) && ($compWebsite != '')) { $compWebsite = "http://" . $compWebsite; } if ((strlen($compAddr2)>5) || (strlen($compAddr3)>5)) { //echo "
$compAddr1 $compAddr2
$compAddr3
$compTel
  $compWebsite"; print ""; } else { print ""; } ?>
$compAddr1 $compAddr2
$compAddr3
$compTel
$compWebsite
$compAddr1
$compTel
$compWebsite
"; ?>
DETAILS
Exchange BSE
Ticker $symbol
After Hrs $curr_close
  $change ($percent_change%)
PRICES
Open Volume
High Low
=1000000) { $avg_volume=format_large_number($volume); } } else { $avg_volume="n/a"; } ?>
VALUATIONS
Mkt Cap Avg Volume
52wk High 52wk Low
RATIOS
P/E EPS
BV P/BV
STOCKHOLDERS
Dividend Yield
Shares Inst Owner
 PERFORMANCE 

You need to upgrade your Flash Player
 ANNUAL EARNINGS 

 
 SUMMARIES CALENDARS REPORTS 

database:$dbhost
csv:$csv
ticker: $ticker
chart_type: $chart_type
qry1: $qry1

"; $result = mysql_query($qry); // or print ("QUERY Error:".$qry."
".mysql_error()); //if (mysql_num_rows($result)<1) { return; } $count=0; while ($row = mysql_fetch_array($result)) { $compName=$row[1]; $date=explode("-",$row[0]); $dyear=$date[0]; if ($count==0) { $beginyear=$dyear; } $dday=$date[2]; //$dday=$dday . "th"; $dmonth=month_format($date[1]); $ddate[$count]="$dday $dmonth $dyear"; //echo "$ddate[$count]
"; if ((strpos($ddate[$count],'2009')) !== false) { $year09=1; $year_09[$count]=$ddate[$count]; } if ((strpos($ddate[$count],'2008')) !== false) { $year_08[$count]=$ddate[$count]; } if ((strpos($ddate[$count],'2007')) !== false) { $year_07[$count]=$ddate[$count]; } if ((strpos($ddate[$count],'2006')) !== false) { $year_06[$count]=$ddate[$count]; } $count++; } $endyear=$dyear-1; $sqry="SELECT distinct RepId from jump_reports_ticker WHERE Ticker='$ticker' ORDER BY RepId DESC"; ?>
".mysql_error()); //if (mysql_num_rows($result)<1) { return; } while ($row = mysql_fetch_array($result)) { if ($row[0] != '') { $row[0]=str_replace('(','',$row[0]); $row[0]=str_replace(')','',$row[0]); $row[0]=str_replace('Annual','',$row[0]); print ""; $row_count++; } } ?> ".mysql_error()); $i=0; while($annual_row= mysql_fetch_array($result)) { $row1[$i]=$annual_row[0]; $row1[$i]=number_format($row1[$i],2); $row1[$i]=str_replace('.00','',$row1[$i]); if ($row1[$i]==0) { $row1[$i]='-'; } if ($row1[$i]!='-') { $row1[$i]="$" . $row1[$i]; } $row2[$i]=$annual_row[1]; $row2[$i]=number_format($row2[$i],2); $row2[$i]=str_replace('.00','',$row2[$i]); if ($row2[$i]==0) { $row2[$i]='-'; } if ($row2[$i]!='-') { $row2[$i]="$" . $row2[$i]; } else { $row1[$i]='-'; ; } $row3[$i]=$annual_row[2]; $row3[$i]=number_format($row3[$i],2); $row3[$i]=str_replace('.00','',$row3[$i]); if ($row3[$i]==0) { $row3[$i]='-'; } if ($row3[$i]!='-') { $row3[$i]="$" . $row3[$i]; } else { $row1[$i]='-'; ; } $i++; } ?> $row1[$x]"; } else { print ""; } } ?> $row2[$x]"; } else { print ""; } } ?> $row3[$x]"; } else { print ""; } } ?> ".mysql_error()); $i=0; while($annual_row= mysql_fetch_array($result)) { $row1[$i]=$annual_row[0]; $row1[$i]=number_format($row1[$i],2); $row1[$i]=str_replace('.00','',$row1[$i]); if ($row1[$i]==0) { $row1[$i]='-'; } if ($row1[$i]!='-') { $row1[$i]="$" . $row1[$i]; } $row2[$i]=$annual_row[1]; $row2[$i]=number_format($row2[$i],2); $row2[$i]=str_replace('.00','',$row2[$i]); if ($row2[$i]==0) { $row2[$i]='-'; } if ($row2[$i]!='-') { $row2[$i]="$" . $row2[$i]; } $row3[$i]=$annual_row[2]; $row3[$i]=number_format($row3[$i],2); $row3[$i]=str_replace('.00','',$row3[$i]); if ($row3[$i]==0) { $row3[$i]='-'; } if ($row3[$i]!='-') { $row3[$i]="$" . $row3[$i]; } $i++; } ?> $row1[$x]"; } else { print ""; } } ?> $row2[$x]"; } else { print ""; } } ?> $row3[$x]"; } else { print ""; } } ?> ".mysql_error()); $i=0; while($annual_row= mysql_fetch_array($result)) { $row1[$i]=$annual_row[0]; $row1[$i]=number_format($row1[$i],2); $row1[$i]=str_replace('.00','',$row1[$i]); if ($row1[$i]==0) { $row1[$i]='-'; } if ($row1[$i]!='-') { $row1[$i]="$" . $row1[$i]; } $row2[$i]=$annual_row[1]; $row2[$i]=number_format($row2[$i],2); $row2[$i]=str_replace('.00','',$row2[$i]); if ($row2[$i]==0) { $row2[$i]='-'; } if ($row2[$i]!='-') { $row2[$i]="$" . $row2[$i]; } $row3[$i]=$annual_row[2]; $row3[$i]=number_format($row3[$i],2); $row3[$i]=str_replace('.00','',$row3[$i]); if ($row3[$i]==0) { $row3[$i]='-'; } if ($row3[$i]!='-') { $row3[$i]="$" . $row3[$i]; } $row4[$i]=$annual_row[3]; $row4[$i]=number_format($row4[$i],2); $row4[$i]=str_replace('.00','',$row4[$i]); if ($row4[$i]==0) { $row4[$i]='-'; } if ($row4[$i]!='-') { $row4[$i]="$" . $row4[$i]; } $i++; } ?> $row1[$x]"; } else { print ""; } } ?> $row2[$x]"; } else { print ""; } } ?> $row3[$x]"; } else { print ""; } } ?> $row4[$x]"; } else { print ""; } } ?>
Financial Summary (In millions of )
  $row[0]
Income statement
Total Revenue $row1[$x]
Oprating Income $row2[$x]
Net Income $row3[$x]
Balance Sheet
Total Assets $row1[$x]
Total Equity $row2[$x]
Total Liabilities $row3[$x]
Cash Flow
Oprating $row1[$x]
Investing $row2[$x]
Financing $row3[$x]
Net Cash Change $row4[$x]

=1) { print ""; } ?>
Earning Call Calender
20092008 2007 2006
"; if ($year09>=1) { for($i=0;$i<$count;$i++) { if ($year_09[$i]!='') { echo "$year_09[$i]
"; } } print "
"; } for($i=0;$i<$count;$i++) { if ($year_08[$i]!='') { echo "$year_08[$i]
"; } } print "
"; for($i=0;$i<$count;$i++) { if ($year_07[$i]!='') { echo "$year_07[$i]
"; } } print "
"; for($i=0;$i<$count;$i++) { if ($year_06[$i]!='') { echo "$year_06[$i]
"; } } ?>

".mysql_error()); //if (mysql_num_rows($sresult)<1) { return; } $ecount=0; $tcount=0; $count=0; while ($tmp = mysql_fetch_array($sresult)) { $qry="SELECT Headline,RepDate,updatedate,Ident from jump_reports WHERE (Ident='$tmp[0]') AND (Section='earningscall' OR Section='Transcripts')"; //$qry="SELECT Headline,RepDate,updatedate,Ident from jump_reports WHERE Ident='$tmp[0]') AND (Section = 'earningscall')"; //print "$qry
"; $result = mysql_query($qry); // or print ("QUERY Error:".$qry."
".mysql_error()); while ($row = mysql_fetch_array($result)) { $ident=$row[3]; if ((strpos($row[0],'Transcript')) !== false) { $t_headline=$row[0]; $sublink=str_replace(" ",'-',$t_headline); $t_link="http://www.tickerearnings.com/?page=earnings_calls_transcripts&story=" . $sublink . "&id=" . $ident; $date=explode("-",$row[1]); $dyear=$date[0]; $dday=$date[2]; $dday=$dday; $dmonth=month_format($date[1]); $time=explode("E",$row[2]); $dtime=$time[0]; $t_date="$dday $dmonth $dyear $dtime"; $t_str[$tcount]="$t_headline | $t_date | $t_link"; $tcount++; $count++; } //if ((strpos($row[0],'Earnings')) !== false) else { $e_headline=$row[0]; $sublink=str_replace(" ",'-',$e_headline); $e_link="http://www.tickerearnings.com/?page=daily_earnings&story=" . $sublink . "&id=" . $ident; $date=explode("-",$row[1]); $dyear=$date[0]; $dday=$date[2]; $dday=$dday; $dmonth=month_format($date[1]); $time=explode("E",$row[2]); $dtime=$time[0]; $e_date="$dday $dmonth $dyear $dtime"; $e_str[$ecount]="$e_headline | $e_date | $e_link"; $ecount++; $count++; } } } for($i=0;$i<$ecount;$i++) { $str1=explode('|',$e_str[$i]); $e_headline=$str1[0]; $e_date=$str1[1]; $e_link=$str1[2]; $str2=explode('|',$t_str[$i]); $t_headline=$str2[0]; $t_date=$str2[1]; $t_link=$str2[2]; print ""; } ?>
Earning Call Summary Transcripts
$e_headline
$e_date
$t_headline
$t_date
 
=$curr_year-15;$i--) { $dir="/home/jump/public_html/10K_Reports/$ticker/$i/"; //print "$dir
"; if (is_dir($dir)) { $k_link="http://www.123jump.com/10K_Reports/" . $ticker . "/" . $i . "/" . "$i.htm"; //print "$k_link
"; print " "; } } ?> ".mysql_error()); //if (mysql_num_rows($sresult)<1) { return; } $count=0; while ($tmp = mysql_fetch_array($sresult)) { $qry="SELECT Headline,RepDate,updatedate,Ident from jump_reports WHERE (Ident='$tmp[0]') AND (Section='reports')"; $result = mysql_query($qry); // or print ("QUERY Error:".$qry."
".mysql_error()); while ($row = mysql_fetch_array($result)) { $ident=$row[3]; $w_headline=$row[0]; $sublink=str_replace(" ",'-',$w_headline); $w_link="http://www.tickerearnings.com/?page=market_update&story=" . $sublink . "&id=" . $ident; $date=explode("-",$row[1]); $dyear=$date[0]; $dday=$date[2]; $dday=$dday; $dmonth=month_format($date[1]); $time=explode("E",$row[2]); $dtime=$time[0]; $w_date="$dday $dmonth $dyear $dtime"; $w_str="$w_headline | $w_date | $j_link"; if ($count<=10) { print ""; // return; } /* print "
10K Reports Annual Reports
 
Ticker News
$w_headline
$w_date"; $count++; } } } $count++; if ($count>=10) { print "
"; } print "
"; } */ ?>
 
 
".mysql_error()); //if (mysql_num_rows($result)<1) { return; } print "
Management
"; while($row = mysql_fetch_array($result)) { if ($row[0]!='') { $name=$row[0]; } if ($row[1]!='') { $title=$row[1]; } print " "; $count++; } ?>
Executive
Title
"; if ($row[2]!='') { if (is_numeric($ticker)==1) { $image_count++; //print ""; print ""; }else { $image_count++; //print ""; print ""; } //}elseif (($image_count==0) && ($count!=0)) { print ""; } }else { print ""; } print "
$name
$title