[prev in list] [next in list] [prev in thread] [next in thread]
List: midgard-dev
Subject: [midgard-dev] cvs: /midgard/doc tutorial.sgml
From: emiliano <midgard-dev () greywolves ! org>
Date: 2000-01-10 8:12:47
[Download RAW message or body]
emiliano Mon Jan 10 10:12:47 2000 EDT
Modified files:
/midgard/doc tutorial.sgml
Log:
midHoo typos fixed
Index: midgard/doc/tutorial.sgml
diff -u midgard/doc/tutorial.sgml:1.17 midgard/doc/tutorial.sgml:1.18
--- midgard/doc/tutorial.sgml:1.17 Fri Dec 17 14:13:09 1999
+++ midgard/doc/tutorial.sgml Mon Jan 10 10:12:45 2000
@@ -409,14 +409,14 @@
{
?><tr><td align="left" valign="top"><a
href="&(list.id);.html"
->&(topic.name);</a></td><?php
+>&(list.name);</a></td><?php
for ($x=1; $x < $x_in_a_row; $x++)
{
?><td align="left" valign="top"><?php
if ($list->fetch()) { ?><a
href="&(list.id);.html"
->&(topic.name);</a><?php } else { echo "&nbsp;";
+>&(list.name);</a><?php } else { echo "&nbsp;";
}
echo "</td>";
}
@@ -451,20 +451,27 @@
$context["root"] = $argv[0] ? $argv[0] : <userinput>toplevel topic ID</userinput>
$t = mgd_get_topic($context["root"]);
$context["topic"] = $t;
-
- /* build path */
- $path = $t->name;
- $title = $t->name;
- $t = mgd_get_topic($t->up);
- while ($t)
+
+ if ($t)
{
- $path = "<a href=\"" . $tmp->id
- . ".html\">$t->name</a> > $path";
- $title = "$t->name > $title";
- $tmp = mgd_get_topic($t->up);
+ /* build path */
+ $path = $t->name;
+ $title = $t->name;
+ $t = mgd_get_topic($t->up);
+ while ($t)
+ {
+ $path = "<a href=\"" . $t->id
+ . ".html\">$t->name</a> > $path";
+ $title = "$t->name > $title";
+ $t = mgd_get_topic($t->up);
+ }
}
+ else
+ {
+ $path = "No such topic " .$context["root"]; $title = $path;
+ }
- $context["path"] = $path;
+ $context["path"] = $path;
$context["title"] = $title;
?>
</programlisting>
@@ -566,7 +573,7 @@
<programlisting>
while ($list && $list->fetch())
{
- ?> <dt<<a href="&(list.url);"
+ ?> <dt><a href="&(list.url);"
>&(list.title);</a><dd>&(list.content);
<?php
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic