$count_pages ) { $page = $count_pages; } //Starting Position $start_pos = ( $page - 1 ) * $perpage; $from = (int) $start_pos + (int) $perpage; if ( $from > $countOfPages ) { $from = $countOfPages; } $start = $start_pos; if ( $start_pos == 0 ) { $start = 1; } $protocol = stripos( $_SERVER['SERVER_PROTOCOL'], 'https' ) === true ? 'https://' : 'http://'; //$actual_link = $protocol.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."?"; $actual_link = "?"; foreach ( $_GET as $key => $value ) { if ( $key != 'page_number' ) { $actual_link .= "{$key}=$value&"; } } $url_link = $actual_link; $next_link = $url_link . 'page_number=' . ( $page + 1 ); $prev_link = $url_link . 'page_number=' . ( $page - 1 ); $pagination_params = array( 'start_pos' => $start_pos, 'perpage' => $perpage, 'count_pages' => $count_pages, 'countOfPages' => $countOfPages, 'page' => $page, 'fromTo' => $from, 'start' => $start, 'nextLink' => $next_link, 'prevLink' => $prev_link, ); return $pagination_params; } function hugeit_contact_html_showhugeit_contacts( $rows, $pageNav,$sort,$cat_row,$form_styles){ global $wpdb; ?>

Huge IT Submissions

'; ?> id ) ) { if ( $rows[ $i ]->hc_width == $rows[ $i - 1 ]->hc_width ) { $x1 = $rows[ $i ]->id; $x2 = $rows[ $i - 1 ]->id; $ka0 = 1; } else { $jj = 2; while ( isset( $rows[ $i - $jj ] ) ) { if ( $rows[ $i ]->hc_width == $rows[ $i - $jj ]->hc_width ) { $ka0 = 1; $x1 = $rows[ $i ]->id; $x2 = $rows[ $i - $jj ]->id; break; } $jj ++; } } if ( $ka0 ) { $move_up = ' Move Up'; } else { $move_up = ""; } } else { $move_up = ""; } if ( isset( $rows[ $i + 1 ]->id ) ) { if ( $rows[ $i ]->hc_width == $rows[ $i + 1 ]->hc_width ) { $x1 = $rows[ $i ]->id; $x2 = $rows[ $i + 1 ]->id; $ka1 = 1; } else { $jj = 2; while ( isset( $rows[ $i + $jj ] ) ) { if ( $rows[ $i ]->hc_width == $rows[ $i + $jj ]->hc_width ) { $ka1 = 1; $x1 = $rows[ $i ]->id; $x2 = $rows[ $i + $jj ]->id; break; } $jj ++; } } if ( $ka1 ) { $move_down = ' Move Down'; } else { $move_down = ""; } } $uncat = $rows[ $i ]->par_name; if ( isset( $rows[ $i ]->prod_count ) ) { $pr_count = $rows[ $i ]->prod_count; } else { $pr_count = 0; } ?> >
id); ?> name)); ?> (prod_count); ?>)

name)) echo esc_html($subName[0]->name); ?> Submissions

1):?>
id); $submition_contact_id=esc_html($submition->contact_id); $submition_contact_country =esc_html ($submition->contact_country); ?> customer_spam == 1){ echo " spam"; } else { echo ""; }?> depth- "> submission_ip),'strlen');?>
User Message User Country User Submission Date User IP
customer_read_or_not == 1):?> Show Show | Spam | Not Spam | Trash
customer_read_or_not == 1):?>

customer_spam != 1) echo "style= 'display: none'"; ?>>Spam!

customer_country; ?>

customer_spam != 1) echo "style= 'display: none'"; ?>>Spam!

Are you sure?
$submition ) { if ( $submition->id == $current_page_id ) { $myNum = $num + 1; $custom_id = $num; } } $current_page_url = $_SERVER["REQUEST_URI"]; $current_page_url = strstr( $current_page_url, 'admin.php' ); if ( array_key_exists( $custom_id - 1, $submitionsCount ) ) { $previous_page_id = $submitionsCount[ $custom_id - 1 ]->id; } else { $previous_page_id = $submitionsCount[0]->id; } if ( array_key_exists( $custom_id + 1, $submitionsCount ) ) { $next_page_id = $submitionsCount[ $custom_id + 1 ]->id; } else { $next_page_id = $submitionsCount[0]->id; } $next_page_url = esc_url(str_replace( $current_page_id, $next_page_id, $current_page_url )); $previous_page_url = esc_url(str_replace( $current_page_id, $previous_page_id, $current_page_url )); } require_once dirname(__FILE__) ."/../hugeit_contact_function/download.php"; ?>

User Submission

submission_ip),'strlen');?>
Submission Date:submission_date); ?>
User Browser:';}else{echo '';} ?>
User Country:customer_country); ?>
User IP:


sub_labels ), 'strlen' ); $messagesubmisexp = explode( "*()*", $messageInArray[0]->submission ); $filesUrlExploded = array_filter( explode( "*()*", $messageInArray[0]->files_url ), 'strlen' ); $filesTypeExploded = array_filter( explode( "*()*", $messageInArray[0]->files_type ), 'strlen' ); $separator=':'; foreach($messagelabbelsexp as $key=>$messagelabbelsexpls){ if(isset($messagesubmisexp[$key]) && $messagesubmisexp[$key]!=''){ echo ''.esc_html($messagelabbelsexpls).' '.$separator.' '.esc_html($messagesubmisexp[$key]).'
'; } } ?>

File Attachements

$filesTypeExplodeds) { $link_pattern='/^(.*)\/uploads\//'; $file_path=preg_replace($link_pattern,'',$filesUrlExploded[$key]); $secure_link = wp_nonce_url($actual_link.'&file='.$file_path,'hugeit_contact_donwload_file'); $output_wrapper=true; if( preg_match('/image\//',$filesTypeExplodeds) ){ $link_class='image'; $wrapper_class='image_wrapper_icon'; } elseif ( preg_match('/pdf/',$filesTypeExplodeds) ){ $link_class='pdf'; $wrapper_class='pdf_wrapper_icon'; } elseif ( preg_match('/application\/msword/',$filesTypeExplodeds) || preg_match('/application\/vnd.openxmlformats-officedocument.wordprocessingml.document/',$filesTypeExplodeds) ){ $link_class='word'; $wrapper_class='word_wrapper_icon'; } elseif ( preg_match('/application\/zip/',$filesTypeExplodeds) || preg_match('/application\/x-gzip/',$filesTypeExplodeds)){ $link_class='zip'; $wrapper_class='zip_wrapper_icon'; } elseif ( preg_match('/application\/rar/',$filesTypeExplodeds) || preg_match('/application\/x-7z-compressed/',$filesTypeExplodeds) ) { $link_class='rar'; $wrapper_class='rar_wrapper_icon'; } elseif ( preg_match('/application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet/',$filesTypeExplodeds) ) { $link_class='excel'; $wrapper_class='excel_wrapper_icon'; } elseif ( preg_match('/audio\//',$filesTypeExplodeds) ) { $link_class='audio'; $wrapper_class='audio_wrapper_icon'; } elseif ( preg_match('/video\//',$filesTypeExplodeds) ) { $link_class='video'; $wrapper_class='video_wrapper_icon'; } elseif ( preg_match('/text\/csv/',$filesTypeExplodeds) ) { $link_class='csv'; $wrapper_class='csv_wrapper_icon'; } else { $link_class='all'; $wrapper_class='all_wrapper_icon'; } ?>