system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
cmd: 

Direktori : /home/pfhr/public_html/classes/Model/
Upload File :
Current File : /home/pfhr/public_html/classes/Model/MBody.php

<?PHP
class Model_MBody
{
	function showNational()
	{
		$sql1 = "select * from members_table where members_membership='6' ORDER BY cast(members_rank as unsigned) ASC ";
		$obj2 = new Bin_Query();
		$obj2->executeQuery($sql1);				
		return Display_DBody::showBody($obj2->records);
	}
	
	
	
	
	
	
	
	function showState()
	{
		if(isset($_POST['find']))
		{
			$name=$_POST['txtname'];
			$select="select * from members_table where members_country='India'";
			if($name!='')
		 	$select.=" and members_state like'$name' ORDER BY cast(members_rank as unsigned) ASC ";
			if($name=='')
			{
				header('Location:?do=state');
			}	    			
			$obj=new Bin_Query();
			$obj->executeQuery($select);					
			return Display_DBody::showBody($obj->records,$countryname,0,0,0,0,0,0,0);
		
		}
	}
	
	function showDistrict()
	{
		if(isset($_POST['find']))
		{
			$name=$_POST['txtname'];
			$select="select * from members_table where members_country='India'";
			if($name!='')
		 	$select.=" and members_district like'$name' ORDER BY cast(members_rank as unsigned) ASC ";
			if($name=='')
			{
				header('Location:?do=district');
			}	    			
			$obj=new Bin_Query();
			$obj->executeQuery($select);					
			return Display_DBody::showBody($obj->records,$countryname,0,0,0,0,0,0,0);
		
		}
	}
	
	
	function showTehsil()
	{
		if(isset($_POST['find']))
		{
			$name=$_POST['txtname'];
			$select="select * from members_table where members_country='India'";
			if($name!='')
		 	$select.=" and members_tehsil like'$name' ORDER BY cast(members_rank as unsigned) ASC ";
			if($name=='')
			{
				header('Location:?do=tehsil');
			}	    			
			$obj=new Bin_Query();
			$obj->executeQuery($select);					
			return Display_DBody::showBody($obj->records,$countryname,0,0,0,0,0,0,0);
		
		}
	}
	
	
	
	function showBlock()
	{
		if(isset($_POST['find']))
		{
			$name=$_POST['txtname'];
			$select="select * from members_table where members_country='India'";
			if($name!='')
		 	$select.=" and members_block like'$name' ORDER BY cast(members_rank as unsigned) ASC ";
			if($name=='')
			{
				header('Location:?do=block');
			}	    			
			$obj=new Bin_Query();
			$obj->executeQuery($select);					
			return Display_DBody::showBody($obj->records,$countryname,0,0,0,0,0,0,0);
		
		}
	}
	
	
	
	
	function showCity()
	{
		if(isset($_POST['find']))
		{
			$name=$_POST['txtname'];
			$select="select * from members_table where members_country='India'";
			if($name!='')
		 	$select.=" and members_city like'$name' ORDER BY cast(members_rank as unsigned) ASC ";
			if($name=='')
			{
				header('Location:?do=city');
			}	    			
			$obj=new Bin_Query();
			$obj->executeQuery($select);					
			return Display_DBody::showBody($obj->records,$countryname,0,0,0,0,0,0,0);
		
		}
	}

}
?>