예제 #1
0
파일: list.php 프로젝트: renduples/alibtob
$industry = new Industries();
$conditions = array();
$industry_id = $area_id = 0;
$conditions[] = "t.status=1";
if (isset($_GET['navid'])) {
    setvar("nav_id", intval($_GET['navid']));
}
uses("tag");
$tag = new Tags();
$viewhelper->setTitle(L('offer', 'tpl'));
$viewhelper->setPosition(L('offer', 'tpl'), "offer/");
if (isset($_GET['typeid'])) {
    $type_id = intval($_GET['typeid']);
    $conditions[] = "t.type_id='" . $type_id . "'";
    setvar("typeid", $type_id);
    $trade_controller->setTypeInfo($type_id);
    $type_name = $trade_controller->type_info['name'];
    $viewhelper->setTitle($type_name);
    $viewhelper->setPosition($type_name, "offer/list.php?typeid=" . $type_id);
}
if (isset($_GET['industryid'])) {
    $industry_id = intval($_GET['industryid']);
    $tmp_info = $industry->setInfo($industry_id);
    if (!empty($tmp_info)) {
        $conditions[] = "t.industry_id=" . $tmp_info['id'];
        $viewhelper->setTitle($tmp_info['name']);
        $viewhelper->setPosition($tmp_info['name'], "offer/list.php?industryid=" . $tmp_info['id']);
    }
}
if (isset($_GET['areaid'])) {
    $area_id = intval($_GET['areaid']);