Enlightenment CVS committal
Author : inc
Project : web
Module : www
Dir : web/www/p/news
Modified Files:
latestnews.php
Log Message:
===================================================================
RCS file: /cvs/e/web/www/p/news/latestnews.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- latestnews.php 30 May 2007 22:23:53 -0000 1.1
+++ latestnews.php 30 May 2007 22:45:52 -0000 1.2
@@ -1,17 +1,21 @@
-<?php require_once 'class.news.php'; setlocale(LC_ALL, 'en_EN'); $news =
-new news; $list = $news->get(2); foreach($list as $new) {
+<?php
+require_once 'p/news/class.news.php';
+
+setlocale(LC_ALL, 'en_EN');
+
+$news = new news;
+$list = $news->get(2);
+foreach($list as $new)
+{
if (($new = $news->read_content($new)) !== NULL)
{
- echo "<div class='post'>\n";
- echo "<p class='news-title'><a
-href='p.php?p=news/show&l=".$_GET['l']."&news_id=$new[id]'>".$new['title']."</a></p>";
- echo "<p class='tiny'><a
-href='mailto:".$new['email']."'>".$new['author']."</a> -
-".$new['date']."</p>";
- echo "<p class='news-content'>".$new['content']."</p>\n";
- echo "</div>\n";
+ echo "<p><a
href='p.php?p=news/show&l=".$_GET['l']."&news_id=$new[id]'>".$new['title']."</a>
- <em>".$new['date']."</em></p>";
+ echo "<p>".$new['content']."</p>\n";
}
-echo "<p align='right'><a href='p.php?p=news&l=".$_GET['l']."'
-title='News'>More news ... </a></p>";
+
+
+
}
+echo "<p align='right'><a href='p.php?p=news&l=".$_GET['l']."'
title='News'>More news ... </a></p>";
?>
+
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs