ProfileId)?$inputs->ProfileId:''; if($Userprofileid=='') header("Location: ../register"); //echo $Userprofileid; $proftab = DB_name.'.profile'; $UserInfos = new SearchResultContent($Userprofileid); // print_r($UserInfo); $UserInfo = $UserInfos->rows; //echo $UserInfo['dpro_name']; $modmarital = $querybuild->build_query('pro_marital',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $height = $categorylist->ListcatRecords('4'); $weight = $categorylist->ListcatRecords('5'); $complex = $categorylist->ListcatRecords('6'); $body = $categorylist->ListcatRecords('7'); $motherlang = $categorylist->ListcatRecords('417'); $knownlang = $categorylist->ListcatRecords('417'); $wantkids = $categorylist->ListcatRecords('744'); $disability = $categorylist->ListcatRecords('646'); $hidefields = ($modmarital!='33')?'1':'0'; $prof_created = $categorylist->CategoryRecords($UserInfo['pro_createdby']); $gender = $categorylist->CategoryRecords($UserInfo['pro_gender']); $marital = $categorylist->CategoryRecords($UserInfo['pro_marital']); if($inputs->modbasicsd=='') { $proftab = DB_name.'.profile'; $detproftab = DB_name.'.det_profile'; $inputs->height = $querybuild->build_query('pro_height',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->weight = $querybuild->build_query('pro_weight',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->complex = $querybuild->build_query('pro_complexion',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->body = $querybuild->build_query('pro_bodytype',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $languages = $querybuild->build_query('dpro_language',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); $explang = explode(',',$languages); $inputs->motherlang = (isset($explang[0]) && $explang[0]!='')?$explang[0]:''; $inputs->secondlang = (isset($explang[1]) && $explang[1]!='')?$explang[1]:''; $inputs->trirdlang = (isset($explang[2]) && $explang[2]!='')?$explang[2]:''; $inputs->child = $querybuild->build_query('pro_child',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->living = $querybuild->build_query('pro_living',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->wantkids = $querybuild->build_query('dpro_want_children',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); $inputs->disablity = $querybuild->build_query('dpro_disability',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); } $childliving = array(array("0"=>"415","1"=>"Living Together"),array("0"=>"416","1"=>"Not Living Together")); $child = array(array("0"=>"0","1"=>"0"),array("0"=>"1","1"=>"1"),array("0"=>"2","1"=>"2"),array("0"=>"3","1"=>"3"),array("0"=>"4","1"=>"4"),array("0"=>"5","1"=>"5"),array("0"=>"6","1"=>"5+")); $fields[] = array('name'=>'name','type'=>'labels','value'=>$UserInfo['dpro_name'],'label'=>'Name','required'=>'0'); $fields[] = array('name'=>'profcreated','type'=>'labels','value'=>$prof_created,'label'=>'Profile Created by','required'=>'0'); $fields[] = array('name'=>'age','type'=>'labels','value'=>$UserInfo['pro_age'].'yrs','label'=>'Age','required'=>'0'); $fields[] = array('name'=>'gender','type'=>'labels','value'=>$gender,'label'=>'Gender','required'=>'0'); $fields[] = array('name'=>'marital','type'=>'labels','value'=>$marital,'label'=>'Marital Status','required'=>'0'); if($modmarital!='33') { $fields[] = array('name'=>'child','type'=>'select','value'=>'','label'=>'No of Children','required'=>$hidefields,'options'=>$child); $fields[] = array('name'=>'living','type'=>'radio','value'=>'','label'=>'Children Living','required'=>$hidefields,'options'=>$childliving); $fields[] = array('name'=>'wantkids','type'=>'select','value'=>'','label'=>'Want more Kids','required'=>$hidefields,'options'=>$wantkids); } $fields[] = array('name'=>'height','type'=>'select','value'=>'','label'=>'Height','required'=>'1','options'=>$height); $fields[] = array('name'=>'weight','type'=>'select','value'=>'','label'=>'Weight','required'=>'1','options'=>$weight); $fields[] = array('name'=>'complex','type'=>'select','value'=>'','label'=>'Complexion','required'=>'1','options'=>$complex); $fields[] = array('name'=>'body','type'=>'select','value'=>'','label'=>'Body Type','required'=>'1','options'=>$body); $fields[] = array('name'=>'motherlang','type'=>'select','value'=>'','label'=>'Mother Tongue','required'=>'1','options'=>$motherlang); $fields[] = array('name'=>'secondlang','type'=>'select','value'=>'','label'=>'Second Language','required'=>'0','options'=>$knownlang); $fields[] = array('name'=>'trirdlang','type'=>'select','value'=>'','label'=>'Third Language','required'=>'0','options'=>$knownlang); $fields[] = array('name'=>'disablity','type'=>'select','value'=>'','label'=>'Disability','required'=>'1','options'=>$disability); $fields[] = array('name'=>'mod_basicsubmit','type'=>'submit','value'=>'Save','label'=>''); $html = '
'; if($inputs->modbasicsd=='1') { $process=true; } fieldsvalidation($error,$error_msg,$fields,$form_elm); if($inputs->modbasicsd=='1') { if($error) { $html.= $error_msg; } else { $modheight = $inputs->height; $modweight = $inputs->weight; $modcomplex = $inputs->complex; $modbody = $inputs->body; $modchild = $inputs->child; $modliving = $inputs->living; $modlang = $inputs->motherlang; $seclang = $inputs->secondlang; $thirdlang = $inputs->trirdlang; $disability = $inputs->disablity; $wantchild = $inputs->wantkids; if($inputs->secondlang && $inputs->trirdlang) { if($inputs->trirdlang!=$inputs->motherlang && $inputs->trirdlang!=$inputs->secondlang) $Lang1=LangCompare($inputs->motherlang,$inputs->secondlang,$inputs->trirdlang); else if($inputs->motherlang==$inputs->secondlang && $inputs->motherlang==$inputs->trirdlang) $Lang1=LangCompare($inputs->motherlang,'',''); else if($inputs->motherlang==$inputs->secondlang) $Lang1=LangCompare($inputs->motherlang,$inputs->trirdlang,''); else if($inputs->trirdlang==$inputs->motherlang) $Lang1=LangCompare($inputs->motherlang,$inputs->secondlang,''); else if($inputs->secondlang==$inputs->trirdlang) $Lang1=LangCompare($inputs->motherlang,$inputs->secondlang,''); else $Lang1=LangCompare($inputs->motherlang,'',''); } else if(isset($inputs->secondlang) && $inputs->secondlang!=$inputs->motherlang) $Lang1=LangCompare($inputs->motherlang,$inputs->secondlang,''); else $Lang1=LangCompare($inputs->motherlang,'',''); $sql = "update ".DB_name.".profile set pro_height='$modheight',pro_weight='$modweight',pro_complexion='$modcomplex',pro_bodytype='$modbody',pro_child='$modchild',pro_living='$modliving' where pro_profileid = '$Userprofileid'"; $rs = $dbase->db_sql_query($sql); $sqldet = "update ".DB_name.".det_profile set dpro_language='$Lang1',dpro_want_children='$wantchild',dpro_disability='$disability' where dpro_profileid = '$Userprofileid'"; $rsdet = $dbase->db_sql_query($sqldet); $html.= '
Details Added Successfully
'; } } for($i=0;$i'; print_r($fields[$i]['options']); eval("\$html.= \"{$form_elm[$fields[$i]['type']]}\";"); } $html.= '
 
'; return $html; } function modifyreligious() { require_once RIBM_ROOT . '/include/form_elements.inc'; global $categorylist,$inputs,$querybuild,$dbase,$subcategoryrec; $Userprofileid = ($inputs->ProfileId)?$inputs->ProfileId:''; if($Userprofileid=='') header("Location: ../register"); $proftab = DB_name.'.profile'; $detproftab = DB_name.'.det_profile'; $UserInfo = new SearchResultContent($Userprofileid); $UserInfo = $UserInfo->rows; //$UserInfo = $searchprofcontent->getSearchContent($Userprofileid,'vp'); $modreligion = $querybuild->build_query('pro_religion',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $modcaste = $querybuild->build_query('dpro_caste',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); $modgender = $querybuild->build_query('pro_gender',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); if($modreligion=='1') $caste = $categorylist->ListcatRecords('8'); else $caste = $subcategoryrec->ListcasteRecords($modreligion); $gothram = $querybuild->build_query('dpro_gotharam',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); if($modreligion=='1') $subcaste = $subcategoryrec->ListcasteRecords('1'); else $subcaste = $subcategoryrec->ListcasteRecords($modcaste); $star = $categorylist->ListcatRecords('356'); $dosham = $categorylist->ListcatRecords('654'); $bornrev = $categorylist->ListcatRecords('337'); $relinterest = $categorylist->ListcatRecords('9'); $readquran = $categorylist->ListcatRecords('307'); $prayer = $categorylist->ListcatRecords('305'); $fasting = $categorylist->ListcatRecords('342'); $zakat = $categorylist->ListcatRecords('347'); $umrah = $categorylist->ListcatRecords('306'); $sunnahcap = $categorylist->ListcatRecords('304'); $sunnahbeard = $categorylist->ListcatRecords('303'); $hijab = $categorylist->ListcatRecords('646'); $niqab = $categorylist->ListcatRecords('646'); $religion = $subcategoryrec->casteRecords($UserInfo['pro_religion']); if($inputs->modreligious=='') { $proftab = DB_name.'.profile'; $detproftab = DB_name.'.det_profile'; $inputs->mod_caste = $querybuild->build_query('dpro_caste',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_subcaste = $querybuild->build_query('dpro_sub_caste',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_born = $querybuild->build_query('pro_bornrev',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->body = $querybuild->build_query('pro_bodytype',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_gothram = $querybuild->build_query('dpro_gotharam',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_star = $querybuild->build_query('dpro_star',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_Dosham = $querybuild->build_query('dpro_dosham',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_relinterest = $querybuild->build_query('pro_rinterest',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->quran = $querybuild->build_query('pro_readquaran',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->prayer = $querybuild->build_query('pro_prayer',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->fasting = $querybuild->build_query('pro_fasting',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->zakat = $querybuild->build_query('pro_zakat',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->umrah = $querybuild->build_query('pro_umrah_haj',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->hijab = $querybuild->build_query('pro_hijab',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->niqab = $querybuild->build_query('pro_niqab',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->beard = $querybuild->build_query('pro_beard',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->cap = $querybuild->build_query('pro_hut',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); } $xtra = ($inputs->mod_subcaste=='')?'style="display:none"':''; $fields[] = array('name'=>'mod_modreligion','type'=>'labels','value'=>$religion,'label'=>'Religion','required'=>'0'); if($modreligion<7) { $fields[] = array('name'=>'mod_caste','type'=>'select','value'=>'','label'=>'Caste','required'=>'1','options'=>$caste); $fields[] = array('name'=>'mod_subcaste','type'=>'select','value'=>'','label'=>'Sub Caste','required'=>'2','options'=>$subcaste,'validate'=>'mod_caste'); } if($modreligion=='2') { $fields[] = array('name'=>'mod_gothram','type'=>'text','value'=>$gothram,'label'=>'Gotharam','required'=>'1','minsize'=>'4'); $fields[] = array('name'=>'mod_star','type'=>'select','value'=>'','label'=>'Star','required'=>'1','options'=>$star); $fields[] = array('name'=>'mod_Dosham','type'=>'select','value'=>'','label'=>'Dosham','required'=>'1','options'=>$dosham); } if($modreligion=='1') { $fields[] = array('name'=>'mod_born','type'=>'radio','value'=>'','label'=>'Born or Reverted','required'=>'1','options'=>$bornrev,'style'=>'dstyle'); $fields[] = array('name'=>'mod_relinterest','type'=>'select','value'=>'','label'=>'Religious Interest','required'=>'1','options'=>$relinterest); $fields[] = array('name'=>'reldetails','type'=>'checkbox','value'=>'','label'=>'Disable Religious Details','required'=>'0','options'=>Array ("0"=>Array("0"=> "1","1"=> ' '))); $fields[] = array('name'=>'quran','type'=>'select','value'=>'','label'=>'Read Quran','required'=>'2','options'=>$readquran,'validate'=>'reldetails'); $fields[] = array('name'=>'prayer','type'=>'select','value'=>'','label'=>'Prayer','required'=>'2','options'=>$prayer,'validate'=>'reldetails'); $fields[] = array('name'=>'fasting','type'=>'select','value'=>'','label'=>'Fasting','required'=>'2','options'=>$fasting,'validate'=>'reldetails'); $fields[] = array('name'=>'zakat','type'=>'select','value'=>'','label'=>'Zakat','required'=>'2','options'=>$zakat,'validate'=>'reldetails'); $fields[] = array('name'=>'umrah','type'=>'select','value'=>'','label'=>'Umrah/Hajj','required'=>'2','options'=>$umrah,'validate'=>'reldetails'); if($modgender=='32') { $fields[] = array('name'=>'hijab','type'=>'select','value'=>'','label'=>'Wear Hijab','required'=>'2','options'=>$hijab,'validate'=>'reldetails'); $fields[] = array('name'=>'niqab','type'=>'select','value'=>'','label'=>'Wear Niqab','required'=>'2','options'=>$niqab,'validate'=>'reldetails'); } else { $fields[] = array('name'=>'beard','type'=>'select','value'=>'','label'=>'Sunnah Beard','required'=>'2','options'=>$sunnahbeard,'validate'=>'reldetails'); $fields[] = array('name'=>'cap','type'=>'select','value'=>'','label'=>'Wear Sunnah Cap','required'=>'2','options'=>$sunnahcap,'validate'=>'reldetails'); } } $fields[] = array('name'=>'mod_basicsubmit','type'=>'submit','value'=>'Save','label'=>''); $html = '
'; if($inputs->modreligious=='1') { $process=true; } fieldsvalidation($error,$error_msg,$fields,$form_elm); if($inputs->modreligious=='1') { if($error) { $html.= $error_msg; } else { $modcaste = $inputs->mod_caste; $modsubcaste = $inputs->mod_subcaste; $modgotharam = $inputs->mod_gothram; $modstar = $inputs->mod_star; $moddhosham = $inputs->mod_Dosham; $modborn = $inputs->mod_born; $modrinterest = $inputs->mod_relinterest; if($modreligion=='1') { $modquran = $inputs->quran; $modprayer = $inputs->prayer; $modfasting = $inputs->fasting; $modzakat = $inputs->zakat; $modumrah = $inputs->umrah; $modhijab = $inputs->hijab; $modniqab = $inputs->niqab; $modbeard = $inputs->beard; $modcap = $inputs->cap; } $sql = "update ".DB_name.".profile set pro_caste='$modcaste',pro_bornrev='$modborn',pro_rinterest='$modrinterest',pro_prayer='$modprayer',pro_zakat='$modzakat',pro_fasting='$modfasting',pro_umrah_haj='$modumrah',pro_readquaran='$modquran',pro_hijab='$modhijab',pro_niqab='$modniqab',pro_beard='$modbeard',pro_hut='$modcap' where pro_profileid = '$Userprofileid'"; $rs = $dbase->db_sql_query($sql); $sqldet = "update ".DB_name.".det_profile set dpro_sub_caste='$modsubcaste',dpro_star='$modstar',dpro_dhosham='$moddhosham',dpro_gotharam='$modgotharam' where dpro_profileid = '$Userprofileid'"; $rsdet = $dbase->db_sql_query($sqldet); $html.= '
Details Added Successfully
'; header("Location: myprofile"); } } for($i=0;$iProfileId)?$inputs->ProfileId:''; if($Userprofileid=='') header("Location: ../register"); $proftab = DB_name.'.profile'; $detproftab = DB_name.'.det_profile'; $jobdettab = DB_com_name.'.jobcategory'; $educate = $categorylist->ListcatRecords('10'); $usereducate = $querybuild->build_query('pro_edu',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $deteducate = $categorylist->ListcatRecords($usereducate); $adddeteducate = $categorylist->ListcatRecords($usereducate); $addeducate = $categorylist->ListcatRecords('10'); $detquali = $categorylist->ListjobcatRecords('0'); $modcurrency = $currencylist->regcurrency(); $modemployed = $categorylist->ListcatRecords('792'); if($inputs->mod_educjob=='') { $inputs->mod_highedu = $querybuild->build_query('pro_edu',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_highdetqual = $querybuild->build_query('dpro_qualify',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_addeduc = $querybuild->build_query('additional_quaify',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_adddetqual = $querybuild->build_query('dpro_add_detqualify',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_occup = $querybuild->build_query('pro_occp',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_company = $querybuild->build_query('dpro_company',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_designation = $querybuild->build_query('dpro_desig',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_empin = $querybuild->build_query('dpro_worksector',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_currency = $querybuild->build_query('pro_currency',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_annual = $querybuild->build_query('pro_income',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_month = ($inputs->mod_annual)/12; } $fields[] = array('name'=>'mod_highedu','type'=>'select','value'=>'','label'=>'Highest Qualification','required'=>'1','options'=>$educate); $fields[] = array('name'=>'mod_highdetqual','type'=>'select','value'=>'','label'=>'Detailed Qualification','required'=>'1','options'=>$deteducate); $fields[] = array('name'=>'mod_addeduc','type'=>'select','value'=>'','label'=>'Additional Qualification','required'=>'0','options'=>$addeducate); $fields[] = array('name'=>'mod_adddetqual','type'=>'select','value'=>'','label'=>'Detailed Qualification','required'=>'0','options'=>$adddeteducate); $fields[] = array('name'=>'mod_occup','type'=>'select','value'=>'','label'=>'Occupation','required'=>'1','options'=>$detquali); $fields[] = array('name'=>'mod_company','type'=>'text','value'=>$inputs->mod_company,'label'=>'Company','required'=>'0','minsize'=>'4'); $fields[] = array('name'=>'mod_designation','type'=>'text','value'=>$inputs->mod_designation,'label'=>'Designation','required'=>'0','minsize'=>'4'); $fields[] = array('name'=>'mod_empin','type'=>'select','value'=>'','label'=>'Employed In','required'=>'0','options'=>$modemployed); $fields[] = array('name'=>'mod_currency','type'=>'select','value'=>'','label'=>'Annual Income','required'=>'1','options'=>$modcurrency); $fields[] = array('name'=>'mod_annual','type'=>'text','value'=>$inputs->mod_annual,'label'=>'','required'=>'2','minsize'=>'0','validate'=>'mod_currency'); $fields[] = array('name'=>'mod_month','type'=>'text','value'=>$inputs->mod_month,'label'=>'','required'=>'2','minsize'=>'0','validate'=>'mod_currency'); $fields[] = array('name'=>'mod_educatejob','type'=>'submit','value'=>'Save','label'=>''); $html = '
'; if($inputs->mod_educjob=='1') { $process=true; } fieldsvalidation($error,$error_msg,$fields,$form_elm); if($inputs->mod_educjob=='1') { if($error) { $html.= $error_msg; } else { $modhighedu = $inputs->mod_highedu; $modhighdetedu = $inputs->mod_highdetqual; $modaddedu = $inputs->mod_addeduc; $modadddetedu = $inputs->mod_adddetqual; $modoccup = $inputs->mod_occup; $modoccupmain = $querybuild->build_query('subcat_id',$jobdettab,'job_id',$modoccup,'','','','','',''); $modcompany = $inputs->mod_company; $moddesignation = $inputs->mod_designation; $modempin = $inputs->mod_empin; $modcurrency = $inputs->mod_currency; $modannual = $inputs->mod_annual; $sql = "update ".DB_name.".profile set pro_edu='$modhighedu',pro_occp='$modoccup',pro_occpmain='$modoccupmain',pro_currency='$modcurrency',pro_income='$modannual' where pro_profileid = '$Userprofileid'"; $rs = $dbase->db_sql_query($sql); //echo $sql; $sqldet = "update ".DB_name.".det_profile set dpro_qualify='$modhighdetedu',additional_quaify='$modaddedu',dpro_add_detqualify='$modadddetedu',dpro_company='$modcompany',dpro_desig='$moddesignation',dpro_worksector='$modempin' where dpro_profileid = '$Userprofileid'"; $rsdet = $dbase->db_sql_query($sqldet); //echo $sqldet; $html.= '
Details Added Successfully
'; header("Location: myprofile"); } } for($i=0;$iProfileId)?$inputs->ProfileId:''; if($Userprofileid=='') header("Location: ../register"); $proftab = DB_name.'.profile'; $detproftab = DB_name.'.det_profile'; $nationid = $querybuild->build_query('pro_nation',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $nativestateid = $querybuild->build_query('native_state',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); $residingid = $querybuild->build_query('pro_resid',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $stateid = $querybuild->build_query('pro_nstate',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $nation = $countrylist->regcountry(); $residing = $countrylist->regcountry(); $state = $countrylist->regstate($residingid); $city = $countrylist->reg_city($residingid,$stateid); $nativestate = $countrylist->regstate($nationid); $nativecity = $countrylist->reg_city($nationid,$nativestateid); $residingstatus = $categorylist->ListcatRecords('14'); $nativedet = array(array("0"=>"0","1"=>"Yes"),array("0"=>"1","1"=>"No")); if($inputs->mod_location=='') { $inputs->mod_nation = $querybuild->build_query('pro_nation',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_residing = $querybuild->build_query('pro_resid',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_state = $querybuild->build_query('pro_nstate',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_city = $querybuild->build_query('pro_ncity',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_nativestate = $querybuild->build_query('native_state',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_nativecity = $querybuild->build_query('native_city',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_residstatus = $querybuild->build_query('pro_resstatus',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->mod_nativedet = ($inputs->mod_nativecity)?'1':'0'; } $fields[] = array('name'=>'mod_nation','type'=>'select','value'=>'','label'=>'Nationality','required'=>'1','options'=>$nation); $fields[] = array('name'=>'mod_residing','type'=>'select','value'=>'','label'=>'Residing in Country','required'=>'1','options'=>$residing); $fields[] = array('name'=>'mod_state','type'=>'select','value'=>'','label'=>'Residing State','required'=>'1','options'=>$state); $fields[] = array('name'=>'mod_city','type'=>'select','value'=>'','label'=>'Residing City','required'=>'1','options'=>$city); $fields[] = array('name'=>'mod_native','type'=>'labels','value'=>'','label'=>'Is your Native and Residing in City are Same','required'=>'0'); $fields[] = array('name'=>'mod_nativedet','type'=>'radio','value'=>'','label'=>'','required'=>'2','options'=>$nativedet,'validate'=>'mod_currency'); $fields[] = array('name'=>'mod_nativestate','type'=>'select','value'=>'','label'=>'Native State','required'=>'2','options'=>$nativestate,'validate'=>'mod_currency'); $fields[] = array('name'=>'mod_nativecity','type'=>'select','value'=>'','label'=>'Native City','required'=>'2','options'=>$nativecity,'validate'=>'mod_currency'); $fields[] = array('name'=>'mod_residstatus','type'=>'select','value'=>'','label'=>'Residing Status','required'=>'2','options'=>$residingstatus,'validate'=>'mod_currency'); $fields[] = array('name'=>'mod_alocation','type'=>'submit','value'=>'Save','label'=>''); $html = '
'; if($inputs->mod_location=='1') { $process=true; } fieldsvalidation($error,$error_msg,$fields,$form_elm); if($inputs->mod_location=='1') { if($error) { $html.= $error_msg; } else { $modnation = $inputs->mod_nation; $modresid = $inputs->mod_residing; $modstate = $inputs->mod_state; $modcity = $inputs->mod_city; $modnativestate = $inputs->mod_nativestate; $modnativecity = $inputs->mod_nativecity; $modresidstatus = $inputs->mod_residstatus; $sql = "update ".DB_name.".profile set pro_nation='$modnation',pro_resid='$modresid',pro_nstate='$modstate',pro_ncity='$modcity',pro_resstatus='$modresidstatus' where pro_profileid = '$Userprofileid'"; $rs = $dbase->db_sql_query($sql); //echo $sql; $sqldet = "update ".DB_name.".det_profile set native_state='$modnativestate',native_city='$modnativecity' where dpro_profileid = '$Userprofileid'"; $rsdet = $dbase->db_sql_query($sqldet); //echo $sqldet; $html.= '
Details Added Successfully
'; header("Location: myprofile"); } } for($i=0;$iProfileId)?$inputs->ProfileId:''; if($Userprofileid=='') header("Location: ../register"); $famtable = DB_name.'.family_details'; $detproftab = DB_name.'.det_profile'; $modfamilytype = $querybuild->build_query('fam_type',$famtable,'profileid',$Userprofileid,'','','','','',''); $modfamilstatus = $querybuild->build_query('fam_status',$famtable,'profileid',$Userprofileid,'','','','','',''); $modelderbro = $querybuild->build_query('fam_elder_bro',$famtable,'profileid',$Userprofileid,'','','','','',''); $modyoungbro = $querybuild->build_query('fam_young_bro',$famtable,'profileid',$Userprofileid,'','','','','',''); $modmarrybro = $querybuild->build_query('fam_marr_bro',$famtable,'profileid',$Userprofileid,'','','','','',''); $modeldersis = $querybuild->build_query('fam_elder_sis',$famtable,'profileid',$Userprofileid,'','','','','',''); $modyoungsis = $querybuild->build_query('fam_young_sis',$famtable,'profileid',$Userprofileid,'','','','','',''); $modmarrysis = $querybuild->build_query('fam_marr_sis',$famtable,'profileid',$Userprofileid,'','','','','',''); $mod_father = $querybuild->build_query('father_alive',$famtable,'profileid',$Userprofileid,'','','','','',''); $modfatheroccup = $querybuild->build_query('father_occup',$famtable,'profileid',$Userprofileid,'','','','','',''); $mod_mother = $querybuild->build_query('mother_alive',$famtable,'profileid',$Userprofileid,'','','','','',''); $modmotheroccup = $querybuild->build_query('mother_occup',$famtable,'profileid',$Userprofileid,'','','','','',''); $mod_abtfamily = $querybuild->build_query('dpro_aboutfamily',$detproftab,'dpro_profileid',$Userprofileid,'','','','','',''); $familytype = $categorylist->ListcatRecords('13'); $familystatus = $categorylist->ListcatRecords('418'); $fatheroccp = $categorylist->ListjobcatRecords('0'); $motheroccp = $categorylist->ListjobcatRecords('0'); $fammem = array(array("0"=>"0","1"=>"0"),array("0"=>"1","1"=>"1"),array("0"=>"2","1"=>"2"),array("0"=>"3","1"=>"3"),array("0"=>"4","1"=>"4"),array("0"=>"5","1"=>"5"),array("0"=>"6","1"=>"5+")); $fam_father_mother = $categorylist->ListcatRecords('419'); if($inputs->modifyfamily=='') { $inputs->mod_famtype = $modfamilytype; $inputs->mod_famstatus = $modfamilstatus; $inputs->mod_elderbro = $modelderbro; $inputs->mod_youngbro = $modyoungbro; $inputs->mod_eldersis = $modeldersis; $inputs->mod_youngsis = $modyoungsis; $inputs->mod_marrybro = $modmarrybro; $inputs->mod_marrysis = $modmarrysis; $inputs->mod_father = $mod_father; $inputs->mod_fatheroccup = $modfatheroccup; $inputs->mod_mother = $mod_mother; $inputs->mod_motheroccup = $modmotheroccup; $inputs->mod_famdetails = $mod_abtfamily; } $fields[] = array('name'=>'mod_famtype','type'=>'select','value'=>'','label'=>'Family Type','required'=>'1','options'=>$familytype); $fields[] = array('name'=>'mod_famstatus','type'=>'select','value'=>'','label'=>'Family Status','required'=>'1','options'=>$familystatus); $fields[] = array('name'=>'mod_elderbro','type'=>'select','value'=>'','label'=>'No. of Elder Brothers','required'=>'1','options'=>$fammem); $fields[] = array('name'=>'mod_youngbro','type'=>'select','value'=>'','label'=>'No. of Younger Brothers','required'=>'1','options'=>$fammem); $fields[] = array('name'=>'mod_eldersis','type'=>'select','value'=>'','label'=>'No. of Elder Sisters','required'=>'1','options'=>$fammem); $fields[] = array('name'=>'mod_youngsis','type'=>'select','value'=>'','label'=>'No. of Younger Sisters','required'=>'1','options'=>$fammem); $fields[] = array('name'=>'mod_marrybro','type'=>'select','value'=>'','label'=>'No. of Married Brothers','required'=>'1','options'=>$fammem); $fields[] = array('name'=>'mod_marrysis','type'=>'select','value'=>'','label'=>'No. of Married Sisters','required'=>'1','options'=>$fammem); $fields[] = array('name'=>'mod_father','type'=>'radio','value'=>'','label'=>'Father','required'=>'1','options'=>$fam_father_mother,'style'=>'dstyle'); $fields[] = array('name'=>'mod_fatheroccup','type'=>'select','value'=>'','label'=>'Father Occupation','required'=>'1','options'=>$fatheroccp); $fields[] = array('name'=>'mod_mother','type'=>'radio','value'=>'','label'=>'Mother','required'=>'1','options'=>$fam_father_mother,'style'=>'dstyle'); $fields[] = array('name'=>'mod_motheroccup','type'=>'select','value'=>'','label'=>'Mother Occupation','required'=>'1','options'=>$fatheroccp); $fields[] = array('name'=>'mod_famdetails','type'=>'textarea','value'=>$inputs->mod_famdetails,'label'=>'More about Family','required'=>'0','rows'=>'6','cols'=>'35'); $fields[] = array('name'=>'mod_familysubmit','type'=>'submit','value'=>'Save','label'=>''); $html = '
'; if($inputs->modifyfamily=='1') { $process=true; } fieldsvalidation($error,$error_msg,$fields,$form_elm); if($inputs->modifyfamily=='1') { if($error) { $html.= $error_msg; } else { $_modfamtype = $inputs->mod_famtype; $_modfamstatus = $inputs->mod_famstatus; $_modelderbro = $inputs->mod_elderbro; $_modyoungbro = $inputs->mod_youngbro; $_modeldersis = $inputs->mod_eldersis; $_modyoungsis = $inputs->mod_youngsis; $_modmarrybro = $inputs->mod_marrybro; $_modmarrysis = $inputs->mod_marrysis; $_modfather = $inputs->mod_father; $_modfatheroccup = $inputs->mod_fatheroccup; $_modmother = $inputs->mod_mother; $_modmotheroccup = $inputs->mod_motheroccup; $_modabtfamily = $inputs->mod_famdetails; $sql = "update ".DB_name.".family_details set fam_type='$_modfamtype',fam_status='$_modfamstatus',fam_elder_bro='$_modelderbro',fam_young_bro='$_modyoungbro',fam_marr_bro='$_modmarrybro',fam_elder_sis='$_modeldersis',fam_young_sis='$_modyoungsis',fam_marr_sis='$_modmarrysis',father_alive='$_modfather', mother_alive='$_modmother',father_occup='$_modfatheroccup',mother_occup='$_modmotheroccup',crt_date=curdate() where profileid = '$Userprofileid'"; $rs = $dbase->db_sql_query($sql); $sql = "update ".DB_name.".det_profile set dpro_aboutfamily='$_modabtfamily',dpro_aboutmestat='1' where dpro_profileid = '$Userprofileid'"; $rs = $dbase->db_sql_query($sql); $html.= '
Details Added Successfully
'; } } for($i=0;$iProfileId)?$inputs->ProfileId:''; if($Userprofileid=='') header("Location: ../register"); $proftab = DB_name.'.profile'; $modmobile = $querybuild->build_query('pro_mobile',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $modmobileexp = explode('||',$modmobile); $cntry = (isset($modmobileexp[0]))?$modmobileexp[0]:''; $primaryno = (isset($modmobileexp[1]))?$modmobileexp[1]:''; $primary = $cntry.'-'.$primaryno.' Modify '; $seccode = $querybuild->build_query('pro_resid',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $mobconcode = $mobcntrycode->ListMobCoutrycode(); $pro_cntname = $querybuild->build_query('pro_cntname',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $modpro_contrel = $querybuild->build_query('pro_contrel',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $modrelation = $categorylist->ListcatRecords('15'); $moddisply = array(array('0'=>'1','1'=>'Visible to all Premium Members'),array('0'=>'2','1'=>'Dont want to display my contact Details to others')); if($inputs->modcontact=='') { $proftab = DB_name.'.profile'; $inputs->alternate = $seccode; $inputs->alterno = ''; $inputs->contactperson = $pro_cntname; $inputs->relation = $modpro_contrel; $inputs->contactdisplay = $querybuild->build_query('pro_hideaddr',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); $inputs->timetocont = $querybuild->build_query('pro_cnttime',$proftab,'pro_profileid',$Userprofileid,'','','','','',''); } $fields[] = array('name'=>'primaryno','type'=>'labels','value'=>$primary,'label'=>'Primary Contact Number','required'=>'0'); $fields[] = array('name'=>'alternate','type'=>'select','value'=>'','label'=>'','required'=>'1','options'=>$mobconcode); $fields[] = array('name'=>'alterno','type'=>'text','value'=>$inputs->alterno,'label'=>'Alternate Contact Number','required'=>'1','minsize'=>'7'); $fields[] = array('name'=>'contactperson','type'=>'text','value'=>$inputs->contactperson,'label'=>'Contact Person','required'=>'1','minsize'=>'3'); $fields[] = array('name'=>'relation','type'=>'select','value'=>'','label'=>'Relationship','required'=>'1','options'=>$modrelation); $fields[] = array('name'=>'contactdisplay','type'=>'select','value'=>'','label'=>'Contact Display Setting','required'=>'1','options'=>$moddisply); $fields[] = array('name'=>'timetocont','type'=>'text','value'=>$inputs->timetocont,'label'=>'Suitable Time to Contact','required'=>'0','minsize'=>'1'); $fields[] = array('name'=>'mod_contactsubmit','type'=>'submit','value'=>'Save','label'=>''); $html = '
'; if($inputs->modcontact=='1') { $process=true; } fieldsvalidation($error,$error_msg,$fields,$form_elm); if($inputs->modcontact=='1') { if($error) { $html.= $error_msg; } else { $modalternate = $inputs->alternate; $modalterno = $inputs->alterno; $modcontactperson = $inputs->contactperson; $modrelation = $inputs->relation; $modcontactdisplay = $inputs->contactdisplay; $modtimetocont = $inputs->timetocont; $modmod_contactsubmit = $inputs->mod_contactsubmit; $alternatenumber = $modalternate.'||'.$modalterno; $sql = "update ".DB_name.".profile set pro_cntname='$modcontactperson',pro_cnttime='$modtimetocont',pro_contrel='$modrelation',pro_hideaddr ='$modcontactdisplay',pro_phone='$alternatenumber' where pro_profileid = '$Userprofileid'"; $rs = $dbase->db_sql_query($sql); $html.= '
Details Added Successfully
'; } } for($i=0;$i'; print_r($fields[$i]['options']); eval("\$html.= \"{$form_elm[$fields[$i]['type']]}\";"); } $html.= '
 
'; return $html; } function modifyhabitual() { require_once RIBM_ROOT . '/include/form_elements.inc'; global $categorylist,$inputs,$querybuild,$dbase; $Userprofileid = ($inputs->ProfileId)?$inputs->ProfileId:''; if($Userprofileid=='') header("Location: ../register"); $modfood = $categorylist->ListcatRecords('357'); $modsmoke = $categorylist->ListcatRecords('358'); $moddrink = $categorylist->ListcatRecords('359'); if($inputs->modhabit=='') { $proftab = DB_name.'.det_profile'; $inputs->food = $querybuild->build_query('dpro_food',$proftab,'dpro_profileid',$Userprofileid,'','','','','',''); $inputs->smoking = $querybuild->build_query('dpro_smoke',$proftab,'dpro_profileid',$Userprofileid,'','','','','',''); $inputs->drinking = $querybuild->build_query('dpro_drink',$proftab,'dpro_profileid',$Userprofileid,'','','','','',''); } //echo $inputs->smoking; $fields[] = array('name'=>'food','type'=>'select','value'=>'','label'=>'Food','required'=>'1','options'=>$modfood); $fields[] = array('name'=>'smoking','type'=>'select','value'=>'','label'=>'Smoking','required'=>'1','options'=>$modsmoke); $fields[] = array('name'=>'drinking','type'=>'select','value'=>'','label'=>'Drinking','required'=>'1','options'=>$moddrink); $fields[] = array('name'=>'mod_habitual','type'=>'submit','value'=>'Save','label'=>''); $html = '
'; if($inputs->modhabit=='1') { $process=true; } fieldsvalidation($error,$error_msg,$fields,$form_elm); if($inputs->modhabit=='1') { if($error) { $html.= $error_msg; } else { $modfood = $inputs->food; $modsmoking = $inputs->smoking; $moddrinking = $inputs->drinking; $sql = "update ".DB_name.".det_profile set dpro_food='$modfood',dpro_smoke='$modsmoking',dpro_drink='$moddrinking' where dpro_profileid = '$Userprofileid'"; $rs = $dbase->db_sql_query($sql); $html.= '
Details Added Successfully
'; } } for($i=0;$i'; print_r($fields[$i]['options']); eval("\$html.= \"{$form_elm[$fields[$i]['type']]}\";"); } $html.= '
 
'; return $html; } function modifypartner() { global $inputs,$dbase,$categorylist,$subcategoryrec,$countrylist,$querybuild,$arrayImplode; $parterr = ''; $table = DB_name.".profile"; $part_table = DB_name.".partner"; $_sessionpid = ($inputs->ProfileId)?$inputs->ProfileId:''; if($_sessionpid=='') header("Location: ../register"); $_sessionreligion = $inputs->reg_ses_religion; $prof_religion = $querybuild->build_query('pro_religion',$table,'pro_profileid',$_sessionpid,'','','','','',''); $prof_cntry = $querybuild->build_query('pro_resid',$table,'pro_profileid',$_sessionpid,'','','','','',''); $prof_state = $querybuild->build_query('pro_nstate',$table,'pro_profileid',$_sessionpid,'','','','','',''); $prof_city = $querybuild->build_query('pro_ncity',$table,'pro_profileid',$_sessionpid,'','','','','',''); $gender = $querybuild->build_query('pro_gender',$table,'pro_profileid',$_sessionpid,'','','','','',''); $part_agef = $querybuild->build_query('part_agefrom',$part_table,'part_profileid',$_sessionpid,'','','','','',''); $part_aget = $querybuild->build_query('part_ageto',$part_table,'part_profileid',$_sessionpid,'','','','','',''); $part_heightfd = $querybuild->build_query('part_heightfrom',$part_table,'part_profileid',$_sessionpid,'','','','','',''); $part_heighttd = $querybuild->build_query('part_heightto',$part_table,'part_profileid',$_sessionpid,'','','','','',''); $prof_marital = $querybuild->build_query('part_marital',$part_table,'part_profileid',$_sessionpid,'','','','','',''); $prof_lang = $querybuild->build_query('part_motherlang',$part_table,'part_profileid',$_sessionpid,'','','','','',''); $profi_religion = $querybuild->build_query('part_religion',$part_table,'part_profileid',$_sessionpid,'','','','','',''); $prof_nation = $querybuild->build_query('part_nation',$part_table,'part_profileid',$_sessionpid,'','','','','',''); $prart_county = $querybuild->build_query('part_resid',$part_table,'part_profileid',$_sessionpid,'','','','','',''); $prart_pref_city = $querybuild->build_query('part_resid_city',$part_table,'part_profileid',$_sessionpid,'','','','','',''); $cityexp = explode('-',$prart_pref_city); //$citycntt = count($cityexp); $partgender = ($gender=='31')?'Female':'Male'; //echo $prof_lang; if($inputs->reg_hide6=='1') { $_preg_agefrom = $inputs->agefrom; // part agefrom $_preg_ageto = $inputs->ageto; // part ageto $_preg_heightfrom = $inputs->part_heightf; // part agefrom $_preg_heightto = $inputs->part_heightt; // part ageto $_preg_partchild = $inputs->preg_partchild; $_pareg_marital = $inputs->part_marital; // part ageto $_preg_marital = $arrayImplode->ImplodeData($_pareg_marital,8); $_pareg_complex = $inputs->part_complex; // part ageto $_preg_complex = $arrayImplode->ImplodeData($_pareg_complex,8); $_pareg_mothert = $inputs->mothertongue; // part ageto $_preg_mothert = $arrayImplode->ImplodeData($_pareg_mothert,8); $_pareg_religion = $inputs->part_religion; // part ageto $_preg_religion = $arrayImplode->ImplodeData($_pareg_religion,8); $_pareg_caste = $inputs->part_caste; // part ageto $_preg_caste = $arrayImplode->ImplodeData($_pareg_caste,8); $_pareg_scaste = $inputs->subcaste; // part ageto $_preg_scaste = $arrayImplode->ImplodeData($_pareg_scaste,8); $_pareg_eudc = $inputs->part_education; // part ageto $_preg_eudc = $arrayImplode->ImplodeData($_pareg_eudc,8); $_pareg_occup = $inputs->part_occupation; // part ageto $_preg_occup = $arrayImplode->ImplodeData($_pareg_occup,8); $_pareg_manglik = $inputs->part_manglik; // part ageto $_preg_manglik = $arrayImplode->ImplodeData($_pareg_manglik,8); $_pareg_star = $inputs->part_star; // part ageto $_preg_star = $arrayImplode->ImplodeData($_pareg_star,8); $_pareg_disability = $inputs->part_disability; // part ageto $_preg_disability = $arrayImplode->ImplodeData($_pareg_disability,8); $_pareg_nation = $inputs->part_nation; // part ageto $_preg_nation = $arrayImplode->ImplodeData($_pareg_nation,8); $_pareg_resid = $inputs->part_country; // part ageto $_preg_resid = $arrayImplode->ImplodeData($_pareg_resid,8); $_pareg_cities = $inputs->part_city; // part ageto $_preg_cities = $arrayImplode->ImplodeData($_pareg_cities,8); if(($_preg_agefrom<$_preg_ageto) && ($_preg_heightfrom<=$_preg_heightto)) { $sqlpart = "update $part_table set part_agefrom = '$_preg_agefrom',part_ageto='$_preg_ageto',part_marital='$_preg_marital',part_acceptchildren='$_preg_partchild',part_educ='$_preg_eudc', part_occup='$_preg_occup',part_heightfrom='$_preg_heightfrom',part_heightto='$_preg_heightto',part_complexion='$_preg_complex',part_religion='$_preg_religion',part_caste='$_preg_caste',part_subcaste='$_preg_scaste',part_motherlang='$_preg_mothert',part_chevai='$_preg_manglik' ,part_star = '$_preg_star',part_nation='$_preg_nation',part_resid='$_preg_resid',part_resid_city='$_preg_cities',part_disability='$_preg_disability' where part_profileid = '$_sessionpid'"; echo $sqlpart; $rspart = mysqli_query($dbase->db_connects(),$sqlpart); //header("Location: user/myprofile"); } else { $parterr = "Specify Valid Age/Height Range"; } } $reg_html = '
'; if($prof_marital=='300') { $reg_html.= ' '; } $reg_html.= ' '; if($prof_religion<7) { $reg_html.= ''; } $reg_html.= ''; if($_sessionreligion=='2') { $reg_html.= ''; } $reg_html.= '
Partner Preferences
';if($parterr){ echo $parterr; } $reg_html.= '
Looking For '.$partgender.'
Age Range   to  
Marital Status
Willing to marry partner with children Yes   No   May be  
Complexion
Height Range to
Mother Tongue
Religion
Caste
Education
Occupation
Manglik
Star
Disability
Nationality
Residing Country
Preferred Cities '; if($prart_pref_city!=''){ $ziptab = DB_com_name.".zipcode"; $citytab = DB_com_name.".city"; foreach($cityexp as $expcity) { $expcityf = $expcity.'-'; if($expcity!='' && $expcity!='-') { $eexp = explode('_',$expcity); if(isset($eexp[0])!='' && isset($eexp[1])!='') { $citty = $eexp[0]=='2'?$querybuild->build_query('City',$ziptab,'cityid',$eexp[1],'','','','','',''):$querybuild->build_query('full_name_nd',$citytab,'id',$eexp[1],'','','','','',''); } else { $citty =''; } if($citty) { $reg_html.= ''.$citty.' [x]  '; } } } } $reg_html.= '
 
  
Country State City  
 
 
'; return $reg_html; } function modphotos() { global $inputs,$querybuild,$dbase; $UnSuppFormat = ''; $table = DB_name.".photo"; $regphotofn = new registerPhotoUploads; $_sessionpid = ($inputs->ProfileId)?$inputs->ProfileId:''; if($_sessionpid=='') header("Location: ../register"); $phdoir = $querybuild->build_query('directory',$table,'ph_profileid',$_sessionpid,'','','','','',''); $photo_five = $querybuild->build_query('ph_five',$table,'ph_profileid',$_sessionpid,'','','','','',''); $photo_first = $querybuild->build_query('ph_first',$table,'ph_profileid',$_sessionpid,'','','','','',''); $_sessionname = $inputs->reg_ses_name; if($inputs->delete1!=null || $inputs->delete2!=null || $inputs->delete3!=null || $inputs->delete4!=null || $inputs->delete5!=null) { $columns = array("ph_first","ph_second","ph_third","ph_four","ph_five","directory"); $rs[0] = $querybuild->build_query('ph_first',$table,'ph_profileid',$_sessionpid,'','','','','',''); $rs[1] = $querybuild->build_query('ph_second',$table,'ph_profileid',$_sessionpid,'','','','','',''); $rs[2] = $querybuild->build_query('ph_third',$table,'ph_profileid',$_sessionpid,'','','','','',''); $rs[3] = $querybuild->build_query('ph_four',$table,'ph_profileid',$_sessionpid,'','','','','',''); $rs[4] = $querybuild->build_query('ph_five',$table,'ph_profileid',$_sessionpid,'','','','','',''); $rs[5] = $querybuild->build_query('directory',$table,'ph_profileid',$_sessionpid,'','','','','',''); echo $rs[0].'-'.$rs[1].'-'.$rs[2].'-'.$rs[3].'-'.$rs[4].'-'.$rs[5].'-'; $file=$_sessionpid; if($inputs->delete1!=null && trim($inputs->delete1)=='Delete') { $Index=1; unlink('/home/speerg/Datas/Photos/nikah/album/'.$rs[5].$rs[0]); if(isset($rs[1]) && strlen($rs[1])>3 ) { $OldFile=$rs[1]; $NewFile=str_replace('_2','_1',$OldFile); rename("/home/speerg/Datas/Photos/nikah/album/".$rs[5].$OldFile,"/home/speerg/Datas/Photos/nikah/album/".$rs[5].$NewFile); } if(isset($rs[2]) && strlen($rs[2])>3 ) { $OldFile=$rs[2]; $NewFile=str_replace('_3','_2',$OldFile); rename("/home/speerg/Datas/Photos/nikah/album/".$rs[5].$OldFile,"/home/speerg/Datas/Photos/nikah/album/".$rs[5].$NewFile); } if(isset($rs[3]) && strlen($rs[3])>3 ) { $OldFile=$rs[3]; $NewFile=str_replace('_4','_3',$OldFile); rename("/home/speerg/Datas/Photos/nikah/album/".$rs[5].$OldFile,"/home/speerg/Datas/Photos/nikah/album/".$rs[5].$NewFile); } if(isset($rs[4]) && strlen($rs[4])>3 ) { $OldFile=$rs[4]; $NewFile=str_replace('_5','_4',$OldFile); rename("/home/speerg/Datas/Photos/nikah/album/".$rs[5].$OldFile,"/home/speerg/Datas/Photos/nikah/album/".$rs[5].$NewFile); } } if($inputs->delete2!=null && trim($inputs->delete2)=='Delete') { unlink('/home/speerg/Datas/Photos/nikah/album/'.$rs[5].$rs[1]); $Index=2; if(isset($rs[2]) && strlen($rs[2])>3 ) { $OldFile=$rs[2]; $NewFile=str_replace('_3','_2',$OldFile); rename("/home/speerg/Datas/Photos/nikah/album/".$rs[5].$OldFile,"/home/speerg/Datas/Photos/nikah/album/".$rs[5].$NewFile); } if(isset($rs[3]) && strlen($rs[3])>3 ) { $OldFile=$rs[3]; $NewFile=str_replace('_4','_3',$OldFile); rename("/home/speerg/Datas/Photos/nikah/album/".$rs[5].$OldFile,"/home/speerg/Datas/Photos/nikah/album/".$rs[5].$NewFile); } if(isset($rs[4]) && strlen($rs[4])>3 ) { $OldFile=$rs[4]; $NewFile=str_replace('_5','_4',$OldFile); rename("/home/speerg/Datas/Photos/nikah/album/".$rs[5].$OldFile,"/home/speerg/Datas/Photos/nikah/album/".$rs[5].$NewFile); } } if($inputs->delete3!=null && trim($inputs->delete3)=='Delete') { unlink('/home/speerg/Datas/Photos/nikah/album/'.$rs[5].$rs[2]); $Index=3; if(isset($rs[3]) && strlen($rs[3])>3 ) { $OldFile=$rs[3]; $NewFile=str_replace('_4','_3',$OldFile); rename("/home/speerg/Datas/Photos/nikah/album/".$rs[5].$OldFile,"/home/speerg/Datas/Photos/nikah/album/".$rs[5].$NewFile); } if(isset($rs[4]) && strlen($rs[4])>3 ) { $OldFile=$rs[4]; $NewFile=str_replace('_5','_4',$OldFile); rename("/home/speerg/Datas/Photos/nikah/album/".$rs[5].$OldFile,"/home/speerg/Datas/Photos/nikah/album/".$rs[5].$NewFile); } } if($inputs->delete4!=null && trim($inputs->delete4)=='Delete') { unlink('/home/speerg/Datas/Photos/nikah/album/'.$rs[5].$rs[3]); $Index=4; if(isset($rs[4]) && strlen($rs[4])>3 ) { $OldFile=$rs[4]; $NewFile=str_replace('_5','_4',$OldFile); rename("/home/speerg/Datas/Photos/nikah/album/".$rs[5].$OldFile,"/home/speerg/Datas/Photos/nikah/album/".$rs[5].$NewFile); } } if($inputs->delete5!=null && trim($inputs->delete5)=='Delete') { $Index=5; unlink('/home/speerg/Datas/Photos/nikah/album/'.$rs[5].$rs[4]); } //$sql="select deletephoto('$Pid',$Index)"; //$res=mysqli_query($connection,$sql); $del = $regphotofn->deletephotos($_sessionpid,$Index); header("Location: ?ph_succ=del"); } $fdfd = $regphotofn->SetChangePhoto(); if($inputs->sendfile!=null && trim($inputs->sendfile)=='Add Photos') { if(isset($_SESSION['CurFile'])) $Index=$_SESSION['CurFile']; else $Index=$inputs->sendfile ; echo $_FILES['userfile']['name']; if($_FILES['userfile']['name']=='') { header("Location: ?ph_emptyerr=yes" ); break; } $FileIndex='File'.$Index; $Sep=explode(".",$_FILES['userfile']['name']); // print_r($Sep); $uploaddir = '/home/speerg/Datas/uploadphoto/nikah/'; //is upload function if(is_uploaded_file($_FILES['userfile']['tmp_name'])) { $UnSuppFormat="no"; } else { $UnSuppFormat="yes"; } //end if(isset($Sep[1])) { if(! ($Sep[1] == 'gif' || $Sep[1] == "GIF" || $Sep[1] == "jpg" || $Sep[1] == "JPG"|| $Sep[1] == "bmp" || $Sep[1] == "BMP" || $Sep[1] =="jpeg" || $Sep[1] == "JPEG" || $Sep[1]=="png" || $Sep[1] == "PNG") ) { $UnSuppFormat="yes"; unset($_SESSION[$FileIndex]); } } else header("Location: ?ph_errordd=yes" ); //$uploaddir = '/tmp/nikah/uploadphoto/'; if(isset($Sep[1])) { $uploadfile = $uploaddir.'tmp.'.$Sep[1]; } else $uploadfile = ''; $_SESSION['error']="yes"; if(isset($Sep[1]) && !($Sep[1] == 'gif' || $Sep[1] == "GIF" || $Sep[1] == "jpg" || $Sep[1] == "JPG"|| $Sep[1] == "bmp" || $Sep[1] == "BMP" || $Sep[1] =="jpeg" || $Sep[1] == "JPEG" || $Sep[1]=="png" || $Sep[1] == "PNG") ) { $UnSuppFormat="yes"; unset($_SESSION[$FileIndex]); } elseif (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { if(isset($_SESSION['Change']) && ($_SESSION['Change']=='yes')) { $_SESSION['Change']='no'; $UploadPhotoNo=$_SESSION['ChangeIndex']; $Result = $regphotofn->readphotos($_sessionpid,$UploadPhotoNo); $OldFileName=$uploaddir.$Result; $Result = $regphotofn->changephoto($_sessionpid,$UploadPhotoNo,$randd,$Sep[1]); $File=$uploaddir.$_sessionpid.$randd.'_'.$UploadPhotoNo.'.'.$Sep[1]; $NewFile=$uploaddir.$File; $unch=$OldFileName; $unchex=explode('.',$unch); //$phdoir = $regphotofn->getuploaddir($_sessionpid); $albumdir="/home/speerg/Datas/Photos/nikah/album/".$phdoir; $DesFile=$albumdir.$_sessionpid.$randd.'_'.$UploadPhotoNo.'.'.$Sep[1]; rename($uploadfile,$File); //if (is_uploaded_file($_FILES['userfile']['tmp_name'])) copy($File,$DesFile); // move_uploaded_file($File, $albumdir); unlink($File); if(isset($uchex[1])) unlink($OldFileName); // rename($uploadfile,$File); $succ="yes"; //unlink($uploadfile); header("Location: ?task=register4&ph_succ=yes"); } else { $cocfe = "abcdefghijklmnopqrstuvwxyz1234567890"; $rand = str_shuffle($cocfe); $randd = substr($rand,0,4); if($Sep[1]!='') { //$sql = "select insertphoto('$ProfileId','$randd','$Sep[1]')"; // $rs=mysqli_query($connection,$sql); $rs = $regphotofn->insertphotos($_sessionpid,$randd,$Sep[1]); if($rs) { //$Result=mysqli_fetch_array($rs); // $Result[0] $Result = $rs; $File=$uploaddir.$_sessionpid.$randd.'_'.$Result.'.'.$Sep[1]; rename($uploadfile,$File); $albumdir="/home/speerg/Datas/Photos/nikah/album/".$phdoir; $DesFile=$albumdir.$_sessionpid.$randd.'_'.$Result.'.'.$Sep[1]; // if (is_uploaded_file($_FILES['userfile']['tmp_name'])) copy($File,$DesFile); // move_uploaded_file($File, $albumdir); unlink($File); } } } $_SESSION['page4'] = 'yes'; header("Location: ?ph_succ=yes"); } else { header("Location: ?ph_error=yes" ); } } $reg_html = '
'; if($inputs->delete1!=null) echo 'dfdfdf----'; if(!$inputs->ph_error) $inputs->ph_error=''; if(!$inputs->ph_succ) $inputs->ph_succ=''; if($inputs->ph_error || $inputs->ph_succ || ( $inputs->ph_error=='yes' || $UnSuppFormat=="yes" || $inputs->ph_emptyerr=='yes') ){ if($UnSuppFormat=="yes") { $reg_html.= ' '; } if($inputs->ph_error=='yes') { $reg_html.= ' '; } if($inputs->ph_emptyerr=='yes') { $reg_html.= ' '; } if($inputs->ph_succ=='yes') { $reg_html.= ' '; } if($inputs->ph_succ=='del') { $reg_html.= ' '; } } $reg_html.= ''; if($photo_five=='' || $photo_five=='no') { $reg_html.= ' '; } $reg_html.= '
   
Your photo image format is not in jpg, gif, png, or bmp
Your Photo image file size is more than 2 MB
No Image Selected
Photo Uploaded Successfully
Photo Deleted Successfully
'; $photo=$regphotofn->getPhotoCnt($_sessionpid,1); $_SESSION['CurImage1']=$photo; if($photo) { $reg_html.= ''; } else { $reg_html.= ''; } $reg_html.= '
  '; if($photo){ $reg_html.= ' '; } else { $reg_html.= ' '; } $reg_html.= '
'; $photo=$regphotofn->getPhotoCnt($_sessionpid,2);$_SESSION['CurImage2']=$photo; if($photo) { $reg_html.= ''; } else { $reg_html.= ''; } $reg_html.= ' '; $photo=$regphotofn->getPhotoCnt($_sessionpid,3);$_SESSION['CurImage3']=$photo; if($photo) { $reg_html.= ''; } else { $reg_html.= ''; } $reg_html.= '
  '; if($regphotofn->getPhotoCnt($_sessionpid,2)){ $reg_html.= ' '; } else { $reg_html.= ' '; } $reg_html.= '   '; if($regphotofn->getPhotoCnt($_sessionpid,3)){ $reg_html.= ' '; } else { $reg_html.= ' '; } $reg_html.= '
 
'; $photo=$regphotofn->getPhotoCnt($_sessionpid,4);$_SESSION['CurImage2']=$photo; if($photo) { $reg_html.= ''; } else { $reg_html.= ''; } $reg_html.= ' '; $photo=$regphotofn->getPhotoCnt($_sessionpid,5);$_SESSION['CurImage3']=$photo; if($photo) { $reg_html.= ''; } else { $reg_html.= ''; } $reg_html.= '
  '; if($regphotofn->getPhotoCnt($_sessionpid,4)){ $reg_html.= ' '; } else { $reg_html.= ' '; } $reg_html.= '   '; if($regphotofn->getPhotoCnt($_sessionpid,5)){ $reg_html.= ' '; } else { $reg_html.= ' '; } $reg_html.= '
  
  
  
'; return $reg_html; } function aboutself() { global $dbase,$inputs,$querybuild; $error=''; $abtmeerr = ''; $abtparterr = ''; $success = ''; $_sessionname = $inputs->reg_ses_name; $_sessionpid = $inputs->ProfileId; if($_sessionpid=='') header("Location: ../login"); $abttable = DB_name.'.det_profile'; if($inputs->reg_hide3=='1') { // Register3 Input Fields $_reg_abt_self = $inputs->reg_abt_self; // About Myself $_reg_abt_part = $inputs->reg_abt_part; // About My expected life partner if((strlen($_reg_abt_self)<100) || trim($_reg_abt_self)=='') $abtmeerr = 1; if(strlen($_reg_abt_part)<100 || trim($_reg_abt_part)=='') $abtparterr = 1; if($abtmeerr || $abtparterr) { $error = 1; } if(!$error) { $sql = "update ".DB_name.".det_profile set dpro_aboutme = '$_reg_abt_self',dpro_aboutmestat='1',dpro_mypartner='$_reg_abt_part',dpro_mypartnerstat='1' where dpro_profileid = '$_sessionpid'"; $rs = mysqli_query($dbase->db_connects(),$sql); $success = 'Details Saved Successfully'; } } $abtself = $querybuild->build_query('dpro_aboutme',$abttable,'dpro_profileid',$_sessionpid,'','','','','','');; $abtpartner = $querybuild->build_query('dpro_mypartner',$abttable,'dpro_profileid',$_sessionpid,'','','','','','');; $reg_html = '
'; $reg_html.= ' '; $reg_html.= '
 
'.$success.'
About Yourself
No of Characters Entered (min 100 characters; max 3500)
'; if($abtmeerr){ $reg_html.= '

About Myself should be Minimum 100 Characters


';} $reg_html.= '
 
About Your Expected Partner
No of Characters Entered (min 100 characters; max 3500)
'; if($abtparterr){ $reg_html.= '
About Partner should be Minimum 100 Characters
';} $reg_html.= '
 
 
'; return $reg_html; } function myprofile() { require_once "similar_profiles.inc"; global $inputs,$categorylist,$subcategoryrec,$countrydet; $ProfileId = ($inputs->ProfileId)?$inputs->ProfileId:''; if($ProfileId=='') header("Location: ../login"); $myprofs = new SearchResultContent($ProfileId); $row = $myprofs->rows; $uphoto = new Photographs; $photo = $uphoto->getUserphotos('',$ProfileId,'vp'); // User photo $partner = new PartnerprefDet; $partpref = $partner->getProfilePartValues($ProfileId); $html = '
'.$row['dpro_name'].'
Profile Rating
 
Profile created by : '.$categorylist->CategoryRecords($row['pro_createdby']).'
Name
:
'.$row['dpro_name'].'--'.$row['pro_profileid'].'
 
Age
:
'.$row['pro_age'].' yrs
 
Gender
:
'.$categorylist->CategoryRecords($row['pro_gender']).'
 
Marital Status
:
'.$categorylist->CategoryRecords($row['pro_marital']).'
 
Children
:
'.$row['pro_child'].' - '.$categorylist->CategoryRecords($row['pro_living']).' - '.$categorylist->CategoryRecords($row['dpro_want_children']).'
 
Religion
:
'.$subcategoryrec->casteRecords($row['pro_religion']).'
 
Height / Weight
:
'.$categorylist->CategoryRecords($row['pro_height']).' / '.$categorylist->CategoryRecords($row['pro_weight']).'
 
Complexion
:
'.$categorylist->CategoryRecords($row['pro_complexion']).'
 
Body Type
:
'.$categorylist->CategoryRecords($row['pro_bodytype']).'
 
Born or Reverted
:
'.$categorylist->CategoryRecords($row['pro_bornrev']).'
 

Shagul Hameed Expressed Interest on 22nd Aug 2015.
You have Declined Shagul Hameed \'s Interest on 22nd Aug 2015.
ReInitiate
 
Educational Information
 
Qualification
:
'.$categorylist->CategoryRecords($row['pro_edu']).'
Qualification in Detail
:
'.$categorylist->CategoryRecords($row['dpro_qualify']).'
 
 
Job Title
:
'.$categorylist->JobCategoryRecords($row['pro_occp']).'
Annual Income
:
'.$row['pro_income'].'
 
 
Designation
:
'.$row['dpro_desig'].'
Company Name
:
'.$row['dpro_company'].' / '.$categorylist->CategoryRecords($row['dpro_worksector']).'
 
 
Mother Tongue
:
Tamil
Known Languages
:
Tamil, English, Hindi
 
 
Religious Interest
 
Caste
:
'.$subcategoryrec->casteRecords($row['pro_caste']).'
Sub Caste
:
'.$subcategoryrec->casteRecords($row['dpro_sub_caste']).'
 
 
Star
:
'.$categorylist->CategoryRecords($row['dpro_star']).'
Dhosham
:
'.$categorylist->CategoryRecords($row['dpro_dhosham']).'
 
 
Ghotharam
:
'.$row['dpro_gotharam'].'
Sub Caste
:
'.$subcategoryrec->casteRecords($row['dpro_sub_caste']).'
 
 
Religious Interest
:
'.$categorylist->CategoryRecords($row['pro_rinterest']).'
Quran
:
'.$categorylist->CategoryRecords($row['pro_readquaran']).'
 
 
Prayer
:
'.$categorylist->CategoryRecords($row['pro_prayer']).'
Fasting
:
'.$categorylist->CategoryRecords($row['pro_fasting']).'
 
 
Zakat
:
'.$categorylist->CategoryRecords($row['pro_zakat']).'
Umrah / Hajj
:
'.$categorylist->CategoryRecords($row['pro_umrah_haj']).'
 
 
Wear Sunnah Cap
:
'.$categorylist->CategoryRecords($row['pro_hut']).'
Sunnah Beard
:
'.$categorylist->CategoryRecords($row['pro_beard']).'
 
 
Wear Hijab
:
'.$categorylist->CategoryRecords($row['pro_hijab']).'
Wear Niqab
:
'.$categorylist->CategoryRecords($row['pro_niqab']).'
 
 
Family Details
 
Family Type
:
'.$categorylist->CategoryRecords($row['fam_type']).'
Family Status
:
'.$categorylist->CategoryRecords($row['fam_status']).'
 
 
Father
:
'.$categorylist->CategoryRecords($row['father_alive']).'
Father Occupation
:
'.$categorylist->JobCategoryRecords($row['father_occup']).'
 
 
Mother
:
'.$categorylist->CategoryRecords($row['mother_alive']).'
Mother Occupation
:
'.$categorylist->JobCategoryRecords($row['mother_occup']).'
 
 
No of Elder Brothers
:
'.$row['fam_elder_bro'].'
No of Younger Brothers
:
'.$row['fam_young_bro'].'
 
 
No of Elder Sisters
:
'.$row['fam_elder_sis'].'
No of Younger Sisters
:
'.$row['fam_young_sis'].'
 
 
No of Brothers Married
:
'.$row['fam_marr_bro'].'
No of Sisters Married
:
'.$row['fam_marr_sis'].'
 
 
My Family
 

'.$row['dpro_aboutfamily'].'

About Myself
 

'.$row['dpro_aboutme'].'

My Expected Life Partner
 

'.$row['dpro_mypartner'].'

Habitual Details
 
Food
:
'.$categorylist->CategoryRecords($row['dpro_food']).'
Smoke
:
'.$categorylist->CategoryRecords($row['dpro_smoke']).'
 
 
Drink
:
'.$categorylist->CategoryRecords($row['dpro_drink']).'
 
 
Nationality & Residing-in City
 
Nationality
:
'.$countrydet->sercountry($row['pro_nation']).'
Residing Country
:
'.$countrydet->sercountry($row['pro_resid']).'
 
 
Native City
:
State
:
'.$countrydet->serstate($row['pro_nstate']).'
 
 
Residing Status
:
'.$categorylist->CategoryRecords($row['pro_resstatus']).'
City
:
'.$countrydet->sercity($row['pro_resid'],$row['pro_ncity']).'
 
 

Contact Details :


Contact details can not be displayed.

Partner Preferences does not match.

Partner Preferences
 
Age Range : '.$partpref['part_agefrom'].' - '.$partpref['part_ageto'].'yrs
 
 
Marital Status : '.$partner->explodevalues($partpref['part_marital'],'1').'
 
 
Math`hab Followed : '.$partner->explodevalues($partpref['part_caste'],'2').'
 
 
Religious Interest : '.$partner->explodevalues($partpref['part_rinterest'],'1').'
 
 
Complexion : '.$partner->explodevalues($partpref['part_complexion'],'1').'
 
 
Height : '.$categorylist->CategoryRecords($partpref['part_heightfrom']).' To '.$categorylist->CategoryRecords($partpref['part_heightfrom']).'
 
 
Education : '.$partner->explodevalues($partpref['part_educ'],'1').'
 
 
Occupation : '.$partner->explodevalues($partpref['part_occup'],'3').'
 
 
Nationality : '.$partner->explodevalues($partpref['part_nation'],'4').'
 
 
Residing Country :
'.$partner->explodevalues($partpref['part_resid'],'4').'
 
'.show_similar_profiles($ProfileId); return $html; } ?>