[Debconf6-data-commit] r121 - website/www-es/news
Joerg Jaspert
joerg at costa.debian.org
Sun Dec 18 00:02:44 UTC 2005
Author: joerg
Date: 2005-12-18 00:02:42 +0000 (Sun, 18 Dec 2005)
New Revision: 121
Added:
website/www-es/news/index.html
website/www-es/news/menubar.html
website/www-es/news/read.html
Log:
Added missing stuff
Added: website/www-es/news/index.html
===================================================================
--- website/www-es/news/index.html 2005-12-17 23:54:43 UTC (rev 120)
+++ website/www-es/news/index.html 2005-12-18 00:02:42 UTC (rev 121)
@@ -0,0 +1,17 @@
+[+
+do {
+$req = shift;
+$output .= "";
+$pwd = $req->component->cwd;
+
+foreach $name (sort { $b cmp $a } glob($pwd."/items/*") ) {
+ open(DAT, $name);
+ @raw_data=<DAT>;
+ close(DAT);
+ $name =~ s/-/ /g;
+ $name =~ /([0-9]{2})_(.*).html/;
+ $output .= "<h2>$2</h2>".$raw_data[0]."...<br /><a href='read.html?id=$1'>>>> read more</a>";
+}
+$foo = $output;
+}
++]
Added: website/www-es/news/menubar.html
===================================================================
--- website/www-es/news/menubar.html 2005-12-17 23:54:43 UTC (rev 120)
+++ website/www-es/news/menubar.html 2005-12-18 00:02:42 UTC (rev 121)
@@ -0,0 +1,10 @@
+ <div class='menubar'>
+ <ul id='topmenu'>
+ <li><a href='/about/' title='General information about Debconf'>About DebConf</a></li>
+ <li id='topactive'>News</li>
+ <li><a href='/venue/' title='Information about the venue'>About Oaxtepec</a></li>
+ </ul>
+ <ul id='bottommenu'>
+
+ </ul>
+ </div>
Added: website/www-es/news/read.html
===================================================================
--- website/www-es/news/read.html 2005-12-17 23:54:43 UTC (rev 120)
+++ website/www-es/news/read.html 2005-12-18 00:02:42 UTC (rev 121)
@@ -0,0 +1,23 @@
+[+
+do {
+$req = shift;
+$output .= "";
+$pwd = $req->component->cwd;
+use CGI;
+$q = new CGI;
+my $value = $q->param('id');
+ at filename= glob($pwd."/items/$value*");
+open(DAT, $filename[0]);
+ at raw_data=<DAT>;
+close(DAT);
+$filename[0] =~ s/-/ /g;
+$filename[0] =~ /items\/([0-9]{2})_(.*).html/;
+$output .= "<h2>$2</h2>";
+foreach $line(@raw_data) {
+ $output .= "$line<br />";
+}
+$foo = $output;
+}
++]
+<br />
+<a href='/news/' title='Return to the news index'>News index</a>
More information about the Debconf6-data-commit
mailing list