Пример #1
0
        if ($_GET['pass'] == '1' || $_GET['pass'] == '0') {
            $arrWhere[] = "pass='******'pass'] . "'";
            $arrLink[] = 'pass='******'pass'];
        }
        if (!empty($_GET['type_id'])) {
            $intTypeID = intval($_GET['type_id']);
            $arrWhere[] = "type_id='" . $intTypeID . "' or type_roue_id like '%:{$intTypeID}:%'";
            $arrLink[] = 'type_id=' . $intTypeID;
        }
        if (!empty($_GET['state'])) {
            $intState = intval($_GET['state']);
            $arrWhere[] = " state = '{$intState}' ";
            $arrLink[] = 'state=' . $intState;
        }
    } else {
        $objWebInit->doInfoAction($_GET['action'], $_POST['select']);
    }
}
if (!empty($_GET['title'])) {
    $strKeywords = strval(urldecode($_GET['title']));
    if ($strKeywords[0] == '/') {
        //精确查询ID
        $strKeywords = substr($strKeywords, 1);
        if (is_numeric($strKeywords)) {
            $arrWhere[] = "id = '" . $strKeywords . "'";
        }
    } else {
        $arrWhere[] = "title LIKE '%" . $_GET['title'] . "%'";
    }
    $arrLink[] = 'title=' . $_GET['title'];
}