Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.222
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
thearyasamaj /
public_html /
include /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
10-08-2020-AG-aryasamaj-client...
1.43
KB
-rw-r--r--
adminer.php
465.43
KB
-rw-r--r--
arya_ajaxLanguageChange.php
617
B
-rw-r--r--
aryasamaj--clientvariable.php
27.43
KB
-rw-r--r--
aryasamaj-bengali-clientvariab...
23.19
KB
-rw-r--r--
aryasamaj-change_poll_vote.php
286
B
-rw-r--r--
aryasamaj-checkpassword.php
656
B
-rw-r--r--
aryasamaj-clientconnection.php
1.94
KB
-rw-r--r--
aryasamaj-clientconnection_20-...
1.33
KB
-rw-r--r--
aryasamaj-clientconnection_21-...
1.91
KB
-rw-r--r--
aryasamaj-clientconnection_30-...
1.91
KB
-rw-r--r--
aryasamaj-clientconnection_AG_...
2.24
KB
-rwxrwxrwx
aryasamaj-clientfunction.php
109.95
KB
-rwxrwxrwx
aryasamaj-clientfunction_04-11...
109.81
KB
-rw-r--r--
aryasamaj-clientfunction_05-07...
78.93
KB
-rw-r--r--
aryasamaj-clientfunction_06-06...
78.55
KB
-rw-r--r--
aryasamaj-clientfunction_07-03...
72.13
KB
-rw-r--r--
aryasamaj-clientfunction_10-10...
109.36
KB
-rw-r--r--
aryasamaj-clientfunction_11-03...
72.66
KB
-rw-r--r--
aryasamaj-clientfunction_13-05...
72.67
KB
-rw-r--r--
aryasamaj-clientfunction_14-05...
77.95
KB
-rw-r--r--
aryasamaj-clientfunction_14-07...
81.83
KB
-rw-r--r--
aryasamaj-clientfunction_15-07...
81.83
KB
-rw-r--r--
aryasamaj-clientfunction_20-12...
109.91
KB
-rw-r--r--
aryasamaj-clientfunction_22-05...
77.96
KB
-rw-r--r--
aryasamaj-clientfunction_23-05...
78.51
KB
-rw-r--r--
aryasamaj-clientfunction_24-02...
70.93
KB
-rw-r--r--
aryasamaj-clientfunction_25-03...
72.66
KB
-rw-r--r--
aryasamaj-clientfunction_28-05...
78.51
KB
-rw-r--r--
aryasamaj-clientfunction_B4_27...
108.84
KB
-rw-r--r--
aryasamaj-clientfunction_B4_4-...
109.09
KB
-rw-r--r--
aryasamaj-clientfunction_arvin...
109.93
KB
-rw-r--r--
aryasamaj-clientinclude.php
19.8
KB
-rw-r--r--
aryasamaj-clientinclude_01-05-...
16.05
KB
-rw-r--r--
aryasamaj-clientinclude_03-03-...
14.1
KB
-rw-r--r--
aryasamaj-clientinclude_05-03-...
14.24
KB
-rw-r--r--
aryasamaj-clientinclude_07-07-...
17.83
KB
-rw-r--r--
aryasamaj-clientinclude_09-04-...
15.45
KB
-rw-r--r--
aryasamaj-clientinclude_09-09-...
18.46
KB
-rw-r--r--
aryasamaj-clientinclude_13-03-...
14.72
KB
-rw-r--r--
aryasamaj-clientinclude_14-10-...
18.51
KB
-rw-r--r--
aryasamaj-clientinclude_15-05-...
16.05
KB
-rw-r--r--
aryasamaj-clientinclude_15-09-...
18.52
KB
-rw-r--r--
aryasamaj-clientinclude_16-04-...
15.8
KB
-rw-r--r--
aryasamaj-clientinclude_17-09-...
18.51
KB
-rw-r--r--
aryasamaj-clientinclude_18-10-...
18.62
KB
-rw-r--r--
aryasamaj-clientinclude_19-09-...
18.51
KB
-rw-r--r--
aryasamaj-clientinclude_20-06-...
16.29
KB
-rw-r--r--
aryasamaj-clientinclude_20-12-...
19.74
KB
-rw-r--r--
aryasamaj-clientinclude_21-02-...
13.76
KB
-rw-r--r--
aryasamaj-clientinclude_22-11-...
19.48
KB
-rw-r--r--
aryasamaj-clientinclude_24-02-...
14.01
KB
-rw-r--r--
aryasamaj-clientinclude_24-03-...
14.91
KB
-rw-r--r--
aryasamaj-clientinclude_24-11-...
19.76
KB
-rw-r--r--
aryasamaj-clientinclude_26-04-...
15.79
KB
-rw-r--r--
aryasamaj-clientinclude_27-10-...
19.01
KB
-rw-r--r--
aryasamaj-clientinclude_28-10-...
19.52
KB
-rw-r--r--
aryasamaj-clientinclude_29-03-...
15.11
KB
-rw-r--r--
aryasamaj-clientinclude_29-04-...
15.88
KB
-rw-r--r--
aryasamaj-clientinclude_29-10-...
19.49
KB
-rw-r--r--
aryasamaj-clientinclude_31-03-...
15.09
KB
-rw-r--r--
aryasamaj-clientinclude_31-07-...
18.37
KB
-rw-r--r--
aryasamaj-clientsessioncheck.p...
45
B
-rw-r--r--
aryasamaj-clientvariable.php
9.49
KB
-rw-r--r--
aryasamaj-english-clientvariab...
27.52
KB
-rw-r--r--
aryasamaj-fetchinstructionfiel...
409
B
-rw-r--r--
aryasamaj-findfromdate_todate....
1.98
KB
-rw-r--r--
aryasamaj-fnd-getassrapidtstrs...
1.22
KB
-rw-r--r--
aryasamaj-fnd-getassrapidtstrs...
1.06
KB
-rw-r--r--
aryasamaj-fnd-getasststresult....
1.22
KB
-rw-r--r--
aryasamaj-fnd-getasststresult_...
1.06
KB
-rw-r--r--
aryasamaj-fnd-getselftestresul...
1.29
KB
-rw-r--r--
aryasamaj-fnd-getselftestresul...
1.12
KB
-rw-r--r--
aryasamaj-fnd-gettestresult.ph...
1.29
KB
-rw-r--r--
aryasamaj-fnd-gettestresult_29...
1.11
KB
-rw-r--r--
aryasamaj-fnd-sessionstartdate...
3.04
KB
-rw-r--r--
aryasamaj-gujarati-clientvaria...
44.81
KB
-rw-r--r--
aryasamaj-hindi-clientvariable...
47.42
KB
-rw-r--r--
aryasamaj-hindivariable.inc
231
B
-rw-r--r--
aryasamaj-hindivariable.inc.ba...
237
B
-rw-r--r--
aryasamaj-lngsid.php
98
B
-rw-r--r--
aryasamaj-paginationlimit.php
729
B
-rw-r--r--
aryasamaj-paginationlimit_13-0...
723
B
-rw-r--r--
aryasamaj-passwordfieldfetch.p...
896
B
-rw-r--r--
aryasamaj-searchinstitution.ph...
411
B
-rw-r--r--
aryasamaj_ajaxLanguageChange.p...
91
B
-rw-r--r--
aryasamaj_ajaxactiveinactive.p...
6.06
KB
-rw-r--r--
aryasamaj_ajaxpampprgdelete.ph...
607
B
-rw-r--r--
aryasamaj_fnd_artsearch_ajax.p...
841
B
-rw-r--r--
aryasamaj_fnd_assrule_ajax.php
493
B
-rw-r--r--
aryasamaj_fnd_assrule_ajax_28-...
498
B
-rw-r--r--
aryasamaj_fnd_city_ajax.php
668
B
-rw-r--r--
aryasamaj_fnd_city_instajax.ph...
658
B
-rw-r--r--
aryasamaj_fnd_event_ajax.php
2.88
KB
-rw-r--r--
aryasamaj_fnd_eventlevel.php
606
B
-rw-r--r--
aryasamaj_fnd_freqdate_ajax.ph...
5.42
KB
-rw-r--r--
aryasamaj_fnd_institution.php
654
B
-rw-r--r--
aryasamaj_fnd_instmgzsearch_aj...
1.96
KB
-rw-r--r--
aryasamaj_fnd_instmgzsearch_aj...
1.95
KB
-rw-r--r--
aryasamaj_fnd_langid_ajax.php
3.03
KB
-rw-r--r--
aryasamaj_fnd_mgzn_state_ajax....
699
B
-rw-r--r--
aryasamaj_fnd_mgznsearch_ajax....
1.15
KB
-rw-r--r--
aryasamaj_fnd_mgznsearch_ajax_...
1.14
KB
-rw-r--r--
aryasamaj_fnd_mgznsearch_ajax_...
1.88
KB
-rw-r--r--
aryasamaj_fnd_rule_ajax.php
487
B
-rw-r--r--
aryasamaj_fnd_rule_ajax_28-05-...
492
B
-rw-r--r--
aryasamaj_fnd_state_ajax.php
1.37
KB
-rw-r--r--
aryasamaj_photoalbum_ajax.php
776
B
-rw-r--r--
aryasamaj_photonewalbum_ajax.p...
539
B
-rw-r--r--
error_log
2.66
KB
-rw-r--r--
index.php
210
B
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
variable.php
560
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : aryasamaj-clientfunction_10-10-14.php
<?php ////////// php validation function put by dharmishtha start /////////////// function GetQuickUploadType($id) //this is used for get quick upload { $qrySelquickupload = "SELECT * FROM arya_quickuploadtype WHERE lang_id='1' AND qutype_deletestatus='No' AND qutype_approve='Yes' ORDER BY qutype_name ASC"; $qSelquickupload = mysql_query($qrySelquickupload); while($qFetchquick = mysql_fetch_array($qSelquickupload)) { $selected=($qFetchquick["qutype_id"] == $id)?"selected='true'":""; $nvOptionState .= "<option value=\"".$qFetchquick["qutype_id"]."\" $selected>".$qFetchquick["qutype_name"]."</option>"; } return $nvOptionState; } function find_scripttags($string) // to restrict html php tags { $function_result="No"; $strArr = str_split($string); $specialCharactersPhone = array('<','>','<','>'); for($lp=0; $lp < COUNT($strArr); $lp++) { if(in_array($strArr[$lp],$specialCharactersPhone)) { $function_result="Yes"; break 1; } } return $function_result; } function CheckWebUrl($url) { if($url!="") { $function_result="No"; if(preg_match ("/^(http(s?):\/\/|ftp:\/\/{1})((\www\.){1,})\w{2,}[a-z0-9][a-z0-9\-]+[a-z0-9](\.[a-z]{2,4})+$/i", $url)) { $function_result="No"; //return true; }elseif(preg_match ("/^(http(s?):\/\/|ftp:\/\/{1})[a-z0-9][a-z0-9\-]+[a-z0-9](\.[a-z]{2,4})+$/i", $url)) { $function_result="No"; //return true; }else{ $function_result="Yes"; //return false; } return $function_result; } } function find_specialchar($string) // allow , # )( / -'!. { /*if(trim($string)=="") { $function_result="Yes"; } else {*/ $function_result="No"; $specialCharacters = array('$' => '','%' => '','&' => '','@' => '','€' => '','+' => '','=' => '','§' => '','\\' => '', '>' =>'','<' =>'','*' =>'','<' =>'','`' =>'','~' =>'','<' =>'','>' =>'','#' =>''); while (list($character, $replacement) = each($specialCharacters)) { if(strstr($string,$character)) { $function_result="Yes"; break 1; } } //} return $function_result; } function find_blankfield($bfield) //Blank value { if(trim($bfield)=="") { $function_result="Yes"; } return $function_result; } function RedirecPage($PageURL) { if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { echo "<script language=javascript>document.location='".$PageURL."';</script>"; //using javascript redirect page echo '<META HTTP-EQUIV="Refresh" Content="0; URL='.$PageURL.'">'; //using meta tag redirect page //header("Location:".$PageURL); //using header fuction redirect page } else { echo "<script language=javascript>document.location='".$PageURL."';</script>"; //using javascript redirect page } exit; } function find_NumericChar($string) // to restrict special chars other than 0 to 9 { /*if(trim($string)=="") { $function_result="Yes"; } else {*/ if($string!="") { $strArr = str_split($string); $nvSpecialCharsAge=array('0','1','2','3','4','5','6','7','8','9','.'); for($lp=0; $lp < COUNT($strArr); $lp++) { if(in_array($strArr[$lp],$nvSpecialCharsAge)) { $function_result="No"; } else { $function_result="Yes"; break 1; } } return $function_result; } } function is_digits($element) //to restrict special chars other than 0 to 9 { if($element != "") { if(!preg_match ("/^(NA|[0-9+-]+)$/", $element)) { $function_result="Yes"; } else { $function_result="No"; } return $function_result; } } function ValidEmailCheck($postemail) //email validate in php { if($postemail!="") { if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $postemail)) { return true; } else { return false; } } else { return true; } } function email_specialchar($stringEmail) { /* if(trim($stringEmail)=="") // { // $function_result="Yes"; // } // else // {*/ // $function_result="No"; // $specialCharactersEmail = array('#' => '','$' => '','%' => '','&' => '','€' => '','+' => '','=' => '','§' => '','\\' => '','/' => '','>' =>'','<' =>'','(' =>'',')' =>'','*' =>'','!' =>'','<' =>'','`' =>'','~' =>'','"\"'=>'','"'=>'','{'=>'','}'=>'','['=>'',']'=>''); // while (list($characterEmail, $replacement) = each($specialCharactersEmail)) // { // if(strstr($stringEmail,$characterEmail)) // { // $function_result="Yes"; // break 1; // } // } // //} // return $function_result; } function getsortlistinperson($id) { if($id=='1') { $selected1=" selected='true'"; } else if($id=='2') { $selected2=" selected='true'"; } else if($id=='3') { $selected3=" selected='true'"; } else if($id=='4') { $selected4=" selected='true'"; } $option = "<option value='1' ".$selected1.">Relevance</option> <option value='2' ".$selected2.">Name</option> <option value='3' ".$selected3.">Date of Birth</option> <option value='4' ".$selected4.">Date of Death</option>"; echo $option; } function getdeadalive($id)//this function display position list { if($id=='All') { $selected1=" selected='true'"; } else if($id=='Dead') { $selected2=" selected='true'"; } else if($id=='Alive') { $selected3=" selected='true'"; } $option = "<option value='All' ".$selected1.">All</option> <option value='Dead' ".$selected2.">Dead</option> <option value='Alive' ".$selected3.">Alive</option> "; echo $option; } function getlateststatus($id) { if($id=='0') { $selected1=" selected='true'"; } else if($id=='1') { $selected2=" selected='true'"; } else if($id=='2') { $selected3=" selected='true'"; } else if($id=='3') { $selected4=" selected='true'"; } else if($id=='4') { $selected5=" selected='true'"; } $option = "<option value='0' ".$selected1.">All</option> <option value='1' ".$selected2.">Brahmchari</option> <option value='2' ".$selected3.">Grihasth</option> <option value='3' ".$selected4.">Vanprasth</option> <option value='4' ".$selected5.">Sanyasi</option> "; echo $option; } ////////// php validation function put by dharmishtha end /////////////// // Paging functions function getPagerData($numHits, $limit, $page) { $numHits = (int) $numHits; $limit = max((int) $limit, 1); $page = (int) $page; $numPages = ceil($numHits / $limit); $page = max($page, 1); $page = min($page, $numPages); $offset = ($page - 1) * $limit; $ret = new stdClass; $ret->offset = $offset; $ret->limit = $limit; $ret->numPages = $numPages; $ret->page = $page; return $ret; } function display_paginglist($page,$nvNumRows,$limit,$script_name,$pagequery_vars) { global $eu; if(is_numeric($page)) $page = $page; else $page = ""; $pager = getPagerData($nvNumRows, $limit, $page); $offset = $pager->offset; if($offset<0) $offset=0; $limit = $pager->limit; $page = $pager->page; $eu=$offset; $limit=$limit; if($pager->numPages > 1) { if($page == -1) $page = 0; if ($page == 1 || $page == 0) // this is the first page - there is no previous page $paging.=""; $l=$page-1; $k=$page+1; for($i = 1; $i <= $pager->numPages; $i++) { /*if($i==1) $paging.=""; else $paging.="<span class='divider'>|</span>"; */ if ($i == $pager->page) if($page == 1) { $paging.="$i<a href=\"javascript:RedirectFindPaging(".($k).");\" class='' style='text-decoration:none;'></a>"; } else if($page ==$pager->numPages) { $paging.="<a href=\"javascript:RedirectFindPaging(".($l).");\" class='' style='text-decoration:none;'></a>$i"; } else { $paging.="<a href=\"javascript:RedirectFindPaging(".($l).");\" class='' style='text-decoration:none;'></a>$i<a href=\"javascript:RedirectFindPaging(".($k).");\" class='' style='text-decoration:none;'></a>"; } } $lastpage=$pager->numPages; $paging=$paging; } if($paging!="") { if($page == 1) { $paging1='<div class="pagination"><span class="first">|<<</span> <span class="pre"><</span> <a style="text-decoration:none;" class="number">'.$paging.'</a> <a href=\'javascript:RedirectFindPaging('.($k).');\' class="btnnext" style="text-decoration:none;">></a> <a href=\'javascript:RedirectFindPaging('.($lastpage).');\' class="last_pg" style="text-decoration:none;">>>|</a></div>'; } else if($page==$lastpage) { $paging1='<div class="pagination"> <a href=\'javascript:RedirectFindPaging('.(1).');\' class="first" style="text-decoration:none;">|<<</a> <a href=\'javascript:RedirectFindPaging('.($l).');\' class="pre" style="text-decoration:none;"><</a> <div class="number"><a style="text-decoration:none;" >'.$paging.'</a></div> <span class="btnnext">></span><span class="last_pg">>>|</span></div>'; } else { $paging1='<div class="pagination"> <a href=\'javascript:RedirectFindPaging('.(1).');\' class="first" style="text-decoration:none;">|<<</a> <a href=\'javascript:RedirectFindPaging('.($l).');\' class="pre" style="text-decoration:none;"><</a> <div class="number"><a style="text-decoration:none;">'.$paging.'</a></div> <a href=\'javascript:RedirectFindPaging('.($k).');\' class="btnnext" style="text-decoration:none;">></a> <a href=\'javascript:RedirectFindPaging('.($lastpage).');\' class="last_pg" style="text-decoration:none;">>>|</a></div>'; } } return $paging1; }// End of paging functions function find_NumericCharwithoutdot($string) // to restrict special chars other than 0 to 9 { if(trim($string)=="") { $function_result="Yes"; } else { $strArr = str_split($string); $nvSpecialCharsAge = array('0','1','2','3','4','5','6','7','8','9'); for($lp=0; $lp < COUNT($strArr); $lp++) { if(in_array($strArr[$lp],$nvSpecialCharsAge)) { $function_result="No"; } else { $function_result="Yes"; break 1; } } } return $function_result; } function CheckMail($user_mail) { if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $user_mail)) { return "No"; } else { return "Yes"; } } function find_tags($string) { $function_result="No"; $specialCharacters = array('<','>','<','>'); while (list($character, $replacement) = each($specialCharacters)) { if(strstr($string,$character)) { $function_result="Yes"; break 1; } } //} return $function_result; } function find_scripttagsinOptionFields($string) // to restrict html php tags { $function_result="No"; $strArr = str_split($string); $specialCharactersPhone = array('<','>','<','>'); for($lp=0; $lp < COUNT($strArr); $lp++) { if(in_array($strArr[$lp],$specialCharactersPhone)) { $function_result="Yes"; break 1; } } return $function_result; } //added by navneet for use display search box in magazine date 23/08/2013 function getPosition($id)//this function display position list { if($id=='1') { $selected1=" selected='true'"; } else if($id=='2') { $selected2=" selected='true'"; } else if($id=='3') { $selected3=" selected='true'"; } $option = "<option value='1' ".$selected1.">Language</option> <option value='2' ".$selected2.">Place</option> <option value='3' ".$selected3.">Frequency</option> "; echo $option; } function getSortinPosition($id)//this function display position list { if($id=='1') { $selected1=" selected='true'"; } else if($id=='2') { $selected2=" selected='true'"; } else if($id=='3') { $selected3=" selected='true'"; } $option = "<option value='1' ".$selected1.">Publish Date</option> <option value='2' ".$selected2.">Upload Date</option> <option value='3' ".$selected3.">Magazine Title</option> "; echo $option; } function downloadsorting($id)//this function display position list { if($id=='1') { $selected1=" selected='true'"; } else if($id=='2') { $selected2=" selected='true'"; } $option = "<option value='1' ".$selected1.">New Uploads</option> <option value='2' ".$selected2.">Most Downloaded</option> "; echo $option; } function getPublishDate($pdate)//this function is used to display publish date of magazine date : 23/08/2013 { $qrySelVal = "SELECT * FROM arya_magazines WHERE mgzn_showhome='Yes' AND mgzn_delstatus='No' AND mgzn_approve='Yes' order by recoddate DESC"; $qSelVal = mysql_query($qrySelVal); while($qFetchVa = mysql_fetch_array($qSelVal)) { $mgznid=$qFetchVa["mgzn_id"]; $qrylmgznSelVal='SELECT max(lmgzn_issue_pub_date) as lmdate FROM arya_latestmagazines WHERE mgzn_id = '.$mgznid.' AND lmgzn_visible="Yes" AND lmgzn_delstatus="No" AND lmgzn_approve="Yes"'; $qlmgznSelVal = mysql_query($qrylmgznSelVal); $qlmgznFetchVa = mysql_fetch_array($qlmgznSelVal); if($qlmgznFetchVa['lmdate']!='') { $originalId[]=getFieldValue("lmgzn_id","arya_latestmagazines","lmgzn_issue_pub_date='".$qlmgznFetchVa['lmdate']."'"); } } $commaId = implode(', ', $originalId); $countlmgzid=count($originalId); $sellateqry='SELECT DISTINCT DATE_FORMAT(lmgzn_issue_pub_date, "%Y-%m-%d") FROM arya_latestmagazines WHERE lmgzn_id IN('.$commaId.') AND lmgzn_visible="Yes" AND lmgzn_delstatus="No" AND lmgzn_approve="Yes" ORDER BY lmgzn_issue_pub_date DESC'; $qlateSelVal = mysql_query($sellateqry); //$originalDate=$qlmgznFetchVa1['lmgzn_issue_pub_date']; while($qlmgnFetchVa1=mysql_fetch_array($qlateSelVal)) { $originalDate=$qlmgnFetchVa1['DATE_FORMAT(lmgzn_issue_pub_date, "%Y-%m-%d")']; $newDate = date("d-M-Y", strtotime($originalDate)); $abcd=$qlmgnFetchVa1['DATE_FORMAT(lmgzn_issue_pub_date, "%Y-%m-%d")']; $selected=($qlmgnFetchVa1['DATE_FORMAT(lmgzn_issue_pub_date, "%Y-%m-%d")']==$pdate)?" selected='true'":""; $select_box .="<option value='".$abcd."' ".$selected.">".$newDate."</option>"; } return $select_box; } /*function getPublishDate($pdate)//this function is used to display publish date of magazine date : 23/08/2013 { $qrySelVal = "SELECT * FROM arya_magazines WHERE mgzn_showhome='Yes' AND mgzn_delstatus='No' AND mgzn_approve='Yes' order by recoddate DESC"; $qSelVal = mysql_query($qrySelVal); while($qFetchVa = mysql_fetch_array($qSelVal)) { $mgznid=$qFetchVa["mgzn_id"]; $qrylmgznSelVal='SELECT max(lmgzn_issue_pub_date) as lmdate FROM arya_latestmagazines WHERE mgzn_id = '.$mgznid.' AND lmgzn_visible="Yes" AND lmgzn_delstatus="No" AND lmgzn_approve="Yes"'; $qlmgznSelVal = mysql_query($qrylmgznSelVal); $qlmgznFetchVa = mysql_fetch_array($qlmgznSelVal); if($qlmgznFetchVa['lmdate']!='') { $originalId[]=getFieldValue("lmgzn_id","arya_latestmagazines","lmgzn_issue_pub_date='".$qlmgznFetchVa['lmdate']."'"); } } $commaId = implode(', ', $originalId); $sellateqry='SELECT DISTINCT lmgzn_issue_pub_date FROM arya_latestmagazines WHERE lmgzn_id IN('.$commaId.') AND lmgzn_visible="Yes" AND lmgzn_delstatus="No" AND lmgzn_approve="Yes" ORDER BY lmgzn_issue_pub_date DESC'; $qlateSelVal = mysql_query($sellateqry); //$originalDate=$qlmgznFetchVa1['lmgzn_issue_pub_date']; while($qlmgnFetchVa1=mysql_fetch_array($qlateSelVal)) { $originalDate=$qlmgnFetchVa1['lmgzn_issue_pub_date']; $newDate = date("d-M-Y", strtotime($originalDate)); $selected=($qlmgnFetchVa1['lmgzn_issue_pub_date']==$pdate)?" selected='true'":""; $select_box .="<option value='".$qlmgnFetchVa1['lmgzn_issue_pub_date']."' ".$selected.">".$newDate."</option>"; } return $select_box; }*/ /*function getPublishDate($pdate)//this function is used to display publish date of magazine date : 23/08/2013 { $qrySelVal = "SELECT * FROM arya_magazines WHERE mgzn_showhome='Yes' AND mgzn_delstatus='No' AND mgzn_approve='Yes' order by recoddate DESC"; $qSelVal = mysql_query($qrySelVal); while($qFetchVa = mysql_fetch_array($qSelVal)) { $mgznid=$qFetchVa["mgzn_id"]; $mgznid1[]=$qFetchVa["mgzn_id"]; $qrylmgznSelVal='SELECT max(lmgzn_issue_pub_date) as lmdate FROM arya_latestmagazines WHERE mgzn_id = '.$mgznid.' AND lmgzn_visible="Yes" AND lmgzn_delstatus="No" AND lmgzn_approve="Yes"'; $qlmgznSelVal = mysql_query($qrylmgznSelVal); $qlmgznFetchVa = mysql_fetch_array($qlmgznSelVal); if($qlmgznFetchVa['lmdate']!='') { $originalId[]=getFieldValue("lmgzn_id","arya_latestmagazines","lmgzn_issue_pub_date='".$qlmgznFetchVa['lmdate']."'"); } } $commaId = implode(', ', $mgznid1); $sellateqry='SELECT DISTINCT lmgzn_issue_pub_date FROM arya_latestmagazines WHERE mgzn_id IN('.$commaId.') AND lmgzn_visible="Yes" AND lmgzn_delstatus="No" AND lmgzn_approve="Yes" ORDER BY lmgzn_issue_pub_date DESC'; $qlateSelVal = mysql_query($sellateqry); //$originalDate=$qlmgznFetchVa1['lmgzn_issue_pub_date']; while($qlmgnFetchVa1=mysql_fetch_array($qlateSelVal)) { // $originalDate=$qlmgnFetchVa1['lmgzn_issue_pub_date']; $newDate = date("d-M-Y",strtotime($qlmgnFetchVa1['lmgzn_issue_pub_date'])); $selected=($newDate==$pdate)?" selected='true'":""; $select_box .="<option value='".$qlmgnFetchVa1['lmgzn_issue_pub_date']."' ".$selected.">".$newDate."</option>"; } return $select_box; }*/ //added by navneet for use display time in select box date 03/04/2013 function GetHour($hour)//===function for date Hour====== { $array=array(0=>'01',1=>'02',2=>'03',3=>'04',4=>'05',5=> '06',6=>'07',7=>'08',8=>'09',9=>'10',10=>'11',11=>'12',12=>'13',13=>'14',14=>'15',15=>'16',16=>'17',17=> '18',18=>'19',19=>'20',20=>'21',22=>'22',23=>'23',24=>'24'); $count=count($array); foreach($array as $val) { if($hour!="") { $sehour=$hour; } else { $sehour='07'; } $selected=($sehour == $val)?" selected='true'":""; $selhour.="<option value=".$val." ".$selected.">".$val."</option>"; } return $selhour; } function GetEventHour($hour)//===function for date Hour====== { $array=array(0=>'01',1=>'02',2=>'03',3=>'04',4=>'05',5=> '06',6=>'07',7=>'08',8=>'09',9=>'10',10=>'11',11=>'12'); $count=count($array); foreach($array as $val) { if($hour!="") { $sehour=$hour; } else { $sehour='07'; } $selected=($sehour == $val)?" selected='true'":""; $selhour.="<option value=".$val." ".$selected.">".$val."</option>"; } return $selhour; } function GetAdmsessonStartHour($hour)//===function for date Hour====== { $array=array(0=>'01',1=>'02',2=>'03',3=>'04',4=>'05',5=> '06',6=>'07',7=>'08',8=>'09',9=>'10',10=>'11',11=>'12'); $count=count($array); foreach($array as $val) { if($hour!="") { $sehour=$hour; } else { $sehour='10'; } $selected=($sehour == $val)?" selected='true'":""; $selhour.="<option value=".$val." ".$selected.">".$val."</option>"; } return $selhour; } function GetAdmsessonEndHour($hour)//===function for date Hour====== { $array=array(0=>'01',1=>'02',2=>'03',3=>'04',4=>'05',5=> '06',6=>'07',7=>'08',8=>'09',9=>'10',10=>'11',11=>'12'); $count=count($array); foreach($array as $val) { if($hour!="") { $sehour=$hour; } else { $sehour='01'; } $selected=($sehour == $val)?" selected='true'":""; $selhour.="<option value=".$val." ".$selected.">".$val."</option>"; } return $selhour; } function GetMinute($minute)//===function for date Minute====== { $array=array(0=>'00',1=>'05',2=>'10',3=>'15',4=>'20',5=> '25',6=>'30',7=>'35',8=>'40',9=>'45',10=>'50',11=>'55'); $count=count($array); foreach($array as $val) { $selected=($minute == $val)?" selected='true'":""; $selminute.="<option value=".$val." ".$selected.">".$val."</option>"; } return $selminute; } function GetAMPM($id)//===function for date AM PM====== { if($id=='am') { $selected1=" selected='true'"; } else if($id=='pm') { $selected2=" selected='true'"; } $option = "<option value='am' ".$selected1.">AM</option> <option value='pm' ".$selected2.">PM</option>"; echo $option; } //added by navneet for use display time in select box function GetDay($day)//===function for date DAY====== { $selday='<option value="">Day</option>'; for($i=1;$i<=31;$i++) { $selected=($day == $i)?" selected='true'":""; $selday.="<option value='".$i."' ".$selected.">".$i."</option>"; } return $selday; } function GetMonth($month) { //$selmonth='<select id="cmbmonth" name="cmbmonth"> $selmonth='<option value="">Month</option>'; $Month_Array=array('01'=>"Jan",'02'=>"Feb",'03'=>"Mar",'04'=>"Apr",'05'=>"May",'06'=>"Jun",'07'=>"Jul",'08'=>"Aug",'09'=>"Sep",'10'=>"Oct",'11'=>"Nov",'12'=>"Dec"); foreach($Month_Array as $numkey=>$monthname) { $selected=($numkey == $month)?" selected=\"selected\"":""; $selmonth.="<option value=".$numkey." $selected>".$monthname."</option>"; } return $selmonth; } function GetYear($year)//===function for date YEAR====== { $selyear='<option value="">Year</option>'; for($i=2000;$i<=2020;$i++) { $selected=($year == $i)?" selected='true'":""; $selyear.="<option value='".$i."' ".$selected.">".$i."</option>"; } return $selyear; } function GetuploadissueYear($year)//===function for date YEAR====== { $selyear='<option value="">Year</option>'; for($i=1875;$i<=2020;$i++) { $selected=($year == $i)?" selected='true'":""; $selyear.="<option value='".$i."' ".$selected.">".$i."</option>"; } return $selyear; } function GetMagazineYear($year)//===function for date Magazine YEAR====== { $selyear='<option value="">Year</option>'; for($i=2013;$i>=1901;$i--) { $selected=($year == $i)?" selected='true'":""; $selyear.="<option value='".$i."' ".$selected.">".$i."</option>"; } return $selyear; } function GetBYear($year)//===function for date YEAR====== { $selyear='<option value="0000">Year</option>'; for($i=1950;$i<=2012;$i++) { $selected=($year == $i)?" selected='true'":""; $selyear.="<option value='".$i."' ".$selected.">".$i."</option>"; } return $selyear; } function getFieldValue($fieldName,$tblname,$whereField) //Get field value in the database// { $sel_query=mysql_query("select ".$fieldName." from ".$tblname." where ".$whereField); $sel_row=mysql_fetch_object($sel_query); return $field_value=$sel_row->$fieldName; } function getFieldValueArray($fieldName,$tblname,$whereField) //Get field value in the database arvind// { $ffield=explode(',',$fieldName); foreach($ffield as $value) { $sel_query=mysql_query("select ".$value." from ".$tblname." where ".$whereField); $sel_row=mysql_fetch_array($sel_query); $returnval[]=$sel_row[$value]; } return $returnval; } function getFieldsValueArray($FieldNames,$TableName,$WhereCondition) // table field name | table name | where condition { $sel_query=mysql_query("SELECT ".$FieldNames." FROM ".$TableName." WHERE ".$WhereCondition) or GoToErrorPage(); while($sel_row=mysql_fetch_array($sel_query)) { $returnval[]=$sel_row[$FieldNames]; } return $returnval; } function getNumrowsValue($fieldName,$tblname,$whereField) //Get field value in the database// { $sel_query=mysql_query("select ".$fieldName." from ".$tblname." where ".$whereField); $sel_row=mysql_num_rows($sel_query); return $field_value=$sel_row; } function SuccessMessage($msg) //this is used only successfully message { if($msg!="") { return '<tr><td align="center" colspan="2" class="msgvar block_msg">'.$msg.'</td></tr>'; } else { return ''; } } function GoToErrorPage() { header('Location:arya_errorpage.php'); echo "<script language=javascript>document.location='arya_errorpage.php';</script>"; exit; } //============================================== function GetAdminCountry($id) //this is used for get country that are visible for admin { $qrySelcountry = "SELECT * FROM arya_country WHERE cnt_delstatus='No' AND cnt_adminvisible='Yes' ORDER BY cnt_name ASC"; $qSelcountry = mysql_query($qrySelcountry); while($qFetchcountry = mysql_fetch_array($qSelcountry)) { $selected=($qFetchcountry["cnt_id"] == $id)?"selected='true'":""; $nvOptionState .= "<option value=\"".$qFetchcountry["cnt_id"]."\" $selected>".$qFetchcountry["cnt_name"]."</option>"; } return $nvOptionState; } function GetCountry($id) //this is used for get country of country table and get state of state table { $qrySelcountry = "SELECT * FROM arya_country WHERE cnt_delstatus='No' AND cnt_clientvisible='Yes' ORDER BY cnt_name ASC"; $qSelcountry = mysql_query($qrySelcountry); while($qFetchcountry = mysql_fetch_array($qSelcountry)) { $selected=($qFetchcountry["cnt_id"] == $id)?"selected='true'":""; $nvOptionState .= "<option value=\"".$qFetchcountry["cnt_id"]."\"$selected> ".$qFetchcountry["cnt_name"]."</option>"; } return $nvOptionState; } function GetState($stateid,$countryid)// this function use for select contry then display state { if($countryid!="") { $qrySelstate = "SELECT * FROM arya_state where cnt_id='".$countryid."' AND state_delstatus='No' AND state_clientvisible='Yes' order by state_name ASC"; } else { $qrySelstate = "SELECT * FROM arya_state where cnt_id='87' order by state_name ASC"; } $sel_query = mysql_query($qrySelstate); while($sel_row=mysql_fetch_array($sel_query)) { $selected=($sel_row["state_id"] == $stateid)?" selected='true'":""; $select_box.="<option value='".$sel_row['state_id']."' ".$selected."> ".$sel_row['state_name']."</option>"; } return $select_box; } function GettopstoryState($stateid,$countryid)// this function use for select contry then display state { if($countryid!="") { $qrySelstate = "SELECT * FROM arya_state where cnt_id='".$countryid."' AND state_delstatus='No' AND state_clientvisible='Yes' order by state_name ASC"; } $sel_query = mysql_query($qrySelstate); while($sel_row=mysql_fetch_array($sel_query)) { $selected=($sel_row["state_id"] == $stateid)?" selected='true'":""; $select_box.="<option value='".$sel_row['state_id']."' ".$selected."> ".$sel_row['state_name']."</option>"; } return $select_box; } function GetCity($cityid,$stateid,$countryid) //thi is used to display city in select box { if($countryid!=0 && $stateid!=0) { $qrySelCity="SELECT * FROM arya_city WHERE cnt_id='".$countryid."' AND state_id='".$stateid."' AND city_delstatus='No' AND city_clientvisible='Yes' ORDER BY city_name ASC"; } $qSelCity = mysql_query($qrySelCity); while($qFetchCity = mysql_fetch_array($qSelCity)) { $selected=($qFetchCity["city_id"] == $cityid)?"selected='true'":""; $nvOptionCity .= "<option value=\"".$qFetchCity["city_id"]."\" $selected> ".$qFetchCity["city_name"]."</option>"; } return $nvOptionCity; } function Gettopstoryinst($instid,$stateid,$countryid) //thi is used to display city in select box { if($countryid!=0 && $stateid!=0) { $qrySelInst="SELECT * FROM arya_institution WHERE cnt_id='".$countryid."' AND state_id='".$stateid."' AND inst_delstatus='No' ORDER BY inst_name ASC"; } $qSelInst = mysql_query($qrySelInst); while($qFetchInst = mysql_fetch_array($qSelInst)) { $selected=($qFetchInst["inst_id"] == $instid)?"selected='true'":""; $nvOptionInst .= "<option value=\"".$qFetchInst["inst_id"]."\" $selected> ".$qFetchInst["inst_name"]."</option>"; } return $nvOptionInst; } function getInstitutiontype($insttypeid)//this function is used to display the institute type name 17-Sep-2012 { $sel_query=mysql_query("select * from arya_institutiontype order by insttype_name asc") or GoToErrorPage(); while($sel_row=mysql_fetch_array($sel_query)) { $selected=($sel_row['insttype_id'] == $insttypeid)?" selected='true'":""; $select_box .="<option value='".$sel_row['insttype_id']."' ".$selected.">".$sel_row["insttype_name"]."</option>"; } return $select_box; } /*function getParentInsttypewithcity($insttypeid,$cityid,$getcityid)//this function is used to display the institute with district name 20-Mar-2013 { $qry="select * from arya_institution order by inst_name asc"; $sel_query=mysql_query($qry) or GoToErrorPage(); while($sel_row=mysql_fetch_array($sel_query)) { $selected=($sel_row['inst_id'] == $insttypeid)?" selected='true'":""; if($getcityid > 0) { $cityname=getFieldValue("city_name","arya_city","city_id='".$getcityid."'"); //login user name } else if($cityid > 0) { $cityname=getFieldValue("city_name","arya_city","city_id='".$cityid."'"); } else { $cityname=getFieldValue("city_name","arya_city","city_id='".$sel_row['city_id']."'"); } if($cityname != "") { $varct="(".$cityname.")"; } $select_box .="<option value='".$sel_row['inst_id']."'".$selected.">".$sel_row["inst_name"]."".$varct."</option>"; } return $select_box; }*/ function getParentInsttypewithcity($insttypeid)//this function is used to display the institute with district name 20-Mar-2013 { $qry="select * from arya_institution order by inst_name asc"; $sel_query=mysql_query($qry) or GoToErrorPage(); while($sel_row=mysql_fetch_array($sel_query)) { $langaugeknow=getFieldValue("meb_langknown","arya_member","login_id='".$_SESSION["uid"]."'"); $language=explode(",",$langaugeknow); $lanid=$_SESSION["vlangid"]; if($lanid=='1') { foreach($language as $val) { if($lanid==$val) { $nvtitle=stripslashes($sel_row['inst_name']); break; } else if($sel_row['inst_namehindi'] !="") { $nvtitle=stripslashes($sel_row['inst_namehindi']); } else { $nvtitle=stripslashes($sel_row['inst_name']); } } } if($lanid=='2') { foreach($language as $val) { if($lanid==$val) { if($sel_row['inst_namehindi']!="") { $nvtitle=stripslashes($sel_row['inst_namehindi']); break; } else { $nvtitle=stripslashes($sel_row['inst_name']); } } else if($sel_row['inst_namehindi'] !="") { $nvtitle=stripslashes($sel_row['inst_namehindi']); } else { $nvtitle=stripslashes($sel_row['inst_name']); } } } else if($lanid > '2') { foreach($language as $val) { if($lanid==$val) { if($sel_row['inst_nameother']!="") { $nvtitle=stripslashes($sel_row['inst_nameother']); } else if($sel_row['inst_namehindi'] !="") { $nvtitle=stripslashes($sel_row['inst_namehindi']); } else { $nvtitle=stripslashes($sel_row['inst_name']); } } else if($sel_row['inst_namehindi'] !="") { $nvtitle=stripslashes($sel_row['inst_namehindi']); } else { $nvtitle=stripslashes($sel_row['inst_name']); } } } else if($lanid == 0) { $nvtitle=stripslashes($sel_row['inst_name']); } $selected=($sel_row['inst_id'] == $insttypeid)?" selected='true'":""; $cityname=getFieldValue("city_name","arya_city","city_id='".$sel_row['city_id']."'"); $varct=''; if($cityname != "") { $varct="(".$cityname.")"; } $select_box .="<option value='".$sel_row['inst_id']."'".$selected.">".$nvtitle."".$varct."</option>"; } return $select_box; } function getEventCommingWithYear($eid,$instid,$year) //this function is used to get event list { if($instid!="") { $qrySelstate = "SELECT * FROM arya_event where inst_id='".$instid."' AND event_delstatus='No' AND event_approve='Yes' order by event_title ASC"; } $sel_query = mysql_query($qrySelstate); while($sel_row=mysql_fetch_array($sel_query)) { $smddate=getFieldValue("event_smddate","arya_event","event_id='".$eid."'"); //login user name $dateex=explode("-",$smddate); $postday=$dateex[0]; $postmonth=$dateex[1]; $postyear=$dateex[2]; if($postday != "") { $varct="(".$postday.")"; } $langaugeknow=getFieldValue("meb_langknown","arya_member","login_id='".$_SESSION["uid"]."'"); $language=explode(",",$langaugeknow); $lanid=$_SESSION["vlangid"]; if($lanid=='1') { foreach($language as $val) { if($lanid==$val) { $nvtitle=stripslashes($sel_row['event_title']); break; } else if($sel_row['event_titlehindi'] !="") { $nvtitle=stripslashes($sel_row['event_titlehindi']); } else { $nvtitle=stripslashes($sel_row['event_title']); } } } if($lanid=='2') { foreach($language as $val) { if($lanid==$val) { if($sel_row['event_titlehindi']!="") { $nvtitle=stripslashes($sel_row['event_titlehindi']); break; } else { $nvtitle=stripslashes($sel_row['event_title']); } } else if($sel_row['event_titlehindi'] !="") { $nvtitle=stripslashes($sel_row['event_titlehindi']); } else { $nvtitle=stripslashes($sel_row['event_title']); } } } else if($lanid > '2') { foreach($language as $val) { if($lanid==$val) { if($sel_row['event_titleother']!="") { $nvtitle=stripslashes($sel_row['event_titleother']); } else if($sel_row['event_titlehindi'] !="") { $nvtitle=stripslashes($sel_row['event_titlehindi']); } else { $nvtitle=stripslashes($sel_row['event_title']); } } else if($sel_row['event_titlehindi'] !="") { $nvtitle=stripslashes($sel_row['event_titlehindi']); } else { $nvtitle=stripslashes($sel_row['event_title']); } } } else if($lanid == 0) { $nvtitle=stripslashes($sel_row['event_title']); } $selected=($sel_row["event_id"] == $eid)?" selected":""; $select_box.="<option value='".$sel_row['event_id']."' ".$selected.">".$nvtitle."".$varct."</option>"; } return $select_box; } function getEvent($eventid)//this function is used to display the event name { $sel_query=mysql_query("select * from arya_event order by event_id asc") or GoToErrorPage(); while($sel_row=mysql_fetch_array($sel_query)) { $langaugeknow=getFieldValue("meb_langknown","arya_member","login_id='".$_SESSION["uid"]."'"); $language=explode(",",$langaugeknow); $lanid=$_SESSION["vlangid"]; if($lanid=='1') { foreach($language as $val) { if($lanid==$val) { $nvtitle=stripslashes($sel_row['event_title']); break; } else if($sel_row['event_titlehindi'] !="") { $nvtitle=stripslashes($sel_row['event_titlehindi']); } else { $nvtitle=stripslashes($sel_row['event_title']); } } } if($lanid=='2') { foreach($language as $val) { if($lanid==$val) { if($sel_row['event_titlehindi']!="") { $nvtitle=stripslashes($sel_row['event_titlehindi']); break; } else { $nvtitle=stripslashes($sel_row['event_title']); } } else if($sel_row['event_titlehindi'] !="") { $nvtitle=stripslashes($sel_row['event_titlehindi']); } else { $nvtitle=stripslashes($sel_row['event_title']); } } } else if($lanid > '2') { foreach($language as $val) { if($lanid==$val) { if($sel_row['event_titleother']!="") { $nvtitle=stripslashes($sel_row['event_titleother']); } else if($sel_row['event_titlehindi'] !="") { $nvtitle=stripslashes($sel_row['event_titlehindi']); } else { $nvtitle=stripslashes($sel_row['event_title']); } } else if($sel_row['event_titlehindi'] !="") { $nvtitle=stripslashes($sel_row['event_titlehindi']); } else { $nvtitle=stripslashes($sel_row['event_title']); } } } else if($lanid == 0) { $nvtitle=stripslashes($sel_row['event_title']); } $selected=($sel_row['event_id'] == $eventid)?" selected='true'":""; $select_box .="<option value='".$sel_row['event_id']."' ".$selected.">".$nvtitle."</option>"; } return $select_box; } function getNews($newsid)//This function is used to display the news name { $sel_query=mysql_query("select * from arya_news order by news_title asc") or GoToErrorPage(); while($sel_row=mysql_fetch_array($sel_query)) { $langaugeknow=getFieldValue("meb_langknown","arya_member","login_id='".$_SESSION["uid"]."'"); $language=explode(",",$langaugeknow); $lanid=$_SESSION["vlangid"]; if($lanid=='1') { foreach($language as $val) { if($lanid==$val) { $nvtitle=stripslashes($sel_row['news_title']); break; } else if($sel_row['news_titlehindi'] !="") { $nvtitle=stripslashes($sel_row['news_titlehindi']); } else { $nvtitle=stripslashes($sel_row['news_title']); } } } if($lanid=='2') { foreach($language as $val) { if($lanid==$val) { if($sel_row['news_titlehindi']!="") { $nvtitle=stripslashes($sel_row['news_titlehindi']); break; } else { $nvtitle=stripslashes($sel_row['news_title']); } } else if($sel_row['news_titlehindi'] !="") { $nvtitle=stripslashes($sel_row['news_titlehindi']); } else { $nvtitle=stripslashes($sel_row['news_title']); } } } else if($lanid > '2') { foreach($language as $val) { if($lanid==$val) { if($sel_row['news_titleother']!="") { $nvtitle=stripslashes($sel_row['news_titleother']); } else if($sel_row['news_titlehindi'] !="") { $nvtitle=stripslashes($sel_row['news_titlehindi']); } else { $nvtitle=stripslashes($sel_row['news_title']); } } else if($sel_row['news_titlehindi'] !="") { $nvtitle=stripslashes($sel_row['news_titlehindi']); } else { $nvtitle=stripslashes($sel_row['news_title']); } } } else if($lanid == 0) { $nvtitle=stripslashes($sel_row['news_title']); } $selected=($sel_row['news_id'] == $newsid)?" selected='true'":""; $select_box .="<option value='".$sel_row['news_id']."' ".$selected.">".$nvtitle."</option>"; } return $select_box; } function getInstitution($instid,$usersessid)//This function is used to display the institute { $sel_query=mysql_query("SELECT * FROM arya_adminpendingrequest WHERE pend_clientuserid='".$usersessid."' AND pend_approve='Approved' AND pend_instormagzn='Yes'") or GoToErrorPage(); while($fetchvalinst=mysql_fetch_array($sel_query)) { $fetchinstid=$fetchvalinst["pend_instid"]; $fetchinstname=getFieldValue('inst_name','arya_institution','inst_id="'.$fetchinstid.'"'); $fetchinstnamehindi=getFieldValue('inst_namehindi','arya_institution','inst_id="'.$fetchinstid.'"'); $fetchinstnameother=getFieldValue('inst_nameother','arya_institution','inst_id="'.$fetchinstid.'"'); $langaugeknow=getFieldValue("meb_langknown","arya_member","login_id='".$_SESSION["uid"]."'"); $language=explode(",",$langaugeknow); $lanid=$_SESSION["vlangid"]; if($lanid=='1') { foreach($language as $val) { if($lanid==$val) { $nvtitle=stripslashes($fetchinstname); break; } else if($fetchinstnamehindi !="") { $nvtitle=stripslashes($fetchinstnamehindi); } else { $nvtitle=stripslashes($fetchinstname); } } } if($lanid=='2') { foreach($language as $val) { if($lanid==$val) { if($fetchinstnamehindi!="") { $nvtitle=stripslashes($fetchinstnamehindi); break; } else { $nvtitle=stripslashes($fetchinstname); } } else if($fetchinstnamehindi !="") { $nvtitle=stripslashes($fetchinstnamehindi); } else { $nvtitle=stripslashes($fetchinstname); } } } else if($lanid > '2') { foreach($language as $val) { if($lanid==$val) { if($fetchinstnameother!="") { $nvtitle=stripslashes($fetchinstnameother); } else if($fetchinstnamehindi !="") { $nvtitle=stripslashes($fetchinstnamehindi); } else { $nvtitle=stripslashes($fetchinstname); } } else if($fetchinstnamehindi !="") { $nvtitle=stripslashes($fetchinstnamehindi); } else { $nvtitle=stripslashes($fetchinstname); } } } else if($lanid == 0) { $nvtitle=stripslashes($fetchinstname); } $selected=($fetchinstid == $instid)?" selected='true'":""; $select_box.="<option value='".$fetchinstid."' ".$selected."> ".$nvtitle."</option>"; } return $select_box; } function random_string($len=5, $str='') //Make 17-07-12 Arvind { for($i=1; $i<=$len; $i++) { //generates a random number that will be the ASCII code of the character. We only want numbers (ascii code from 48 to 57) and caps letters. $ord=rand(48, 90); if((($ord >= 48) && ($ord <= 57)) || (($ord >= 65) && ($ord <= 90))) $str.=chr($ord); //If the number is not good we generate another one else $str.=random_string(1); } return $str; } function getInstLevel($id) //This function use in Institution level list { if($id=='1') { $selected1=" selected='true'"; } else if($id=='2') { $selected2=" selected='true'"; } $option = "<option value='1' ".$selected1.">Major Level</option> <option value='2' ".$selected2.">Local Level</option>"; echo $option; } function getFestival($fstvlid)//this function is used to display the festival { $sel_query=mysql_query("select * from arya_festival where fstvl_delstatus='No' order by fstvl_title asc"); $select_box='<option value="0">Select Festival</option>'; while($sel_row=mysql_fetch_array($sel_query)) { $selected=($sel_row['fstvl_id'] == $fstvlid)?" selected='true'":""; $select_box.="<option value='".$sel_row['fstvl_id']."' ".$selected.">".$sel_row["fstvl_title"]."</option>"; } return $select_box; } function getEventCategory($categoryId)// this function is used to event searching by Nitesh 16-10-12 { $sel_query=mysql_query("select * from arya_ecategory WHERE ecat_delstatus='No' order by ecat_name asc"); while($sel_row=mysql_fetch_array($sel_query)) { $selected=($sel_row['ecat_id'] == $categoryId)?" selected='true'":""; $select_box.="<option value='".$sel_row['ecat_id']."' ".$selected.">".$sel_row["ecat_name"]."</option>"; } return $select_box; } function getinstMagazineTitle($mid,$instmgzid) //this function is used to get Iinstitution wise Magazine title list by Nitesh 10-05-13 { $qrySelVal = "SELECT * FROM arya_magazines WHERE inst_id='".$instmgzid."' AND mgzn_showhome='Yes' AND mgzn_approve='Yes' AND mgzn_delstatus='No' ORDER BY mgzn_title ASC"; $qSelVal = mysql_query($qrySelVal); while($qFetchVa = mysql_fetch_array($qSelVal)) { $langaugeknow=getFieldValue("meb_langknown","arya_member","login_id='".$_SESSION["uid"]."'"); $language=explode(",",$langaugeknow); $lanid=$_SESSION["vlangid"]; if($lanid=='1') { foreach($language as $val) { if($lanid==$val) { $nvtitle=stripslashes($qFetchVa['mgzn_title']); break; } else if($qFetchVa['mgzn_titlehindi'] !="") { $nvtitle=stripslashes($qFetchVa['mgzn_titlehindi']); } else { $nvtitle=stripslashes($qFetchVa['mgzn_title']); } } } if($lanid=='2') { foreach($language as $val) { if($lanid==$val) { if($qFetchVa['mgzn_titlehindi']!="") { $nvtitle=stripslashes($qFetchVa['mgzn_titlehindi']); break; } else { $nvtitle=stripslashes($qFetchVa['mgzn_title']); } } else if($qFetchVa['mgzn_titlehindi'] !="") { $nvtitle=stripslashes($qFetchVa['mgzn_titlehindi']); } else { $nvtitle=stripslashes($qFetchVa['mgzn_title']); } } } else if($lanid > '2') { foreach($language as $val) { if($lanid==$val) { if($qFetchVa['mgzn_titleother']!="") { $nvtitle=stripslashes($qFetchVa['mgzn_titleother']); } else if($qFetchVa['mgzn_titlehindi'] !="") { $nvtitle=stripslashes($qFetchVa['mgzn_titlehindi']); } else { $nvtitle=stripslashes($qFetchVa['mgzn_title']); } } else if($qFetchVa['mgzn_titlehindi'] !="") { $nvtitle=stripslashes($qFetchVa['mgzn_titlehindi']); } else { $nvtitle=stripslashes($qFetchVa['mgzn_title']); } } } else if($lanid == 0) { $nvtitle=stripslashes($qFetchVa['mgzn_title']); } $selected=($qFetchVa["mgzn_id"] == $mid)?"selected='true'":""; $nvOptionVal .= "<option value=\"".$qFetchVa["mgzn_id"]."\" $selected> ".$nvtitle."</option>"; } return $nvOptionVal; } function getMagazineTitle($mid,$userid) //this function is used to get Magazine title list by Vaishali 22-10-12 { $qrySelVal = "SELECT * FROM arya_magazines WHERE mgzn_clientuserid='".$userid."' AND mgzn_showhome='Yes' AND mgzn_approve='Yes' AND mgzn_delstatus='No' ORDER BY mgzn_title ASC"; $qSelVal = mysql_query($qrySelVal); while($qFetchVa = mysql_fetch_array($qSelVal)) { $langaugeknow=getFieldValue("meb_langknown","arya_member","login_id='".$_SESSION["uid"]."'"); $language=explode(",",$langaugeknow); $lanid=$_SESSION["vlangid"]; if($lanid=='1') { foreach($language as $val) { if($lanid==$val) { $nvtitle=stripslashes($qFetchVa['mgzn_title']); break; } else if($qFetchVa['mgzn_titlehindi'] !="") { $nvtitle=stripslashes($qFetchVa['mgzn_titlehindi']); } else { $nvtitle=stripslashes($qFetchVa['mgzn_title']); } } } if($lanid=='2') { foreach($language as $val) { if($lanid==$val) { if($qFetchVa['mgzn_titlehindi']!="") { $nvtitle=stripslashes($qFetchVa['mgzn_titlehindi']); break; } else { $nvtitle=stripslashes($qFetchVa['mgzn_title']); } } else if($qFetchVa['mgzn_titlehindi'] !="") { $nvtitle=stripslashes($qFetchVa['mgzn_titlehindi']); } else { $nvtitle=stripslashes($qFetchVa['mgzn_title']); } } } else if($lanid > '2') { foreach($language as $val) { if($lanid==$val) { if($qFetchVa['mgzn_titleother']!="") { $nvtitle=stripslashes($qFetchVa['mgzn_titleother']); } else if($qFetchVa['mgzn_titlehindi'] !="") { $nvtitle=stripslashes($qFetchVa['mgzn_titlehindi']); } else { $nvtitle=stripslashes($qFetchVa['mgzn_title']); } } else if($qFetchVa['mgzn_titlehindi'] !="") { $nvtitle=stripslashes($qFetchVa['mgzn_titlehindi']); } else { $nvtitle=stripslashes($qFetchVa['mgzn_title']); } } } else if($lanid == 0) { $nvtitle=stripslashes($qFetchVa['mgzn_title']); } $selected=($qFetchVa["mgzn_id"] == $mid)?"selected='true'":""; $nvOptionVal .= "<option value=\"".$qFetchVa["mgzn_id"]."\" $selected> ".$nvtitle."</option>"; } return $nvOptionVal; } function getmgznLmgzn($mid) //this function is used to get Magazine title list Lateast Magazine wise by navneet 09-09-2013 { $qrySelVal = "SELECT * FROM arya_magazines WHERE mgzn_showhome='Yes' AND mgzn_delstatus='No' AND mgzn_approve='Yes' order by mgzn_sequence DESC"; $qSelVal = mysql_query($qrySelVal); while($qFetchVa = mysql_fetch_array($qSelVal)) { $mgznid[]=$qFetchVa["mgzn_id"]; } $qrylmgznSelVal = "SELECT * FROM arya_latestmagazines WHERE lmgzn_visible='Yes' AND lmgzn_delstatus='No' AND lmgzn_approve='Yes' order by mgzn_id DESC"; $qlmgznSelVal = mysql_query($qrylmgznSelVal); while($qlmgznFetchVa = mysql_fetch_array($qlmgznSelVal)) { $lmgznid[]=$qlmgznFetchVa["mgzn_id"]; } $uniquearr=array_unique($lmgznid); $result = array_intersect($uniquearr, $lmgznid); $commaList = implode(', ', $result); $qrylmgznSel = "SELECT * FROM arya_magazines WHERE mgzn_id IN($commaList) AND mgzn_showhome='Yes' AND mgzn_delstatus='No' AND mgzn_approve='Yes' order by mgzn_title ASC"; $sellmgznres=mysql_query($qrylmgznSel); while($sel_row=mysql_fetch_array($sellmgznres)) { $selected=($sel_row['mgzn_id'] == $mid)?" selected='true'":""; $langval=$sel_row['mgzn_id']; $select_box.="<option value='".$langval."' ".$selected.">".$sel_row['mgzn_title']."</option>"; } return $select_box; } function MyMagazineTitle($mid,$userid) //this function is used to get Magazine title list by Vaishali 22-10-12 { $qrySelVal = "SELECT * FROM arya_adminpendingrequest WHERE pend_clientuserid='".$userid."' AND pend_approve='Approved' AND pend_instormagzn='No'"; $qSelVal = mysql_query($qrySelVal); while($qFetchVa = mysql_fetch_array($qSelVal)) { $fetchmgzid=$qFetchVa["pend_mgzid"]; $fetchmgzname=getFieldValue('mgzn_title','arya_magazines','mgzn_id='.$fetchmgzid.''); $fetchmgznamehindi=getFieldValue('mgzn_titlehindi','arya_magazines','mgzn_id='.$fetchmgzid.''); $fetchmgznameother=getFieldValue('mgzn_titleother','arya_magazines','mgzn_id='.$fetchmgzid.''); $langaugeknow=getFieldValue("meb_langknown","arya_member","login_id='".$_SESSION["uid"]."'"); $language=explode(",",$langaugeknow); $lanid=$_SESSION["vlangid"]; if($lanid=='1') { foreach($language as $val) { if($lanid==$val) { $nvtitle=stripslashes($fetchmgzname); break; } else if($fetchmgznamehindi !="") { $nvtitle=stripslashes($fetchmgznamehindi); } else { $nvtitle=stripslashes($fetchmgzname); } } } if($lanid=='2') { foreach($language as $val) { if($lanid==$val) { if($fetchmgznamehindi!="") { $nvtitle=stripslashes($fetchmgznamehindi); break; } else { $nvtitle=stripslashes($fetchmgzname); } } else if($fetchmgznamehindi !="") { $nvtitle=stripslashes($fetchmgznamehindi); } else { $nvtitle=stripslashes($fetchmgzname); } } } else if($lanid > '2') { foreach($language as $val) { if($lanid==$val) { if($fetchmgznameother!="") { $nvtitle=stripslashes($fetchmgznameother); } else if($fetchmgznamehindi !="") { $nvtitle=stripslashes($fetchmgznamehindi); } else { $nvtitle=stripslashes($fetchmgzname); } } else if($fetchmgznamehindi !="") { $nvtitle=stripslashes($fetchmgznamehindi); } else { $nvtitle=stripslashes($fetchmgzname); } } } else if($lanid == 0) { $nvtitle=stripslashes($fetchmgzname); } if($nvtitle!="") { $selected=($fetchmgzid == $mid)?"selected='true'":""; $nvOptionVal .= "<option value=\"".$fetchmgzid."\" $selected> ".$nvtitle."</option>"; } } return $nvOptionVal; } function generate_image_thumbnail($imagedir, $thumnaildir, $Thumwidth, $Thumheight) //this is used for create thumbnail for image { list( $source_image_width, $source_image_height, $source_image_type ) = getimagesize( $imagedir ); switch ( $source_image_type ) { case IMAGETYPE_GIF: $source_gd_image = imagecreatefromgif( $imagedir ); break; case IMAGETYPE_JPEG: $source_gd_image = imagecreatefromjpeg( $imagedir ); break; case IMAGETYPE_PNG: $source_gd_image = imagecreatefrompng( $imagedir ); break; } if ( $source_gd_image === false ) { return false; } $thumbnail_image_width = $Thumwidth; $thumbnail_image_height = $Thumheight; $source_aspect_ratio = $source_image_width / $source_image_height; $thumbnail_aspect_ratio = $thumbnail_image_width / $thumbnail_image_height; if ( $source_image_width <= $thumbnail_image_width && $source_image_height <= $thumbnail_image_height ) { $thumbnail_image_width = $source_image_width; $thumbnail_image_height = $source_image_height; } elseif ( $thumbnail_aspect_ratio > $source_aspect_ratio ) { $thumbnail_image_width = ( int ) ( $thumbnail_image_height * $source_aspect_ratio ); } else { $thumbnail_image_height = ( int ) ( $thumbnail_image_width / $source_aspect_ratio ); } $thumbnail_gd_image = imagecreatetruecolor( $thumbnail_image_width, $thumbnail_image_height ); imagecopyresampled( $thumbnail_gd_image, $source_gd_image, 0, 0, 0, 0, $thumbnail_image_width, $thumbnail_image_height, $source_image_width, $source_image_height ); imagejpeg( $thumbnail_gd_image, $thumnaildir, 90 ); imagedestroy( $source_gd_image ); imagedestroy( $thumbnail_gd_image ); return true; } function getFieldValueWithoutWhere($fieldName,$tblname) //this function is use to get value from database without where clause. { $sel_query=mysql_query("select ".$fieldName." from ".$tblname); $sel_row=mysql_fetch_object($sel_query); return $field_value=$sel_row->$fieldName; } function GetLanguage($langid) //this function use for get language list { $sel_query=mysql_query("SELECT lang_id,lang_name,lang_text FROM arya_language where lang_visible='Yes' AND lang_delstatus='No'"); while($sel_row=mysql_fetch_array($sel_query)) { $selected=($sel_row['lang_id'] == $langid)?" selected='true'":""; $langval=$sel_row['lang_name'].",".$sel_row['lang_id']; $select_box.="<option value='".$langval."' ".$selected.">".$sel_row['lang_text']."</option>"; } return $select_box; } function GetAllLanguage($langid) //this function use for get language list { $sel_query=mysql_query("SELECT lang_id,lang_name,lang_text FROM arya_language WHERE lang_visible='Yes' AND lang_delstatus='No'"); while($sel_row=mysql_fetch_array($sel_query)) { $selected=($sel_row['lang_id'] == $langid)?" selected=selected='true'":""; $langval=$sel_row['lang_name'].",".$sel_row['lang_id']; $select_box.="<option value='".$langval."' ".$selected."> ".$sel_row['lang_text']."</option>"; } return $select_box; } function GetSiteLanguage($langid) //this function use for get language list { $sel_query=mysql_query("SELECT lang_id,lang_name,lang_text FROM arya_language where lang_visible='Yes' AND lang_site='Yes' AND lang_delstatus='No'"); while($sel_row=mysql_fetch_array($sel_query)) { $selected=($sel_row['lang_id'] == $langid)?" selected='true'":""; $langval=$sel_row['lang_name'].",".$sel_row['lang_id']; $select_box.="<option value='".$langval."' ".$selected.">".$sel_row['lang_text']."</option>"; } return $select_box; } function GetmgznLanguage($langid) //this function use for get language list { $selqry="SELECT * FROM arya_magazines"; $resqry=mysql_query($selqry); while($fetcharr=mysql_fetch_array($resqry)) { $langidarr[]=$fetcharr["lang_id"]; } $uniquearr=array_unique($langidarr); $sellanqry="SELECT * FROM arya_language"; $reslanqry=mysql_query($sellanqry); while($fetchlanarr=mysql_fetch_array($reslanqry)) { $langlid[]=$fetchlanarr["lang_id"]; } $result = array_intersect($uniquearr, $langlid); $commaList = implode(', ', $result); $sel_query=mysql_query("SELECT lang_id,lang_name,lang_text FROM arya_language where lang_id IN($commaList) AND lang_visible='Yes' AND lang_delstatus='No'"); while($sel_row=mysql_fetch_array($sel_query)) { $selected=($sel_row['lang_id'] == $langid)?" selected='true'":""; $langval=$sel_row['lang_name'].",".$sel_row['lang_id']; $select_box.="<option value='".$langval."' ".$selected.">".$sel_row['lang_text']."</option>"; } return $select_box; } /*function getACategory($catid) //this function is used to display article category { $qrySelACate = "SELECT * FROM arya_artcategory order by acat_name ASC"; $qSelACate = mysql_query($qrySelACate); while($qSelFetchACate = mysql_fetch_array($qSelACate)) { $langaugeknow=getFieldValue("meb_langknown","arya_member","login_id='".$_SESSION["uid"]."'"); $language=explode(",",$langaugeknow); $lanid=$_SESSION["vlangid"]; if($lanid=='1') { foreach($language as $val) { if($lanid==$val) { $nvtitle=stripslashes($qSelFetchACate['acat_name']); break; } else if($qSelFetchACate['acat_namehindi'] !="") { $nvtitle=stripslashes($qSelFetchACate['acat_namehindi']); } else { $nvtitle=stripslashes($qSelFetchACate['acat_name']); } } } if($lanid=='2') { foreach($language as $val) { if($lanid==$val) { if($qSelFetchACate['acat_namehindi']!="") { $nvtitle=stripslashes($qSelFetchACate['acat_namehindi']); break; } else { $nvtitle=stripslashes($qSelFetchACate['acat_name']); } } else if($qSelFetchACate['acat_namehindi'] !="") { $nvtitle=stripslashes($qSelFetchACate['acat_namehindi']); } else { $nvtitle=stripslashes($qSelFetchACate['acat_name']); } } } else if($lanid > '2') { foreach($language as $val) { if($lanid==$val) { if($qSelFetchACate['acat_nameother']!="") { $nvtitle=stripslashes($qSelFetchACate['acat_nameother']); } else if($qSelFetchACate['acat_namehindi'] !="") { $nvtitle=stripslashes($qSelFetchACate['acat_namehindi']); } else { $nvtitle=stripslashes($qSelFetchACate['acat_name']); } } else if($qSelFetchACate['acat_namehindi'] !="") { $nvtitle=stripslashes($qSelFetchACate['acat_namehindi']); } else { $nvtitle=stripslashes($qSelFetchACate['acat_name']); } } } else if($lanid == 0) { $nvtitle=stripslashes($qSelFetchACate['acat_name']); } $selected=($qSelFetchACate["acat_id"] == $catid)?"selected='true'":""; $nvOption .= "<option value=\"".$qSelFetchACate["acat_id"]."\" $selected>".$qSelFetchACate["acat_name"]."</option>"; } return $nvOption; }*/ function getACategory($catid) //this function is used to display article category //reomve arvind bhai 30-05-14 { $qrySelACate = "SELECT * FROM arya_artcategory WHERE acat_delstatus='No' order by acat_name"; $qSelACate = mysql_query($qrySelACate); while($qSelFetchACate = mysql_fetch_array($qSelACate)) { $selected=($qSelFetchACate["acat_id"] == $catid)?"selected='true'":""; $nvOption .= "<option value=\"".$qSelFetchACate["acat_id"]."\" $selected>".$qSelFetchACate["acat_name"]."</option>"; } return $nvOption; } //zencart function //Zencart Password Random function zen_rand($min = null, $max = null) { static $seeded; if (!$seeded) { mt_srand((double)microtime()*1000000); $seeded = true; } if (isset($min) && isset($max)) { if ($min >= $max) { return $min; } else { return mt_rand($min, $max); } } else { return mt_rand(); } } //Zencart Encrypt Password function zen_encrypt_password($plain) { $password = ''; for ($i = 0; $i < 10; $i++) { $password .= zen_rand(); } $salt = substr(md5($password), 0, 2); $password = md5($salt . $plain) . ':' . $salt; return $password; } function getMebTitle($id)//this function display member title { if($id=='1') { $selected1=" selected='true'"; } else if($id=='2') { $selected2=" selected='true'"; } else if($id=='3') { $selected3=" selected='true'"; } else if($id=='4') { $selected4=" selected='true'"; } $option = "<option value= '1' ".$selected1.">Mister-Shriman</option> <option value='2' ".$selected2.">Ms-Shreemati</option> <option value='3' ".$selected3.">Master-Kumar</option> <option value='4' ".$selected4.">Miss-Kumari</option>"; echo $option; } function getECategory($categoryId) { $sel_query=mysql_query("select * from arya_ecategory WHERE ecat_delstatus='No' AND ecat_visible='Yes' order by ecat_name ASC"); while($sel_row=mysql_fetch_array($sel_query)) { $selected=($sel_row['ecat_id'] == $categoryId)?" selected='true'":""; $select_box.="<option value='".$sel_row['ecat_id']."' ".$selected.">".$sel_row["ecat_name"]."</option>"; } return $select_box; } function GetnYear($year)//===function for date YEAR====== { $selyear='<option value="0000">Year</option>'; for($i=2013;$i>=2000;$i--) { $selected=($year == $i)?" selected='true'":""; $selyear.="<option value='".$i."' ".$selected.">".$i."</option>"; } return $selyear; } function getEventComming($eid,$instid) //this function is used to get event list { if($instid!="") { $qrySelstate = "SELECT * FROM arya_event where inst_id='".$instid."' AND event_delstatus='No' order by event_title ASC"; } $sel_query = mysql_query($qrySelstate); while($sel_row=mysql_fetch_array($sel_query)) { $selected=($sel_row["event_id"] == $eid)?" selected='true'":""; $select_box.="<option value='".$sel_row['event_id']."' ".$selected.">".$sel_row['event_title']."</option>"; } return $select_box; } function getIFrequency($freqid) //This function Frequency List use in Magazine Title { if($freqid=='1') { $selected1=" selected='true'"; } else if($freqid=='2') { $selected2=" selected='true'"; } else if($freqid=='3') { $selected3=" selected='true'"; } else if($freqid=='4') { $selected4=" selected='true'"; } else if($freqid=='5') { $selected5=" selected='true'"; } else if($freqid=='6') { $selected6=" selected='true'"; } else if($freqid=='7') { $selected7=" selected='true'"; } else if($freqid=='8') { $selected8=" selected='true'"; } $option = "<option value='1' ".$selected1."> Daily</option> <option value='2' ".$selected2."> Weekly</option> <option value='3' ".$selected3."> Fortnightly</option> <option value='4' ".$selected4."> Monthly</option> <option value='5' ".$selected5."> Bi-Monthly</option> <option value='6' ".$selected6."> Tri-Monthly</option> <option value='7' ".$selected7."> Half-Yearly</option> <option value='8' ".$selected8."> Annually</option>"; echo $option; } function getMyInstitution($instid,$usersessid)//this function is used to display the User created institute Himanshu { $sel_query=mysql_query("SELECT * FROM arya_adminpendingrequest WHERE pend_clientuserid='".$usersessid."' AND pend_approve='Approved' AND pend_instormagzn='Yes'") or GoToErrorPage(); while($sel_row=mysql_fetch_array($sel_query)) { $fetchinstid=$sel_row["pend_instid"]; $fetchinstname=getFieldValue('inst_name','arya_institution','inst_id="'.$fetchinstid.'"'); $fetchinstnamehindi=getFieldValue('inst_namehindi','arya_institution','inst_id="'.$fetchinstid.'"'); $fetchinstnameother=getFieldValue('inst_nameother','arya_institution','inst_id="'.$fetchinstid.'"'); $langaugeknow=getFieldValue("meb_langknown","arya_member","login_id='".$_SESSION["uid"]."'"); $language=explode(",",$langaugeknow); $lanid=$_SESSION["vlangid"]; if($lanid=='1') { foreach($language as $val) { if($lanid==$val) { $nvtitle=stripslashes($fetchinstname); break; } else if($fetchinstnamehindi !="") { $nvtitle=stripslashes($fetchinstnamehindi); } else { $nvtitle=stripslashes($fetchinstname); } } } if($lanid=='2') { foreach($language as $val) { if($lanid==$val) { if($fetchinstnamehindi!="") { $nvtitle=stripslashes($fetchinstnamehindi); break; } else { $nvtitle=stripslashes($fetchinstname); } } else if($fetchinstnamehindi!="") { $nvtitle=stripslashes($fetchinstnamehindi); } else { $nvtitle=stripslashes($fetchinstname); } } } else if($lanid > '2') { foreach($language as $val) { if($lanid==$val) { if($fetchinstnameother!="") { $nvtitle=stripslashes($fetchinstnameother); } else if($fetchinstnamehindi !="") { $nvtitle=stripslashes($fetchinstnamehindi); } else { $nvtitle=stripslashes($fetchinstname); } } else if($fetchinstnamehindi!="") { $nvtitle=stripslashes($fetchinstnamehindi); } else { $nvtitle=stripslashes($fetchinstname); } } } else if($lanid == 0) { $nvtitle=stripslashes($fetchinstname); } if($nvtitle!="") { $selected=($fetchinstid == $instid)?" selected='true'":""; $select_box.="<option value='".$fetchinstid."' ".$selected.">".$nvtitle."</option>"; } } return $select_box; } function getNotifyInstitution($instid)//this function is used to display specific institution type institution { $sel_query=mysql_query("select * from arya_institution WHERE inst_delstatus='No' AND insttype_id='38' AND inst_approve='Yes' order by inst_name asc") or GoToErrorPage(); while($sel_row=mysql_fetch_array($sel_query)) { $selected=($sel_row['inst_id'] == $instid)?" selected='true'":""; $select_box.="<option value='".$sel_row['inst_id']."' ".$selected.">".$sel_row["inst_name"]."</option>"; } return $select_box; } function getInstPublishDate($pdate,$instid)//this function is used to display publish date of magazine date : 26/09/2013 { $qrySelVal = "SELECT * FROM arya_magazines WHERE inst_id='".$instid."' AND mgzn_delstatus='No' AND mgzn_approve='Yes' order by recoddate DESC"; $qSelVal = mysql_query($qrySelVal); while($qFetchVa = mysql_fetch_array($qSelVal)) { $mgznid[]=$qFetchVa["mgzn_id"]; $commaId1 = implode(', ', $mgznid); } $qrylmgznSelVal='SELECT * FROM arya_latestmagazines WHERE mgzn_id IN('.$commaId1.') AND lmgzn_visible="Yes" AND lmgzn_delstatus="No" AND lmgzn_approve="Yes"'; $qlmgznSelVal = mysql_query($qrylmgznSelVal); while($qlmgznFetchVa = mysql_fetch_array($qlmgznSelVal)) { $lmgznid=$qlmgznFetchVa['lmgzn_id']; if($qlmgznFetchVa['lmgzn_issue_pub_date']!='') { $originalId[]=$lmgznid; } } $commaId = implode(', ', $originalId); $sellateqry='SELECT DISTINCT lmgzn_issue_pub_date FROM arya_latestmagazines WHERE lmgzn_id IN('.$commaId.') AND lmgzn_visible="Yes" AND lmgzn_delstatus="No" AND lmgzn_approve="Yes" ORDER BY lmgzn_issue_pub_date DESC'; $qlateSelVal = mysql_query($sellateqry); //$originalDate=$qlmgznFetchVa1['lmgzn_issue_pub_date']; while($qlmgnFetchVa1=mysql_fetch_array($qlateSelVal)) { $originalDate=$qlmgnFetchVa1['lmgzn_issue_pub_date']; $newDate = date("d-M-Y", strtotime($originalDate)); $selected=($qlmgnFetchVa1['lmgzn_issue_pub_date']==$pdate)?" selected='true'":""; $select_box .="<option value='".$qlmgnFetchVa1['lmgzn_issue_pub_date']."' ".$selected.">".$newDate."</option>"; } return $select_box; } function getInstmgznLmgzn($mid,$instid) //this function is used to get Institution Magazine title list Lateast Magazine wise by Nitesh 26-09-2013 { $qrySelVal = "SELECT * FROM arya_magazines WHERE inst_id='".$instid."' AND mgzn_delstatus='No' AND mgzn_approve='Yes' order by mgzn_sequence DESC"; $qSelVal = mysql_query($qrySelVal); while($qFetchVa = mysql_fetch_array($qSelVal)) { $mgznid[]=$qFetchVa["mgzn_id"]; $commaId1 = implode(', ', $mgznid); } $qrylmgznSelVal='SELECT * FROM arya_latestmagazines WHERE mgzn_id IN('.$commaId1.') AND lmgzn_visible="Yes" AND lmgzn_delstatus="No" AND lmgzn_approve="Yes"'; $qlmgznSelVal = mysql_query($qrylmgznSelVal); while($qlmgznFetchVa = mysql_fetch_array($qlmgznSelVal)) { $lmgznid[]=$qlmgznFetchVa["mgzn_id"]; } $uniquearr=array_unique($lmgznid); $result = array_intersect($uniquearr, $lmgznid); $commaList = implode(', ', $result); $qrylmgznSel = "SELECT * FROM arya_magazines WHERE mgzn_id IN($commaList) AND mgzn_delstatus='No' AND mgzn_approve='Yes' order by mgzn_title ASC"; $sellmgznres=mysql_query($qrylmgznSel); while($sel_row=mysql_fetch_array($sellmgznres)) { $selected=($sel_row['mgzn_id'] == $mid)?" selected='true'":""; $langval=$sel_row['mgzn_id']; $select_box.="<option value='".$langval."' ".$selected.">".$sel_row['mgzn_title']."</option>"; } return $select_box; } function GetInstmgznLanguage($langid,$instid) //this function use for get language list { $selqry="SELECT * FROM arya_magazines WHERE inst_id='".$instid."'"; $resqry=mysql_query($selqry); while($fetcharr=mysql_fetch_array($resqry)) { $langidarr[]=$fetcharr["lang_id"]; } $uniquearr=array_unique($langidarr); $sellanqry="SELECT * FROM arya_language"; $reslanqry=mysql_query($sellanqry); while($fetchlanarr=mysql_fetch_array($reslanqry)) { $langlid[]=$fetchlanarr["lang_id"]; } $result = array_intersect($uniquearr, $langlid); $commaList = implode(', ', $result); $sel_query=mysql_query("SELECT lang_id,lang_name,lang_text FROM arya_language where lang_id IN($commaList) AND lang_visible='Yes' AND lang_delstatus='No'"); while($sel_row=mysql_fetch_array($sel_query)) { $selected=($sel_row['lang_id'] == $langid)?" selected='true'":""; $langval=$sel_row['lang_name'].",".$sel_row['lang_id']; $select_box.="<option value='".$langval."' ".$selected.">".$sel_row['lang_text']."</option>"; } return $select_box; } function PersonWebPageLang($lang_id,$id) { $sel_query="SELECT * FROM arya_language where lang_id IN("; $i=1; foreach($lang_id as $val) { if($i==1) { $sel_query.=$val; } else { $sel_query.=",".$val; } $i++; } $sel_query.=") AND lang_visible='Yes' AND lang_delstatus='No'"; $qselquery=mysql_query($sel_query); $selected=""; while($sel_row=mysql_fetch_array($qselquery)) { $selected=($sel_row["lang_id"] == $id)?"selected='selected'":""; echo "<option value=".$sel_row["lang_id"]." ".$selected.">".$sel_row['lang_name']."</option>"; } } function getAreaorInst($id) { if($id=='1' ) { $selected1=" selected='true'"; } else if($id=='2') { $selected2=" selected='true'"; } $option = "<option value='1' ".$selected1.">Area</option> <option value='2' ".$selected2.">Institution</option>"; echo $option; } //below function use for test module start date : 16-01-2014 function getUserLevel($lid) //this function is used to get test level list { $pointget=getFieldsValueArray('upa_pointgiven','arya_userpointactivity','user_id="'.$_SESSION["uid"].'"'); foreach($pointget as $val)//this is used to sum user points { $sum+=$val; } $selmlqry="select * from arya_memberlevel where $sum BETWEEN mlevel_spoint AND mlevel_epoint"; $qselmlqry=mysql_query($selmlqry); $getllevel=mysql_fetch_array($qselmlqry); $powelevelid=$getllevel['mlevel_id']; $qrySelVa = "SELECT * FROM arya_testlevel where mlevel_id='".$powelevelid."' AND tl_enable='Yes' ORDER BY tl_sequence ASC"; $qSelVa = mysql_query($qrySelVa); while($qFetchVa = mysql_fetch_array($qSelVa)) { $selected=($qFetchVa["tl_id"] == $lid)? "selected='true'":""; $nvOptionVa .= "<option value=\"".$qFetchVa["tl_id"]."\" $selected>".$qFetchVa["tl_name"]."</option>"; } return $nvOptionVa; } function getTestLevel($lid) //This function is used to get test level list { $qrySelVa = "SELECT * FROM arya_testlevel where tl_delstatus='No' AND tl_enable='Yes' ORDER BY tl_sequence ASC"; $qSelVa = mysql_query($qrySelVa); while($qFetchVa = mysql_fetch_array($qSelVa)) { $selected=($qFetchVa["tl_id"] == $lid)? "selected='true'":""; $nvOptionVa .= "<option value=\"".$qFetchVa["tl_id"]."\" $selected>".$qFetchVa["tl_name"]."</option>"; } return $nvOptionVa; } function getQuestioncat($QcatId) // This function use for get question category { $sel_query="select * from arya_questioncategory where qcat_delstatus='No' order by qcat_title ASC"; $qryres=mysql_query($sel_query); while($sel_row=mysql_fetch_array($qryres)) { $selected=($sel_row['qcat_id'] == $QcatId)?" selected":""; $select_box.="<option value='".$sel_row['qcat_id']."' ".$selected.">".$sel_row["qcat_title"]."</option>"; } return $select_box; } function GetPreferredLang() //this function use for get language Name { $selmemqry="SELECT * FROM arya_member WHERE login_id='".$_SESSION["uid"]."'"; $resmemqry=mysql_query($selmemqry); $fetchrowmem=mysql_fetch_array($resmemqry); $knowlang=$fetchrowmem["meb_langknown"]; $selprelang="SELECT * FROM arya_language WHERE lang_id IN(".$knowlang.")"; $resprelang=mysql_query($selprelang); while($arrprelang=mysql_fetch_array($resprelang)) { echo $returnprelang = "<option value=\"".$arrprelang["lang_id"]."\" $selected>".$arrprelang["lang_name"]."</option>"; } } function Getdwncate($cateid) //thi is used to display download file category { $qrySelInst="SELECT * FROM arya_filedownloadcategory WHERE fdwncat_delstatus='No' ORDER BY fdwncat_title ASC"; $qSelInst = mysql_query($qrySelInst); while($qFetchInst = mysql_fetch_array($qSelInst)) { $selected=($qFetchInst["fdwncat_id"] == $cateid)?"selected='true'":""; $nvOptionInst .= "<option value=\"".$qFetchInst["fdwncat_id"]."\" ".$selected."> ".$qFetchInst["fdwncat_title"]."</option>"; } return $nvOptionInst; } function Getdwncatelistgrid($cateid) //thi is used to display city in select box { if($cateid!="") { $qrySelInst="SELECT * FROM arya_filedownloadcategory WHERE fdwncat_id='".$cateid."' AND fdwncat_delstatus='No' ORDER BY fdwncat_title ASC"; } else { $qrySelInst="SELECT * FROM arya_filedownloadcategory WHERE fdwncat_delstatus='No' ORDER BY fdwncat_title ASC"; } $qSelInst = mysql_query($qrySelInst); while($qFetchInst = mysql_fetch_array($qSelInst)) { $selected=($qFetchInst["fdwncat_id"] == $instid)?"selected='true'":""; $nvOptionInst .= "<option value=\"".$qFetchInst["fdwncat_id"]."\" $selected> ".$qFetchInst["fdwncat_title"]."</option>"; } return $nvOptionInst; } //above function use for test module end date : 16-01-2014 function GetTopstoriesAdminCountry($id) //this is used for get country that are visible for admin { $qrySelcountry = "SELECT * FROM arya_country WHERE cnt_delstatus='No' AND cnt_adminvisible='Yes' ORDER BY cnt_sequence ASC"; $qSelcountry = mysql_query($qrySelcountry); while($qFetchcountry = mysql_fetch_array($qSelcountry)) { $selected=($qFetchcountry["cnt_id"] == $id)?"selected='true'":""; $nvOptionState .= "<option value=\"".$qFetchcountry["cnt_id"]."\" $selected>".$qFetchcountry["cnt_name"]."</option>"; } return $nvOptionState; } function convertdegitlanguagewise($language,$valueadmin)//create by arvind-13-05-14 { if($language==2 || $language==51 || $language==46)//hindi and sanskrit { $valuename=str_replace('0','०',$valueadmin); $valuename=str_replace('1','१',$valuename); $valuename=str_replace('2','२',$valuename); $valuename=str_replace('3','३',$valuename); $valuename=str_replace('4','४',$valuename); $valuename=str_replace('5','५',$valuename); $valuename=str_replace('6','६',$valuename); $valuename=str_replace('7','७',$valuename); $valuename=str_replace('8','८',$valuename); $valuename=str_replace('9','९',$valuename); } else if($language==3)//gujarati { $valuename=str_replace('0','૦',$valueadmin); $valuename=str_replace('1','૧',$valuename); $valuename=str_replace('2','૨',$valuename); $valuename=str_replace('3','૩',$valuename); $valuename=str_replace('4','૪',$valuename); $valuename=str_replace('5','૫',$valuename); $valuename=str_replace('6','૬',$valuename); $valuename=str_replace('7','૭',$valuename); $valuename=str_replace('8','૮',$valuename); $valuename=str_replace('9','૯',$valuename); } else if($language==41 || $language==57)//Arabic and urdu { $valuename=str_replace('0','٠',$valueadmin); $valuename=str_replace('1','١',$valuename); $valuename=str_replace('2','٢',$valuename); $valuename=str_replace('3','٣',$valuename); $valuename=str_replace('4','٤',$valuename); $valuename=str_replace('5','٥',$valuename); $valuename=str_replace('6','٦',$valuename); $valuename=str_replace('7','٧',$valuename); $valuename=str_replace('8','٨',$valuename); $valuename=str_replace('9','٩',$valuename); } else if($language==40)//Bangali { $valuename=str_replace('0','০',$valueadmin); $valuename=str_replace('1','১',$valuename); $valuename=str_replace('2','২',$valuename); $valuename=str_replace('3','৩',$valuename); $valuename=str_replace('4','৪',$valuename); $valuename=str_replace('5','৫',$valuename); $valuename=str_replace('6','৬',$valuename); $valuename=str_replace('7','৭',$valuename); $valuename=str_replace('8','৮',$valuename); $valuename=str_replace('9','৯',$valuename); } else if($language==42)//chinese { $valuename=str_replace('0','〇',$valueadmin); $valuename=str_replace('1','一',$valuename); $valuename=str_replace('2','二',$valuename); $valuename=str_replace('3','三',$valuename); $valuename=str_replace('4','四',$valuename); $valuename=str_replace('5','五',$valuename); $valuename=str_replace('6','六',$valuename); $valuename=str_replace('7','七',$valuename); $valuename=str_replace('8','八',$valuename); $valuename=str_replace('9','九',$valuename); } else if($language==44)//kannand { $valuename=str_replace('0','೦',$valueadmin); $valuename=str_replace('1','೧',$valuename); $valuename=str_replace('2','೨',$valuename); $valuename=str_replace('3','೩',$valuename); $valuename=str_replace('4','೪',$valuename); $valuename=str_replace('5','೫',$valuename); $valuename=str_replace('6','೬',$valuename); $valuename=str_replace('7','೭',$valuename); $valuename=str_replace('8','೮',$valuename); $valuename=str_replace('9','೯',$valuename); } else if($language==45)//malaliyam { $valuename=str_replace('0','൦',$valueadmin); $valuename=str_replace('1','൧',$valuename); $valuename=str_replace('2','൨',$valuename); $valuename=str_replace('3','൩',$valuename); $valuename=str_replace('4','൪',$valuename); $valuename=str_replace('5','൫',$valuename); $valuename=str_replace('6','൬',$valuename); $valuename=str_replace('7','൭',$valuename); $valuename=str_replace('8','൮',$valuename); $valuename=str_replace('9','൯',$valuename); } else if($language==54)//Tamil { $valuename=str_replace('0','೦',$valueadmin); $valuename=str_replace('1','௧',$valuename); $valuename=str_replace('2','௨',$valuename); $valuename=str_replace('3','௩',$valuename); $valuename=str_replace('4','௪',$valuename); $valuename=str_replace('5','௫',$valuename); $valuename=str_replace('6','௬',$valuename); $valuename=str_replace('7','௭',$valuename); $valuename=str_replace('8','௮',$valuename); $valuename=str_replace('9','௯',$valuename); } else if($language==55)//Telugu { $valuename=str_replace('0','౦',$valueadmin); $valuename=str_replace('1','౧',$valuename); $valuename=str_replace('2','౨',$valuename); $valuename=str_replace('3','౩',$valuename); $valuename=str_replace('4','౪',$valuename); $valuename=str_replace('5','౫',$valuename); $valuename=str_replace('6','౬',$valuename); $valuename=str_replace('7','౭',$valuename); $valuename=str_replace('8','౮',$valuename); $valuename=str_replace('9','౯',$valuename); } else if($language==49)//Panjabi { $valuename=str_replace('0','੦',$valueadmin); $valuename=str_replace('1','੧',$valuename); $valuename=str_replace('2','੨',$valuename); $valuename=str_replace('3','੩',$valuename); $valuename=str_replace('4','੪',$valuename); $valuename=str_replace('5','੫',$valuename); $valuename=str_replace('6','੬',$valuename); $valuename=str_replace('7','੭',$valuename); $valuename=str_replace('8','੮',$valuename); $valuename=str_replace('9','੯',$valuename); } else { $valuename=$valueadmin; } return $valuename; } function GetNotifyYear($year)//===function date YEAR For Upload admission notification created by nitesh====== { $crntyear=date('Y'); $preyear=strtotime('-1 year', strtotime($crntyear)); $nexyear=strtotime('+1 year', strtotime($crntyear)); $Nvpreyear=date('Y',$preyear); $Nvnexyear=date('Y',$nexyear); $selyear='<option value="0000">Year</option>'; for($i=$Nvpreyear;$i<=$Nvnexyear;$i++) { $selected=($year == $i)?" selected='true'":""; $selyear.="<option value='".$i."' ".$selected.">".$i."</option>"; } return $selyear; } function GotoPageNumber($numpages,$data123)//===function for get Total num of pages====== { //$selyear='<option value="0000">Year</option>'; for($m=1;$m<=$numpages;$m++) { //$selected=($data123== $m)?" selected='true'":""; $selected=($data123 == $m)?" selected":""; $selpagenum.="<option value='".$m."' ".$selected.">".$m."</option>"; } return $selpagenum; } function getArtclSortinPosition($id)//this function display position list { if($id=='1') { $selected1=" selected='true'"; } else if($id=='2') { $selected2=" selected='true'"; } else if($id=='3') { $selected3=" selected='true'"; } $option = "<option value='1' ".$selected1.">Upload Date</option> <option value='2' ".$selected2.">Most Popular</option> <option value='3' ".$selected3.">Writing Date</option> "; echo $option; } function getArtcPosition($id)//this function display position list { if($id=='1') { $selected1=" selected='true'"; } else if($id=='2') { $selected2=" selected='true'"; } else if($id=='3') { $selected3=" selected='true'"; } $option = "<option value='1' ".$selected1.">Category</option> <option value='2' ".$selected2.">Language</option> <option value='3' ".$selected3.">Author</option> "; echo $option; } function getAthrname($langid) //this function use for get language list { $sel_query=mysql_query("SELECT DISTINCT athr_id FROM arya_article order by athr_id"); while($sel_row=mysql_fetch_array($sel_query)) { if($sel_row['athr_id']>0) { $selected=($sel_row['athr_id'] == $langid)?" selected":""; $langval=getFieldValue("athr_name","arya_author","athr_id=".$sel_row['prsn_id'].""); $select_box.="<option value='".$sel_row['athr_id']."' ".$selected.">".$langval."</option>"; } } return $select_box; } function GetArtLanguage($langid) //this function use for get language list { $selqry="SELECT * FROM arya_article"; $resqry=mysql_query($selqry); while($fetcharr=mysql_fetch_array($resqry)) { $langidarr[]=$fetcharr["lang_id"]; } $uniquearr=array_unique($langidarr); $sellanqry="SELECT * FROM arya_language"; $reslanqry=mysql_query($sellanqry); while($fetchlanarr=mysql_fetch_array($reslanqry)) { $langlid[]=$fetchlanarr["lang_id"]; } $result = array_intersect($uniquearr, $langlid); $commaList = implode(', ', $result); $sel_query=mysql_query("SELECT lang_id,lang_name,lang_text FROM arya_language where lang_id IN($commaList) AND lang_visible='Yes' AND lang_delstatus='No'"); while($sel_row=mysql_fetch_array($sel_query)) { $selected=($sel_row['lang_id'] == $langid)?" selected='true'":""; $langval=$sel_row['lang_name'].",".$sel_row['lang_id']; $select_box.="<option value='".$langval."' ".$selected.">".$sel_row['lang_text']."</option>"; } return $select_box; } // Matrimony function created by ramesh start function getComplexion($id) { if($id=='Dark') { $selected1=" selected='true'"; } else if($id=='Medium') { $selected2=" selected='true'"; } else if($id=='Wheatish') { $selected3=" selected='true'"; } else if($id=='Fair') { $selected4=" selected='true'"; } else if($id=='Very Fair') { $selected5=" selected='true'"; } $option = "<option value='Dark' ".$selected1.">Dark</option> <option value='Medium' ".$selected2.">Medium</option> <option value='Wheatish' ".$selected3.">Wheatish</option> <option value='Fair' ".$selected4.">Fair</option> <option value='Very Fair' ".$selected5.">Very Fair</option> "; echo $option; } //userful for matrimony Height function getHeight($id) { if($id=='Feet') { $selected1=" selected='true'"; } else if($id=='Inches') { $selected2=" selected='true'"; } $option = "<option value='Feet' ".$selected1.">Feet</option> <option value='Inches' ".$selected2.">Inches</option> "; echo $option; } //userful for matrimony Body type function getBodytype($id) { if($id=='Slim') { $selected1=" selected='true'"; } else if($id=='Average') { $selected2=" selected='true'"; } else if($id=='Atheletic') { $selected3=" selected='true'"; } else if($id=='Heavy') { $selected4=" selected='true'"; } $option = "<option value='Slim' ".$selected1.">Slim</option> <option value='Average' ".$selected2.">Average</option> <option value='Atheletic' ".$selected3.">Atheletic</option> <option value='Heavy' ".$selected4.">Heavy</option> "; echo $option; } //userful for matrimony Special Case in step 3 function getspecialcase($id) { if($id=='None') { $selected1=" selected='true'"; } elseif($id=="Doesn't Matter") { $selected2=" selected='true'"; } elseif($id=="Physically challenged from birth") { $selected3=" selected='true'"; } elseif($id=="Hiv positive") { $selected4=" selected='true'"; } elseif($id=="Mentally challenged from birth") { $selected5=" selected='true'"; } elseif($id=="Accidential / phisical abnormality affecting only looks") { $selected6=" selected='true'"; } elseif($id=="phisical abnormality affecting bodily functions due to accident") { $selected7=" selected='true'"; } elseif($id=="phisically challanged due to accident") { $selected8=" selected='true'"; } elseif($id=="medically challenged condition of one or more vital organs") { $selected9=" selected='true'"; } $option = "<option value='None' ".$selected1.">None</option> <option value='Doesn't Matter' ".$selected2.">Doesn't Matter</option> <option value='Physically challenged from birth' ".$selected3.">Physically challenged from birth</option> <option value='Hiv positive' ".$selected4.">Hiv positive</option> <option value='Mentally challenged from birth' ".$selected5.">Mentally challenged from birth</option> <option value='Accidential / phisical abnormality affecting only looks' ".$selected6.">Accidential / phisical abnormality affecting only looks</option> <option value='phisical abnormality affecting bodily functions due to accident' ".$selected7.">phisical abnormality affecting bodily functions due to accident</option> <option value='phisically challanged due to accident' ".$selected8.">phisically challanged due to accident</option> <option value='medically challenged condition of one or more vital organs' ".$selected9.">medically challenged condition of one or more vital organs</option> "; echo $option; } //===function for Current YEAR in matrimony====== /*function GetCurrYear($year) { $selyear='<option value="">Year</option>'; $a = date('Y'); for($i=$a;$i<=$a+20;$i++) { $selected=($year == $i)?" selected='true'":""; $selyear.="<option value='".$i."' ".$selected.">".$i."</option>"; } return $selyear; }*/ function GetCurrYear($year) { $selyear='<option value="">Year</option>'; $a = date('Y'); for($i=$a;$i>=$a-20;$i--) { $selected=($year == $i)?" selected='true'":""; $selyear.="<option value='".$i."' ".$selected.">".$i."</option>"; } return $selyear; } //userful for matrimony complexion name function getWhtudo($id) { if($id=='Government Job') { $selected1=" selected='true'"; } else if($id=='Private Job') { $selected2=" selected='true'"; } else if($id=='Own Business') { $selected3=" selected='true'"; } else if($id=='Family Business') { $selected4=" selected='true'"; } else if($id=='Unemployed') { $selected5=" selected='true'"; } $option = "<option value='Government Job' ".$selected1.">Government Job</option> <option value='Private Job' ".$selected2.">Private Job</option> <option value='Own Business' ".$selected3.">Own Business</option> <option value='Family Business' ".$selected4.">Family Business</option> <option value='Unemployed' ".$selected5.">Unemployed</option> "; echo $option; } //userful for matrimony in Annual Income function GetAnnIncome($id) { if($id=='below 100000') { $selected1=" selected='true'"; } else if($id=='100000 to 200000') { $selected2=" selected='true'"; } else if($id=='200000 to 300000') { $selected3=" selected='true'"; } else if($id=='300000 to 400000') { $selected4=" selected='true'"; } else if($id=='400000 to 500000') { $selected5=" selected='true'"; } else if($id=='500000 to 600000') { $selected6=" selected='true'"; } else if($id=='600000 to 700000') { $selected7=" selected='true'"; } else if($id=='700000 to 800000') { $selected8=" selected='true'"; } else if($id=='800000 to 900000') { $selected9=" selected='true'"; } else if($id=='900000 to 1000000') { $selected10=" selected='true'"; } $option = "<option value='below 100000' ".$selected1.">below 100000</option> <option value='100000 to 200000' ".$selected2.">100000 to 200000</option> <option value='200000 to 300000' ".$selected3.">200000 to 300000</option> <option value='300000 to 400000' ".$selected4.">300000 to 400000</option> <option value='400000 to 500000' ".$selected5.">400000 to 500000</option> <option value='500000 to 600000' ".$selected6.">500000 to 600000</option> <option value='600000 to 700000' ".$selected7.">600000 to 700000</option> <option value='700000 to 800000' ".$selected8.">700000 to 800000</option> <option value='800000 to 900000' ".$selected9.">800000 to 900000</option> <option value='900000 to 1000000' ".$selected10.">900000 to 1000000</option> "; echo $option; } //userful for matrimony House name function GetHouse($id) { if($id=='Family Owned') { $selected1=" selected='true'"; } else if($id=='Rented') { $selected2=" selected='true'"; } else if($id=='Provided by Employer') { $selected3=" selected='true'"; } $option = "<option value='Family Owned' ".$selected1.">Family Owned</option> <option value='Rented' ".$selected2.">Rented</option> <option value='Provided by Employer' ".$selected3.">Provided by Employer</option> "; echo $option; } //userful for matrimony Location name function GetCurrtLocation($id) { if($id=='Living with family') { $selected1=" selected='true'"; } else if($id=='Living separate') { $selected2=" selected='true'"; } $option = "<option value='Living with family' ".$selected1.">Living with family</option> <option value='Living separate' ".$selected2.">Living separate</option> "; echo $option; } //added by navneet for use display time in select box //userful for matrimony in Profile is being created for function getProcreate($id) { if($id=='Self') { $selected1=" selected='true'"; } else if($id=='Son') { $selected2=" selected='true'"; } else if($id=='Daughter') { $selected3=" selected='true'"; } else if($id=='Sister') { $selected4=" selected='true'"; } else if($id=='Brother') { $selected5=" selected='true'"; } $option = "<option value='Self' ".$selected1.">Self</option> <option value='Son' ".$selected2.">Son</option> <option value='Daughter' ".$selected3.">Daughter</option> <option value='Sister' ".$selected4.">Sister</option> <option value='Brother' ".$selected5.">Brother</option> "; echo $option; } //userful for matrimony in Profile STEP-3 IN DISPLAY SECOND function GetSecond($second)//===function for second====== { $array=array(0=>'00',1=>'01',2=>'02',3=>'03',4=>'04',5=> '05',6=>'06',7=>'07',8=>'08',9=>'09',10=>'10',11=>'11',12=>'12',13=>'13',14=>'14',15=>'15',16=>'16',17=> '17',18=>'18',19=>'19',20=>'20',21=>'21',22=>'22',23=>'23',24=>'24',25=>'25',26=>'26',27=>'27',28=>'28',29=>'29',30=>'30',31=>'31',32=>'32',33=>'33',34=>'34',35=> '35',36=>'36',37=>'37',38=>'38',39=>'39',40=>'40',41=>'41',42=>'42',43=>'43',44=>'44',45=>'45',46=>'46',47=>'47',48=>'48',49=>'49',50=>'50',51=>'51',52=>'52',53=> '53',54=>'54',55=>'55',56=>'56',57=>'57',58=>'58',59=>'59'); $count=count($array); foreach($array as $val) { $selected=($second == $val)?" selected='true'":""; $selsecond.="<option value=".$val." ".$selected.">".$val."</option>"; } return $selsecond; } //userful for matrimony in registration step-4 in Occupation display function getOccupation($id) { if($id=='Working') { $selected1=" selected='true'"; } else if($id=='Unemployed') { $selected2=" selected='true'"; } $option = "<option value='Working' ".$selected1.">Working</option> <option value='Unemployed' ".$selected2.">Unemployed</option> "; echo $option; } //userful for matrimony in registration step 4 in brother function getbrother($id) { if($id=='0') { $selected1=" selected='true'"; } else if($id=='1') { $selected2=" selected='true'"; } else if($id=='2') { $selected3=" selected='true'"; } else if($id=='3') { $selected4=" selected='true'"; } else if($id=='4') { $selected5=" selected='true'"; } else if($id=='5') { $selected6=" selected='true'"; } else if($id=='6') { $selected7=" selected='true'"; } else if($id=='7') { $selected8=" selected='true'"; } else if($id=='8') { $selected9=" selected='true'"; } else if($id=='9') { $selected10=" selected='true'"; } else if($id=='10') { $selected11=" selected='true'"; } $option = "<option value='0' ".$selected1.">0</option> <option value='1' ".$selected2.">1</option> <option value='2' ".$selected3.">2</option> <option value='3' ".$selected4.">3</option> <option value='4' ".$selected5.">4</option> <option value='5' ".$selected6.">5</option> <option value='6' ".$selected7.">6</option> <option value='7' ".$selected8.">7</option> <option value='8' ".$selected9.">8</option> <option value='9' ".$selected10.">9</option> <option value='10' ".$selected11.">10</option> "; echo $option; } //userful for matrimony in registration step-4 in Qualifications display function getQualifications($id) { if($id=='Primary') { $selected1=" selected='true'"; } else if($id=='Secondary') { $selected2=" selected='true'"; } else if($id=='Senior Secondary') { $selected3=" selected='true'"; } else if($id=='Graduate') { $selected4=" selected='true'"; } else if($id=='Post Graduate') { $selected5=" selected='true'"; } else if($id=='Professional') { $selected6=" selected='true'"; } $option = "<option value='Primary' ".$selected1.">Primary</option> <option value='Secondary' ".$selected2.">Secondary</option> <option value='Senior Secondary' ".$selected3.">Senior Secondary</option> <option value='Graduate' ".$selected4.">Graduate</option> <option value='Post Graduate' ".$selected5.">Post Graduate</option> <option value='Professional' ".$selected6.">Professional</option> "; echo $option; } //===function for Current YEAR in matrimony====== function getWeight($weight) { $selweight='<option value="">SELECT</option>'; for($i=41;$i<=141;$i++) { $selected=($weight == $i)?" selected='true'":""; $selweight.="<option value='".$i."' ".$selected.">".$i."</option>"; } return $selweight; } //userful for matrimony in registration step-4 in Kgs display function getKgs($id) { if($id=='Kgs') { $selected1=" selected='true'"; } else if($id=='Pounds') { $selected2=" selected='true'"; } $option = "<option value='Kgs' ".$selected1.">Kgs</option> <option value='Pounds' ".$selected2.">Pounds</option> "; echo $option; } //userful for matrimony in registration step-4 in Height display function getHeights($id) { if($id=='4 ft 5in') { $selected1=" selected='true'"; } elseif($id=='4 ft 6in') { $selected2=" selected='true'"; } elseif($id=='4 ft 7in') { $selected3=" selected='true'"; } elseif($id=='4 ft 8in') { $selected4=" selected='true'"; } elseif($id=='4 ft 9in') { $selected5=" selected='true'"; } elseif($id=='4 ft 10in') { $selected6=" selected='true'"; } elseif($id=='4 ft 11in') { $selected7=" selected='true'"; } elseif($id=='5 ft') { $selected8=" selected='true'"; } elseif($id=='5 ft 1in') { $selected9=" selected='true'"; } elseif($id=='5 ft 2in') { $selected10=" selected='true'"; } elseif($id=='5 ft 3in') { $selected11=" selected='true'"; } elseif($id=='5 ft 4in') { $selected12=" selected='true'"; } elseif($id=='5 ft 5in') { $selected13=" selected='true'"; } elseif($id=='5 ft 6in') { $selected14=" selected='true'"; } elseif($id=='5 ft 7in') { $selected15=" selected='true'"; } elseif($id=='5 ft 8in') { $selected16=" selected='true'"; } elseif($id=='5 ft 9in') { $selected17=" selected='true'"; } elseif($id=='5 ft 10in') { $selected18=" selected='true'"; } elseif($id=='5 ft 11in') { $selected19=" selected='true'"; } elseif($id=='6 ft') { $selected20=" selected='true'"; } elseif($id=='6 ft 1in') { $selected21=" selected='true'"; } elseif($id=='6 ft 2in') { $selected22=" selected='true'"; } elseif($id=='6 ft 3in') { $selected23=" selected='true'"; } elseif($id=='6 ft 4in') { $selected24=" selected='true'"; } elseif($id=='6 ft 5in') { $selected25=" selected='true'"; } elseif($id=='6 ft 6in') { $selected26=" selected='true'"; } elseif($id=='6 ft 7in') { $selected27=" selected='true'"; } elseif($id=='6 ft 8in') { $selected28=" selected='true'"; } elseif($id=='6 ft 9in') { $selected29=" selected='true'"; } elseif($id=='6 ft 10in') { $selected30=" selected='true'"; } elseif($id=='6 ft 11in') { $selected31=" selected='true'"; } elseif($id=='7 ft') { $selected32=" selected='true'"; } $option = "<option value='4 ft 5in' ".$selected1.">4 ft 5in</option> <option value='4 ft 6in' ".$selected2.">4 ft 6in</option> <option value='4 ft 7in' ".$selected3.">4 ft 7in</option> <option value='4 ft 8in' ".$selected4.">4 ft 8in</option> <option value='4 ft 9in' ".$selected5.">4 ft 9in</option> <option value='4 ft 10in' ".$selected6.">4 ft 10in</option> <option value='4 ft 11in' ".$selected7.">4 ft 11in</option> <option value='5 ft' ".$selected8.">5 ft</option> <option value='5 ft 1in' ".$selected9.">5 ft 1in</option> <option value='5 ft 2in' ".$selected10.">5 ft 2in</option> <option value='5 ft 3in' ".$selected11.">5 ft 3in</option> <option value='5 ft 4in' ".$selected12.">5 ft 4in</option> <option value='5 ft 5in' ".$selected13.">5 ft 5in</option> <option value='5 ft 6in' ".$selected14.">5 ft 6in</option> <option value='5 ft 7in' ".$selected15.">5 ft 7in</option> <option value='5 ft 8in' ".$selected16.">5 ft 8in</option> <option value='5 ft 9in' ".$selected17.">5 ft 9in</option> <option value='5 ft 10in' ".$selected18.">5 ft 10in</option> <option value='5 ft 11in' ".$selected19.">5 ft 11in</option> <option value='6 ft' ".$selected20.">6 ft</option> <option value='6 ft 1in' ".$selected21.">6 ft 1in</option> <option value='6 ft 2in' ".$selected22.">6 ft 2in</option> <option value='6 ft 3in' ".$selected23.">6 ft 3in</option> <option value='6 ft 4in' ".$selected24.">6 ft 4in</option> <option value='6 ft 5in' ".$selected25.">6 ft 5in</option> <option value='6 ft 6in' ".$selected26.">6 ft 6in</option> <option value='6 ft 7in' ".$selected27.">6 ft 7in</option> <option value='6 ft 8in' ".$selected28.">6 ft 8in</option> <option value='6 ft 9in' ".$selected29.">6 ft 9in</option> <option value='6 ft 10in' ".$selected30.">6 ft 10in</option> <option value='6 ft 11in' ".$selected31.">6 ft 11in</option> <option value='7 ft' ".$selected32.">7 ft</option> "; echo $option; } //userful for matrimony registration step 3 Highest Qualification name display function GetDegree($id) { if($id=='CA (Chartered Accountant)') { $selected1=" selected='true'"; } else if($id=='CFA (Chartered Financial Analyst)') { $selected2=" selected='true'"; } else if($id=='CS (Company Secretary)') { $selected3=" selected='true'"; } else if($id=='ICWA') { $selected4=" selected='true'"; } else if($id=='Integrated PG') { $selected5=" selected='true'"; } else if($id=='M.Arch. (Architecture)') { $selected6=" selected='true'"; } else if($id=='M.Ed. (Education)') { $selected7=" selected='true'"; } else if($id=='M.Lib.sc (Library Sciences)') { $selected8=" selected='true'"; } else if($id=='M.Plan. (Planning)') { $selected9=" selected='true'"; } else if($id=='Master of Fashion Technology') { $selected10=" selected='true'"; } else if($id=='Master of Health Administration') { $selected11=" selected='true'"; } else if($id=='Master of Hospital Administration') { $selected12=" selected='true'"; } else if($id=='MBA/PGDM') { $selected13=" selected='true'"; } else if($id=='MCA/PGDCA part time') { $selected14=" selected='true'"; } else if($id=='MCA/PGDCA') { $selected15=" selected='true'"; } else if($id=='ME/M.Tech/MS (Engg/Sciences)') { $selected16=" selected='true'"; } else if($id=='MFA (Fine Arts)') { $selected17=" selected='true'"; } else if($id=='ML/LLM (Law)') { $selected18=" selected='true'"; } else if($id=='MSW (Scocial Work)') { $selected19=" selected='true'"; } else if($id=='PG Diploma') { $selected20=" selected='true'"; } else if($id=='M.Com.(Commerce)') { $selected21=" selected='true'"; } else if($id=='M.Sc.(Science)') { $selected22=" selected='true'"; } else if($id=='MA (Arts)') { $selected23=" selected='true'"; } else if($id=='B.Arch (Architecture)') { $selected24=" selected='true'"; } else if($id=='B.Ed (Education)') { $selected25=" selected='true'"; } else if($id=='B.El.Ed (Elementry Education)') { $selected26=" selected='true'"; } else if($id=='B.Lib.Sc (Library Sciences)') { $selected27=" selected='true'"; } else if($id=='B.P.Ed (Phisical Education)') { $selected28=" selected='true'"; } else if($id=='B.Plan (Planning)') { $selected29=" selected='true'"; } else if($id=='Bachelor of Fashion Technology') { $selected30=" selected='true'"; } else if($id=='BBA/BBM/BBS') { $selected31=" selected='true'"; } else if($id=='BCA (Computer Aplication)') { $selected32=" selected='true'"; } else if($id=='BE B.Tech (Engineering)') { $selected33=" selected='true'"; } else if($id=='BFA (Fine Arts)') { $selected34=" selected='true'"; } else if($id=='BHM (Hotel Management)') { $selected35=" selected='true'"; } else if($id=='BL\LLB\BGL (Law)') { $selected36=" selected='true'"; } else if($id=='BSW (Social Work)') { $selected37=" selected='true'"; } else if($id=='B.A.(Arts)') { $selected38=" selected='true'"; } else if($id=='B.Com(Commerce)') { $selected39=" selected='true'"; } else if($id=='B.Sc(Science)') { $selected40=" selected='true'"; } else if($id=='B.Pharm(Pharmacy)') { $selected41=" selected='true'"; } else if($id=='B.V.Sc(Veterinary Science)') { $selected42=" selected='true'"; } else if($id=='BDS(Dental Surgery)') { $selected43=" selected='true'"; } else if($id=='BHMS(Homeopathy)') { $selected44=" selected='true'"; } else if($id=='M.Pharm(Pharmacy)') { $selected45=" selected='true'"; } else if($id=='M.V.Sc(Veterinary Science)') { $selected46=" selected='true'"; } else if($id=='MBBS') { $selected47=" selected='true'"; } else if($id=='MD/MS(Medicine)') { $selected48=" selected='true'"; } else if($id=='MDS(Master of Dental Surgery)') { $selected49=" selected='true'"; } else if($id=='BPT(Physiotherapy)') { $selected50=" selected='true'"; } else if($id=='MPT(Physiotherapy)') { $selected51=" selected='true'"; } else if($id=='M.Phil.(Philosophy)') { $selected52=" selected='true'"; } else if($id=='Ph.D.(Doctorate)') { $selected53=" selected='true'"; } else if($id=='Other Doctorate') { $selected54=" selected='true'"; } else if($id=='Arts/Graphic Designing') { $selected55=" selected='true'"; } else if($id=='Engineering') { $selected56=" selected='true'"; } else if($id=='Fashion/Design') { $selected57=" selected='true'"; } else if($id=='Languages') { $selected58=" selected='true'"; } else if($id=='Pilot Licenses') { $selected59=" selected='true'"; } else if($id=='Other Diploma') { $selected60=" selected='true'"; } else if($id=='12th') { $selected61=" selected='true'"; } else if($id=='10th') { $selected62=" selected='true'"; } $option = " <option disabled='disabled'>----------PG-Professional Courses----------</option> <option value='CA (Chartered Accountant)' ".$selected1.">CA (Chartered Accountant)</option> <option value='CFA (Chartered Financial Analyst)' ".$selected2.">CFA (Chartered Financial Analyst)</option> <option value='CS (Company Secretary)' ".$selected3.">CS (Company Secretary)</option> <option value='ICWA' ".$selected4.">ICWA</option> <option value='Integrated PG' ".$selected5.">Integrated PG</option> <option value='M.Arch. (Architecture)' ".$selected6.">M.Arch. (Architecture)</option> <option value='M.Ed. (Education)' ".$selected7.">M.Ed. (Education)</option> <option value='M.Lib.sc (Library Sciences)' ".$selected8.">M.Lib.sc (Library Sciences)</option> <option value='M.Plan. (Planning)' ".$selected9.">M.Plan. (Planning)</option> <option value='Master of Fashion Technology' ".$selected10.">Master of Fashion Technology</option> <option value='Master of Health Administration' ".$selected11.">Master of Health Administration</option> <option value='Master of Hospital Administration' ".$selected12.">Master of Hospital Administration</option> <option value='MBA/PGDM' ".$selected13.">MBA/PGDM</option> <option value='MCA/PGDCA part time' ".$selected14.">MCA/PGDCA part time</option> <option value='MCA/PGDCA' ".$selected15.">MCA/PGDCA</option> <option value='ME/M.Tech/MS (Engg/Sciences)' ".$selected16.">ME/M.Tech/MS (Engg/Sciences)</option> <option value='MFA (Fine Arts)' ".$selected17.">MFA (Fine Arts)</option> <option value='ML/LLM (Law)' ".$selected18.">ML/LLM (Law)</option> <option value='MSW (Scocial Work)' ".$selected19.">MSW (Scocial Work)</option> <option value='PG Diploma' ".$selected20.">PG Diploma</option> <option disabled='disabled'>----------PG-General Courses----------</option> <option value='M.Com.(Commerce)' ".$selected21.">M.Com.(Commerce)</option> <option value='M.Sc.(Science)' ".$selected22.">M.Sc.(Science)</option> <option value='MA (Arts)' ".$selected23.">MA (Arts)</option> <option disabled='disabled'>----------Graduation-Professional Courses----------</option> <option value='B.Arch (Architecture)' ".$selected24.">B.Arch (Architecture)</option> <option value='B.Ed (Education)' ".$selected25.">B.Ed (Education)</option> <option value='B.El.Ed (Elementry Education)' ".$selected26.">B.El.Ed (Elementry Education)</option> <option value='B.Lib.Sc (Library Sciences)' ".$selected27.">B.Lib.Sc (Library Sciences)</option> <option value='B.P.Ed (Phisical Education)' ".$selected28.">B.P.Ed (Phisical Education)</option> <option value='B.Plan (Planning)' ".$selected29.">B.Plan (Planning)</option> <option value='Bachelor of Fashion Technology' ".$selected30.">Bachelor of Fashion Technology</option> <option value='BBA/BBM/BBS' ".$selected31.">BBA/BBM/BBS</option> <option value='BCA (Computer Aplication)' ".$selected32.">BCA (Computer Aplication)</option> <option value='BE B.Tech (Engineering)' ".$selected33.">BE B.Tech (Engineering)</option> <option value='BFA (Fine Arts)' ".$selected34.">BFA (Fine Arts)</option> <option value='BHM (Hotel Management)' ".$selected35.">BHM (Hotel Management)</option> <option value='BL\LLB\BGL (Law)' ".$selected36.">BL\LLB\BGL (Law)</option> <option value='BSW (Social Work)' ".$selected37.">BSW (Social Work)</option> <option disabled='disabled'>----------Graduation-General Courses----------</option> <option value='B.A.(Arts)' ".$selected38.">B.A.(Arts)</option> <option value='B.Com(Commerce)' ".$selected39.">B.Com(Commerce)</option> <option value='B.Sc(Science)' ".$selected40.">B.Sc(Science)</option> <option disabled='disabled'>----------Medicine (General,Dental,Surgoen)----------</option> <option value='B.Pharm(Pharmacy)' ".$selected41.">B.Pharm(Pharmacy)</option> <option value='B.V.Sc(Veterinary Science)' ".$selected42.">B.V.Sc(Veterinary Science)</option> <option value='BDS(Dental Surgery)' ".$selected43.">BDS(Dental Surgery)</option> <option value='BHMS(Homeopathy)' ".$selected44.">BHMS(Homeopathy)</option> <option value='M.Pharm(Pharmacy)' ".$selected45.">M.Pharm(Pharmacy)</option> <option value='M.V.Sc(Veterinary Science)' ".$selected46.">M.V.Sc(Veterinary Science)</option> <option value='MBBS' ".$selected47.">MBBS</option> <option value='MD/MS(Medicine)' ".$selected48.">MD/MS(Medicine)</option> <option value='MDS(Master of Dental Surgery)' ".$selected49.">MDS(Master of Dental Surgery)</option> <option value='BPT(Physiotherapy)' ".$selected50.">BPT(Physiotherapy)</option> <option value='MPT(Physiotherapy)' ".$selected51.">MPT(Physiotherapy)</option> <option disabled='disabled'>----------Doctorate (Phd)----------</option> <option value='M.Phil.(Philosophy)' ".$selected52.">M.Phil.(Philosophy)</option> <option value='Ph.D.(Doctorate)' ".$selected53.">Ph.D.(Doctorate)</option> <option value='Other Doctorate' ".$selected54.">Other Doctorate</option> <option disabled='disabled'>----------Diploma Courses----------</option> <option value='Arts/Graphic Designing' ".$selected55.">Arts/Graphic Designing</option> <option value='Engineering' ".$selected56.">Engineering</option> <option value='Fashion/Design' ".$selected57.">Fashion/Design</option> <option value='Languages' ".$selected58.">Languages</option> <option value='Pilot Licenses' ".$selected59.">Pilot Licenses</option> <option value='Other Diploma' ".$selected60.">Other Diploma</option> <option disabled='disabled'>----------12th but not pursuing graduation----------</option> <option value='12th' ".$selected61.">12th</option> <option disabled='disabled'>----------10th but not pursuing 12th----------</option> <option value='10th' ".$selected62.">10th</option> "; echo $option; } function birthday ($birthday) { list($year,$month,$day) = explode("-",$birthday); $year_diff = date("Y") - $year; $month_diff = date("m") - $month; $day_diff = date("d") - $day; if ($day_diff < 0 || $month_diff < 0) $year_diff--; return $year_diff; } // Matrimony function created by ramesh end ?>
Close