Veiklos rezultatai

“.$ptpi_project_year_s.” \n\n”;
} else {
$ptpi_project_year_s = false;
$ptpi_project_year_r = ”\n”;
}
if ($_GET[‘scptpi_project_pfunding’]&&$_GET[‘scptpi_project_pfunding’] != “visi”&&in_array($_GET[‘scptpi_project_pfunding’], $ptpi_project_pfunding)) {
$ptpi_project_pfunding_s = $_GET[‘scptpi_project_pfunding’];
$ptpi_project_pfunding_r = ”\n\n”;
} else {
$ptpi_project_pfunding_s = false;
$ptpi_project_pfunding_r = ”\n”;
}
if (isset($_GET[‘scptpi_project_type’])&&$_GET[‘scptpi_project_type’] != “visi”&&in_array($_GET[‘scptpi_project_type’], $ptpi_project_type)) {
$ptpi_project_type_s = $_GET[‘scptpi_project_type’];
$ptpi_project_type_r = ”\n\n”;
} else {
$ptpi_project_type_s = false;
$ptpi_project_type_r = ”\n”;
};
if (isset($_GET[‘page_id’])) {
$page_id=$_GET[‘page_id’];
} else {
$page_id=0;
};
echo “

\n
sbox2;
echo $ptpi_project_year_r;
for ($i=0; $i“.$ptpi_project_year[$i].”\n”;
}
echo <<\n

Užsakovas:

\n
sbox4;
echo $ptpi_project_type_r;
for ($i=0; $i“.$ptpi_project_type[$i].”\n”;
}
echo <<

“;
echo <<

sbox6;

$select=”ptpi_project_name,ptpi_project_year,ptpi_project_pfunding,ptpi_project_type”;
if ($ptpi_project_year_s || ptpi_project_pfunding_s || ptpi_project_type_s) {
if ($ptpi_project_year_s) {
$qstrt = “ptpi_project_year=’$ptpi_project_year_s'”;
} else {
$qstrt = “true”;
}
if ($ptpi_project_pfunding_s) {
$qstrb = “ptpi_project_pfunding=’$ptpi_project_pfunding_s'”;
} else {
$qstrb = “true”;
}
if ($ptpi_project_type_s) {
$qstrk = “ptpi_project_type=’$ptpi_project_type_s'”;
} else {
$qstrk = “true”;
}
$qp_out = “select $select from $dbtable where $qstrt and $qstrb and $qstrk order by ptpi_project_year desc “;

} else {
$qp_out = “select $select from $dbtable “;

}
$rcount = false;
$qp = $qp_out;
$sq = mysql_query ($qp, $db);
$table_headers = array (“Projekto pavadinimas”,”Metai”,”Užsakovas”,”Projekto tipas”);
for ($el=0;$el\n”.htmlspecialchars($table_headers[$el]).”\n

“;
}
if ( mysql_num_rows($sq) > 0 ) {
$rcount = true;
for ($i=0; $i“;
for ($el=0;$el

\n”.htmlspecialchars($row[$el]).”\n

“;
echo “

“;
}
echo “

\n”;
}
}
echo “

\n”.$row[$el].”\n

“;
if (!$rcount) {
echo “\nNerasta duomenų, atitinkančių Jūsų nurodytus paieškos kriterijus\n”;
}
?>