<html>
{
-# $Id: showfull.egw,v 1.10 1995/11/13 15:41:44 adam Exp $
+# $Id: showfull.egw,v 1.13 1995/12/21 15:49:52 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
}
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/}
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"
}
}
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 0
+ html "<h3>Record \#$no out of $count </h3><br>\n"
+
eval {z39present $setNo $tno $no $no display-$format F}
buttons $setNo $tno $no $format $count $host 1
}