Пример #1
0
}
$prev_cnt = $cnt + $config_showfull_cmtperpage;
if ($cnt >= $config_showfull_cmtperpage) {
    $next_cnt = $cnt - $config_showfull_cmtperpage;
} else {
    $next_cnt = 0;
}
$query = cmtquery(0);
$db->query($query);
cmtsort($db, 0);
if ($db->num_rows() > 0) {
    while ($db->next_record()) {
        cmtshow($db, admin($db));
    }
    cmtnav($db, 0);
} else {
    $be->box_full($t->translate("Attention!"), $t->translate("No more Comment exist") . ".");
}
?>
</td><td width=20%>
<?php 
// Recent News at the right column
cmtidx($config_showshort_entperpage);
?>
</td></tr>
</table>
<!-- end content -->

<?php 
require "./include/footer.inc";
@page_close();
Пример #2
0
$bx->box_end();
// News
$cnt = 0;
$query = newquery(0);
$db->query($query);
if ($db->num_rows() > 0) {
    while ($db->next_record()) {
        newshow($db, admin($db));
    }
}
?>

</td><td width=20%>
<?php 
// Recent News at the right column
newidx($config_showidx_newperpage);
entidx($config_showidx_entperpage);
conidx($config_showidx_conperpage);
svcidx($config_showidx_svcperpage);
proidx($config_showidx_properpage);
solidx($config_showidx_solperpage);
cusidx($config_showidx_cusperpage);
cmtidx($config_showidx_cmtperpage);
?>
</td></tr>
</table>
<!-- end content -->

<?php 
require "./include/footer.inc";
@page_close();