function freshports_WatchListDDLBForm($db, $UserID, $WatchListID, $Extra = '') { $HTML = ' <form action="' . $_SERVER["PHP_SELF"] . '" method="POST" NAME=f> <table border="0"> <tr> <td valign="top" nowrap align="right"> <small> '; $HTML .= freshports_WatchListDDLB($db, $UserID, $WatchListID); $HTML .= ' </small> </td> <td valign="top" nowrap align="left"> ' . freshports_WatchListSelectGoButton() . $Extra . '</td></tr></table></form> '; return $HTML; }
require_once $_SERVER['DOCUMENT_ROOT'] . '/../classes/port-display.php'; $port_display = new port_display($db, $User); $port_display->SetDetailsReports(); $port_display->port = $port; $Port_HTML = $port_display->Display(); $HTML = $port_display->ReplaceWatchListToken($port->{'onwatchlist'}, $Port_HTML, $port->{'element_id'}); echo $HTML; ?> Please select the watch lists which should contain this port: <blockquote> <form action="<?php echo $PostURL; ?> " method="POST" NAME=f> <?php echo freshports_WatchListDDLB($db, $User->id, '', 10, TRUE, TRUE, $Object); ?> <br><br> <INPUT id=submit style="WIDTH: 85px; HEIGHT: 24px" type=submit size=29 value="<?php echo $ButtonName; ?> " name="submit"><br> <INPUT TYPE="hidden" NAME="Origin" VALUE="<?php echo $Origin; ?> "> <INPUT TYPE="hidden" NAME="Update" VALUE="<?php echo $Object; ?> ">
} ?> <tr><td> <table WIDTH="100%" BORDER="0"> <tr><td valign="top"> <form action="<?php echo $_SERVER["PHP_SELF"]; ?> " method="POST" NAME=f> <TABLE WIDTH="100%" BORDER="1" CELLSPACING="0" CELLPADDING="5"> <TR><td nowrap><BIG><b>Watch Lists</b></BIG></td><td><BIG><b>Actions</b></BIG> (scroll down for instructions)</td></tr> <TR> <TD valign="top"> <?php echo freshports_WatchListDDLB($db, $User->id, '', 10, TRUE); ?> </TD> <TD> <INPUT id=add style="WIDTH: 85px; HEIGHT: 24px" type=submit size=48 value="Add" name=add> <INPUT id=add_name name=add_name <?php if (isset($add_name)) { echo 'value="' . $add_name . '" '; } ?> size=10><small><sup>(1)</sup></small><BR> <INPUT id=rename style="WIDTH: 85px; HEIGHT: 24px" type=submit size=23 value="Rename" name=rename> <INPUT id=rename_name name=rename_name <?php if (isset($rename_name)) { echo 'value="' . $rename_name . '" '; }
function ChooseWatchLists($UserID, $db) { echo '<TABLE width="100%" ALIGN="center" BORDER="1" CELLSPACING="0" CELLPADDING="5"><TR>'; ?> <TR><TD colspan="3"><BIG>Your staging area contains your uploaded information. Please choose a watch list, and click on Go. <SMALL><A HREF="/help.php">help</A></SMALL></TD></TR> <TR><TD> <table width="100%" border="0"><tr><td> <FORM ACTION="<?php echo $_SERVER["PHP_SELF"]; ?> " method="POST"> <P ALIGN="center"> <INPUT TYPE="submit" VALUE="Empty staging area" NAME="clear"> </td><td align="right"> <?php echo freshports_WatchListDDLB($db, $UserID); ?> </td> <td> <?php echo freshports_WatchListSelectGoButton(); ?> </td></tr></table> </TD></TR> <?php echo '</FORM>'; echo '</TABLE>'; }