MOON
Server: Apache
System: Linux ip-208-109-13-31.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els4.x86_64 #1 SMP Sat Aug 31 06:58:57 UTC 2024 x86_64
User: durgeshpandey215 (1013)
PHP: 8.1.29
Disabled: NONE
Upload Files
File: /home/durgeshpandey215/public_html/zeeroprice.skilladders.com/admin/manage_admin.php
<?php
require('../application_top.php');
require('protect-superadmin.php');
?>
<? $pagename="manageadmin"; require "header.php";

	$sqlmp = " * from adminlogin where istatus >= ? order by adminid desc";
	$whereParams[] = 0;
	//---------------pagination BOF---------------------------------------
	$from_where = $sqlmp; 
	//$whereParams[] = 0; required created above 
	$extra ="&extra=";
	$adjacents = 3;
	$limit = 10; 							//how many items to show per page
	$targetpage = $_SERVER['PHP_SELF']; 	//your file name  (the name of this file)
	require "../pagination.php";
?>
		<h1>Admins (<?=$total_pages;?>)</h1>
		
		<?if($total_pages){?>
		<div class="w3-responsive w3-card ">
		<table class="w3-table-all">
		<tr class="w3-blue">
		<th></th><TH>Full Name</TH><TH>Commission</TH><TH>Admin Type</TH>
		<th>Manage</th>
		</tr>
		<?
		foreach($rows as $row){
			?>	
			<tr>
			<td><img src="<?=HTTP_SERVER;?>images/users/<?=($row['pic1'])? $row['pic1']:"default.jpg";?>" class="dp"/>
			</td>
			<td>
			<?=$row['fullname'];?>
			<br/><?=$row['username'];?>
			<br/><?=$row['emailid'];?>
			</td>
			<td><?=$row['commission'];?>%</td>
			<td>
			<? if($row['admintype']==1){ ?>SuperAdmin<? } ?>
			<? if($row['admintype']==2){ ?>Admin<? } ?>
			<? if($row['admintype']==3){ ?>Executive<? } ?>
			</td>
			<td align="center" nowrap>
				<a href="<?=HTTP_SERVER;?>admin/handle.php?action=adminstatus&id=<?=encode($row['adminid']);?>&newstatus=<?=($row['istatus'])? 0 : 1;?>" title="Click to <?=($row['istatus'])? "Deactivte" : "Activate";?> "><img src="<?=HTTP_SERVER;?>/images/icons/<?=($row['istatus'])? "istatus-on" : "istatus-off";?>.png" class="icons" border="0"/></a>&nbsp;
				<a href="<?=HTTP_SERVER;?>admin/create_account-edit.php?id=<?=encode($row['adminid']);?>" class="ico edit"><img src="<?=HTTP_SERVER;?>images/icons/edit.png" border="0" class="icons"/></a>&nbsp;
				<a href="<?=HTTP_SERVER;?>admin/handle.php?action=deleteadmin&id=<?=encode($row['adminid']);?>&" title="Click to Delete" onclick="return confirm('Are you sure you want to delete')" class="ico del"><img src="<?=HTTP_SERVER;?>images/icons/delete.png" class="icons" border="0"/></a>
			</td>	
			</tr>
		<?}?>
		</table>
		</div>
		<center><?=$pagination;?></center>
		
		<?}else{ ?>You have not created any Users yet<?}?>

<? require "../footer.php";?>