<li> <div class="labelwrapper"> <label><?php _e('Ad Package','appthemes'); ?>:</label> </div> <?php // go get all the active ad packs and create a drop-down of options $results = $wpdb->get_results( $wpdb->prepare( "SELECT pack_id, pack_name FROM $wpdb->cp_ad_packs WHERE pack_status = 'active' ORDER BY pack_id asc" ) ); if ( $results ) { ?> <select name="ad_pack_id" class="dropdownlist required"> <?php foreach ( $results as $result ) { ?> <option value="<?php echo esc_attr($result->pack_id); ?>"><?php echo esc_attr(stripslashes($result->pack_name)); ?></option> <?php } ?> </select> <?php } else { ?> <?php _e('Error: no ad pack has been defined. Please contact the site administrator.', 'appthemes') ?> <?php } ?> <div class="clr"></div> </li>
There are currently 1 users browsing this thread. (0 members and 1 guests)