25         if (
$myConfig->getConfigParam(
'blEnterNetPrice')) {
 
   26             $sIndex = 
" * " . (1 + 
$myConfig->getConfigParam(
'dDefaultVAT') / 100);
 
   31         $this->_aViewData[
'iAllCnt'] = 0;
 
   32         $sQ = 
"select oxprice, oxartid from oxpricealarm " .
 
   33               "where oxsended = '000-00-00 00:00:00' and oxshopid = '$sShopID' ";
 
   35         if ($rs != 
false && $rs->recordCount() > 0) {
 
   36             $aSimpleCache = array();
 
   38                 $sPrice = $rs->fields[0];
 
   39                 $sArtID = $rs->fields[1];
 
   40                 if (isset($aSimpleCache[$sArtID])) {
 
   41                     if ($aSimpleCache[$sArtID] <= $sPrice) {
 
   42                         $this->_aViewData[
'iAllCnt'] += 1;
 
   45                     $oArticle = 
oxNew(
"oxarticle");
 
   46                     if ($oArticle->load($sArtID)) {
 
   47                         $dArtPrice = $aSimpleCache[$sArtID] = $oArticle->getPrice()->getBruttoPrice();
 
   48                         if ($dArtPrice <= $sPrice) {
 
   49                             $this->_aViewData[
'iAllCnt'] += 1;
 
   57         return "pricealarm_mail.tpl";