0 ? $position - 1 : false; $next_pos = !rgblank($position) && $position < $lead_count - 1 ? $position + 1 : false; // unread filter requires special handling for pagination since entries are filter out of the query as they are read if($filter == 'unread') { $next_pos = $position; if($next_pos + 1 == $lead_count) $next_pos = false; } // get the lead $leads = RGFormsModel::get_leads($form['id'], $sort_field, $sort_direction, $search, $position, 1, $star, $read, $is_numeric, null, null, $status); if(!$lead_id) { $lead = !empty($leads) ? $leads[0] : false; } else { $lead = RGFormsModel::get_lead($lead_id); } if(!$lead) { _e("Oops! We couldn't find your lead. Please try again", "gravityforms"); return; } RGFormsModel::update_lead_property($lead["id"], "is_read", 1); switch(RGForms::post("action")){ case "update" : check_admin_referer('gforms_save_entry', 'gforms_save_entry'); RGFormsModel::save_lead($form, $lead); do_action("gform_after_update_entry", $form, $lead["id"]); do_action("gform_after_update_entry_{$form["id"]}", $form, $lead["id"]); $lead = RGFormsModel::get_lead($lead["id"]); break; case "add_note" : check_admin_referer('gforms_update_note', 'gforms_update_note'); $user_data = get_userdata($current_user->ID); RGFormsModel::add_note($lead["id"], $current_user->ID, $user_data->display_name, stripslashes($_POST["new_note"])); //emailing notes if configured if(rgpost("gentry_email_notes_to")) { $email_to = $_POST["gentry_email_notes_to"]; $email_from = $current_user->user_email; $email_subject = stripslashes($_POST["gentry_email_subject"]); $headers = "From: \"$email_from\" <$email_from> \r\n"; $result = wp_mail($email_to, $email_subject, stripslashes($_POST["new_note"]), $headers); } break; case "add_quick_note" : check_admin_referer('gforms_save_entry', 'gforms_save_entry'); $user_data = get_userdata($current_user->ID); RGFormsModel::add_note($lead["id"], $current_user->ID, $user_data->display_name, stripslashes($_POST["quick_note"])); break; case "bulk" : check_admin_referer('gforms_update_note', 'gforms_update_note'); if($_POST["bulk_action"] == "delete") RGFormsModel::delete_notes($_POST["note"]); break; case "trash" : check_admin_referer('gforms_save_entry', 'gforms_save_entry'); RGFormsModel::update_lead_property($lead["id"], "status", "trash"); $lead = RGFormsModel::get_lead($lead["id"]); break; case "restore" : case "unspam" : check_admin_referer('gforms_save_entry', 'gforms_save_entry'); RGFormsModel::update_lead_property($lead["id"], "status", "active"); $lead = RGFormsModel::get_lead($lead["id"]); break; case "spam" : check_admin_referer('gforms_save_entry', 'gforms_save_entry'); RGFormsModel::update_lead_property($lead["id"], "status", "spam"); $lead = RGFormsModel::get_lead($lead["id"]); break; case "delete" : check_admin_referer('gforms_save_entry', 'gforms_save_entry'); RGFormsModel::delete_lead($lead["id"]); ?>
" />

  • entry of

'; echo apply_filters("gform_entrydetail_update_button", $update_button); if($mode == "edit") echo '  '; } ?>






" class="button" style="" onclick="ResendNotifications();"/>

"; $content = apply_filters("gform_field_content", $content, $field, $value, $lead["id"], $form["id"]); echo $content; break; } } ?>

" . GFCommon::get_field_input($field, $value, $lead["id"]) . "

0 && $is_editable && GFCommon::current_user_can_any("gravityforms_edit_entry_notes")){ ?>
'; echo apply_filters("gform_notes_apply_button", $apply_button); ?>
= $notes_count ? true : false; ?>
Notes
">
user_id, 48);?>
user_name)?>

user_email) ?>
date_created, false)) ?>

value) ?>
'; echo apply_filters("gform_addnote_button", $note_button); if(!empty($emails)){ ?>      
= $field_count ? true : false; ?> = $field_count && !$has_product_fields ? true : false; $last_row = $is_last ? " lastrow" : ""; $display_value = empty($display_value) && $display_value !== "0" ? " " : $display_value; $content = ' '; $content = apply_filters("gform_field_content", $content, $field, $value, $lead["id"], $form["id"]); echo $content; } break; } } $products = array(); if($has_product_fields){ $products = GFCommon::get_product_fields($form, $lead); if(!empty($products["products"])){ ?>
: onclick="ToggleShowEmptyFields();"/>  
">
' . esc_html(GFCommon::get_label($field)) . '
' . $display_value . '
    >
   
 
$pos), remove_query_arg(array('pos', 'lid'))) . '"': ''; $class .= ' gf_entry_pagination_link'; $class .= $pos !== false ? ' gf_entry_pagination_link_active' : ' gf_entry_pagination_link_inactive'; return '' . $label . ''; } } ?>