MovieDatabase/index.php

26 lines
728 B
PHP
Raw Normal View History

2016-05-22 14:58:34 +00:00
<?php include 'gori.php';?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<?php include 'header.php'; ?>
<div class="content">
2016-05-22 15:27:27 +00:00
<?php $newsFile = file($openShiftFolder."vijesti.csv");
2016-05-22 14:58:34 +00:00
foreach ($newsFile as $news) {?>
<div class="news">
<?php
$nesto = str_getcsv($news);
$image = $nesto[1];
$timeOfNews = $nesto[0];
$newsContent = $nesto[2];
?>
<img src="<?php echo (strlen($image)!=0)?$image:'no_image.png' ?>"/>
<p>
<time class='vrijeme' datetime="<?php echo $timeOfNews ?>"></time>
<?php echo $newsContent ?>
</p>
</div>
<?php
}?>
</div>
</BODY>
</HTML>