<?php
/**
  @licence GPL 2005-2010  The osCSS developers - osCSS Open Source E-commerce
  @package osCSS-2 <www http://www.oscss.org>
  @version 2.0.9
  @date  13/08/10, 09:54
  @author oscim <mail aurelien@oscim.fr> <www http://www.oscim.fr>
  @encode UTF-8
*/
$DB=Database::getInstance();
$query=$DB->query("SELECT distinct p.products_id,pd.products_name FROM  " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd  WHERE p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' AND p.products_date_available IS NOT NULL ");
$res=$query->fetchAllAssoc();
?>
<div id="<?php echo __FILE__ ?>" class="<?php echo $widg['class'] ?>" >
  <h3><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS, 'expected=true', 'NONSSL') . '">'. __('products expected') .'</a>';?></h3>
  <p><?php echo  __('products expected number ').count($res);  ?></p>
  <ul class="spacer">
    <?php foreach($res as $item):  ?>
      <li><a href="<?php echo tep_href_link(FILENAME_PRODUCTS, 'pID='.$item['products_id'].'&amp;action=edit') ?>" ><?php echo $item['products_name'] ?></li>
    <?php endforeach; ?>
  </ul>
</div>