[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1459 - GNUnet-docs/WWW
From: |
grothoff |
Subject: |
[GNUnet-SVN] r1459 - GNUnet-docs/WWW |
Date: |
Tue, 12 Jul 2005 19:33:49 -0700 (PDT) |
Author: grothoff
Date: 2005-07-12 19:33:47 -0700 (Tue, 12 Jul 2005)
New Revision: 1459
Modified:
GNUnet-docs/WWW/scripts.inc
Log:
update
Modified: GNUnet-docs/WWW/scripts.inc
===================================================================
--- GNUnet-docs/WWW/scripts.inc 2005-07-13 02:32:11 UTC (rev 1458)
+++ GNUnet-docs/WWW/scripts.inc 2005-07-13 02:33:47 UTC (rev 1459)
@@ -45,16 +45,18 @@
$ret = ARRAY();
$offset = 0;
$currString = "";
+ $plusX = "";
foreach($elements as $name => $size) {
+ $osize = $size;
if (($offset % 4) == 0) {
if ( ($size >= 4) || ($size == 0) ) {
- $ret[] = "<th class=\"tbl\">$offset</th><td class=\"tbl\"
colspan=4>$name</td>";
+ $ret[] = "<th class=\"tbl\">$offset$plusX</th><td class=\"tbl\"
colspan=4>$name</td>";
$mod = $size % 4;
$offset += $size - $mod;
$size = $mod;
}
if ($size > 0) {
- $currString = "<th class=\"tbl\">$offset</th><td class=\"tbl\"
colspan=$size>$name</td>";
+ $currString = "<th class=\"tbl\">$offset$plusX</th><td class=\"tbl\"
colspan=$size>$name</td>";
$offset += $size;
}
} else {
@@ -72,15 +74,17 @@
$mod = $size % 4;
if ($size >= 4) {
$size -= $mod;
- $ret[] = "<th class=\"tbl\">$offset</th><td class=\"tbl\"
colspan=4>$name</td>";
+ $ret[] = "<th class=\"tbl\">$offset$plusX</th><td class=\"tbl\"
colspan=4>$name</td>";
$offset += $size;
}
if ($mod > 0) {
- $currString = "<th class=\"tbl\">$offset</th><td class=\"tbl\"
colspan=$mod>$name</td>";
+ $currString = "<th class=\"tbl\">$offset$plusX</th><td class=\"tbl\"
colspan=$mod>$name</td>";
$offset += $mod;
}
}
}
+ if ($osize == 0)
+ $plusX = "+X";
}
if ($currString != "")
$ret[] = $currString;
@@ -88,7 +92,7 @@
}
function LAYOUT($structName,
- $fieldArray) {
+ $fieldArray) {
echo "<center>\n";
echo "<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\"
width=\"90%\">\n";
echo "<tr><th colspan=5 valign=center><a href=\"doxygen/html/struct" .
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1459 - GNUnet-docs/WWW,
grothoff <=