=".$cilindrata_da ;
if (($cilindrata_a) or ($prezzo_da) or ($prezzo_a))
{
$varcilindrata_da = $varcilindrata_da." AND " ;
}
}
if ($cilindrata_a)
{
$varcilindrata_a = "cilindrata<=".$cilindrata_a ;
if (($prezzo_da) or ($prezzo_a))
{
$varcilindrata_a = $varcilindrata_a." AND " ;
}
}
if ($prezzo_da)
{
$varprezzo_da = "prezzo>=".$prezzo_da ;
if ($prezzo_a)
{
$varprezzo_da = $varprezzo_da." AND " ;
}
}
if ($prezzo_a)
{
$varprezzo_a = "prezzo<=".$prezzo_a ;
}
?>Execute("SELECT * FROM dati WHERE stato='".$stato."' AND visibile = 'S' " .$varand.$varanno.$varmarca.$varalimentazione.$varcilindrata_da.$varcilindrata_a.$varprezzo_da.$varprezzo_a." ORDER BY marca ASC, descrizione ASC, prezzo ASC") or DIE($bagnoliauto->ErrorMsg());
$rcs_dati_numRows=0;
$rcs_dati__totalRows=$rcs_dati->RecordCount();
?>RecordCount();
// set the number of rows displayed on this page
if ($rcs_dati_numRows < 0) { // if repeat region set to all records
$rcs_dati_numRows = $rcs_dati_total;
} else if ($rcs_dati_numRows == 0) { // if no repeat regions
$rcs_dati_numRows = 1;
}
// set the first and last displayed record
$rcs_dati_first = 1;
$rcs_dati_last = $rcs_dati_first + $rcs_dati_numRows - 1;
// if we have the correct record count, check the other stats
if ($rcs_dati_total != -1) {
$rcs_dati_numRows = min($rcs_dati_numRows, $rcs_dati_total);
$rcs_dati_first = min($rcs_dati_first, $rcs_dati_total);
$rcs_dati_last = min($rcs_dati_last, $rcs_dati_total);
}
?> $rcs_dati_total) {
$rcs_dati_numRows = $rcs_dati_total;
}
// set the first and last displayed record
$rcs_dati_last = min($rcs_dati_first + $rcs_dati_numRows - 1, $rcs_dati_total);
$rcs_dati_first = min($rcs_dati_first, $rcs_dati_total);
?>= $MM_rsCount || $MM_offset == -1) { // past end or move last
if (($MM_rsCount % $MM_size) != 0) { // last page not a full repeat region
$MM_offset = $MM_rsCount - ($MM_rsCount % $MM_size);
}
else {
$MM_offset = $MM_rsCount - $MM_size;
}
}
}
// move the cursor to the selected record
for ($i=0;!$MM_rs->EOF && ($i < $MM_offset || $MM_offset == -1); $i++) {
$MM_rs->MoveNext();
}
if ($MM_rs->EOF) $MM_offset = $i; // set MM_offset to the last possible record
}
?>EOF && ($MM_size < 0 || $i < $MM_offset + $MM_size); $i++) {
$MM_rs->MoveNext();
}
// if we walked off the end of the recordset, set MM_rsCount and MM_size
if ($MM_rs->EOF) {
$MM_rsCount = $i;
if ($MM_size < 0 || $MM_size > $MM_rsCount) $MM_size = $MM_rsCount;
}
// if we walked off the end, set the offset based on page size
if ($MM_rs->EOF && !$MM_paramIsDefined) {
if (($MM_rsCount % $MM_size) != 0) { // last page not a full repeat region
$MM_offset = $MM_rsCount - ($MM_rsCount % $MM_size);
} else {
$MM_offset = $MM_rsCount - $MM_size;
}
}
// reset the cursor to the beginning
$MM_rs->MoveFirst();
// move the cursor to the selected record
for ($i=0; !$MM_rs->EOF && $i < $MM_offset; $i++) {
$MM_rs->MoveNext();
}
}
?>= $MM_rsCount);
?> 0) $MM_keepBoth = substr($MM_keepBoth, 1);
if (strlen($MM_keepURL) > 0) $MM_keepURL = substr($MM_keepURL, 1);
if (strlen($MM_keepForm) > 0) $MM_keepForm = substr($MM_keepForm, 1);
?> 1) {
$MM_moveParam = "offset";
if (strlen($MM_keepMove)> 0) {
$params = explode("&", $MM_keepMove);
$MM_keepMove = "";
for ($i=0; $i < sizeof($params); $i++) {
list($nextItem) = explode("=", $params[$i]);
if (strtolower($nextItem) != $MM_moveParam) {
$MM_keepMove.="&".$params[$i];
}
}
if (strlen($MM_keepMove) > 0) $MM_keepMove = substr($MM_keepMove, 1);
}
}
// set the strings for the move to links
if (strlen($MM_keepMove) > 0) $MM_keepMove.="&";
$urlStr = $PHP_SELF."?".$MM_keepMove.$MM_moveParam."=";
$MM_moveFirst = $urlStr."0";
$MM_moveLast = $urlStr."-1";
$MM_moveNext = $urlStr.($MM_offset + $MM_size);
$MM_movePrev = $urlStr.(max($MM_offset - $MM_size,0));
?>
Bagnoli Auto - Ssangyong, Daihatsu, Microcar - auto nuove ed usate