b2evolution PHP Cross Reference Blogging Systems

Source: /inc/sessions/views/_stats_search_engines.view.php - 73 lines - 2159 bytes - Text - Print

Description: This file implements the UI view for the referering searches stats. This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.

   1  <?php
   2  /**
   3   * This file implements the UI view for the referering searches stats.
   4   *
   5   * This file is part of the evoCore framework - {@link http://evocore.net/}
   6   * See also {@link http://sourceforge.net/projects/evocms/}.
   7   *
   8   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}
   9   *
  10   * {@internal License choice
  11   * - If you have received this file as part of a package, please find the license.txt file in
  12   *   the same folder or the closest folder above for complete license terms.
  13   * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/)
  14   *   then you must choose one of the following licenses before using the file:
  15   *   - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php
  16   *   - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php
  17   * }}
  18   *
  19   * {@internal Open Source relicensing agreement:
  20   * }}
  21   *
  22   * @package admin
  23   *
  24   * @version $Id: _stats_search_engines.view.php 6136 2014-03-08 07:59:48Z manuel $
  25   */
  26  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  27  
  28  /**
  29   * View funcs
  30   */
  31  require_once dirname(__FILE__).'/_stats_view.funcs.php';
  32  
  33  
  34  global $blog, $admin_url, $rsc_url;
  35  
  36  
  37  // TOP REFERING SEARCH ENGINES
  38  ?>
  39  
  40  <h3><?php echo T_('Top refering search engines').get_manual_link( 'top-refering-search-engines' ) ?></h3>
  41  
  42  <?php
  43  global $res_stats, $row_stats;
  44  refererList(20,'global',0,0,"'search'",'dom_name',$blog,true);
  45  if( count( $res_stats ) )
  46  {
  47      ?>
  48      <table class="grouped" cellspacing="0">
  49          <tr>
  50              <th class="firstcol"><?php echo T_('Search engine') ?></th>
  51              <th><?php echo T_('Hits') ?></th>
  52              <th class="lastcol"><?php echo /* xgettext:no-php-format */ T_('% of total') ?></th>
  53          </tr>
  54          <?php
  55          $count = 0;
  56          foreach( $res_stats as $row_stats )
  57          {
  58              ?>
  59              <tr class="<?php echo( $count%2 ? 'odd' : 'even') ?>">
  60                  <td class="firstcol"><a href="<?php stats_referer() ?>"><?php stats_basedomain() ?></a></td>
  61                  <td class="right"><?php stats_hit_count() ?></td>
  62                  <td class="right"><?php stats_hit_percent() ?></td>
  63              </tr>
  64          <?php
  65          $count++;
  66          }
  67          ?>
  68      </table>
  69  <?php
  70  }
  71  
  72  
  73  ?>

title

Description

title

Description

title

Description

title

title

Body