n/oldblog
Archived
1
0
Fork 0
This repository has been archived on 2024-02-13. You can view files and clone it, but cannot push or open issues or pull requests.
oldblog/include/nbnews.inc.php

26 lines
559 B
PHP
Raw Permalink Normal View History

2023-04-30 21:28:42 +02:00
<?php
if (!isset($nbnews))
{
$nbnews=5;
}
echo "<div class='nbnews'><br /><form action='/setnbnews.php' method='post'>\n";
echo "
<input type='hidden' name='page' value='$page' />
Nombre max. de news par source:<select name='nbnews' class='boutton'>
";
for($i=1;$i<=10;$i++)
{
if ($i == $nbnews)
echo "<option value='$i' selected='selected'>$i</option>\n";
else
echo "<option value='$i'>$i</option>\n";
}
echo "</select><input type='submit' value='Changer' class='boutton' /></form></div>";
// hack fortune
unset ($bodyclass);
unset ($sitedata);
?>