New Tcl calls egw_enc/egw_dec to encode/decode binary URL info.
[egate.git] / www / showfull.egw
index 3cacea1..85c2194 100644 (file)
@@ -1,6 +1,6 @@
 <html>
 {
-# $Id: showfull.egw,v 1.16 1996/01/09 16:16:49 adam Exp $
+# $Id: showfull.egw,v 1.19 1996/03/05 18:50:25 adam Exp $
 
 proc buttons {setNo tno no format count host after} {
     global sessionId
@@ -18,7 +18,7 @@ proc buttons {setNo tno no format count host after} {
             html {"><img src="/egwgif/button-next-record.gif" }
            html {alt="Next Record" border=0></a>}
         } else {
-            html {">Next Record</a>} " | \n"
+            html {">Next</a>} " | \n"
         }
     }
     if {$no > 1} {
@@ -29,7 +29,7 @@ proc buttons {setNo tno no format count host after} {
             html {"><img src="/egwgif/button-previous-record.gif" }
            html {alt="Previous Record" border=0></a>}
         } else {
-            html {">Previous Record</a>} " | \n"
+            html {">Previous</a>} " | \n"
         }
     }
 
@@ -67,31 +67,9 @@ proc buttons {setNo tno no format count host after} {
     } else {
         html {">Result Set</a>} " | \n"
     }
-    html {<a href="http:} $env(SCRIPT_NAME) / $sessionId 
-    if {$tno > 0} {
-        html {/mquery.egw/} 
-    } else {
-        html {/query.egw/} 
-    }
-    html $host + $setNo 
-    if {$useIcons} {
-        html {"><img src="/egwgif/button-new-query.gif" }
-       html {alt="New Query" border=0></a>}
-    } else {
-        html {">New Query</a>} " | \n"
-    }
-    html {<a href="http:} $env(SCRIPT_NAME) / $sessionId 
-    if {$tno > 0} {
-        html {/mtargets.egw} 
-    } else {
-        html {/targets.egw} 
-    }
-    if {$useIcons} {
-        html {"><img src="/egwgif/button-new-target.gif" }
-       html {alt="New Target" border=0></a>}
-    } else {
-        html {">New Target</a>}
-    }
+
+    button-new-query 1 $setNo
+    button-new-target 0
     html "<p>\n"
 }
 
@@ -99,9 +77,6 @@ proc buttons {setNo tno no format count host after} {
         source z39util.tcl
     }
 
-    html "<head><title> WWW/Z39.50 Gateway Record " $host " </title>\n"
-    html "</head><body>\n"
-
     global setNo
     global hist
 
@@ -120,17 +95,23 @@ proc buttons {setNo tno no format count host after} {
         set host $hist($setNo,host)
     }
     
+    html "<head><title> WWW/Z39.50 Gateway Record " [splitHostSpec $host]
+    html " </title>\n"
+    html "</head><body>\n"
+
     if {[z39search $setNo 0 $tno F] != "1"} {
         return
     }
 
     set count [$zz.$setNo resultCount]
 
+    set useIcons 1
     buttons $setNo $tno $no $format $count $host 0
 
     html "<h3>Record \#$no out of $count </h3><br>\n"
 
     eval {z39present $setNo $tno $no $no display-$format F}
+    set useIcons 0
     buttons $setNo $tno $no $format $count $host 1
 }
 </body>