Search the Community
Showing results for tags 'dropmenu'.
-
I incorporated the "Dropdown in TopNav" code, but I have a dropdown list that's over 70 items long. How would I incorporated a scrolling function to this menu, or make it possible to view all the entries by scrolling down using the mouse wheel? Thanks!
-
hi programmers how u doing? i need help creating a sub menu but with a twist MENU Submenu- team1 on click will display dropdown list of team2 lists team2 on click will display dropdown list of team1 lists if a user select (team1) it should drop down list of [team2] and if the user select (team2) it should drop list of [team1]. the code below is only a menu without submenu need ur assistance, thanks alot // team select $query = "SELECT a.id, a.team1, a.team2, b.auction, b.bidder, b.tagged, b.willwin FROM " . $DBPrefix . "auctions a LEFT JOIN " . $DBPrefix . "bids b ON (b.auction = a.id) WHERE a.id = :auc_id and a.id = a.id group by a.id"; $params = array(); $params[] = array(':auc_id', $id, 'int'); $db->query($query, $params); $TPL_team_list = '<select name="willwin" class="form-control">' . "\n"; while ($row = $db->fetch()) { $TPL_team_list .= "\t" . ' <option value="' . $row[''] . '" ' . $selected . '>' . $row[''] . '</option> <option value="' . $row['team1'] . '" ' . $selected . '>' . $row['team1'] . '</option> <option value="' . $row['team2'] . '" ' . $selected . '>' . $row['team2'] . '</option> ' . "\n"; } $TPL_team_list .= '</select>' . "\n"; { $template->assign_block_vars('tag_bidder', array( 'TEAM' => $TPL_team_list, )); $i++; } Tables : auctions columns: id(int), team1, team2 3 chelsea ajax Tables : bids columns: auction(int) bidder willwin 3 9 chelsea 3 5 ajax 3 7 chelsea 3 2 ajax 3 6 chelsea 3 4 chelsea