LittleDemon WebShell


Linux server27.hostingraja.org 2.6.32-954.3.5.lve1.4.93.el6.x86_64 #1 SMP Wed Oct 4 17:04:29 UTC 2023 x86_64
Path : /home/udaipurk/www/websites/samaj/samaj/member/
File Upload :
Command :
Current File : /home/udaipurk/www/websites/samaj/samaj/member/edit_user.php

<?php include('header.php');
include('../config.php');
?>

		<script lang="javascript">
						function loca()
						{
							var vis="none";
						if(document.getElementById("location").checked)
						{
							vis="block";
						}
						document.getElementById("loc").style.display=vis;
						
					}
					function agrp()
						{
								var vis="none";
						if(document.getElementById("agegroup").checked)
						{
							vis="block";
						}
						document.getElementById("sag").style.display=vis;
							
							
						
					}
					function pgo()
						{
								var vis="none";
						if(document.getElementById("gotra").checked)
						{
							vis="block";
						}
						document.getElementById("sgo").style.display=vis;
						
					}
						
						function ageg()
						{
								var vis="none";
						if(document.getElementById("age").checked)
						{
							vis="block";
						}
						document.getElementById("age_s").style.display=vis;
						
					}	
						</script>

						<section id="ccr-world-news">
				   <div class="head">
	     <div class="isw-list"></div>
                        <h1>Explore Users</h1>
                      
                        <div class="clear"></div>
                    </div>
					<div id="post_content" class="post_content" role="main" >
            
                <article id="post_287" class="format-standard gallery-style-1 post-287 page type-page status-publish hentry">
                
<div id="table_div" class="sc_table sc_table_style_regular" style="    border: 0;
    font-family: inherit;
    font-size: 100%;
    font-style: inherit;
    font-weight: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;">
<form action="" method="get" id="commentform">
				<table style="    border-collapse: collapse;
    table-layout: fixed;
    margin-bottom: 20px;width:100%">
																<tr>
																	<td style="border: 1px solid #e0e0e0;
    padding: 7px 10px 7px;
    background: #fff;
    overflow: hidden;
    font-size: 12px;
    color: #6b6b6b;"><input type="checkbox" id="location" name="location" onclick="loca()"/> By Location</td>
																	<td style="border: 1px solid #e0e0e0;padding: 7px 10px 7px;background: #fff;overflow: hidden;font-size: 12px;color: #6b6b6b;">
																	<input type="checkbox" name="agegroup" id="agegroup"  onclick="agrp()"/> By Education</td>
																	<td style="border: 1px solid #e0e0e0;
    padding: 7px 10px 7px;
    background: #fff;
    overflow: hidden;
    font-size: 12px;
    color: #6b6b6b;"><input type="checkbox" name="gotra"  id="gotra" onclick="pgo()"/> By Gotra</td>
	<td style="border: 1px solid #e0e0e0;
    padding: 7px 10px 7px;
    background: #fff;
    overflow: hidden;
    font-size: 12px;
    color: #6b6b6b;"><input type="checkbox" name="age"  id="age" onclick="ageg()"/> By Age Group</td>
																	</tr>
																	<tr>
																	<td style="    border: 1px solid #e0e0e0;
    padding: 7px 10px 7px;
    background: #fff;
 
    overflow: hidden;
    font-size: 12px;
    color: #6b6b6b;"><select name="sloc" id="loc" style="display:none;">
																	<option value="0">Select</option>
																	<?php 
																	$query=mysqli_query($link,"select distinct c_address from member where c_address<>'--' and c_address<>''");
																	while($row=mysqli_fetch_array($query))
																	{
																	?>
																	<option><?php echo $row['c_address']; ?></option>
																	<?php } ?>
																	</select></td>
																	<td style="    border: 1px solid #e0e0e0;
    padding: 7px 10px 7px;
    background: #fff;

    overflow: hidden;
    font-size: 12px;
    color: #6b6b6b;"><select name="sage" id="sag" style="display:none;">
																	<option value="0">Select Education</option>
																		<?php 
																	$query=mysqli_query($link,"select distinct education from member where education<>'--' and education<>'' and education<>'---' and education<>'-'");
																	while($row=mysqli_fetch_array($query))
																	{
																	?>
																	<option><?php echo $row['education']; ?></option>
																	<?php } ?>
																	</select></td>
																	<td style="    border: 1px solid #e0e0e0;
    padding: 7px 10px 7px;
    background: #fff;

    overflow: hidden;
    font-size: 12px;
    color: #6b6b6b;"><select name="sgot" id="sgo" style="display:none;">
																	<option value="0">Select Gotra</option>
																	<?php 
																	$query=mysqli_query($link,"select distinct surname from member where surname<>'--' and surname<>''");
																	while($row=mysqli_fetch_array($query))
																	{
																	?>
																	<option><?php echo $row['surname']; ?></option>
																	<?php } ?>
																	</select></td>
																	<td style="    border: 1px solid #e0e0e0;
    padding: 7px 10px 7px;
    background: #fff;

    overflow: hidden;
    font-size: 12px;
    color: #6b6b6b;"><select name="age_s" id="age_s" style="display:none;">
																	<option value="0">Select Age Group</option>
																	<option value="1 and 6">1-6</option>
																	<option value="7 and 12">7-12</option>
																	<option value="13 and 18">13-18</option>
																	<option value="19 and 24">19-24</option>
																	<option value="25 and 30">25-30</option>
																	<option value="31 and 36">31-36</option>
																	<option value="37 and 42">37-42</option>
																	<option value="43 and 48">43-48</option>
																	<option value="49 and 54">49-54</option>
																	<option value="55 and 200">Above 55</option>
																	
																	</select></td>
																	</tr>
																	<tr>
																	<td colspan="4" style="border: 1px solid #e0e0e0;
    padding: 7px 10px 7px;

    background: #fff;
    overflow: hidden;
    font-size: 12px;
    color: #6b6b6b;"><input id="submit" type="submit" name="search" value="Search" style="margin:10px 0 10px 0" /></td>

																	</tr>
																	</table>
																	</form>
							</div>							
 <div class="post_content clearboth">
<?php
if((isset($_GET['location'])=='on') && (isset($_GET['gotra'])=='on') && (isset($_GET['agegroup'])=='on') && (isset($_GET['age'])=='on'))
{
	$age_s=$_GET['age_s'];
	$sloc=$_GET['sloc'];
	$sgot=$_GET['sgot'];
	$sage=$_GET['sage'];
	$query1=mysqli_query($link,"select * from member where (surname='$sgot' and p_address='$sloc' and education='$sage' and age between $age_s) order by un_id");
}
elseif((isset($_GET['location'])=='on') && (isset($_GET['gotra'])=='on') && (isset($_GET['agegroup'])=='on'))
{
	$age_s=$_GET['age_s'];
	$sloc=$_GET['sloc'];
	$sgot=$_GET['sgot'];
	$sage=$_GET['sage'];
	$query1=mysqli_query($link,"select * from member where (surname='$sgot' and p_address='$sloc' and education='$sage') order by un_id");
}
elseif((isset($_GET['location'])=='on') && (isset($_GET['gotra'])=='on') && (isset($_GET['age'])=='on'))
{
	$age_s=$_GET['age_s'];
	$sloc=$_GET['sloc'];
	$sgot=$_GET['sgot'];
	$sage=$_GET['sage'];
	$query1=mysqli_query($link,"select * from member where (surname='$sgot' and p_address='$sloc' and age between $age_s) order by un_id");
}
elseif((isset($_GET['gotra'])=='on') && (isset($_GET['agegroup'])=='on') && (isset($_GET['age'])=='on'))
{
	$age_s=$_GET['age_s'];
	$sloc=$_GET['sloc'];
	$sgot=$_GET['sgot'];
	$sage=$_GET['sage'];
	$query1=mysqli_query($link,"select * from member where (surname='$sgot' and education='$sage' and age between $age_s) order by un_id");
}
elseif((isset($_GET['location'])=='on') &&  (isset($_GET['agegroup'])=='on') && (isset($_GET['age'])=='on'))
{
	$age_s=$_GET['age_s'];
	$sloc=$_GET['sloc'];
	$sgot=$_GET['sgot'];
	$sage=$_GET['sage'];
	$query1=mysqli_query($link,"select * from member where (p_address='$sloc' and education='$sage' and age between $age_s) order by un_id");
}
elseif((isset($_GET['location'])=='on') && (isset($_GET['gotra'])=='on'))
{
	$sloc=$_GET['sloc'];
	$sgot=$_GET['sgot'];
	$query1=mysqli_query($link,"select distinct un_id from member where (surname='$sgot' and p_address='$sloc') and relation='मुखिया' order by un_id");
}
elseif((isset($_GET['location'])=='on') && (isset($_GET['agegroup'])=='on'))
{
	$sloc=$_GET['sloc'];
	$sage=$_GET['sage'];
	$query1=mysqli_query($link,"select * from member where (education='$sage' and p_address='$sloc') order by un_id");
}
elseif((isset($_GET['location'])=='on') && (isset($_GET['age'])=='on'))
{
	$sloc=$_GET['sloc'];
	$age_s=$_GET['age_s'];
	$query1=mysqli_query($link,"select * from member where (age between $age_s and p_address='$sloc') order by un_id");
}
elseif((isset($_GET['gotra'])=='on') && (isset($_GET['agegroup'])=='on'))
{
	$sgot=$_GET['sgot'];
	$sage=$_GET['sage'];
	$query1=mysqli_query($link,"select * from member where (education='$sage' and surname='$sgot') order by un_id");
}
elseif((isset($_GET['gotra'])=='on') && (isset($_GET['age'])=='on'))
{
	$sgot=$_GET['sgot'];
	$age_s=$_GET['age_s'];
	$query1=mysqli_query($link,"select * from member where (surname='$sgot' and age between $age_s) order by un_id");
}
elseif((isset($_GET['agegroup'])=='on') && (isset($_GET['age'])=='on'))
{
	$sage=$_GET['sage'];
	$age_s=$_GET['age_s'];
	$query1=mysqli_query($link,"select * from member where (age between $age_s and education='$sage') order by un_id");
}
elseif((isset($_GET['location'])=='on') || (isset($_GET['gotra'])=='on'))
{
	$sloc=$_GET['sloc'];	
	$sgot=$_GET['sgot'];
	$query1=mysqli_query($link,"select distinct un_id from member where (surname='$sgot' or p_address='$sloc') and relation='मुखिया' order by un_id");
}
elseif(isset($_GET['agegroup'])=='on')
{
	$sage=$_GET['sage'];
	$query1=mysqli_query($link,"select * from member where education='$sage' order by un_id");
	
}
elseif((isset($_GET['age'])=='on'))
{
	$age_s=$_GET['age_s'];
	$query1=mysqli_query($link,"select * from member where (age between $age_s) order by un_id");
	
}
else
{
$query1=mysqli_query($link,"select distinct un_id from member where relation='मुखिया' order by un_id");
}
$num_rows=mysqli_num_rows($query1);
 ?>
   

<?php if($num_rows!=0)
{ ?>
<div class="row-fluid" >
 <div class="span12">
                   <div class="head">
	     <div class="isw-list"></div>
                        <h1>Search Results </h1>
                      <h1 >Total Family(<?php echo $num_rows; ?>)</h1>
                        <div class="clear"></div>
                    </div>
                    <div class="row-fluid">
                <div class="span12">                    
                    <div class="head">
                    <div class="clear"></div>
                    </div>
					
					
                    <div class="block-fluid table-sorting">
                        <table cellpadding="0" cellspacing="0" width="100%" class="table" id="tSortable_r">
                            <thead>
                                <tr>
                                   
                                    <th width="">Family No.</th>
                                    <th width=""><?php if(isset($_GET['agegroup'])=='on' || isset($_GET['age'])=='on')
{ ?>Family Member Name <?php } else { ?>Family Head Name <?php  } ?></th>
                                    <th width="">Age</th>
                                    <th width="">Location</th>
									 <th width="">Education</th>
									  <th width="">Gotra</th>
									  <th width="">View Detail</th>
                                </tr></thead><tbody>
<?php

while($res1=mysqli_fetch_array($query1))
{
	

if(isset($_GET['agegroup'])=='on' || isset($_GET['age'])=='on')
{
	$uni_id=$res1['un_id'];
	$u_id=$res1['u_id'];
	$sh=mysqli_query($link,"select un_id,surname,name,c_address,education,(age + TIMESTAMPDIFF(YEAR,r_date,CURDATE())) as age1 from member where u_id='$u_id' order by un_id");
}
else
{
	$uni_id=$res1['un_id'];
	$sh=mysqli_query($link,"select un_id,surname,name,c_address,education,(age + TIMESTAMPDIFF(YEAR,r_date,CURDATE())) as age1 from member where un_id='$uni_id' and relation='मुखिया' order by un_id");
}

	$sh_res=mysqli_fetch_array($sh);
 ?>
 <tr >
<td style="border: 1px solid #e0e0e0; padding: 7px 10px 7px; background: #fff;overflow: hidden;font-size: 12px;color: #6b6b6b;"><?php echo $uni_id; ?></td>
<td style="border: 1px solid #e0e0e0; padding: 7px 10px 7px;background: #fff;overflow: hidden;font-size: 12px;color: #6b6b6b;"><?php echo $sh_res['name']; ?></td>
<td style="border: 1px solid #e0e0e0; padding: 7px 10px 7px;background: #fff;overflow: hidden;font-size: 12px;color: #6b6b6b;"><?php echo $sh_res['age1']; ?></td>
<td style="border: 1px solid #e0e0e0; padding: 7px 10px 7px;background: #fff;overflow: hidden;font-size: 12px;color: #6b6b6b;"><?php echo $sh_res['c_address']; ?></td>
<td style="border: 1px solid #e0e0e0; padding: 7px 10px 7px;background: #fff;overflow: hidden;font-size: 12px;color: #6b6b6b;"><?php echo $sh_res['education']; ?></td>
<td style="border: 1px solid #e0e0e0; padding: 7px 10px 7px;background: #fff;overflow: hidden;font-size: 12px;color: #6b6b6b;"><?php echo $sh_res['surname']; ?></td>
<td style="border: 1px solid #e0e0e0; padding: 7px 10px 7px;background: #fff;overflow: hidden;font-size: 12px;color: #6b6b6b;"><a href="<?php echo "user.php?un_id=$uni_id" ?>" target="_blank">View Detail</a></td>

</tr>
<?php } ?>
                        </tbody></table>
                        <div class="clear"></div>
                    </div>
			</div>
				</div>
				</div>
				</div>
		
<?php }
else
{ 
	echo "<br><span style='font-size:20px;color:#CE532A'>No Result Found!</span>";
}
 ?>     
					    	        </article>
    			
                					                                    
                
		</div><!-- #content -->
					</section>

<?php include('footer.php');?>

LittleDemon - FACEBOOK
[ KELUAR ]