コード例 #1
0
}
print "<TABLE border='0' align='left' " . $cellStyle . "  width='100%' bgcolor='" . BODY_COLOR . "'>";
$tipo = "";
if (!isset($_GET['tipo'])) {
    $select = "select * from itens";
    $exec = mysql_query($select);
    while ($vet = mysql_fetch_array($exec)) {
        $tipo .= $vet['item_cod'] . ',';
    }
    // while
    $tipo = substr($tipo, 0, -1);
} else {
    $tipo = $_GET['tipo'];
}
if (isset($_POST['filtro'])) {
    $PAGE->setPost($_POST['filtro']);
    $P_FILTRO = $_POST['filtro'];
} else {
    $P_FILTRO = "";
}
// 	$TMP = "LIMIT=1&TIPO=2&POST=filtro|intel|var|teste";
// 	$teste = array ();
// 	$teste = explode ("POST=",$TMP);
// 	dump ($teste);
if ($PAGE->POST != "") {
    //if (isset($_POST['filtro'])){
    //$qryFiltro = " AND lower(mdit_fabricante) like (lower('%".$_POST['filtro']."%')) ";
    $qryFiltro = " AND lower(mdit_fabricante) like (lower('%" . $PAGE->POST . "%')) ";
} else {
    $qryFiltro = "";
}