2012-04-22 23:34:30 +00:00
|
|
|
#!/mod/bin/jimsh
|
|
|
|
|
2012-05-21 20:23:41 +00:00
|
|
|
source /mod/webif/lib/setup
|
2012-04-23 19:19:23 +00:00
|
|
|
require plugin system.class
|
2012-04-22 23:34:30 +00:00
|
|
|
|
2012-05-07 00:24:12 +00:00
|
|
|
proc menuitem {title icon link {width 217} {height 0} {extra ""}} {
|
|
|
|
if {$extra ne ""} { append extra " " }
|
2012-04-23 19:19:23 +00:00
|
|
|
puts -nonewline "
|
2012-04-22 23:34:30 +00:00
|
|
|
<div class=left>
|
|
|
|
<center>
|
|
|
|
<a href=$link>
|
2012-05-07 00:24:12 +00:00
|
|
|
<img src=$icon ${extra}border=0 width=$width"
|
2012-04-23 19:19:23 +00:00
|
|
|
if {$height} { puts -nonewline " height=$height" }
|
|
|
|
puts -nonewline ">
|
2012-04-22 23:34:30 +00:00
|
|
|
</a>
|
|
|
|
<br>
|
|
|
|
<a href=$link>
|
|
|
|
<b>$title</b>
|
|
|
|
</a>
|
|
|
|
<br>
|
|
|
|
</center>
|
|
|
|
</div>
|
|
|
|
"
|
|
|
|
}
|
|
|
|
|
|
|
|
eval_plugins menu
|
|
|
|
|