Esempio n. 1
0
InitMarket();
/* Some optimization stuff */
$serv_ipc_procs = '#basket_add#';
if ($ipc != '') {
    $n = count($serv_ipc_procs);
    if (strpos($serv_ipc_procs, $ipc) > 0) {
        /* Execute IPC command */
        ipc_exec($ipc);
        die;
    }
}
if ($action == 'drop') {
    global $id;
    if (isNumber($id)) {
        $MARKET->BASKET->DropById($id);
    }
} else {
    if ($action == 'send') {
        $MARKET->BASKET->Send();
    }
}
if ($action != 'send') {
    $tpl = manage_template_by_name('Магазин / Корзина');
    $script = $tpl->GetText();
    $params = array();
    tpl_srcp($script, $params);
} else {
    $tpl = manage_template_by_name('Магазин / Корзина / Заказ отправлен');
    $script = $tpl->GetText();
    tpl_srcp($script, array());
}
Esempio n. 2
0
 function Editor_DrawItem($uid, $params = array())
 {
     if (!isset($this->uids[$uid])) {
         redirect('..');
     }
     global $pIFACE;
     $pIFACE = $this;
     tpl_srcp($this->FullScript(), $params);
 }
Esempio n. 3
0
 function Editor_DrawContent($vars = array())
 {
     global $pIFACE;
     $pIFACE = $this;
     tpl_srcp($this->DisplayScript(), $vars);
 }
Esempio n. 4
0
 function Editor_DrawContent($vars = array())
 {
     global $pIFACE, $oldid;
     $pIFACE = $this;
     if ($oldid != '') {
         $this->ReceiveContentWithId($oldid);
     }
     tpl_srcp($this->DisplayScript(), $vars);
 }
Esempio n. 5
0
 function draw_template($name, $args = array())
 {
     $tpl = manage_template_by_name($name);
     tpl_srcp($tpl->GetText(), $args);
 }