Execute("SELECT * FROM news WHERE visibile = '" . ($rcs_news__MMColParam) . "' ORDER BY data DESC") or DIE($bagnoliauto->ErrorMsg());
$rcs_news_numRows=0;
$rcs_news__totalRows=$rcs_news->RecordCount();
?>
RecordCount();
// set the number of rows displayed on this page
if ($rcs_news_numRows < 0) { // if repeat region set to all records
$rcs_news_numRows = $rcs_news_total;
} else if ($rcs_news_numRows == 0) { // if no repeat regions
$rcs_news_numRows = 1;
}
// set the first and last displayed record
$rcs_news_first = 1;
$rcs_news_last = $rcs_news_first + $rcs_news_numRows - 1;
// if we have the correct record count, check the other stats
if ($rcs_news_total != -1) {
$rcs_news_numRows = min($rcs_news_numRows, $rcs_news_total);
$rcs_news_first = min($rcs_news_first, $rcs_news_total);
$rcs_news_last = min($rcs_news_last, $rcs_news_total);
}
?>
$rcs_news_total) {
$rcs_news_numRows = $rcs_news_total;
}
// set the first and last displayed record
$rcs_news_last = min($rcs_news_first + $rcs_news_numRows - 1, $rcs_news_total);
$rcs_news_first = min($rcs_news_first, $rcs_news_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 - Daihatsu, Microcar - auto nuove ed usate
LE NEWS DA BAGNOLI
RecordCount() > 0) { ?>
Visualizzazione da
a
su
totali
EOF))
{
?>
//PHP scripts to convert from MySQL date format
$string = $rcs_news->Fields("data") ;
$stringArray = explode("-", $string);
$datecalc = mktime(0,0,0,$stringArray[1],$stringArray[2],$stringArray[0]);
$convertedDate = date("d-m-Y", $datecalc);
?>
Fields("data") ; ?>