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()); }
function Editor_DrawItem($uid, $params = array()) { if (!isset($this->uids[$uid])) { redirect('..'); } global $pIFACE; $pIFACE = $this; tpl_srcp($this->FullScript(), $params); }
function Editor_DrawContent($vars = array()) { global $pIFACE; $pIFACE = $this; tpl_srcp($this->DisplayScript(), $vars); }
function Editor_DrawContent($vars = array()) { global $pIFACE, $oldid; $pIFACE = $this; if ($oldid != '') { $this->ReceiveContentWithId($oldid); } tpl_srcp($this->DisplayScript(), $vars); }
function draw_template($name, $args = array()) { $tpl = manage_template_by_name($name); tpl_srcp($tpl->GetText(), $args); }