Enlightenment CVS committal
Author : raster
Project : web
Module : www
Dir : web/www/site
Modified Files:
site.php
Log Message:
1. make site a bit thinner - 800px wide now works (should).
2. ul for subs now.
===================================================================
RCS file: /cvs/e/web/www/site/site.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- site.php 27 Mar 2007 02:42:38 -0000 1.4
+++ site.php 31 Mar 2007 03:26:27 -0000 1.5
@@ -91,10 +91,11 @@
function nav_subs() {
global $page;
global $lang;
+ $item = 0;
if (file_exists("p/$page/subs")) {
$handle = fopen("p/$page/subs", "r");
if ($handle) {
- print("<table border=0 cellpadding=0 cellspacing=4px><tr>\n");
+ print("<ul class='navul'>\n");
while (!feof($handle)) {
$fl = fgets($handle, 4096);
$fl = str_replace("\n", "", $fl);
@@ -109,18 +110,22 @@
if ($h == "") {
$h = "p.php?p=$page/$fl&l=$lang";
}
- print("<td class='nav'><a class='nav'
href='$h'>$l</a></td>\n");
+ if ($item > 0) print("|\n");
+ print("<li class='navul'><a class='navul'
href='$h'>$l</a></li>\n");
+ $item++;
}
else if (file_exists("p/$page/$fl/en-label")) {
$l = read_var("p/$page/$fl/en-label");
if ($h == "") {
$h = "p.php?p=$page/$fl&l=$lang";
}
- print("<td class='nav'><a class='nav'
href='$h'>$l</a></td>\n");
+ if ($item > 0) print("|\n");
+ print("<li class='navul'><a class='navul'
href='$h'>$l</a></li>\n");
+ $item++;
}
}
}
- print("</tr></table><hr>");
+ print("</ul><hr>");
}
}
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs