Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /home/claqxcrl/confenda.com/wp-content/plugins/epoll-wp-voting/backend/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/claqxcrl/confenda.com/wp-content/plugins/epoll-wp-voting/backend/it_epoll_results.php
<?php if(isset($_REQUEST['view'])){?>
<div class="wrap" style="position: relative;">
<h1>Voting Results <sub style="color:orange">PRO</sub></h1>
<?php if($_REQUEST['view'] == 'voter_details'){?>
<div class="it_epoll_system_upgrade_pro">
	<div class="it_epoll_system_upgrade_pro_dotted_line"></div>
	<div class="dashicons dashicons-unlock it_epoll_system_upgrade_pro_icon"></div>
	<a href="https://infotheme.net/product/epoll-pro/" class="it_edb_submit it_epoll_system_upgrade_pro_btn">Upgrade to Pro for all Features</a>
</div>
<table class="wp-table widefat fixed striped posts">
	<thead>
		<tr>
			<th>
				<a href="<?php echo esc_url(admin_url('admin.php?page=it_epoll_system&view=results&id=1'));?>" class=""><i class="dashicons dashicons-arrow-left-alt"></i> Go Back</a>
			</th>
			<th style="text-align: center;">
				<a href="<?php echo esc_url(admin_url('post-new.php?post_type=it_epoll_poll'));?>" class=""><i class="dashicons dashicons-chart-pie"></i> Create New Poll</a>
			</th>
			<th style="text-align: right;">
				<a href="https://infotheme.in/#support" class=""><i class="dashicons dashicons-sos"></i> Get Support</a>
			</th>
		</tr>
	</thead>
</table>
<table class="wp-table widefat fixed striped posts it_epoll_sys_show_voter_table">
	<thead>
		<tr>
			<th>
				Voter Name
			</th>
			<th>
				Contact Details
			</th>
			<th>
				Status
			</th>
			<th>
				Action
			</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>
				John test
			</td>
			<td>
				<table class="wp-table it_epoll_sys_show_voter">
					<tr>
						<th>Email :</th>
						<th>test@test.com</th>
					</tr>
					<tr style="display: none;">
						<th>Phone</th>
						<th>0123456789</th>
					</tr>
					<tr style="display: none;">
						<th>Address</th>
						<th>Test House, Road, City, USA.</th>
					</tr>
					<tr style="display: none;">
						<th>Gender</th>
						<th>Male</th>
					</tr>
					<tr style="display: none;">
						<th>Date Of Birth</th>
						<th>04/04/1995</th>
					</tr>
				</table>
			</td>
			<th>
				Verified Voter
			</td>
			<td>
				<button type="button" class="button button-secondary it_epoll_sys_show_voter_btn">View Full Contact Details</button>
			</td>
		</tr>
		<tr class="it_epoll_system_upgrade_pro_blur">
			<td>
				Ziyan test
			</td>
			<td>
				<table class="wp-table it_epoll_sys_show_voter">
					<tr>
						<th>Email :</th>
						<th>testziyan@test.com</th>
					</tr>
					<tr style="display: none;">
						<th>Phone</th>
						<th>0123456789</th>
					</tr>
					<tr style="display: none;">
						<th>Address</th>
						<th>Test House, Road, City, USA.</th>
					</tr>
					<tr style="display: none;">
						<th>Gender</th>
						<th>Male</th>
					</tr>
					<tr style="display: none;">
						<th>Date Of Birth</th>
						<th>04/04/1995</th>
					</tr>
				</table>
			</td>
			<th>
				Unverified Voter
			</td>
			<td>
				<button type="button" class="button button-secondary it_epoll_sys_show_voter_btn">View Full Contact Details</button>
			</td>
		</tr>
	</tbody>
</table>
<?php }else{?>
<div class="it_epoll_system_upgrade_pro">
	<div class="it_epoll_system_upgrade_pro_dotted_line"></div>
	<div class="dashicons dashicons-unlock it_epoll_system_upgrade_pro_icon"></div>
	<a href="https://infotheme.net/product/epoll-pro/" class="it_edb_submit it_epoll_system_upgrade_pro_btn">Upgrade to Pro for all Features</a>
</div>
<table class="wp-list-table widefat fixed striped posts">
	<thead>
		<tr>
			<th>
				<a href="<?php echo esc_url(admin_url('admin.php?page=it_epoll_system'));?>" class=""><i class="dashicons dashicons-arrow-left-alt"></i> Go Back</a>
			</th>
			<th style="text-align: center;">
				<a href="<?php echo esc_url(admin_url('post-new.php?post_type=it_epoll_poll'));?>" class=""><i class="dashicons dashicons-chart-pie"></i> Create New Poll</a>
			</th>
			<th style="text-align: right;">
				<a href="https://infotheme.in" class=""><i class="dashicons dashicons-sos"></i> Get Support</a>
			</th>
		</tr>
	</thead>
</table>
<table class="wp-list-table widefat fixed striped posts">
	<thead>
		<tr>
			<th>
				Canidate / Option Name
			</th>
			<th>
				Total Votes
			</th>
			<th>
				Votes in (x/x)
			</th>
			<th>
				Live Result
			</th>
			<th>
				Voter Details
			</th>
		</tr>

		<tr>
			<th>
				Option 1
			</th>
			<th>
				20
			</th>
			<th>
				20/60
			</th>
			<th>
				<span style="color:green;font-weight: bold;">Winner</span> <sup style="background: #F44336;
    border-radius: 4px;
    padding: 0;
    width: 32px;
    text-align: center;
    display: inline-block;
    color: #fff;;">Now</sup>
			</th>
			<th>
				<a href="<?php echo esc_url(admin_url('admin.php?page=it_epoll_system&view=voter_details&id='.get_the_id()));?>" class="button button-secondary">View</a>		
			</th>
		</tr>
		<tr class="it_epoll_system_upgrade_pro_blur">
			<th>
				Option 1
			</th>
			<th>
				10
			</th>
			<th>
				10/60
			</th>
			<th>
				<span style="color:orange;font-weight: bold;">Leading</span> <sup style="background: #F44336;
    border-radius: 4px;
    padding: 0;
    width: 32px;
    text-align: center;
    display: inline-block;
    color: #fff;;">Now</sup>
			</th>
			<th>
				<a href="<?php echo esc_url(admin_url('admin.php?page=it_epoll_system&view=voter_details&id='.get_the_id()));?>" class="button button-secondary">View</a>		
			</th>
		</tr>
		<tr  class="it_epoll_system_upgrade_pro_blur">
			<th>
				Option 1
			</th>
			<th>
				10
			</th>
			<th>
				10/60
			</th>
			<th>
				<span style="color:orange;font-weight: bold;">Leading</span> <sup style="background: #F44336;
    border-radius: 4px;
    padding: 0;
    width: 32px;
    text-align: center;
    display: inline-block;
    color: #fff;;">Now</sup>
			</th>
			<th>
				<a href="<?php echo esc_url(admin_url('admin.php?page=it_epoll_system&view=voter_details&id='.get_the_id()));?>" class="button button-secondary">View</a>		
			</th>
		</tr>
	</thead>
</table>
<?php }?>
<?php }else{?>
<div class="wrap" style="position: relative;">
<h1>Voting Results <sub style="color:orange">PRO</sub></h1>

<table class="wp-list-table widefat fixed striped posts">
	<thead>
		<tr>
			<th>
				<a href="<?php echo esc_url(admin_url('admin.php?page=it_epoll_system&section=it_epoll_settings'));?>" class=""><i class="dashicons dashicons-hammer"></i> Change Settings</a>
			</th>
			<th style="text-align: center;">
				<a href="<?php echo esc_url(admin_url('post-new.php?post_type=it_epoll_poll'));?>" class=""><i class="dashicons dashicons-chart-pie"></i> Create New Poll</a>
			</th>
			<th style="text-align: right;">
				<a href="https://infotheme.in/#support" class=""><i class="dashicons dashicons-sos"></i> Get Support</a>
			</th>
		</tr>
	</thead>
</table>
<table class="wp-table widefat">
	<thead>
		<tr>
			<th>
			ID
			</th>
		<th>
			Voting / Poll Name
		</th>
		<th>
			Status
		</th>
		<th>
			Total Votes
		</th>
		<th>
			Total Candidates / Options
		</th>
		<th>
			Action
		</th>
	</tr>
	</thead>
	<tbody>
		<?php
				// WP_Query arguments
				$itepollBackednqueryargs = array(
					'post_type'              => array( 'it_epoll_poll' ),
					'post_status'            => array( 'publish' ),
					'nopaging'               => false,
					'paged'                  => '0',
					'posts_per_page'         => '20',
					'order'                  => 'DESC',
				);

				// The Query
				$itepollBackednquery = new WP_Query( $itepollBackednqueryargs );

				// The Loop
				$i=1;
				if ( $itepollBackednquery->have_posts() ) {
					while ( $itepollBackednquery->have_posts() ) {
						$itepollBackednquery->the_post();?>
						
							<tr>
							<td class="has-row-actions column-primary">
								<?php the_id();?>

							</td>
							<td>
								<?php the_title();?>
							</td>
							<td>
								<?php echo esc_attr(get_post_meta(get_the_id(),'it_epoll_poll_status',true));?>
							</td>
							<td>
								<?php 
								if(get_post_meta(get_the_id(),'it_epoll_vote_total_count',true)) echo esc_attr(get_post_meta(get_the_id(),'it_epoll_vote_total_count',true)); else echo 0;?>
							</td>
							<td>
								<?php 
									if(get_post_meta(get_the_id(),'it_epoll_poll_option',true)){

										echo esc_attr(sizeof(get_post_meta(get_the_id(),'it_epoll_poll_option',true)));	
										}else{
											echo 0;
										}
								?>
							</td>
							<td>
								<a href="<?php echo esc_url(admin_url('admin.php?page=it_epoll_system&view=results&id='.get_the_id()));?>" class="button button-secondary">View</a>
							</td>
						</tr>
				<?php $i++;	}
				} else {?>
					<tr>
						<td colspan="6" style="text-align: center;">
							<h2>OOPS! You have no poll created yet!</h2>
						</td>
					</tr>
					<tr>
						<td colspan="6" style="text-align: center;">
							<a href="<?php echo esc_url(admin_url('post-new.php?post_type=it_epoll_poll'));?>" class="button button-secondary"><i class="dashicons dashicons-chart-pie"></i> Create New Poll</a>
						</td>
					</tr>
					<tr>
						<td colspan="6" style="text-align: center;">
							
						</td>
					</tr>
				<?php }

				// Restore original Post Data
				wp_reset_postdata();
				?>
	</tbody>
</table>
</div>
<?php }?>

ZeroDay Forums Mini