| 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/public_html/websites/samaj/samaj/ |
| Current File : /home/udaipurk/public_html/websites/samaj/samaj/exp_user_1.php |
<?php
include('header.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>
<br>
<section id="ccr-world-news">
<div class="ccr-gallery-ttile">
<span></span>
<p>Explore Users</p>
</div> <!-- .ccr-gallery-ttile -->
<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: 15px;
color: #000;"><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: 15px;color: #000;">
<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: 15px;
color: #000;"><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: 15px;
color: #000;"><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: 15px;
color: #000;"><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: 15px;
color: #000;"><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: 15px;
color: #000;"><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: 15px;
color: #000;"><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: 15px;
color: #000;"><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 c_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 c_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 c_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 (c_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 c_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 c_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 c_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 c_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);
$count_m=mysqli_query($link,"select * from member");
$num_rows1=mysqli_num_rows($count_m);
?>
<div class="ccr-last-update">
<div class="update-ribon" style="width:140px">Search Results</div> <!-- /.update-ribon -->
<span class="update-ribon-right"></span> <!-- /.update-ribon-left -->
<div class="update-news-text" id="update-news-text" >
<ul id="latestUpdate">
<li style="width:100%"><a href="#">कुल परिवार(<?php echo $num_rows; ?>) और कुल सदस्य (<?php echo $num_rows1; ?>)</a></li>
</ul>
</div> <!-- /.update-text -->
<div class="update-right-border"></div> <!-- /.update-right-border -->
</div> <!-- / .ccr-last-update -->
<?php if($num_rows!=0)
{ ?>
<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;">
<table border="1" style=" border-collapse: collapse;
table-layout: fixed;
margin-bottom: 20px;width:100%" id="tablepaging" class="yui">
<tbody>
<!– Results table headers –>
<thead>
<th style=" padding: 9px 10px 9px;
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
-moz-box-shadow: 0 1px 1px rgba(0,0,0,.05);
box-shadow: 0 1px 1px rgba(0,0,0,.05);
font-size: 15px;
line-height: 15px;
font-weight: bold;
color: #404040;
border: 1px solid #e0e0e0;
background: #ffffff;
background: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f7f7f7));
background: -webkit-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -moz-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -ms-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -o-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: linear-gradient(#ffffff 0%, #f7f7f7 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f7f7f7',GradientType=0 );">Family No.</th>
<th style=" padding: 9px 10px 9px;
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
-moz-box-shadow: 0 1px 1px rgba(0,0,0,.05);
box-shadow: 0 1px 1px rgba(0,0,0,.05);
font-size: 15px;
line-height: 15px;
font-weight: bold;
color: #404040;
background: #ffffff;
border: 1px solid #e0e0e0;
background: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f7f7f7));
background: -webkit-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -moz-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -ms-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -o-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: linear-gradient(#ffffff 0%, #f7f7f7 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f7f7f7',GradientType=0 );"><?php if(isset($_GET['agegroup'])=='on' || isset($_GET['age'])=='on')
{ ?>Family Member Name <?php } else { ?>Family Head Name <?php } ?></th>
<th style=" padding: 9px 10px 9px;
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
-moz-box-shadow: 0 1px 1px rgba(0,0,0,.05);
box-shadow: 0 1px 1px rgba(0,0,0,.05);
font-size: 15px;
line-height: 15px;
font-weight: bold;
color: #404040;
border: 1px solid #e0e0e0;
background: #ffffff;
background: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f7f7f7));
background: -webkit-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -moz-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -ms-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -o-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: linear-gradient(#ffffff 0%, #f7f7f7 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f7f7f7',GradientType=0 );">Age</th>
<th style=" padding: 9px 10px 9px;
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
-moz-box-shadow: 0 1px 1px rgba(0,0,0,.05);
box-shadow: 0 1px 1px rgba(0,0,0,.05);
font-size: 15px;
line-height: 15px;
font-weight: bold;
border: 1px solid #e0e0e0;
color: #404040;
background: #ffffff;
background: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f7f7f7));
background: -webkit-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -moz-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -ms-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -o-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: linear-gradient(#ffffff 0%, #f7f7f7 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f7f7f7',GradientType=0 );">Location</th>
<th style=" padding: 9px 10px 9px;
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
-moz-box-shadow: 0 1px 1px rgba(0,0,0,.05);
box-shadow: 0 1px 1px rgba(0,0,0,.05);
font-size: 15px;
line-height: 15px;
font-weight: bold;
border: 1px solid #e0e0e0;
color: #404040;
background: #ffffff;
background: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f7f7f7));
background: -webkit-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -moz-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -ms-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -o-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: linear-gradient(#ffffff 0%, #f7f7f7 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f7f7f7',GradientType=0 );">Education</th> <th style=" padding: 9px 10px 9px;
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
-moz-box-shadow: 0 1px 1px rgba(0,0,0,.05);
box-shadow: 0 1px 1px rgba(0,0,0,.05);
font-size: 15px;
line-height: 15px;
font-weight: bold;
border: 1px solid #e0e0e0;
color: #404040;
background: #ffffff;
background: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f7f7f7));
background: -webkit-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -moz-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -ms-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -o-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: linear-gradient(#ffffff 0%, #f7f7f7 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f7f7f7',GradientType=0 );">Gotra</th>
<th style=" padding: 9px 10px 9px;
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
-moz-box-shadow: 0 1px 1px rgba(0,0,0,.05);
box-shadow: 0 1px 1px rgba(0,0,0,.05);
font-size: 15px;
line-height: 15px;
font-weight: bold;
color: #404040;
border: 1px solid #e0e0e0;
background: #ffffff;
background: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f7f7f7));
background: -webkit-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -moz-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -ms-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: -o-linear-gradient(#ffffff 0%, #f7f7f7 100%);
background: linear-gradient(#ffffff 0%, #f7f7f7 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f7f7f7',GradientType=0 );">View Detail</th>
</thead>
<?php
$i=1;
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: 15px;color: #000;"><?php echo $i; ?></td>
<td style="border: 1px solid #e0e0e0; padding: 7px 10px 7px;background: #fff;overflow: hidden;font-size: 15px;color: #000;"><?php echo $sh_res['name']; ?></td>
<td style="border: 1px solid #e0e0e0; padding: 7px 10px 7px;background: #fff;overflow: hidden;font-size: 15px;color: #000;"><?php echo $sh_res['age1']; ?></td>
<td style="border: 1px solid #e0e0e0; padding: 7px 10px 7px;background: #fff;overflow: hidden;font-size: 15px;color: #000;"><?php echo $sh_res['c_address']; ?></td>
<td style="border: 1px solid #e0e0e0; padding: 7px 10px 7px;background: #fff;overflow: hidden;font-size: 15px;color: #000;"><?php echo $sh_res['education']; ?></td>
<td style="border: 1px solid #e0e0e0; padding: 7px 10px 7px;background: #fff;overflow: hidden;font-size: 15px;color: #000;"><?php echo $sh_res['surname']; ?></td>
<td style="border: 1px solid #e0e0e0; padding: 7px 10px 7px;background: #fff;overflow: hidden;font-size: 15px;color: #000;"><a href="<?php echo "user_detail.php?un_id=$uni_id" ?>" >Click Here</a></td>
</tr>
<?php
$i=$i+1;
} ?>
</tbody>
</table>
<div id="pageNavPosition" style="padding-top: 20px">
</div>
<script type="text/javascript"><!--
var pager = new Pager('tablepaging', 30);
pager.init();
pager.showPageNav('pager', 'pageNavPosition');
pager.showPage(1);
</script>
<?php }
else
{
echo "<br><span style='font-size:20px;color:#CE532A'>No Result Found!</span>";
}
?>
</article>
</div><!-- #content -->
</section>
<?php include('footer.php');?>