예제 #1
0
파일: data.php 프로젝트: Nazg-Gul/e-marsa
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());
}
예제 #2
0
 function Editor_DrawItem($uid, $params = array())
 {
     if (!isset($this->uids[$uid])) {
         redirect('..');
     }
     global $pIFACE;
     $pIFACE = $this;
     tpl_srcp($this->FullScript(), $params);
 }
예제 #3
0
 function Editor_DrawContent($vars = array())
 {
     global $pIFACE;
     $pIFACE = $this;
     tpl_srcp($this->DisplayScript(), $vars);
 }
예제 #4
0
파일: 01CCList.php 프로젝트: Nazg-Gul/gate
 function Editor_DrawContent($vars = array())
 {
     global $pIFACE, $oldid;
     $pIFACE = $this;
     if ($oldid != '') {
         $this->ReceiveContentWithId($oldid);
     }
     tpl_srcp($this->DisplayScript(), $vars);
 }
예제 #5
0
파일: template.php 프로젝트: Nazg-Gul/gate
 function draw_template($name, $args = array())
 {
     $tpl = manage_template_by_name($name);
     tpl_srcp($tpl->GetText(), $args);
 }