Commit 944dc33e authored by Robert Ricci's avatar Robert Ricci

Added an optional 'target' param for popping up new windows.

parent 87dd2e60
......@@ -847,14 +847,20 @@ function PAGEERROR($msg) {
#
# Sub Page/Menu Stuff
#
function WRITESUBMENUBUTTON($text, $link) {
function WRITESUBMENUBUTTON($text, $link, $target = "") {
#
# Optional 'target' agument, so that we can pop up new windows
#
if ($target) {
$targettext = "target='$target'";
}
echo "<!-- Table row for button $text -->
<tr>
<td valign=center align=left nowrap>
<b>
<a class=sidebarbutton href='$link'>$text</a>\n";
<a class=sidebarbutton href='$link' $targettext>$text</a>\n";
echo " </b>
</td>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment