$BID = 1; } $sql = "Select * from banners "; $res = mysql_query($sql); ?> <form name="bidselect" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?> "> Select grid: <select name="BID" onchange="document.bidselect.submit()"> <option> </option> <?php while ($row = mysql_fetch_array($res)) { if ($row['banner_id'] == $BID && $_REQUEST['BID'] != 'all') { $sel = 'selected'; } else { $sel = ''; } echo '<option ' . $sel . ' value=' . $row['banner_id'] . '>' . $row[name] . '</option>'; } ?> </select> </form> <hr> <?php } $count = list_ads($admin = true, $order, $offset, $list_mode = 'ALL'); ?> </body>
process_map($BID); //echo 'published.'; } } } else { $prams = load_ad_values($_REQUEST['ad_id']); display_ad_form(1, 'edit', $prams); } } # end of ad forms ?> </p><?php ######################################### # List Ads ob_start(); $count = list_ads($admin = false, $order, $offset, 'USER'); $contents = ob_get_contents(); ob_end_clean(); if ($count > 0) { ?> <p> <div class="fancy_heading" width="85%"><?php echo $label['adv_pub_yourads']; ?> </div> </p><p> <?php echo $contents; ?> </p>