[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/modules/Home/ -> LastViewed.php (source)

   1  <?php 
   2  /*********************************************************************************
   3   * The contents of this file are subject to the SugarCRM Public License Version 1.1.2
   4   * ("License"); You may not use this file except in compliance with the 
   5   * License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
   6   * Software distributed under the License is distributed on an  "AS IS"  basis,
   7   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
   8   * the specific language governing rights and limitations under the License.
   9   * The Original Code is:  SugarCRM Open Source
  10   * The Initial Developer of the Original Code is SugarCRM, Inc.
  11   * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
  12   * All Rights Reserved.
  13   * Contributor(s): ______________________________________.
  14   ********************************************************************************/
  15  /*********************************************************************************
  16   * $Header: /advent/projects/wesat/vtiger_crm/sugarcrm/modules/Home/LastViewed.php,v 1.1 2004/08/17 15:05:06 gjayakrishnan Exp $
  17   * Description: TODO:  To be written.
  18   ********************************************************************************/
  19  
  20  require_once ("data/Tracker.php");
  21  
  22  global $theme;
  23  global $current_user;
  24  $theme_path="themes/".$theme."/";
  25  $image_path=$theme_path."images/";
  26  
  27  // Create the head of the vtiger_table.
  28  ?>
  29          <table cellpadding="2" cellspacing="0" border="0">
  30          <tbody>
  31  <?php
  32  $current_row=1;
  33  $tracker = new Tracker();
  34  $history = $tracker->get_recently_viewed($current_user->id);
  35  
  36  foreach($history as $row)
  37  {
  38      echo <<< EOQ
  39          <tr>
  40            <td vAlign="top"><IMG width="20" alt="{$row['module_name']}" src="$image_path{$row['module_name']}.gif" border="0"></td>
  41            <td noWrap><A title="[Alt+$current_row]" accessKey="$current_row" href="index.php?module=$row[module_name]&action=DetailView&record=$row[item_id]">$row[item_summary]</A></td>
  42          </tr>
  43  EOQ;
  44  }
  45  ?>
  46  </tbody></table>


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