Exemple #1
0
            $textopre = $__LIB->traducir("opcionestv", "textopre", $row[0], $row[1]);
            $codigo .= '<div class="subCaja">';
            $codigo .= nl2br($textopre);
            $codigo .= '</div>';
        }
        $codigo .= '<h2 class="titApartadoText">' . _DESTACADOS . '</h2>';
        if (!isset($_SESSION["vista"])) {
            $_SESSION["vista"] = 1;
        }
        // Al volver al inicio las opciones se resetean
        unset($_SESSION["buscar"]);
        unset($_SESSION["orden"]);
        unset($_SESSION["fabricante"]);
        unset($_SESSION["familia"]);
        // articulos destacados
        $where = "publico = true AND enportada=true ORDER BY ordenportada";
        $ordenSQL = "select referencia, descripcion, descripciondeeplink, pvp, codimpuesto, stockfis, stockmin, controlstock, codplazoenvio, enoferta, pvpoferta, ivaincluido from articulos where " . $where;
        $codigo .= $__CAT->articulos($ordenSQL);
        // 		$__LIB->enviarMail('*****@*****.**', 'hi there', 'bokepaaasa', 'bokepaaasa <strong>my friend</strong>');
        echo $codigo;
    }
}
//// OFICIAL /////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
/** @main_class_definition oficial_indexPage */
class indexPage extends oficial_indexPage
{
}
$iface_indexPage = new indexPage();
$iface_indexPage->contenidos();
include "includes/right_bottom.php";
<?php

include "require.php";
require_once DATA_PATH . "class/pages/index.php";
$page = new indexPage();
$page->process();
?>

Exemple #3
0
        $link = $this->tmpl->addSubtemplate('searchAsRss');
        $link->assign('feedUrl', $feedUrl);
    }
    private function createSaveLink()
    {
        if (isset($_GET['searchSaved'])) {
            return;
        }
        $searches = new Searches();
        if (!$searches->areActivated()) {
            return;
        }
        $this->tmpl->addSubtemplate('saveSearch');
    }
}
$indexPage = new indexPage();
/* basic variables */
$category = '';
$searchKey = new SearchKey();
if (sizeof($_GET) == 0) {
    $indexPage->setStatic();
} else {
    /* Okay, dealing user input */
    $indexPage->setDynamic();
    /* Cleaning old books before searching */
    Cleaner::checkOld();
    /* Log statistics */
    $statistics = new Statistics();
    $statistics->writeStats();
    $indexPage->displayMessages();
    $indexPage->search();