<?php
/**
  @licence GPL 2005-2010  The osCSS developers - osCSS Open Source E-commerce
  @package osCSS-2 <www http://www.oscss.org>
  @version 2.1.0
  @date  14/11/10, 14:19
  @author oscim <mail aurelien@oscim.fr> <www http://www.oscim.fr>
  @encode UTF-8
*/?>
<!-- body //-->

  <div id="ssmenu">
      <?php
      $dirs = dir(DIR_FS_ADMIN .DIR_WS_MODULES.'stats/');
      while ($file = $dirs->read()) {
        if (substr("$file", -4) == '.php') {
          $name=substr("$file",0,strlen($file)-4);
          echo '<a href="' . tep_href_link(FILENAME_STATS, 'module='.$name, 'NONSSL') . '" class="menuBoxContentLink ">' . tep_cst_menu_conf($name) . '</a>'."\n";
        }
      }
      ?>
  </div>
  <br />

<h3><?php echo HEADING_TITLE_PRIM; ?></h3>
<!-- body_text //-->
  <?php if ($module_stats==false): ?>
  <?php else: ?>
    <!-- body_module //-->
    <?php    include(DIR_WS_MODULES.'stats/'.$module_stats.'.php'); ?>
    <!-- body_module_eof //-->
  <?php endif; ?>
<?php if (isset($db_query_split) && is_object($db_query_split)): ?>
    <p><?php echo $db_query_split->display_count($db_query_numrows, MAX_DISPLAY_ROW_BY_PAGE, $page, TEXT_DISPLAY_NUMBER_OF); ?></p>
    <?php       echo tep_draw_form('f_row_by_page', FILENAME_STATS, tep_get_all_get_params(array('page_admin','page','module')), 'get',' class="fleft" ');
    echo '<p>' . tep_draw_hidden_field( 'page', '',$page) . tep_draw_hidden_field( 'module', '', $module_stats).TEXT_MAXI_ROW_BY_PAGE . '&nbsp;&nbsp;' . tep_draw_pull_down_menu('row_by_page', $row_bypage_array,  $row_by_page, 'onchange="this.form.submit();"'); ?></p></form>
    <div class="fright"><?php echo $db_query_split->display_links($db_query_numrows, MAX_DISPLAY_ROW_BY_PAGE, MAX_DISPLAY_PAGE_LINKS, $page, 'module='.$module_stats); ?></div>
<?php endif; ?>

<!-- body_text_eof //-->
<!-- body_eof //-->