// Display the custom page content with current highest bids and the clear buttons function potm_auction_control_page() { // List of months $months = array( 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ); echo '
'; echo '

POTM Auction Control

'; echo '

Below are the current highest bidders for each month, along with their bids:

'; // Display current highest bids echo ''; echo ''; echo ''; foreach ( $months as $month ) { $highest_bid = get_option( 'highest_bid_' . strtolower( $month ), 0 ); $highest_bidder_name = get_option( 'highest_bidder_name_' . strtolower( $month ), 'No Bid' ); $highest_bidder_email = get_option( 'highest_bidder_email_' . strtolower( $month ), 'No Email' ); echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } echo '
MonthHighest BidBidder NameBidder Email
' . esc_html( $month ) . '$' . esc_html( $highest_bid ) . '' . esc_html( $highest_bidder_name ) . '' . esc_html( $highest_bidder_email ) . '
'; // Clear bids form with confirmation dialog echo '

Clear All Bids

'; echo '

Click the button below to clear all auction bids. This action cannot be undone.

'; echo '
'; echo ''; submit_button( 'Clear All Bids' ); echo '
'; // JavaScript confirmation and page refresh after clearing bids echo ''; // Handle the form submission for clearing bids if ( isset( $_POST['clear_bids_action'] ) && $_POST['clear_bids_action'] === 'clear_bids' ) { clear_test_bids(); // Call the function to clear bids echo '

All auction bids have been cleared!

'; // Redirect to refresh the page after clearing bids echo ''; } // Add Clear All Entries Button for Gravity Forms echo '

Clear All Form Entries

'; echo '

Click the button below to clear all entries from the auction form. This action cannot be undone.

'; echo '
'; echo ''; submit_button( 'Clear All Entries' ); echo '
'; // JavaScript confirmation for clearing entries echo ''; // Handle form entry clearing if ( isset( $_POST['clear_entries_action'] ) && $_POST['clear_entries_action'] === 'clear_entries' ) { clear_gravity_form_entries( 14 ); // Replace with your actual form ID echo '

All form entries have been cleared!

'; echo ''; } echo '
'; } 404 Not Found | Balsam Mountain Trust

No Results Found

The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.