+# $Id: showfull.egw,v 1.11 1995/11/14 09:30:20 adam Exp $
+
+proc buttons {setNo tno no format count host after} {
+ global sessionId
+ global env
+ global hist
+
+ html "<p>\n"
+ if {$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><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 {$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"
+ }
+
+ html {<a href="http:} $env(SCRIPT_NAME)
+ html / $sessionId {/showfull.egw/} $setNo + $tno + $no +
+ if {$format == "full"} {
+ html raw {">Raw format</a>} " | \n"
+ } else {
+ html full {">Full format</a>} " | \n"
+ }
+
+ html {<a href="http:} $env(SCRIPT_NAME) / $sessionId
+ if {$tno > 0} {
+ html {/msearch.egw/}
+ } else {
+ html {/search.egw/}
+ }
+ html $setNo + 1
+ html + $hist($setNo,maxPresent)
+ 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
+ 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} {
+ 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><p>\n"
+ }
+}