[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 @@
   {
     ?>&lt;tr&gt;&lt;td align="left" valign="top"&gt;&lt;a
 href="&(list.id);.html"
-&gt;&(topic.name);&lt;/a&gt;&lt;/td&gt;&lt;?php
+&gt;&(list.name);&lt;/a&gt;&lt;/td&gt;&lt;?php
     for ($x=1; $x < $x_in_a_row; $x++)
     {
       ?&gt;&lt;td align="left" valign="top"&gt;&lt;?php
 
       if ($list->fetch()) { ?&gt;&lt;a
 href="&(list.id);.html"
-&gt;&(topic.name);&lt;/a&gt;&lt;?php } else { echo "&amp;nbsp;";
+&gt;&(list.name);&lt;/a&gt;&lt;?php } else { echo "&amp;nbsp;";
 }
       echo "&lt;/td&gt;";
     }
@@ -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 = "&lt;a href=\"" . $tmp->id
-      . ".html\"&gt;$t->name&lt;/a&gt; &gt; $path";
-    $title = "$t->name &gt; $title";
-    $tmp = mgd_get_topic($t->up);
+    /* build path */
+    $path = $t->name;
+    $title = $t->name;
+    $t = mgd_get_topic($t->up);
+    while ($t)
+    {
+      $path = "&lt;a href=\"" . $t->id
+        . ".html\"&gt;$t->name&lt;/a&gt; &gt; $path";
+      $title = "$t->name &gt; $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;
 ?&gt;
       </programlisting>
@@ -566,7 +573,7 @@
       <programlisting>
   while ($list && $list->fetch())
   {
-    ?&gt; &lt;dt&lt;&lt;a href="&(list.url);"
+    ?&gt; &lt;dt&gt;&lt;a href="&(list.url);"
         >&(list.title);&lt;/a&gt;&lt;dd&gt;&(list.content);
 &lt;?php
   }

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic