[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/modules/Accounts/ -> HeadLines.php (source)

   1  <?php
   2  /*********************************************************************************
   3  ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
   4   * ("License"); You may not use this file except in compliance with the License
   5   * The Original Code is:  vtiger CRM Open Source
   6   * The Initial Developer of the Original Code is vtiger.
   7   * Portions created by vtiger are Copyright (C) vtiger.
   8   * All Rights Reserved.
   9  *
  10   ********************************************************************************/
  11  include ("modules/Accounts/Accounts.php");
  12  include ("getCompanyProfile.php");
  13  $variable = $_REQUEST['tickersymbol'];
  14  $url = "http://finance.yahoo.com/q?s=".$variable;
  15  $data = getComdata($url);
  16  if(is_array($data))
  17  {
  18      $output = '';
  19      $output .='<div id="headnews">';
  20      $output .='<table>';
  21      foreach($data as $key=>$value)
  22      {
  23          $output .= '<tr valign="top">';
  24          $output .= '<td>'.$value[0].'</td>';
  25          $output .= '<td><a href="http://finance.yahoo.com/q/ud?s='.trim($variable).'">'.$value[1].'</a></td>';
  26          $output .= '</tr>';        
  27      }
  28      $output .='</table>';
  29      $output .='</div>';
  30      echo $output;
  31  }
  32  else
  33  {
  34          $output = '';
  35          $output .= "<div style='display:block'>";
  36          $output .= "<b><font color='red'>".$data."</font>";
  37          $output .= "</div>";
  38          echo $output;
  39  }
  40  ?>


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7