<div class = "wrap"> <?php if (!is_cancel_request_enabled()) { wcw_plugin_success_msg('To have this feature, please enable cancel requests in settings under WC Wallet menu', "error"); } ?> <h1>Cancel Requests</h1> <?php if (is_cancel_request_enabled()) { ?> <form method = "get"> <div class="alignleft actions"> <label for="filter-by-date" class="screen-reader-text">Filter by date</label> <select name="ID" id="filter-by-date"> <option value="0">All Users</option> <?php $array = array(); foreach (wc_w_get_log() as $log) { if (!in_array($log["uid"], $array)) { $array[] = $log["uid"]; $user_info = get_userdata($log["uid"]); ?> <option value="<?php echo $user_info->ID; ?> " <?php if (isset($_GET['filter_action']) && $_GET['ID'] == $user_info->ID) { echo "selected = 'selected'"; }
<?php if (!ABSPATH) { exit; } if (isset($_POST["submit"])) { if (wcw_update_form($_POST)) { wcw_plugin_success_msg("Settings Saved."); } } $wcw_payment_method = explode(",", get_option('wcw_payment_method')); $wcw_transfer_only = json_decode(get_option('wcw_transfer_only'), true); $wcw_apply_tax_yes = get_option('wcw_apply_tax') == 1 ? 'checked' : ''; $wcw_apply_tax_no = get_option('wcw_apply_tax') == 0 ? 'checked' : ''; $wcw_notify_admin = get_option('wcw_notify_admin') == 1 ? 'checked' : ''; $wcw_remining_credits = get_option('wcw_remining_credits') == 1 ? 'checked' : ''; $wcw_restrict_max = get_option('wcw_restrict_max'); $wcw_new_user_credits = get_option('wcw_new_user_credits'); $wcw_cancel_req = get_option('wcw_cancel_req') == 1 ? 'checked' : ''; $wcw_automatic_cancel_req = get_option('wcw_automatic_cancel_req') == 1 ? 'checked' : ''; $wcw_is_float_value_no = get_option('wcw_is_float_value') == 0 ? 'checked' : ''; $wcw_is_float_value_yes = get_option('wcw_is_float_value') == 1 ? 'checked' : ''; ?> <style> .checkboxes{ width: 100%; float: left; margin-top: 10px; } .w200{