| 1 |
<div id="form_show_entry_page" class="frm_wrap frm_single_entry_page"> |
| 2 |
<div class="frm_forms"> |
| 3 |
|
| 4 |
<div id="poststuff" class="frm_page_container"> |
| 5 |
<div id="post-body" class="metabox-holder columns-2"> |
| 6 |
<div id="post-body-content"> |
| 7 |
<?php |
| 8 |
FrmAppHelper::get_admin_header( |
| 9 |
array( |
| 10 |
'label' => __( 'View Entry', 'formidable' ), |
| 11 |
'link_hook' => array( |
| 12 |
'hook' => 'frm_entry_inside_h2', |
| 13 |
'param' => $form, |
| 14 |
), |
| 15 |
'form' => $form, |
| 16 |
) |
| 17 |
); |
| 18 |
?> |
| 19 |
<div class="frm_form_fields"> |
| 20 |
<div class="postbox"> |
| 21 |
<h3 class="hndle"><span><?php esc_html_e( 'Entry', 'formidable' ) ?></span></h3> |
| 22 |
<div class="inside"> |
| 23 |
<table class="form-table"><tbody> |
| 24 |
<?php |
| 25 |
$first_h3 = 'frm_first_h3'; |
| 26 |
foreach ( $fields as $field ) { |
| 27 |
if ( in_array( $field->type, array( 'captcha', 'html', 'end_divider', 'form' ), true ) ) { |
| 28 |
continue; |
| 29 |
} |
| 30 |
|
| 31 |
if ( in_array( $field->type, array( 'break', 'divider' ), true ) ) { |
| 32 |
?> |
| 33 |
</tbody></table> |
| 34 |
<br/><h3 class="<?php echo esc_attr( $first_h3 ) ?>"><?php echo esc_html( $field->name ) ?></h3> |
| 35 |
<table class="form-table"><tbody> |
| 36 |
<?php |
| 37 |
$first_h3 = ''; |
| 38 |
} else { |
| 39 |
?> |
| 40 |
<tr> |
| 41 |
<th scope="row"><?php echo esc_html( $field->name ) ?>:</th> |
| 42 |
<td> |
| 43 |
<?php |
| 44 |
$embedded_field_id = ( $entry->form_id !== $field->form_id ) ? 'form' . $field->form_id : 0; |
| 45 |
$atts = array( |
| 46 |
'type' => $field->type, |
| 47 |
'post_id' => $entry->post_id, |
| 48 |
'show_filename' => true, |
| 49 |
'show_icon' => true, |
| 50 |
'entry_id' => $entry->id, |
| 51 |
'embedded_field_id' => $embedded_field_id, |
| 52 |
); |
| 53 |
$display_value = FrmEntriesHelper::prepare_display_value( $entry, $field, $atts ); |
| 54 |
echo $display_value; // WPCS: XSS ok. |
| 55 |
|
| 56 |
if ( is_email( $display_value ) && ! in_array( $display_value, $to_emails ) ) { |
| 57 |
$to_emails[] = $display_value; |
| 58 |
} |
| 59 |
?> |
| 60 |
</td> |
| 61 |
</tr> |
| 62 |
<?php |
| 63 |
} |
| 64 |
} |
| 65 |
?> |
| 66 |
|
| 67 |
<?php if ( $entry->parent_item_id ) { ?> |
| 68 |
<tr><th><?php esc_html_e( 'Parent Entry ID', 'formidable' ) ?>:</th> |
| 69 |
<td><?php echo absint( $entry->parent_item_id ) ?> |
| 70 |
</td></tr> |
| 71 |
<?php } ?> |
| 72 |
</tbody></table> |
| 73 |
<?php do_action( 'frm_show_entry', $entry ); ?> |
| 74 |
</div> |
| 75 |
</div> |
| 76 |
|
| 77 |
<?php do_action( 'frm_after_show_entry', $entry ); ?> |
| 78 |
</div> |
| 79 |
</div> |
| 80 |
<?php require( FrmAppHelper::plugin_path() . '/classes/views/frm-entries/sidebar-show.php' ); ?> |
| 81 |
</div> |
| 82 |
</div> |
| 83 |
</div> |
| 84 |
</div> |
| 85 |
<br/> |
| 86 |
|