show_table

Generate the output for the IFRAME.

Description

show_table(); 

Usage

  1. if ( !function_exists( 'show_table' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-forms-directory-addons/entry-details.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = show_table(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/entry-details.php  
  1. function show_table() { 
  2.  
  3. if(isset($_REQUEST['leadid']) && isset($_REQUEST['form'])) { 
  4.  
  5. require_once(dirname( __FILE__ )."/gravity-forms-addons.php"); 
  6.  
  7. $transient = false; 
  8. if(isset($_REQUEST['post'])) { 
  9. $transient = get_transient('gf_form_'.$_REQUEST['form'].'_post_'.$_REQUEST['post'].'_showadminonly'); 
  10. $output = '<style>html, body { margin:0; padding: 0!important; } div.wrap { padding:.25em .5em; }</style>'; 
  11. $output .= "<div class='wrap'>"; 
  12.  
  13. $leadid = (int)$_REQUEST['leadid']; 
  14.  
  15. $lightbox = apply_filters('kws_gf_directory_showadminonly_lightbox', apply_filters('kws_gf_directory_showadminonly_lightbox_'.$_REQUEST['form'], $transient, $leadid), $leadid); 
  16.  
  17. $detail = GFDirectory::process_lead_detail(false, '', $lightbox, $leadid); 
  18.  
  19. $detail = apply_filters('kws_gf_directory_detail', apply_filters('kws_gf_directory_detail_'.$leadid, $detail, $leadid), $leadid); 
  20.  
  21. $output .= $detail."</div>"; 
  22.  
  23. echo $output;