Example #1
0
<?
	$matrimony=new matrimony();
	$action=$_REQUEST['action'];
	$cat= array("Any","UnMarried","Widow\Widower","Divorced","Separated");
	$scat= array("Arunachali","Assamese","Awadhi","Bengali","Bhojpuri","Brij"."Bihari","Dogri","English","French","Garo","Gujarati","Himachali/Pahari","Hindi","Kanauji","Kannada","Kashmiri","Khandesi","Khasi","Konkani","Koshali","Kumoani","Kutchi","Lepcha","Ladacki","Magahi","Maithili","Malayalam","Manipuri","Marathi","Marwari","Miji","Mizo","Monpa","Nicobarese","Nepali","Oriya","Punjabi","Rajasthani","Sanskrit","Santhali","Sindhi","Sourashtra","Tamil","Telugu","Tripuri","Tulu","Urdu");
	$icat= array("Buddhist","Baha'is","Chinese Folks","Christian","Confucianist","Ethnoreligionist","Hindu","Jain","Jewish","Muslim","Neoreligionist","Shintoist","Sikh","Spiritist","Taoist","Zorastrian","Atheist","No Religion","Inter-Religion","Others");
	$educ= array("Bachelors - Engineering/ Computers","Masters - Engineering/ Computers","Bachelors - Arts/ Science/Commerce/ Others","Masters - Arts/ Science/ Commerce/ Others","Finanace & Accounts","Management - BBA/ MBA/ Others","Medicine - General/ Dental/ Surgeon/ Others","Legal - BL/ ML/ LLB/ LLM/ Others","Service - IAS/ IPS/ Others","PhD","Diploma","Higher Secondary/Secondary/Schooling","Uneducated");	
	$FOcc= array("Salaried","Labour","Unable to Work","Looking For Job","Not Working","Self-Employed","Others");
	$emp= array("Government","Private","Business","Defence","Self-Employment","Not working");	
	$phy= array("Normal","Physically challenged ","Mentally challenged");
	$hight= array("4ft 5in 134cm","4ft  6in  137cm","4ft  7in  139cm","4ft  8in  142cm","4ft  9in  144cm","4ft  10in  147cm","4ft  11in  149cm","5ft  0in  152cm","5ft  1in  154cm","5ft  2in  157cm","5ft  3in  160cm","5ft  4in  162cm","5ft  5in  165cm","5ft  6in  167cm","5ft  7in  170cm","5ft  8in  172cm","5ft  9in  175cm","5ft  10in  177cm","5ft  11in  180cm","6ft  0in  182cm","6ft  1in  185cm","6ft  2in  187cm","6ft  3in  190cm","6ft  4in  193cm","6ft  5in  195cm","6ft  6in  198cm","6ft  7in  200cm","6ft  8in  203cm","6ft  9in  205cm","6ft  10in  208cm","6ft  11in  210cm","7ft  0in  213cm");	
	$hight1= array("4ft 5in 134cm","4ft  6in  137cm","4ft  7in  139cm","4ft  8in  142cm","4ft  9in  144cm","4ft  10in  147cm","4ft  11in  149cm","5ft  0in  152cm","5ft  1in  154cm","5ft  2in  157cm","5ft  3in  160cm","5ft  4in  162cm","5ft  5in  165cm","5ft  6in  167cm","5ft  7in  170cm","5ft  8in  172cm","5ft  9in  175cm","5ft  10in  177cm","5ft  11in  180cm","6ft  0in  182cm","6ft  1in  185cm","6ft  2in  187cm","6ft  3in  190cm","6ft  4in  193cm","6ft  5in  195cm","6ft  6in  198cm","6ft  7in  200cm","6ft  8in  203cm","6ft  9in  205cm","6ft  10in  208cm","6ft  11in  210cm","7ft  0in  213cm");	
   	$link="ManagePartner.php";
if(($action=='edit') || ($action=='view')) {
	$condition=" where ProfileId='".$_GET['Id']."'";
	$matrimony->switchqry('tm_partnerpreference','SELECT',$condition,'*');
	$value=mysql_fetch_array($matrimony->qry_result);
	$disabled='disabled';
	 for($i=0; $i<sizeof($cat); $i++) { if($value['pMaritialStatus']==$cat[$i]) { $selc[$i]='selected';  } else { $selc[$i]=''; } }
	 for($i=0; $i<sizeof($scat); $i++) { if($value['pMotherTonque']==$scat[$i]) { $sels[$i]='selected';  } else { $sels[$i]=''; } }	
	 for($i=0; $i<sizeof($icat); $i++) { if($value['pReligion']==$icat[$i]) { $seli[$i]='selected';  } else { $seli[$i]=''; } }	
	 for($i=0; $i<sizeof($educ); $i++) { if($value['pEducationCat']==$educ[$i]) { $sedu[$i]='selected';  } else { $sedu[$i]=''; } }
	 for($i=0; $i<sizeof($FOcc); $i++) { if($value['pOccupation']==$FOcc[$i]) { $self[$i]='selected';  } else { $self[$i]=''; } }
	 for($i=0; $i<sizeof($emp); $i++) { if($value['pEmployementtype']==$emp[$i]) { $semp[$i]='selected';  } else { $semp[$i]=''; } }
	 for($i=0; $i<sizeof($phy); $i++) { if($value['pPhysicalStatus']==$phy[$i]) { $sphy[$i]='selected';  } else { $sphy[$i]=''; } }	
	 for($i=0; $i<sizeof($hight); $i++) { if($value['pHeightFrom']==$hight[$i]) { $shight[$i]='selected';  } else { $shight[$i]=''; } }	
	 for($i=0; $i<sizeof($hight1); $i++) { if($value['pHeightTo']==$hight1[$i]) { $shight1[$i]='selected';  } else { $shight1[$i]=''; } }	
}

?>
<?
<?
	$matrimony=new matrimony();
	$action=$_REQUEST['action'];
   	$link="InterestMessage.php";
if(($action=='edit') || ($action=='view')) {
	$condition=" where Int_id='".$_GET['Id']."'";
	$matrimony->switchqry('tm_interestmsg','SELECT',$condition,'*');
	$value=mysql_fetch_array($matrimony->qry_result);
	$disabled='disabled';
}

?>

<h2><? if($action=="edit"){echo "Edit";}else if($action=="view"){echo "View"; }else{echo "Add";}?> Partner Preference </h2>
<script type="text/javascript">
var product = [<? echo $city; ?>];
//alert(product);
var sample = [<? echo $product; ?>];
//alert(sample);
 
</script>

<b><a href="<? echo $link; ?>">Go Back</a> </b>
<form name="frmPost" method="POST" action="" class="box" autocomplete="off">
<table >
<tbody>
	<tr>
		<td><b>Maritial  Status :</b><span class="marker">*</span></td>
		<td>
		<input name="Intid" id="Intid" size="25" maxlength="10" type="hidden" value="<? echo $value['Int_id']; ?>"  />
		<input type="radio" name="radiomarital" id="Express1" value="My parents and I like your profilePlease send me your contact details" <?  if($value['Int_Msg']=='My parents and I like your profilePlease send me your contact details') { echo "checked"; } ?> <? echo $disabled; ?> checked="checked" >My parents and I like your profilePlease send me your contact details
<?
	$matrimony=new matrimony();
	$action=$_REQUEST['action'];
   	$link="ManageImage.php";
	$atid=$_REQUEST['encid']?$_REQUEST['encid']:$insertimage->imgId[0];
	$condition=" where Profile_ID='".$_GET['Id']."' and Image_ID = '$atid'";
	$matrimony->switchqry('tm_image','SELECT',$condition,'*');
	$value=mysql_fetch_array($matrimony->qry_result);
?>

<h2>View Image </h2>
<link href="../css/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<b><a href="<? echo $link; ?>">Go Back</a> </b>
<table cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>
<form name="sample" method="post" class="box" action="<?php echo $_SERVER['PHP_SELF']?>" enctype="multipart/form-data"  >
		<div style="height:107px">
			<?php 
			for($i=0;$i<5;$i++){
			if($insertimage->image_thumb[$i] != ""){ ?>
			<div class="add_photo_link" style="cursor:pointer; border:double #EBF4F5; width:90px; height:85px;">
				<a href="?Id=<?=$_GET['Id']?>&action=view&encid=<?=$insertimage->imgId[$i]?>" style="text-decoration:none;">			
					<img src="../member_image/<?=$insertimage->image_thumb[$i]?>" style="height:85px; width:90px;" border="0" />
				</a>
			</div>
			<? } 
			}
<?
session_start(); ob_start();

/*echo "<pre>";
print_r($_POST);
echo "</pre>";
exit();*/

if($_SESSION["login"] == "validuser") {
	include("../common/config.inc.php"); 
	include("../common/function.php");
	$matrimony=new matrimony();

	if($_POST['del']=='Delete')	{
	$count=count($_POST['ad']);
	for($i=0;$i<$count;$i++)
	{ $condition=" where Int_id='".$_POST['ad'][$i]."'";
	$matrimony->switchqry('tm_interestmsg','DELETE',$condition,''); }
	header("Location:InterestMessage.php"); 	}

	if($_POST['verify']=='Verify') {
	if($_POST['ad']=='')
	{
	$condition=" cs_VerifiedStatus='Y' where Int_id='".$_POST['Id']."'";
	$matrimony->switchqry('tm_interestmsg','UPDATE',$condition,'');	
	}
	else
	{
    $count=count($_POST['ad']);
	for($i=0;$i<$count;$i++)
	{ $condition=" cs_VerifiedStatus='Y' where Int_id='".$_POST['ad'][$i]."'";
<?
	$matrimony=new matrimony();
	$action=$_REQUEST['action'];
	$cat= array("Orthodox","Traditional","Moderate","Liberal");
	$scat= array("Joint Family","Nuclear Family","Others");
	$icat= array("Middle Class","Upper Middle Class","Rich");
	$FOcc= array("Salaried","Labour","Unable to Work","Looking For Job","Not Working","Self-Employed","Others");	
   	$link="ManageFamily.php";
if(($action=='edit') || ($action=='view')) {
	$condition=" where ProfileId='".$_GET['Id']."'";
	$matrimony->switchqry('tm_family','SELECT',$condition,'*');
	$value=mysql_fetch_array($matrimony->qry_result);
	$disabled='disabled';
	 for($i=0; $i<sizeof($cat); $i++) { if($value['Familyvalue']==$cat[$i]) { $selc[$i]='selected';  } else { $selc[$i]=''; } }
	 for($i=0; $i<sizeof($scat); $i++) { if($value['Familytype']==$scat[$i]) { $sels[$i]='selected';  } else { $sels[$i]=''; } }	
	 for($i=0; $i<sizeof($icat); $i++) { if($value['Familystatus']==$icat[$i]) { $seli[$i]='selected';  } else { $seli[$i]=''; } }	
	 for($i=0; $i<sizeof($FOcc); $i++) { if($value['Fatheroccupation']==$FOcc[$i]) { $self[$i]='selected';  } else { $self[$i]=''; } }
	 for($i=0; $i<sizeof($FOcc); $i++) { if($value['Motheroccupation']==$FOcc[$i]) { $selm[$i]='selected';  } else { $selm[$i]=''; } }	
}

?>

<h2><? if($action=="edit"){echo "Edit";}else if($action=="view"){echo "View"; }else{echo "Add";}?> Family Details </h2>
<script type="text/javascript">
var product = [<? echo $city; ?>];
//alert(product);
var sample = [<? echo $product; ?>];
//alert(sample);
 
</script>
Example #6
0
<?php

require_once "../common/config.inc.php";
require_once "../common/function.php";
session_start();
ob_start();
$matrimony = new matrimony();
if ($_POST) {
    $uname = trim($_POST['username']);
    $pwd = trim($_POST['password']);
    session_register('user');
    session_register('login');
    session_register('password');
    session_register('admin_ID');
    session_register('Status');
    $arg1 = " where ad_Username='******' and ad_Password='******'";
    $matrimony->switchqry('tm_admin', 'SELECT', $arg1, '*');
    $result = $matrimony->qry_result;
    $row = mysql_fetch_array($result);
    $num = mysql_num_rows($result);
    if ($num > 0) {
        $_SESSION['login'] = "******";
        $_SESSION['user'] = $row['ad_Username'];
        $_SESSION['admin_ID'] = $row['ad_ID'];
        $_SESSION['Status'] = $row['ad_Status'];
        header("Location:ManageUser.php");
    } else {
        header("Location:index.php?id=1");
    }
}
Example #7
0
<?
session_start(); ob_start();
if($_SESSION["login"] == "validuser") {
	include("../common/config.inc.php"); 
	include("../common/function.php");
	$matrimony=new matrimony();

	if($_POST['del']=='Delete')	{
	$count=count($_POST['ad']);
	for($i=0;$i<$count;$i++)
	{ $condition=" where Image_autoid='".$_POST['ad'][$i]."'";
	$matrimony->switchqry('tm_image','DELETE',$condition,''); }
	header("Location:ManageImage.php"); 	}

	if($_POST['active']=='Active') {
	if($_POST['ad']=='')
	{
	$condition=" Image_Status='A' where Image_autoid='".$_POST['Id']."'";
	$matrimony->switchqry('tm_image','UPDATE',$condition,''); 	
	}
	else
	{
	$count=count($_POST['ad']);
	for($i=0;$i<$count;$i++)
	{ $condition=" Image_Status='A' where Image_autoid='".$_POST['ad'][$i]."'";
	$matrimony->switchqry('tm_image','UPDATE',$condition,''); } }
	header("Location:ManageImage.php"); }
	
	if($_POST['suspend']=='Blocked')
	{ 
	if($_POST['ad']=='')
Example #8
0
<?
session_start();
ob_start();
require_once("common/config.inc.php");
include("common/function.php");
include("templates/homeheader.template.php");
$matrimony = new matrimony();
$matrimony->seturl();

if(!$_SESSION['valid']){
	$pcat= array("Assameme","Bengali","Bodo","Dogri","Gujarati","Hindi","Kannada","Kashmiri","Konkani","Maithili","Malayalee","Manipuri","Marathi","Marwadi","Nepali","oriya","Parsi","Punjabi","Sanskrit","Santhali","Sindhi","Tamil","Telugu","Urdu","Others");
	for($i=0; $i<sizeof($pcat); $i++) { if($_SESSION['lng']==$pcat[$i]) { $spcat[$i]='selected';  } else { $spcat[$i]=''; } }
	include("templates/registerSimple.template.php");
} else {
	
	$whrst2=" where ProfileId='".$_SESSION['ProfileId']."'";
	$matrimony->switchqry('tm_profile','SELECT',$whrst2,'register_stage');
	$row= mysql_fetch_row($matrimony->qry_result);
	if($row == null ){
		die('where'.$whrst2.'stage'.$stage.'profile id:'.$_SESSION['ProfileId']);
		include("templates/registerSimple.template.php");
		return;
	}
	$stage = $row[0];
	
	if($stage =='simple'){
		include("templates/registrationMain.template.php");
	}
	else if($stage=='first'){
		include("templates/registrationStep2.template.php");
	}else if($stage=='second'){ 
Example #9
0
    function seturl()
    {
        /*---------- for all pages header settings-----------*/
        if ($_SESSION['count'] != 1) {
            if ($_REQUEST['lng']) {
                $reqlng = $_REQUEST['lng'] ? $_REQUEST['lng'] : "Tamil";
            } else {
                if ($_REQUEST['rel']) {
                    $reqlng = $_REQUEST['rel'] ? $_REQUEST['rel'] : "Hindu";
                }
            }
            $_SESSION['count'] = 1;
            $_SESSION['lng'] = $reqlng;
        } else {
            if ($_REQUEST['lng']) {
                $reqlng = $_REQUEST['lng'] ? $_REQUEST['lng'] : $_SESSION['lng'];
            } else {
                if ($_REQUEST['rel']) {
                    $reqlng = $_REQUEST['rel'] ? $_REQUEST['rel'] : $_SESSION['lng'];
                } else {
                    $reqlng = $_SESSION['lng'];
                }
            }
            $_SESSION['lng'] = $reqlng;
        }
    }
}
$matrimony = new matrimony();
if ($_REQUEST['lng'] || $_REQUEST['rel']) {
    $matrimony->seturl();
}
Example #10
0
<?
session_start(); ob_start();

/*echo "<pre>";
print_r($_POST);
echo "</pre>";*/

if($_SESSION["login"] == "validuser") {
	include("../common/config.inc.php"); 
	include("../common/function.php");
	$matrimony=new matrimony();
	
	if($_POST['del']=='Delete')	{
	$count=count($_POST['ad']);
	for($i=0;$i<$count;$i++)
	{ $condition=" where tm_autoid='".$_POST['ad'][$i]."'";
	$matrimony->switchqry('tm_profile','DELETE',$condition,''); }
	header("Location:ManageUser.php"); 	}

	if($_POST['active']=='Active') {
	if($_POST['ad']=='')
	{
	$condition=" Adminstatus='A',ProfileStatus='A',DOA=now(),DOM=now() where tm_profileID='".$_POST['Id']."'";
	$matrimony->switchqry('tm_profile','UPDATE',$condition,''); 	
	}
	else
	{
	$count=count($_POST['ad']);
	for($i=0;$i<$count;$i++)
	{ $condition=" Adminstatus='A',ProfileStatus='A',DOA=now(),DOM=now() where tm_autoid='".$_POST['ad'][$i]."'";
	$matrimony->switchqry('tm_profile','UPDATE',$condition,''); } }