Arrow gifs.
[egate.git] / www / showfull.egw
index ea8998b..5791e16 100644 (file)
@@ -1,12 +1,20 @@
 <html>
 {
-# $Id: showfull.egw,v 1.9 1995/11/10 14:47:32 adam Exp $
+# $Id: showfull.egw,v 1.10 1995/11/13 15:41:44 adam Exp $
 
-proc buttons {setNo tno no format count host} {
+proc buttons {setNo tno no format count host after} {
     global sessionId
     global env
     global hist
 
+    if {$after && $no < $count} {
+        html "<p><center>\n"
+        html {<a href="http:} $env(SCRIPT_NAME)
+        html / $sessionId {/showfull.egw/} $setNo + $tno + 
+        html [expr $no + 1] + $format
+        html {"><img src="/gif/darrw.gif"></a>}
+        html "</center>\n"
+    }
     html "<p>\n"
     if {$no < $count} {
         html {<a href="http:} $env(SCRIPT_NAME)
@@ -37,25 +45,33 @@ proc buttons {setNo tno no format count host} {
     }
     html $setNo + 1
     html + $hist($setNo,maxPresent)
-    html {">Result</a>} " | \n"
+    html {">Result set</a>} " | \n"
        
     html {<a href="http:} $env(SCRIPT_NAME) / $sessionId 
     if {$tno > 0} {
-        html {/mtargets.egw} 
+        html {/mquery.egw/} 
     } else {
-        html {/targets.egw} 
+        html {/query.egw/} 
     }
-    html {">New target</a>} " | \n"
+    html $host + $setNo 
+    html {">New query</a>} " | \n"
 
     html {<a href="http:} $env(SCRIPT_NAME) / $sessionId 
     if {$tno > 0} {
-        html {/mquery.egw/} 
+        html {/mtargets.egw} 
     } else {
-        html {/query.egw/} 
+        html {/targets.egw} 
     }
-    html $host + $setNo 
-    html {">New query</a>} "<p>\n"
+    html {">New target</a>} "<p>\n"
 
+    if {!$after && $no > 1} {
+        html "<p><center>\n"
+        html {<a href="http:} $env(SCRIPT_NAME)
+        html / $sessionId {/showfull.egw/} $setNo + $tno +
+        html [expr $no - 1] + $format
+        html {"><img src="/gif/uarrw.gif"></a>}
+        html "</center>\n"
+    }
 }
 
     if {[info commands saveState] == ""} {
@@ -80,19 +96,19 @@ proc buttons {setNo tno no format count host} {
         set host $hist($setNo,$tno,host)
     } else {
         set zz z39
-        set host $hist($setNo,$0,host)
+        set host $hist($setNo,host)
     }
     
-    if {[z39search $setNo 0 $tno] != "1"} {
+    if {[z39search $setNo 0 $tno F] != "1"} {
         return
     }
     set count [$zz.$setNo resultCount]
     html "<h2>Record \#$no out of $count </h2><br>\n"
 
-    buttons $setNo $tno $no $format $count $host
+    buttons $setNo $tno $no $format $count $host 0
 
-    eval {z39present $setNo $tno $no $no display-$format}
-    buttons $setNo $tno $no $format $count $host
+    eval {z39present $setNo $tno $no $no display-$format F}
+    buttons $setNo $tno $no $format $count $host 1
 }
 </body>
 </html>