Bug fix: shell might terminate even though new request was initiated
[egate.git] / www / showfull.egw
index 5791e16..1c09eb2 100644 (file)
@@ -1,40 +1,62 @@
 <html>
 {
-# $Id: showfull.egw,v 1.10 1995/11/13 15:41:44 adam Exp $
+# $Id: showfull.egw,v 1.12 1995/12/20 16:31:32 adam Exp $
 
 proc buttons {setNo tno no format count host after} {
     global sessionId
+    global useIcons
     global env
     global hist
 
-    if {$after && $no < $count} {
-        html "<p><center>\n"
+    html "<p>\n"
+    if {!$useIcons && $after && $no < $count} {
+        html "<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 "</center><p>\n"
+    }
+    if {$useIcons} {
+        html {<img src="/gif/button-egw.gif">}
     }
-    html "<p>\n"
     if {$no < $count} {
         html {<a href="http:} $env(SCRIPT_NAME)
         html / $sessionId {/showfull.egw/} $setNo + $tno + 
         html [expr $no + 1] + $format
-        html {">Next record</a>} " | \n"
+        if {$useIcons} {
+            html {"><img src="/gif/button-next-record.gif" border=0></a>}
+        } else {
+            html {">Next record</a>} " | \n"
+        }
     }
     if {$no > 1} {
         html {<a href="http:} $env(SCRIPT_NAME)
         html / $sessionId {/showfull.egw/} $setNo + $tno +
         html [expr $no - 1] + $format
-        html {">Previous record</a>} " | \n"
+        if {$useIcons} {
+            html {"><img src="/gif/button-previous-record.gif" border=0></a>}
+        } else {
+            html {">Previous record</a>} " | \n"
+        }
     }
 
     html {<a href="http:} $env(SCRIPT_NAME)
     html / $sessionId {/showfull.egw/} $setNo + $tno + $no +
     if {$format == "full"} {
-       html raw {">Raw format</a>} " | \n"
+        html raw 
+        if {$useIcons} {        
+            html {"><img src="/gif/button-raw-marc.gif" border=0></a>}
+        } else {
+            html {">Raw format</a>} " | \n"
+        }
     } else {
-       html full {">Full format</a>} " | \n"
+        html full
+        if {$useIcons} {
+            html {"><img src="/gif/button-full-format.gif" border=0></a>}
+        } else {
+            html {">Full format</a>} " | \n"
+        }
     }
 
     html {<a href="http:} $env(SCRIPT_NAME) / $sessionId 
@@ -45,8 +67,11 @@ proc buttons {setNo tno no format count host after} {
     }
     html $setNo + 1
     html + $hist($setNo,maxPresent)
-    html {">Result set</a>} " | \n"
-       
+    if {$useIcons} {
+        html {"><img src="/gif/button-result-set.gif" border=0></a>}
+    } else {
+        html {">Result set</a>} " | \n"
+    }
     html {<a href="http:} $env(SCRIPT_NAME) / $sessionId 
     if {$tno > 0} {
         html {/mquery.egw/} 
@@ -54,23 +79,30 @@ proc buttons {setNo tno no format count host after} {
         html {/query.egw/} 
     }
     html $host + $setNo 
-    html {">New query</a>} " | \n"
-
+    if {$useIcons} {
+        html {"><img src="/gif/button-new-query.gif" 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} 
     }
-    html {">New target</a>} "<p>\n"
-
-    if {!$after && $no > 1} {
+    if {$useIcons} {
+        html {"><img src="/gif/button-new-target.gif" border=0></a>}
+    } else {
+        html {">New target</a>}
+    }
+    html "<p>\n"
+    if {!$useIcons && !$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"
+        html "</center><p>\n"
     }
 }