function modifybasic() { require_once RIBM_ROOT . '/include/form_elements.inc'; global $categorylist,$inputs,$searchprofcontent,$querybuild,$dbase; $Userprofileid = ($inputs->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 = '
'; 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 = ' '; return $html; } function educationjob() { require_once RIBM_ROOT . '/include/form_elements.inc'; global $categorylist,$inputs,$querybuild,$dbase,$subcategoryrec,$currencylist; $Userprofileid = ($inputs->ProfileId)?$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 = ' '; return $html; } function locationdetails() { require_once RIBM_ROOT . '/include/form_elements.inc'; global $inputs,$querybuild,$dbase,$countrylist,$categorylist; $Userprofileid = ($inputs->ProfileId)?$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 = ' '; return $html; } function familydetails() { require_once RIBM_ROOT . '/include/form_elements.inc'; global $categorylist,$inputs,$searchprofcontent,$querybuild,$dbase,$subcategoryrec; $Userprofileid = ($inputs->ProfileId)?$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 = ' '; return $html; } function contactdetails() { require_once RIBM_ROOT . '/include/form_elements.inc'; global $categorylist,$inputs,$querybuild,$dbase,$mobcntrycode; $Userprofileid = ($inputs->ProfileId)?$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 = ' '; 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 = ' '; 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 = ' '; 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 = '