Example #1
0
                    }
                    if ($skey == 0) {
                        $sinid = $sval["prs_id"];
                    } else {
                        $sinid .= ',' . $sval["prs_id"];
                    }
                }
                $sqlQuery = " SELECT pro_id, pro_name , pro_img,pro_sellprice, pro_uptime   FROM  " . SQL_PREFIX . "product   WHERE   pro_enabled = 1 and pro_delete = 0 and  prs_id in ( " . $sinid . " )  GROUP BY  pro_id ORDER BY pro_uptime DESC, `pro_id` LIMIT  0 , 8 ";
                $info[$akey]["Arr"] = $GLOBALS['MySql']->selectInfo($sqlQuery);
            }
        }
        $GLOBALS['Templ']->assign('webtitle', $webtitle);
        $GLOBALS['Templ']->assign('nowaddress', $nowaddress);
        $GLOBALS['Templ']->assign('info', $info);
        $GLOBALS['Templ']->display('proindex_tpl.html', $cache_id);
    }
}
$Item = new Item();
if ($GLOBALS['Webur']->getval["act"] == 'list') {
    $Item->infolist();
} else {
    if ($GLOBALS['Webur']->getval["type"] == 'search') {
        $Item->infolist();
    } else {
        if (intval($GLOBALS['Webur']->getval["idval"]) != '') {
            $Item->detail();
        } else {
            $Item->index();
        }
    }
}