include("include/getDate.php");
$newspp = 3;
if(!isset($page)){
$page = 1;
}else{
if(isset($_GET['page'])){
$page = $_GET['page'];
}
}
$result = mysql_query("SELECT count(*) AS total FROM news WHERE visible = '1' AND date <= '".date('Y-m-d H:i:s')."'");
$row = mysql_fetch_array($result,MYSQL_ASSOC);
$total = (int)$row["total"];
$result = mysql_query("SELECT * FROM news WHERE visible = '1' AND date <= '".date('Y-m-d H:i:s')."' ORDER BY date DESC, id DESC LIMIT ".($page-1)*$newspp.",".$newspp);
echo '
';
if(mysql_num_rows($result)){
$i = -1;
while($line = mysql_fetch_array($result)){
$data = $line["date"];
print '
| '.getDay($data,0).' |
| '.$line["subject"].' |
';
if($line["image_type"] != 0){
print '
'.$line["firstpart"].' |
 |
|
 |
';
}else{
print '
| '.$line["firstpart"].' |
 |
|
 |
';
}
print '
| ';
}
}
print '
|
|
';
?>
|
 |
 |
PHP |
| You need a server with PHP support. |
 |
 |
 |
 |
GDLIB |
Your server needs the GDLIB extension enabled in order to be able to create thumbnails/preview images automatically. Not sure your server meet the requirements? Please download the zip file below, unzip and upload to your server. |
 |
| Test your server! Download servertest.zip |
 |
| You can still use the gallery, If your server does not support GDLIB, but you will have to create thumbnails manually. |
|
 |
|
if (isset($_GET["local"])&&($_GET["local"]=="results")){
include("include/results.php");
} else {
include("include/sondajmic.php");
}
?>
|
|