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.136
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 /
aryaadmin /
Archive /
[ HOME SHELL ]
Name
Size
Permission
Action
common
[ DIR ]
drwxr-xr-x
arya_AdminInclude_11-01-16.php
1002
B
-rw-r--r--
arya_AdminInclude_13-01-16.php
1.06
KB
-rw-r--r--
arya_AdminInclude_16-09-14.php
811
B
-rw-r--r--
arya_addactivities_28-03-14.ph...
16.43
KB
-rw-r--r--
arya_addadminpages_14-08-14.ph...
13.62
KB
-rw-r--r--
arya_addadmissionnotification_...
32.91
KB
-rw-r--r--
arya_addadvertisement_18-12-14...
23.42
KB
-rw-r--r--
arya_addarticle_05-08-14.php
30.03
KB
-rw-r--r--
arya_addarticle_25-11-15.php
29.99
KB
-rw-r--r--
arya_addaryasamajtab_28-03-14....
22.29
KB
-rw-r--r--
arya_addaudioalbum_28-03-14.ph...
23.93
KB
-rw-r--r--
arya_addauthor_13-09-14.php
20.12
KB
-rw-r--r--
arya_adddiscategory_28-03-14.p...
28.26
KB
-rw-r--r--
arya_adddiscover_04-08-14.php
27.41
KB
-rw-r--r--
arya_addelectionappointment_02...
16.17
KB
-rw-r--r--
arya_addengvarriable_25-03-14....
8.84
KB
-rw-r--r--
arya_addevents_26-01-16.php
50.97
KB
-rw-r--r--
arya_addevents_28-03-14.php
50.96
KB
-rw-r--r--
arya_addeventtype_28-03-14.php
29.83
KB
-rw-r--r--
arya_addfestival_23-07-14.php
30.54
KB
-rw-r--r--
arya_addfiledownload_09-12-14....
12.06
KB
-rw-r--r--
arya_addimportantplaces_28-03-...
35.98
KB
-rw-r--r--
arya_addinstituteprofile_02-10...
23.85
KB
-rw-r--r--
arya_addinstituteprofile_09-05...
23.84
KB
-rw-r--r--
arya_addinstitutetype_04-08-14...
33.23
KB
-rw-r--r--
arya_addinstitution_09-10-14.p...
56.08
KB
-rw-r--r--
arya_addlanguage_04-08-14.php
13.81
KB
-rw-r--r--
arya_addmagazines_02-01-15.php
38.12
KB
-rw-r--r--
arya_addmagazinetitle_09-10-14...
44.28
KB
-rw-r--r--
arya_addmember_29-05-14.php
37.84
KB
-rw-r--r--
arya_addmembertype_04-08-14.ph...
22.95
KB
-rw-r--r--
arya_addmobileaudio_05-12-14.p...
23.51
KB
-rw-r--r--
arya_addmobileaudio_06-01-16.p...
9.1
KB
-rw-r--r--
arya_addmobileaudio_08-01-16.p...
8.69
KB
-rw-r--r--
arya_addmobileimage_05-12-14.p...
20.91
KB
-rw-r--r--
arya_addnews_arvind-18-01-19.p...
61.42
KB
-rw-r--r--
arya_addobituary_18-10-14.php
27.42
KB
-rw-r--r--
arya_addphotogallery_28-03-14....
29.04
KB
-rw-r--r--
arya_addportalhomeslidebanner_...
11.62
KB
-rw-r--r--
arya_addportalsection_04-08-14...
22.76
KB
-rw-r--r--
arya_addportaltab_18-04-14.php
24.93
KB
-rw-r--r--
arya_addprimaryrecord_28-03-14...
47.92
KB
-rw-r--r--
arya_addproduct_28-03-14.php
20.39
KB
-rw-r--r--
arya_addradioairing_04-08-14.p...
18.93
KB
-rw-r--r--
arya_addscndtestquestions_12-1...
24.82
KB
-rw-r--r--
arya_addscndtimeline_17-12-14....
24.27
KB
-rw-r--r--
arya_addsecndryfestival_20-02-...
20.89
KB
-rw-r--r--
arya_addsecondaryactivity_18-0...
15.66
KB
-rw-r--r--
arya_addservices_28-03-14.php
17.99
KB
-rw-r--r--
arya_addstreamingbanner_28-03-...
20.97
KB
-rw-r--r--
arya_addtest_28-05-14.php
15.62
KB
-rw-r--r--
arya_addtestlevel_28-05-14.php
22.6
KB
-rw-r--r--
arya_addtestquestions_27-08-14...
45.74
KB
-rw-r--r--
arya_addtimeline_16-12-14.php
16.6
KB
-rw-r--r--
arya_addtimeline_17-12-14.php
16.92
KB
-rw-r--r--
arya_addtimeline_29-12-14.php
14.26
KB
-rw-r--r--
arya_addvacancy_27-05-14.php
34.54
KB
-rw-r--r--
arya_addvideoalbum_28-03-14.ph...
23.91
KB
-rw-r--r--
arya_addvideogallery_28-03-14....
21.82
KB
-rw-r--r--
arya_addwallpaper_28-03-14.php
9.19
KB
-rw-r--r--
arya_addwebsite_28-03-14.php
18.06
KB
-rw-r--r--
arya_adminlogin_18-03-15.php
7.26
KB
-rw-r--r--
arya_articleautoauthor_05-06-1...
342
B
-rw-r--r--
arya_articlependinglist_22-09-...
21.08
KB
-rw-r--r--
arya_autologout_15-03-14.php
1.94
KB
-rw-r--r--
arya_changepasswordpopup_05-05...
5.53
KB
-rw-r--r--
arya_ckeditor2_14-10-14.php
1.64
KB
-rw-r--r--
arya_ckeditor3_14-10-14.php
1.64
KB
-rw-r--r--
arya_downloadallfile_31-03-14....
2.06
KB
-rw-r--r--
arya_downloadfile_20-12-14.php
1.21
KB
-rw-r--r--
arya_downloadpendinglist_03-03...
24.68
KB
-rw-r--r--
arya_editactivities_28-03-14.p...
23.07
KB
-rw-r--r--
arya_editadminpages_14-08-14.p...
17.92
KB
-rw-r--r--
arya_editadmissionnotification...
40.28
KB
-rw-r--r--
arya_editadvertisement_04-08-1...
29.7
KB
-rw-r--r--
arya_editarticle_11-01-16.php
38.44
KB
-rw-r--r--
arya_editarticle_25-11-15.php
38.41
KB
-rw-r--r--
arya_editarticle_27-10-14.php
38.39
KB
-rw-r--r--
arya_editaryasamajtab_28-03-14...
21.9
KB
-rw-r--r--
arya_editaudioalbum_28-03-14.p...
28.46
KB
-rw-r--r--
arya_editauthor_04-11-14.php
24.92
KB
-rw-r--r--
arya_editdiscategory_28-03-14....
16.11
KB
-rw-r--r--
arya_editdiscover_04-08-14.php
34.54
KB
-rw-r--r--
arya_editelectionappointment_1...
20.12
KB
-rw-r--r--
arya_editelectionappointment_1...
20.06
KB
-rw-r--r--
arya_editevents_19-11-14.php
64.12
KB
-rw-r--r--
arya_editeventtype_28-03-14.ph...
20.59
KB
-rw-r--r--
arya_editfestival_28-03-14.php
38.51
KB
-rw-r--r--
arya_editfiledownload_20-12-14...
22.21
KB
-rw-r--r--
arya_editimportantplaces_18-09...
43.96
KB
-rw-r--r--
arya_editinstitutetype_04-08-1...
23.15
KB
-rw-r--r--
arya_editinstitution_01-10-15....
71.83
KB
-rw-r--r--
arya_editinstitution_02-10-15....
73.92
KB
-rw-r--r--
arya_editinstitution_09-10-14....
55.89
KB
-rw-r--r--
arya_editinstitution_29-09-15....
55.8
KB
-rw-r--r--
arya_editlanguage_04-08-14.php
16.45
KB
-rw-r--r--
arya_editmagazines_08-11-14.ph...
54.04
KB
-rw-r--r--
arya_editmagazinetitle_09-10-1...
53.82
KB
-rw-r--r--
arya_editmember_28-03-14.php
47.21
KB
-rw-r--r--
arya_editmembertype_04-08-14.p...
9.27
KB
-rw-r--r--
arya_editmlevelcategory_04-08-...
9.71
KB
-rw-r--r--
arya_editmobileaudio_06-01-16....
8.9
KB
-rw-r--r--
arya_editmobileaudio_08-01-16....
8.5
KB
-rw-r--r--
arya_editmobileaudio_11-12-14....
8.9
KB
-rw-r--r--
arya_editmobileimage_11-12-14....
9.32
KB
-rw-r--r--
arya_editmpowercategory_04-08-...
10.36
KB
-rw-r--r--
arya_editnews_05-12-14.php
70.37
KB
-rw-r--r--
arya_editnews_13-10-15.php
70.37
KB
-rw-r--r--
arya_editobituary_18_10-14.php
31.32
KB
-rw-r--r--
arya_editphotogallery_28-03-14...
22.85
KB
-rw-r--r--
arya_editportalhomeslidebanner...
13.23
KB
-rw-r--r--
arya_editportaltab_16-04-14.ph...
14.91
KB
-rw-r--r--
arya_editportaltab_17-04-14.ph...
15.18
KB
-rw-r--r--
arya_editprimaryrecord_28-03-1...
68.73
KB
-rw-r--r--
arya_editproduct_28-03-14.php
24.67
KB
-rw-r--r--
arya_editquestioncategory_04-0...
4.83
KB
-rw-r--r--
arya_editradioairing_04-08-14....
23.88
KB
-rw-r--r--
arya_editscndtestquestions_27-...
19.24
KB
-rw-r--r--
arya_editscndtimeline_17-12-14...
19.98
KB
-rw-r--r--
arya_editsecndryfestival_20-02...
15.32
KB
-rw-r--r--
arya_editsecondaryactivity_18-...
13.04
KB
-rw-r--r--
arya_editsecondaryservice_18-0...
13.08
KB
-rw-r--r--
arya_editservices_28-03-14.php
27.4
KB
-rw-r--r--
arya_editstreamingbanner_28-03...
24.27
KB
-rw-r--r--
arya_edittestquestions_27-08-1...
36.17
KB
-rw-r--r--
arya_edittestquestions_28-03-1...
34.6
KB
-rw-r--r--
arya_edittimeline_29-12-14.php
16.88
KB
-rw-r--r--
arya_editvacancy_27-05-14.php
44.08
KB
-rw-r--r--
arya_editvideoalbum_28-03-14.p...
29.72
KB
-rw-r--r--
arya_editvideogallery_28-03-14...
26.26
KB
-rw-r--r--
arya_editwallpaper_28-03-14.ph...
10.34
KB
-rw-r--r--
arya_editwebsite_28-03-14.php
22.98
KB
-rw-r--r--
arya_forgotpwd_06-05-14.php
5.37
KB
-rw-r--r--
arya_ftpfile_02-01-15.php
1.44
KB
-rw-r--r--
arya_header_29-10-14.php
7.48
KB
-rw-r--r--
arya_home_24-12-15.php
640
B
-rw-r--r--
arya_insertpamphlet_21-09-15.p...
15.51
KB
-rw-r--r--
arya_insertpamphlet_25-01-16.p...
15.51
KB
-rw-r--r--
arya_insertpamphlet_28-03-14.p...
16.01
KB
-rw-r--r--
arya_instoffpendinglist_26-05-...
19.27
KB
-rw-r--r--
arya_instpendinglist_01-10-15....
17.35
KB
-rw-r--r--
arya_instpendinglist_28-09-15....
16.42
KB
-rw-r--r--
arya_instphotoupload_18-12-14....
14.98
KB
-rw-r--r--
arya_mailinsquickupload_28-11-...
9.64
KB
-rw-r--r--
arya_memberautodelete_21-06-14...
4.96
KB
-rw-r--r--
arya_menu_14-03-16.php
13.82
KB
-rw-r--r--
arya_mgzndownload_20-12-14.php
2.06
KB
-rw-r--r--
arya_mlevelcategory_04-08-14.p...
23.69
KB
-rw-r--r--
arya_mngactivities_19-06-14.ph...
26.23
KB
-rw-r--r--
arya_mngadmin_18-06-14.php
23.63
KB
-rw-r--r--
arya_mngadminpages_19-06-14.ph...
18.29
KB
-rw-r--r--
arya_mngadmissionnotification_...
20.56
KB
-rw-r--r--
arya_mngadvertisement_19-06-14...
24.17
KB
-rw-r--r--
arya_mngarticle_03-11-14.php
80.54
KB
-rw-r--r--
arya_mngarticle_16_Dec_15.php
80.66
KB
-rw-r--r--
arya_mngauthor_13-09-14.php
22.95
KB
-rw-r--r--
arya_mngblocksequence_15-10-14...
11.64
KB
-rw-r--r--
arya_mngcity_19-06-14.php
22.76
KB
-rw-r--r--
arya_mngcountry_19-06-14.php
19.4
KB
-rw-r--r--
arya_mngcurrentadminlogin_15-0...
4.32
KB
-rw-r--r--
arya_mngdiscover_19-06-14.php
31.28
KB
-rw-r--r--
arya_mngdynamicpages_21-06-14....
18.32
KB
-rw-r--r--
arya_mngelectionappointment_11...
26.85
KB
-rw-r--r--
arya_mngelectionappointment_12...
26.84
KB
-rw-r--r--
arya_mngelectionappointment_16...
27.22
KB
-rw-r--r--
arya_mngengvariable_25-03-14.p...
20.87
KB
-rw-r--r--
arya_mngevents_19-06-14.php
43.6
KB
-rw-r--r--
arya_mngfestival_19-06-14.php
30.69
KB
-rw-r--r--
arya_mngfiledownload_12-03-15....
31.33
KB
-rw-r--r--
arya_mngfiledownload_24-09-15....
31.39
KB
-rw-r--r--
arya_mngimportantplaces_19-06-...
35.95
KB
-rw-r--r--
arya_mnginstitution_09-10-14.p...
107.28
KB
-rw-r--r--
arya_mnginstitution_29-09-15.p...
107.21
KB
-rw-r--r--
arya_mnginstmgzadmin_17-06-14....
38.8
KB
-rw-r--r--
arya_mngmagazines_08-11-14.php
25.66
KB
-rw-r--r--
arya_mngmagazinetitle_09-10-14...
51.98
KB
-rw-r--r--
arya_mngmember_03-10-15.php
76.76
KB
-rw-r--r--
arya_mngmember_09-02-16.php
77.33
KB
-rw-r--r--
arya_mngmember_16_dec_15.php
77.04
KB
-rw-r--r--
arya_mngmember_17-10-14.php
76.08
KB
-rw-r--r--
arya_mngmobileaudio_11-06-15.p...
17.53
KB
-rw-r--r--
arya_mngnews_27-11-14.php
52.54
KB
-rw-r--r--
arya_mngobituary_15-10-14.php
23.06
KB
-rw-r--r--
arya_mngperson_19-06-14.php
51.31
KB
-rw-r--r--
arya_mngpollquestions_19-06-14...
33.89
KB
-rw-r--r--
arya_mngportalhomeslidebanner_...
22.52
KB
-rw-r--r--
arya_mngproduct_19-06-14.php
19.32
KB
-rw-r--r--
arya_mngquickuploads_16-12-14....
28.25
KB
-rw-r--r--
arya_mngradioairing_19-06-14.p...
17.72
KB
-rw-r--r--
arya_mngreporter_19-06-14.php
39.48
KB
-rw-r--r--
arya_mngservices_19-06-14.php
25.44
KB
-rw-r--r--
arya_mngstate_19-06-14.php
20.19
KB
-rw-r--r--
arya_mngstreaming_19-06-14.php
21.1
KB
-rw-r--r--
arya_mngstreamingbanner_19-06-...
20.88
KB
-rw-r--r--
arya_mngtestquestions_04-12-14...
33.56
KB
-rw-r--r--
arya_mngtimeline_26-12-14.php
35.04
KB
-rw-r--r--
arya_mngvacancy_19-06-14.php
25.94
KB
-rw-r--r--
arya_mngvacancy_29-04-14.php
26.58
KB
-rw-r--r--
arya_mngvedmantra_19-06-14.php
25.09
KB
-rw-r--r--
arya_mngwallpaper_19-06-14.php
13.99
KB
-rw-r--r--
arya_mngwebsite_19-06-2014.php
19.61
KB
-rw-r--r--
arya_mobileaudiopending_11-12-...
14.4
KB
-rw-r--r--
arya_mpowercategory_04-08-14.p...
26.06
KB
-rw-r--r--
arya_newsphotoupload_31-01-15....
16.3
KB
-rw-r--r--
arya_obituaryphotos_28-03-14.p...
15.62
KB
-rw-r--r--
arya_otherlangvarriable_25-04-...
12.02
KB
-rw-r--r--
arya_pendingtabs_18-12-14.php
5.19
KB
-rw-r--r--
arya_pendingtabs_29-09-15.php
5.26
KB
-rw-r--r--
arya_persnphotoupload_28-03-14...
16.76
KB
-rw-r--r--
arya_placephotoupload_28-03-14...
16.99
KB
-rw-r--r--
arya_pushnotification_23-09-14...
6.45
KB
-rw-r--r--
arya_quickautodelete_14-05-14....
1.39
KB
-rw-r--r--
arya_quickupldpendinglist_19-1...
36.03
KB
-rw-r--r--
arya_reportpendinglist_13-05-1...
53.47
KB
-rw-r--r--
arya_searchvariablename_15-03-...
352
B
-rw-r--r--
arya_sendquickuploadmail_29-10...
4.41
KB
-rw-r--r--
arya_timelinependinglist_17-12...
28.17
KB
-rw-r--r--
arya_uploadtakeatour_28-05-14....
38.87
KB
-rw-r--r--
arya_viewadminLaPower_arvind-1...
9.24
KB
-rw-r--r--
arya_viewadminactivity_27-03-1...
9.14
KB
-rw-r--r--
arya_viewadminactivity_arvind-...
9.15
KB
-rw-r--r--
arya_viewadminhistory_arvind-1...
7.21
KB
-rw-r--r--
arya_viewadminpower_arvind-14-...
12.76
KB
-rw-r--r--
arya_viewadminprofile_arvind-1...
5.43
KB
-rw-r--r--
arya_viewnewsphotos_28-11-14.p...
7.77
KB
-rw-r--r--
arya_viewobituarymessage_15-10...
6.17
KB
-rw-r--r--
arya_viewobituaryphoto_14-03-1...
7.08
KB
-rw-r--r--
arya_viewpendingquickupload_02...
18.1
KB
-rw-r--r--
arya_viewpendingreport_09-04-1...
17.43
KB
-rw-r--r--
arya_viewquickuploads_02-10-14...
17.91
KB
-rw-r--r--
arya_viewreport_09-04-14.php
17.43
KB
-rw-r--r--
arya_wallpaper_24-02-14.php
570
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : arya_editinstitution_02-10-15.php
<?php include('arya_AdminInclude.php'); //created by vaishali //changed by navneet date:17/10/2012 //header start include('arya_header.php'); //header over // link start include("arya_menu.php"); // link over $msgid=$_SESSION["adminuserid"]; $logindate=date('Y-m-d h:i:s'); //this is use for select institution type then display logo start if($_POST["insttypelogoid"] > 0) { $_SESSION["logoses"]=$_POST["insttypelogoid"]; } if($_GET['pending']=='1') { $_SESSION['pendinstses']=$_GET['pending']; } $insttplogo=getFieldValue('insttype_logo','arya_institutiontype','insttype_id="'.$_SESSION["logoses"].'"'); //this is use for select institution type then display logo end //This is used for click on back button in aryasama-instprofile.php file then display data start $admusrid=$_SESSION["adminuserid"]; $dbusercatid=getFieldValue('admcat_id','arya_adminsectionrights','admuser_id="'.$admusrid.'"'); $dbusercatname=getFieldValue('admcat_title','arya_adminusercategory','admcat_id="'.$dbusercatid.'"'); //check for super admin or not $rightsid=mysql_query('SELECT admsecright_pageid FROM arya_adminsectionrights WHERE admcat_id IN('.$dbusercatid.') AND admuser_id="'.$admusrid.'"'); while($rightfetch=mysql_fetch_array($rightsid)) { $admcatrightsid[]=$rightfetch['admsecright_pageid']; } foreach($admcatrightsid as $key) { $qry="select * from arya_adminpage where page_sectionid='".$key."'"; $q=mysql_query($qry); while($fetch=mysql_fetch_array($q)) { $pagename=$fetch['page_filename']; //$path = $_SERVER['REQUEST_URI']; //$headername = basename($path); if($pagename== "arya_addinstitution.php" ) { $rightapprove=getFieldValue('admsecright_approve','arya_adminsectionrights','admsecright_pageid="'.$key.'" AND admuser_id="'.$admusrid.'" AND admcat_id="'.$dbusercatid.'"'); } } } $classlanguage='class="selbox"'; $classinsttype='class="selbox"'; $classinstlevel='class="selbox"'; $classinstparent='class="selbox"'; $classengname='class="txtbox"'; $classhndname='class="txtbox"'; $classothrname='class="txtbox"'; $classlogo='class="txtbox"'; $classwebadd='class="txtbox"'; $classbrief='class="brieftexs"'; $classcnt='class="selbox"'; $classstate='class="selbox"'; $classcity='class="selbox"'; $classadd='class="txtbox"'; $classpin='class="txtbox"'; $classcontact='class="txtbox"'; $classemail='class="txtbox"'; $classwebsite='class="txtbox"'; $classlat='class="txtbox"'; $classlong='class="txtbox"'; //when update record that time select search value start //$gsid=$_GET["sid"]; $ginsttyid=$_SESSION["instype"]; $gselins=$_SESSION["inst"]; $gselinslevel=$_SESSION["level"]; $gcntid=$_SESSION['cntsnid']; $gsttid=$_SESSION['stsnid']; $gctid=$_SESSION['ctsnid']; $gappr=$_SESSION["insttypeid"]; $ginstname=$_SESSION["autosearch"]; //if($gsid > 0){$getsid='sid='.$gsid;}else{$getsid="";} if($ginstname != ''){$getinstname='instsnm='.$ginstname;}else{$getinstname="";} if($ginsttyid > 0){$getinsttyid='&intid='.$ginsttyid;}else{$getinsttyid="";} if($gselins > 0){$getselins='&inid='.$gselins;}else{$getselins="";} if($gselinslevel > 0){$getselinslevel='&leid='.$gselinslevel;}else{$getselinslevel="";} if($gcntid > 0){$getcntid='&cnid='.$gcntid;}else{$getcntid="";} if($gsttid > 0){$getsttid='&csttid='.$gsttid;}else{$getsttid="";} if($gctid > 0){$getctid='&cid='.$gctid;}else{$getctid="";} if($gappr != ''){$getappr='&appr='.$gappr;}else{$getappr="";} if($ginsttyid > 0 || $gselins > 0 || $gselinslevel > 0 || $gcntid > 0 || $gsttid > 0 || $gctid > 0 || $ginstname != '' || $gappr!= ''){$msgval='&msg=upd';}else{$msgval='msg=upd';} //when update record that time select search value start if ($_GET['bid']>0) { $bid=1; } else { $bid=0; } $scid=$_GET['scid']; if($_GET["sid"]>0) { $sid=$_GET["sid"]; $checkever='checked=checked'; } else { $sid=$_GET['inid']; $checkever='checked=checked'; } $qrypostinst="SELECT * FROM arya_institution WHERE inst_id = '".$sid."'"; $qpostinst=mysql_query($qrypostinst); $qFetchpostinst=mysql_fetch_array($qpostinst); $insttypeid=$qFetchpostinst["insttype_id"]; $_SESSION['type']=$insttypeid; $instparid=$qFetchpostinst["inst_parentid"]; //== $lang=$qFetchpostinst["lang_id"]; //== $instname=$qFetchpostinst["inst_name"]; $insthinname=$qFetchpostinst["inst_namehindi"]; $instothername=$qFetchpostinst["inst_nameother"]; $fetinstlogo=$qFetchpostinst["inst_image"]; if($fetinstlogo=="") { $fetchinstlogo=getFieldValue('insttype_logo','arya_institutiontype','insttype_id="'.$insttypeid.'"'); } else { $fetchinstlogo=$fetinstlogo; } $instlogo=str_replace("./","",$fetchinstlogo); $instwebadd1=$qFetchpostinst["inst_webadd"]; if($_SERVER['HTTP_HOST']=="www.thearyasamaj.org" || $_SERVER['HTTP_HOST']=="thearyasamaj.org") { $_SERVER['HTTP_HOST']=="www.thearyasamaj.org"; $instwebadd = substr($instwebadd1, 21); } if($_SERVER['HTTP_HOST']=="www.aryasamajdelhi.pb") { $instwebadd = substr($instwebadd1, 22); } $instbriefinfo=$qFetchpostinst["inst_briefinfo"]; $cntid=$qFetchpostinst["cnt_id"]; $defaultcnt=getFieldValue('cnt_name','arya_country','cnt_id="'.$cntid.'" '); $sttid=$qFetchpostinst["state_id"]; $cityid=$qFetchpostinst["city_id"]; $instaddress=$qFetchpostinst["inst_address"]; $instpincode=$qFetchpostinst["inst_pincode"]; $instconno=$qFetchpostinst["inst_contactno"]; $instemail=$qFetchpostinst["inst_email"]; $instwebsite1=$qFetchpostinst["inst_offwebsite"]; $advresult = substr($instwebsite1, 0, 7); $advresults = substr($instwebsite1, 0, 8); if($advresult=="http://") { $instwebsite=str_replace("http://","",$instwebsite1); } else if($advresults=="https://") { $instwebsite=str_replace("https://","",$instwebsite1); } $instmagazine=$qFetchpostinst["inst_magazine"]; $instlat=$qFetchpostinst["inst_latitude"]; $instlong=$qFetchpostinst["inst_longitude"]; $instlevel=$qFetchpostinst["inst_typelevel"]; $getcityid=getFieldValue('city_id','arya_institution','inst_id="'.$sid.'" '); $clientuid=$qFetchpostinst["inst_clientuserid"]; $admuid=$qFetchpostinst["user_id"]; $fetchapp=$qFetchpostinst["inst_approve"]; if($fetchapp == 'Yes') { $approveyes='checked="checked"'; } else { $approveNo='checked="checked"'; } if($instlevel=="") { $instlevel=2; } //This is used for click on back button in aryasama-instprofile.php file then display data start //temaparory record fetch from arya_tempinstitution table start $qrytemp="SELECT * FROM arya_tempinstitution WHERE old_id = '".$sid."'"; $qtemp=mysql_query($qrytemp); $qfetchtemp=mysql_fetch_array($qtemp); $oldid = $qfetchtemp["old_id"]; $temptype=$qfetchtemp["insttype_id"]; $tempparid=$qfetchtemp["inst_parentid"]; //== $templang=$qfetchtemp["lang_id"]; //== $tempname=$qfetchtemp["inst_name"]; $temphinname=$qfetchtemp["inst_namehindi"]; $tempothername=$qfetchtemp["inst_nameother"]; $fettemplogo=$qfetchtemp["inst_image"]; if($fettemplogo=="") { $tempfetchlogo=getFieldValue('insttype_logo','arya_institutiontype','insttype_id="'.$temptype.'"'); } else { $tempfetchlogo=$fettemplogo; } $templogo=str_replace("./","",$tempfetchlogo); $tempwebadd1=$qfetchtemp["inst_webadd"]; if($_SERVER['HTTP_HOST']=="www.thearyasamaj.org" || $_SERVER['HTTP_HOST']=="thearyasamaj.org") { $_SERVER['HTTP_HOST']=="www.thearyasamaj.org"; $tempwebadd = substr($tempwebadd1, 21); } if($_SERVER['HTTP_HOST']=="www.aryasamajdelhi.pb") { $tempwebadd = substr($tempwebadd1, 22); } $tempbriefinfo=$qfetchtemp["inst_briefinfo"]; $tempcnt=$qfetchtemp["cnt_id"]; $tempdfltcnt=getFieldValue('cnt_name','arya_country','cnt_id="'.$cntid.'" '); $tempstt=$qfetchtemp["state_id"]; $tempcity=$qfetchtemp["city_id"]; $tempaddress=$qfetchtemp["inst_address"]; $temppincode=$qfetchtemp["inst_pincode"]; $tempconno=$qfetchtemp["inst_contactno"]; $tempemail=$qfetchtemp["inst_email"]; $tempwebsite1=$qfetchtemp["inst_offwebsite"]; $tempadvresult = substr($tempwebsite1, 0, 7); $tempadvresults = substr($tempwebsite1, 0, 8); if($tempadvresult=="http://") { $tempwebsite=str_replace("http://","",$tempwebsite1); } else if($tempadvresults=="https://") { $tempwebsite=str_replace("https://","",$tempwebsite1); } $tempmagazine=$qfetchtemp["inst_magazine"]; $templat=$qfetchtemp["inst_latitude"]; $templong=$qfetchtemp["inst_longitude"]; $templevel=$qfetchtemp["inst_typelevel"]; $tempgetcity=getFieldValue('city_id','arya_institution','inst_id="'.$sid.'" '); $tempclientu=$qfetchtemp["inst_clientuserid"]; $tempadmu=$qfetchtemp["user_id"]; $tempappfetch=$qfetchtemp["inst_approve"]; if($tempappfetch == 'Yes') { $approveyes='checked="checked"'; } else { $approveNo='checked="checked"'; } if($templevel=="") { $templevel=2; } //temaparory record fetch from arya_tempinstitution table end //if condition for check any field changed or not start if($_SESSION['pendinstses']=='1' && $oldid > 0) { if($lang != $templang) { $lantempid=$lang; $lngtempname=getFieldValue('lang_name','arya_language','lang_id="'.$lang.'"'); $lang = $templang; $classlanguage='class="errtxtengbord"'; } if($instlevel != $templevel) { $hidelevelid = $instlevel; if($hidelevelid == '1') { $hidelevel = 'Major Level'; } else { $hidelevel = 'Local Level'; } $instlevel = $templevel; $classinstlevel='class="errtxtengbord"'; } if($instparid != $tempparid) { $hideparid = $instparid; $hidepartemval=getFieldValue("inst_name","arya_institution","inst_id='".$hideparid."'"); $hideparcity=getFieldValue("city_name","arya_city","city_id='".$cityid."'"); if($hideparcity != '') { $hideparval = $hidepartemval.''.'('.$hideparcity.')'; } else { $hideparval = $hidepartemval; } $instparid = $tempparid; $classinstparent='class="errtxtengbord"'; } if($instname != $tempname) { $hideinstname = $instname; $instname = $tempname; $classengname='class="errtxtengbord"'; } if($insthinname != $temphinname) { $hidhinname = $insthinname; $insthinname = $temphinname; $classhndname='class="errtxtengbord"'; } if($instothername != $tempothername) { $hidothename = $instothername; $instothername = $tempothername; $classothrname='class="errtxtengbord"'; } if($instwebadd != $tempwebadd) { $hidwebname = $instwebadd; $instwebadd = $tempwebadd; $classwebadd='class="errtxtengbord"'; } if($fetinstlogo != $fettemplogo) { $hidlogo = $fetinstlogo; $instlogo = $fettemplogo; $classlogo='class="errtxtengbord"'; } else if($fetinstlogo == $fettemplogo) { $instlogo = $instlogo; } //echo $instlogo; $chkkk = strcmp($instbriefinfo,$tempbriefinfo); //echo "<br>===>a".$instbriefinfo; //echo "<br>===>b".$tempbriefinfo; if($chkkk == '1' || $chkkk == '-1' || $chkkk > 0) { $hidbriefin = $instbriefinfo; $instbriefinfo = $tempbriefinfo; $classbrief='class="errtxtengbord"'; } if($cntid != $tempcnt) { //$hidcnt = $cntid; $hidcnt=getFieldValue('cnt_name','arya_country','cnt_id="'.$cntid.'" '); $cntid = $tempcnt; $classcnt='class="errtxtengbord"'; } if($sttid != $tempstt) { //$hidcnt = $cntid; $hidstt=getFieldValue('state_name','arya_state','state_id="'.$sttid.'" '); $sttid = $tempstt; $classstate='class="errtxtengbord"'; } if($cityid != $tempcity) { //$hidcnt = $cntid; $hidcity=getFieldValue('city_name','arya_city','city_id="'.$cityid.'" '); $cityid = $tempcity; $classcity='class="errtxtengbord"'; } if($instaddress != $tempaddress) { $hideaddres = $instaddress; $instaddress = $tempaddress; $classadd='class="errtxtengbord"'; } if($instpincode != $temppincode) { $hidepinno = $instpincode; $instpincode = $temppincode; $classpin='class="errtxtengbord"'; } if($instconno != $tempconno) { $hideconno = $instconno; $instconno = $tempconno; $classcontact='class="errtxtengbord"'; } if($instemail != $tempemail) { $hideemail = $instemail; $instemail = $tempemail; $classemail='class="errtxtengbord"'; } if($instwebsite != $tempwebsite) { $hidewebsite = $instwebsite; $instwebsite = $tempwebsite; $classwebsite='class="errtxtengbord"'; } if($instlat != $templat) { $hidelat = $instlat; $instlat = $templat; $classlat='class="errtxtengbord"'; } if($instlong != $templong) { $hidelong = $instlong; $instlong = $templong; $classlong='class="errtxtengbord"'; } } //if condition for check any field changed or not end //===============Start Find Country Using Ip Address Added By Navneet================== function getRealIpAddr() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet { $ip=$_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy { $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip=$_SERVER['REMOTE_ADDR']; } return $ip; } // if($_SERVER['SERVER_NAME']=='www.aryasamajdelhi.pb') // { // $defaultcnt = "India"; //this is use for local site. // $cntid=getFieldValue('cnt_id','arya_country','cnt_name="'.$defaultcnt.'"'); // } // else // { // $IP=getRealIpAddr(); // $json_url = "http://api.ipinfodb.com/v3/ip-country/?key=dccada161968283466392e7937ed6c1e753717bf99e71b41058a1a0f013ef29a&ip=".$IP."&format=json"; // $json = file_get_contents($json_url); // $data = json_decode($json,true); // $defaultcnt = $data["countryName"]; //get country name this is use for live site. // $cntid=getFieldValue('cnt_id','arya_country','cnt_name="'.$defaultcnt.'"'); // } //=================== End Find Country Using Ip Address================== function getParentInsttype1($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)) { $lanid=$_SESSION["vlangid"]; $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; } if($_GET['msg']=='err') { $msg="Please Enter Valid Input."; } if($_GET['msg']=='dupwb') { $msg=$msgDuplicatRecord; } $curntdate=date('Y-m-d'); $curnttime= date('h:i:s'); //for added new record start if(isset($_POST["btnadd"]))//add start { $userid=$_SESSION["adminuserid"]; //login user id $fetchlanguage=explode(",",$_POST["instlngid"]); $postlangname=$fetchlanguage[0]; $postlangid=$fetchlanguage[1]; $postinsttypeid = $insttypeid; $postinstparentid = $_POST["cmbparentinst"]; $postcmdid = $_POST["cmbcountry"]; $poststateid = $_POST['cmbstate']; $postcityid = $_POST["cmbcity"]; if($rightapprove == 'Self' || $rightapprove == 'All') { $tresurapprove=$_POST["txtapprove"]; } else { $tresurapprove="No"; } $postinstnm = addslashes($_POST['txtinstname']); $txthindiinstnm = addslashes($_POST['txtinsthindiname']); $othertxtinstnm = addslashes($_POST['txtinstothername']); if($_GET['inid'] > 0) { $postwebadd =$_SERVER['HTTP_HOST']."/".addslashes($_POST["txtwebadd"]); } else { $postwebadd =$_SERVER['HTTP_HOST']."/".addslashes($_POST["txtwebadd"]); } $postbrief=addslashes($_POST["FckContent"]); $postinstitutelevel=$_POST["cmbinstitutionlevel"]; $txtinstadd = addslashes($_POST["txtaddress"]); $txtpincode = addslashes($_POST["txtpincode"]); $txtconno= addslashes($_POST["usercontactno"]); $txtoffemail = addslashes($_POST["txtoffemail"]); $postwebsite= addslashes($_POST["txtwebsite"]); $postmagazine = addslashes($_POST["txtmagazine"]); $postlatitude= addslashes($_POST["lat"]); $postlongitude =addslashes($_POST["lng"]); $ip = $_SERVER['REMOTE_ADDR']; $todaydate=date('Y-m-d H:i:s'); $posttermcond=$_POST["txtcondition"]; $pagesequence=getFieldValueWithoutWhere("MAX(inst_sequence)","arya_institution"); if($pagesequence ==""){$nvsquence=1;} else {$nvsquence=$pagesequence+1;} if($_SESSION['instlngid'] > 0) { $sellngid='sellng='.$_SESSION['instlngid'].'&'; } else { $sellngid=''; } if($postinstnm!="") { if($postwebsite!="") { $advresult = substr($postwebsite, 0, 7); $advresults = substr($postwebsite, 0, 8); if($advresult=="http://") { $checktxtlink=$postwebsite; } else if($advresults=="https://") { $checktxtlink=$postwebsite; } else { $checktxtlink="http://".$postwebsite; } } $dtime=time(); $curdate=date('Y-m-d'); $updtime=date('H:i:s A',$dtime); $webaddinstime=date('h:i A',$dtime); $discoverlink="discover.thearyasamaj.org/".$_POST['txtwebadd']; $oldid=getFieldValue("old_id","arya_tempinstitution","old_id='".$sid."'"); if($oldid > 0) { $qryInsnewreg="UPDATE arya_tempinstitution SET `lang_id`='".$postlangid."',`login_id`='".$userid."',`cnt_id`='".$postcmdid."',`state_id`='".$poststateid."',`city_id`='".$postcityid."',`insttype_id`='".$postinsttypeid."',`inst_parentid`='".$postinstparentid."',`inst_name`='".$postinstnm."',`inst_namehindi`='".$txthindiinstnm."',`inst_nameother`='".$othertxtinstnm."',`inst_address`='".$txtinstadd."',`inst_pincode`='".$txtpincode."',`inst_email`='".$txtoffemail."',`inst_offwebsite`='".$checktxtlink."',`inst_magazine`='".$postmagazine."',`inst_image`='".$fetinstlogo."',`inst_webadd`='".$postwebadd."',`inst_briefinfo`='".$postbrief."',`inst_contactno`='".$txtconno."',`inst_latitude`='".$postlatitude."',`inst_longitude`='".$postlongitude."',`inst_sequence`='".$nvsquence."',`inst_date`='".$todaydate."',inst_time='".$updtime."',user_id='".$msgid."',inst_approve='".$tresurapprove."',inst_typelevel='".$postinstitutelevel."',`inst_ip`='".$ip."' where old_id='".$sid."'"; } else { $qryInsnewreg="INSERT INTO arya_tempinstitution(`old_id`,`lang_id`, `login_id`, `cnt_id`, `state_id`, `city_id`, `insttype_id`, `inst_parentid`, `inst_name`, `inst_namehindi`, `inst_nameother`, `inst_address`, `inst_pincode`, `inst_email`, `inst_offwebsite`, `inst_magazine`, `inst_image`,`inst_webadd`, `inst_briefinfo`,`inst_contactno`, `inst_latitude`, `inst_longitude`, `inst_sequence`,`inst_date`,`inst_time`,`user_id`,`inst_ip`,inst_approve,inst_typelevel) VALUES('".$sid."','".$postlangid."','".$userid."','".$postcmdid."','".$poststateid."','".$postcityid."','".$postinsttypeid."','".$postinstparentid."','".$postinstnm."','".$txthindiinstnm."','".$othertxtinstnm."','".$txtinstadd."','".$txtpincode."','".$txtoffemail."','".$checktxtlink."','".$postmagazine."','".$fetinstlogo."','".$postwebadd."','".$postbrief."','".$txtconno."','".$postlatitude."','".$postlongitude."','".$nvsquence."','".$todaydate."','".$updtime."','".$msgid."','".$ip."','".$tresurapprove."','".$postinstitutelevel."')"; } $newRegInsert = mysql_query($qryInsnewreg); $dnId = $sid; if($newRegInsert) { if($_FILES['txtlogo']['name'] != "") { $ImageSource = $_FILES['txtlogo']['tmp_name']; $number = rand(); $imagenumber=strtoupper(base_convert($number, 10, 36)); $FileName = $imagenumber."_".str_replace(" ","_",$_FILES['txtlogo']['name']); $SmallFileName = $imagenumber."_SM_".str_replace(" ","_",$_FILES['txtlogo']['name']); $ext=substr(strtolower($FileName),strpos($FileName,'.')+1); if(strlen($ext) > 4) { $ext=substr(strtolower($ext),strpos($ext,'.')+1); } if($conditionvar=='2') { if($ext=="jpg" || $ext=="gif" || $ext=="png" || $ext=="jpeg" || $ext=="bmp" || $ext=="JPG" || $ext=="JPEG" || $ext=="GIF" ||$ext=="PNG" ||$ext=="BMP") { include('arya_makedirectory.php'); $Thumwidth = "150"; $Thumheight = ""; $filePath=$photomonthpath.$FileName; $d=copy($ImageSource,$filePath); if($d) { $ThumbtoPath=$mediamonthpath.$SmallFileName; $UploadImg=generate_image_thumbnail($ImageSource, $ThumbtoPath, $Thumwidth, $Thumheight); if($UploadImg== "true") { $qryUpdateInst = "UPDATE arya_tempinstitution SET inst_image='".$ThumbtoPath."' WHERE old_id='".$dnId."'"; $qUpdateInst = mysql_query($qryUpdateInst); } } }//extention condition over }//if($conditionvar=='2') if($conditionvar=='1') { if($ext=="jpg" || $ext=="gif" || $ext=="png" || $ext=="jpeg" || $ext=="bmp" || $ext=="JPG" || $ext=="JPEG" || $ext=="GIF" ||$ext=="PNG" ||$ext=="BMP") { ob_start(); $myFile = $_FILES['txtlogo']; $srvfile = $myFile['tmp_name']; include('arya_ftpfile.php'); $destination_file =$destDirsrv.'/'.$FileName; $smalldestination_file =$destDirsrv.'/'.$SmallFileName; $srvupload = ftp_put($srvconn_id, $destination_file, $srvfile, FTP_BINARY); $srvthumbupload = ftp_put($srvconnect_id, $smalldestination_file, $srvfile, FTP_BINARY); $smupload = ftp_put($srvconnect_id, $smalldestination_file, "http://".$_SERVER['HTTP_HOST']."/aryaadmin/media/".$year."/".$month."/".$SmallFileName, FTP_BINARY); ftp_close($srvconn_id); ftp_close($srvconnect_id); $qryUpdateInst = "UPDATE arya_tempinstitution SET inst_image='".$smalldestination_file."' WHERE old_id='".$dnId."'"; $qUpdateInst = mysql_query($qryUpdateInst); } } } /*else if($insttplogo!="") { $qryUpdateInst = "UPDATE arya_tempinstitution SET inst_image='' WHERE old_id='".$dnId."'"; $qUpdateInst = mysql_query($qryUpdateInst); }*/ //RedirecPage('arya_mnginstitution.php?'.$getinstname.$getinsttyid.$getselins.$getselinslevel.$getcntid.$getsttid.$getctid.$getappr.$msgval.''); }//if($_FILES['txtlogo']['name'] != "") RedirecPage('arya_mnginstitution.php?'.$getinstname.$getinsttyid.$getselins.$getselinslevel.$getcntid.$getsttid.$getctid.$getappr.$msgval.''); }// } //for added new record end if(isset($_POST["btnsubmit"]))//update start { /*$tresurapprove=$_POST["txtapprove"]; //when select approve status "No" not update record if($tresurapprove == 'No') { $qrydeltemp = "DELETE FROM arya_tempinstitution WHERE old_id=".$sid.""; $qdeltemp = mysql_query($qrydeltemp); $smallimage=getFieldValue('inst_image','arya_tempinstitution','old_id="'.$sid.'"'); $mainimage=str_replace('SM_','',$smallimage); $mainphotimage=str_replace('media','photo',$mainimage); if($conditionvar=='2') { unlink($smallimage); unlink($mainphotimage); } else { $filesmallimage=$ttupimg; $image=str_replace("./","media/",$filesmallimage); unlink($image); } if($conditionvar=='1') { include('arya_ftpfile.php'); ftp_delete($srvconnect_id ,$smallimage); ftp_delete($srvconn_id ,$mainimage); } }*/ //this is use for temp start if($fettemplogo == "") { $ttupimg = $fetinstlogo; } else { $ttupimg = $fettemplogo; } $postchkntchng = $_POST["chkntchng"]; if($postchkntchng == '1') { $ttupimg = $fetinstlogo; $smallimage=$fettemplogo; } else { if($fettemplogo != "" && $fettemplogo != $fetinstlogo) { $ttupimg = $fettemplogo; $smallimage=$fetinstlogo; } } $mainimage=str_replace('SM_','',$smallimage); $mainphotimage=str_replace('media','photo',$mainimage); if($conditionvar=='2') { unlink($smallimage); unlink($mainphotimage); } else { $filesmallimage=$ttupimg; $image=str_replace("./","media/",$filesmallimage); unlink($image); } if($conditionvar=='1') { include('arya_ftpfile.php'); ftp_delete($srvconnect_id ,$smallimage); ftp_delete($srvconn_id ,$mainimage); } $qrydeltemp = "DELETE FROM arya_tempinstitution WHERE old_id=".$sid.""; $qdeltemp = mysql_query($qrydeltemp); //this is use for temp end $userid=$_SESSION["adminuserid"]; //login user id if($admincatid=="3") { $postinsttypeid = $_POST["cmbInstType"]; } else { $postinsttypeid=$insttypeid; } $_SESSION['cmbInstType']=$postinsttypeid; $fetchlanguage=explode(",",$_POST["instlngid"]); $postlangname=$fetchlanguage[0]; $postlangid=$fetchlanguage[1]; $_SESSION['instlngid']=$postlangid; //$postinsttypeid=$insttypeid; $postinstparentid = $_POST["cmbparentinst"]; $postcmdid = $_POST["cmbcountry"]; $_SESSION['cmbcountry']=$postcmdid; $poststateid = $_POST['cmbstate']; $_SESSION['cmbstate']=$poststateid; $postcityid = $_POST["cmbcity"]; $_SESSION['cmbcity']=$postcityid; if($rightapprove == 'Self' || $rightapprove == 'All') { $tresurapprove=$_POST["txtapprove"]; } else { $tresurapprove="No"; } unset($_SESSION['yesapprove']); unset($_SESSION['noapprove']); if($_POST["txtapprove"]=='Yes') { $_SESSION['yesapprove']='checked="checked" '; } if($_POST["txtapprove"]=='No') { $_SESSION['noapprove']='checked="checked" '; } $postinstnm = addslashes($_POST['txtinstname']); $_SESSION["txtinstname"]=$postinstnm; $txthindiinstnm = addslashes($_POST['txtinsthindiname']); $_SESSION["txtinsthindiname"]=$txthindiinstnm; $othertxtinstnm = addslashes($_POST['txtinstothername']); $_SESSION["txtinstothername"]=$othertxtinstnm; $postinstwedadd=addslashes($_POST['txtwebadd']); if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { $_SERVER['HTTP_HOST']='www.thearyasamaj.org'; } if($sid > 0) { $postwebadd = $_SERVER['HTTP_HOST']."/".addslashes($_POST['txtwebadd']); $duplicate=getFieldValue('inst_webadd','arya_institution','inst_webadd="'.$postwebadd.'" AND inst_id!="'.$sid.'"'); } else { $postwebadd = $_SERVER['HTTP_HOST']."/".addslashes($_POST['txtwebadd']); $duplicate1=getFieldValue('inst_webadd','arya_institution','inst_webadd="'.$postwebadd.'"'); } $_SESSION['txtwebadd']=$postinstwedadd; $posthidtxtwebadd=addslashes($_POST['hidtxtwebadd']); //$postbrief = addslashes($_POST['txtbrief']); //$_SESSION['txtbrief']=$postbrief; $postbrief=addslashes($_POST["FckContent"]); $_SESSION['FckContent']=$postbrief; $postinstitutelevel=$_POST["cmbinstitutionlevel"]; $_SESSION['cmbinstitutionlevel']=$postinstitutelevel; $txtinstadd = addslashes($_POST["txtaddress"]); $_SESSION["txtaddress"]=$txtinstadd; $txtpincode = addslashes($_POST["txtpincode"]); $_SESSION['txtpincode']=$txtpincode; $usercontactno= $_POST["usercontactno"]; $_SESSION["usercontactno"]=$usercontactno; $txtoffemail = addslashes($_POST["txtoffemail"]); $_SESSION['txtoffemail']=$txtoffemail; $postwebsite= addslashes($_POST["txtwebsite"]); $_SESSION['txtwebsite']=$postwebsite; $postmagazine = addslashes($_POST["txtmagazine"]); $postlatitude= addslashes($_POST["lat"]); $_SESSION['lat']=$postlatitude; $postlongitude =addslashes($_POST["lng"]); $_SESSION['lng']=$postlongitude; $ip = $_SERVER['REMOTE_ADDR']; $todaydate=date('Y-m-d H:i:s'); $posttermcond=$_POST["txtcondition"]; $pagesequence=getFieldValueWithoutWhere("MAX(pa_sequence)","arya_photoalbum"); if($pagesequence ==""){$nvsquence=1;} else {$nvsquence=$pagesequence+1;} $filename ='../.htaccess'; $contents = file_get_contents($filename); // escape special characters in the query /*$ruleurl='RewriteRule ^'.$_POST["txtwebadd"].'$'.' /aryasamaj-institutionwebpage.php'; $searchthis = $_POST["txtwebadd"]; $pattern = preg_quote($searchthis, '/'); // finalise the regular expression, matching the whole line $pattern = "/^.*$pattern.*\$/m";*/ // search, and store all matching occurences in $matches //exit; if($_SESSION['instlngid'] > 0) { //$_SESSION['nlnid']; $sellngid='sellng='.$_SESSION['instlngid'].'&'; } else { $sellngid=''; } if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { if($postinsttypeid<=0) { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=emptype'); } else if($postinstnm=="") { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=empengname'); } else if($_SESSION['instlngid']==2 && $txthindiinstnm=="") { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=emphndname'); } else if($_SESSION['instlngid']>2 && $othertxtinstnm=="") { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=empothrname'); } else if($_POST["txtwebadd"]=="") { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=empwebadd'); } else if($postcmdid<=0) { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=empcnt'); } else if($poststateid<=0) { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=empstate'); } else if($txtinstadd=="") { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=empadd'); } else if($txtoffemail=="") { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=empemail'); } } if($postinstnm!="") { if($postwebsite!="") { $advresult = substr($postwebsite, 0, 7); $advresults = substr($postwebsite, 0, 8); if($advresult=="http://") { $checktxtlink=$postwebsite; } else if($advresults=="https://") { $checktxtlink=$postwebsite; } else { $checktxtlink="http://".$postwebsite; } } if($sid > 0) { if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { if(find_scripttags($postinstnm)=="Yes") { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=engnmerr'); } else if(find_scripttags($txthindiinstnm)=="Yes") { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=hndnmerr'); } else if(find_scripttags($othertxtinstnm)=="Yes") { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=otrnmerr'); } else if(find_scripttags($searchthis)=="Yes") { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=weberr'); } /*else if(find_scripttags($postbrief)=="Yes") { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=brieferr'); }*/ else if(find_scripttags($txtinstadd)=="Yes") { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=adderr'); } else if(is_digits($txtpincode)=="Yes") { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=pinerr'); } else if(find_scripttags($usercontactno)=="Yes") { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=contacterr'); } else if(find_scripttags($txtoffemail)=="Yes" || ValidEmailCheck($txtoffemail)==false) { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=emailerr'); } else if(find_scripttags($postwebsite)=="Yes") { if($postwebsite!="") { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=siteweberr'); } } else if(find_scripttags($postlatitude)=="Yes") { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=laterr'); } else if(find_scripttags($postlongitude)=="Yes") { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=longerr'); } } /*if($duplicate!='') { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=dupweb'); }*/ //echo "<br>==>".$instwebadd; $dtime=time(); $curdate=date('Y-m-d'); $updtime=date('h:i:s A',$dtime); $webaddinstime=date('h:i A',$dtime); $upddiscoverlink="discover.thearyasamaj.org/".$postinstwedadd; $updtdupdbwebadd=getFieldValue('webadd_name','arya_webaddresses','webadd_name="'.$_POST["txtwebadd"].' " AND inst_id!="'.$_GET['sid'].'"'); //$updtdupdbwebadd=getFieldValue("webadd_name","arya_webaddresses","webadd_name LIKE '%$postinstwedadd%' AND inst_id!=".$_GET['sid'].""); $updtdupdbdiscvwebadd=getFieldValue('webadd_name','arya_webaddresses','webadd_name="'.$upddiscoverlink.'" AND inst_id!="'.$_GET['sid'].'"'); if($_SERVER['HTTP_HOST']=="www.thearyasamaj.org" || $_SERVER['HTTP_HOST']=="thearyasamaj.org") { $_SERVER['HTTP_HOST']=="www.thearyasamaj.org"; $updaprmrywebname=substr($updtdupdbwebadd, 21); $updadiscvrwbnm=substr($updtdupdbdiscvwebadd, 26); } if($_SERVER['HTTP_HOST']=="www.aryasamajdelhi.pb") { $updaprmrywebname=substr($updtdupdbwebadd, 22); $updadiscvrwbnm=substr($updtdupdbdiscvwebadd, 26); } if($updtdupdbwebadd!="") { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=dupweb'); } else if($duplicate!='') { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=dupweb'); } $instdupname=getNumrowsValue('mgzn_id','arya_magazines','mgzn_webadd="'.$postwebadd.'"'); if($instdupname>0) { RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=dupweb'); } $filename ='../.htaccess'; $ruleurl='RewriteRule ^'.$posthidtxtwebadd.'$'.' /aryasamaj-institutionwebpage.php'; $lines =file($filename); foreach($lines as $line_num => $line) { $nvremovefirst=explode(" ",substr($line,13)); //echo "<br>--->".$nvremovefirst[0]; display the webaddress in htaccess if($_POST['txtwebadd']!=$posthidtxtwebadd) { //echo "<Br>-->".$ruleurl;display perticular line in htaccess //read the entire string $str=implode("",file($filename)); $fp=fopen($filename,'w'); //replace something in the file string - this is a VERY simple example $str=str_replace($ruleurl,'',$str); //now, TOTALLY rewrite the file fwrite($fp,$str,strlen($str)); } } $qryInsnewreg="UPDATE arya_institution SET `lang_id`='".$postlangid."',`inst_image`='".$ttupimg."',`login_id`='".$userid."',`cnt_id`='".$postcmdid."',`state_id`='".$poststateid."',`city_id`='".$postcityid."',`insttype_id`='".$postinsttypeid."',`inst_parentid`='".$postinstparentid."',`inst_name`='".$postinstnm."',`inst_namehindi`='".$txthindiinstnm."',`inst_nameother`='".$othertxtinstnm."',`inst_address`='".$txtinstadd."',`inst_pincode`='".$txtpincode."',`inst_email`='".$txtoffemail."',`inst_offwebsite`='".$checktxtlink."',`inst_magazine`='".$postmagazine."',`inst_webadd`='".$postwebadd."',`inst_briefinfo`='".$postbrief."',`inst_contactno`='".$usercontactno."',`inst_latitude`='".$postlatitude."',`inst_longitude`='".$postlongitude."',`inst_sequence`='".$nvsquence."',`inst_date`='".$todaydate."',inst_approve='".$tresurapprove."',inst_typelevel='".$postinstitutelevel."',`inst_ip`='".$ip."' where inst_id='".$sid."'"; $newRegInsert = mysql_query($qryInsnewreg); $dnId = $sid; $numar=getArrayFieldValue('webadd_id','arya_webaddresses','inst_id="'.$sid.'"'); $updtwebaddrss="UPDATE arya_webaddresses SET webadd_name='".$postinstwedadd."' WHERE webadd_id='".$numar[0]."'"; $qrywebaddrss=mysql_query($updtwebaddrss); $rughtsinstid=getFieldValue('inst_id','arya_instwebpagecheck','inst_id='.$sid.''); $rughtsuserid=getFieldValue('clientuser_id','arya_instwebpagecheck','inst_id='.$sid.''); $rughtsadmuserid=getFieldValue('user_id','arya_instwebpagecheck','inst_id='.$sid.''); if($sid!=0 && $sid!=$rughtsinstid && $clientuid!=$rughtsuserid || $sid!=0 && $sid!=$rughtsinstid && $admuid!=$rughtsadmuserid) { //fetch record from arya_instwebpagerights table display check box rights wise start $selwebpage="SELECT * FROM arya_instwebpagerights ORDER BY instlbl_id"; //$selwebpage="SELECT * FROM arya_instwebpagerights WHERE inst_id='191' order by instlbl_id"; $reswebpage=mysql_query($selwebpage); $numwebpage=mysql_num_rows($reswebpage); $fetchrighs=""; while($fetchwebpagerqe=mysql_fetch_array($reswebpage)) { $fetchrighs[]=$fetchwebpagerqe["instlbl_appyn"]; } $insterinstweb="INSERT INTO arya_instwebpagecheck(inst_id,webpgcheck_lng,webpgcheck_type,webpgcheck_parent,webpgcheck_name,webpgcheck_logo,webpgcheck_webadd,webpgcheck_binfo,webpgcheck_cntid,webpgcheck_stateid,webpgcheck_cityid,webpgcheck_address,webpgcheck_pincode,webpgcheck_conno,webpgcheck_offemail,webpgcheck_website,webpgcheck_map,webpgcheck_genactvs,webpgcheck_seravlbl,webpgcheck_notice,webpgcheck_resource,webpgcheck_webpgadmin,webpgcheck_officer,webpgcheck_news,webpgcheck_cmngevts,webpgcheck_magazines,webpgcheck_photos,webpgcheck_videos,webpgcheck_officername,webpgcheck_officeremail,webpgcheck_officerphoto,webpgcheck_officermob,webpgcheck_pastevents,webpgcheck_delstatus,user_id,clientuser_id)VALUES('".$sid."',"; foreach($fetchrighs as $instrghtval) { if($instrghtval=='User Defined') { $insterinstweb.="'No',"; } else { $insterinstweb.="'".$instrghtval."',"; } } $insterinstweb.="'No','".$admuid."','".$clientuid."')"; $resinsterinstweb=mysql_query($insterinstweb); } getadminactivity('title_editinstitution',$scid,$_SESSION["adminuserid"],$_SERVER["REMOTE_ADDR"],$postinstnm,$curntdate,$curnttime);//activity profile query /*if(preg_match_all($pattern, $contents, $matches)){ //echo "Found matches:\n"; //$msg=$msgDuplicatRecord; //RedirecPage('arya_editinstitution.php?'.$sellngid.'sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&msg=matchwebadd'); } else { //echo "No matches found"; //read the entire string $str=implode(" ",file($filename)); $fp=fopen($filename,'a+'); //replace something in the file string - this is a VERY simple example //$str=str_replace($mgztitlewebadd,$_POST["txtwebadd"],$str); $b=$ruleurl."\n"; //now, TOTALLY rewrite the file fwrite($fp,$b); fclose($fp); }*/ $filename ='../.htaccess'; $ruleurl='RewriteRule ^'.$_POST['txtwebadd'].'$'.' /aryasamaj-institutionwebpage.php'; $lines = file($filename); if($instwebadd!="") { //read the entire string // get the file contents, assuming the file to be readable (and exist) $contents = file_get_contents($filename); // escape special characters in the query $pattern = preg_quote($ruleurl, '/'); // finalise the regular expression, matching the whole line $pattern = "/^.*$pattern.*\$/m"; // search, and store all matching occurences in $matches if(preg_match_all($pattern, $contents, $matches)){ //echo "Found matches:\n"; //echo implode("\n", $matches[0]); } else{ //echo "No matches found"; //read the entire string $str=implode(" ",file($filename)); $fp=fopen($filename,'a+'); //replace something in the file string - this is a VERY simple example //$str=str_replace($mgztitlewebadd,$_POST["txtwebadd"],$str); $b=$ruleurl."\n"; //now, TOTALLY rewrite the file fwrite($fp,$b); fclose($fp); } } else if($instwebadd=="") { // get the file contents, assuming the file to be readable (and exist) $contents = file_get_contents($filename); // escape special characters in the query $pattern = preg_quote($ruleurl, '/'); // finalise the regular expression, matching the whole line $pattern = "/^.*$pattern.*\$/m"; // search, and store all matching occurences in $matches if(preg_match_all($pattern, $contents, $matches)){ //echo "Found matches:\n"; //echo implode("\n", $matches[0]); } else { //echo "No matches found"; //read the entire string $str=implode(" ",file($filename)); $fp=fopen($filename,'a+'); //replace something in the file string - this is a VERY simple example //$str=str_replace($mgztitlewebadd,$_POST["txtwebadd"],$str); $b=$ruleurl."\n"; //now, TOTALLY rewrite the file fwrite($fp,$b); fclose($fp); } } } if($newRegInsert) { if($_FILES['txtlogo']['name'] != "") { $smallimage=getFieldValue('inst_image','arya_institution','inst_id="'.$instid.'"'); $mainimage=str_replace('SM_','',$smallimage); $mainphotimage=str_replace('media','photo',$mainimage); if($conditionvar=='2') { unlink($smallimage); unlink($mainphotimage); } else { $filesmallimage=getFieldValue('inst_image','arya_institution','inst_id="'.$instid.'"'); $image=str_replace("./","media/",$filesmallimage); unlink($image); } if($conditionvar=='1') { include('arya_ftpfile.php'); ftp_delete($srvconnect_id ,$smallimage); ftp_delete($srvconn_id ,$mainimage); } $ImageSource = $_FILES['txtlogo']['tmp_name']; $number = rand(); $imagenumber=strtoupper(base_convert($number, 10, 36)); $FileName = $imagenumber."_".str_replace(" ","_",$_FILES['txtlogo']['name']); $SmallFileName = $imagenumber."_SM_".str_replace(" ","_",$_FILES['txtlogo']['name']); $ext=substr(strtolower($FileName),strpos($FileName,'.')+1); if(strlen($ext) > 4) { $ext=substr(strtolower($ext),strpos($ext,'.')+1); } if($conditionvar=='2') { if($ext=="jpg" || $ext=="gif" || $ext=="png" || $ext=="jpeg" || $ext=="bmp" || $ext=="JPG" || $ext=="JPEG" || $ext=="GIF" ||$ext=="PNG" ||$ext=="BMP") { include('arya_makedirectory.php'); $Thumwidth = "150"; $Thumheight = ""; $filePath=$photomonthpath.$FileName; $d=copy($ImageSource,$filePath); if($d) { $ThumbtoPath=$mediamonthpath.$SmallFileName; $UploadImg=generate_image_thumbnail($ImageSource, $ThumbtoPath, $Thumwidth, $Thumheight); if($UploadImg== "true") { $qryUpdateInst = "UPDATE arya_institution SET inst_image='".$ThumbtoPath."' WHERE inst_id='".$dnId."'"; $qUpdateInst = mysql_query($qryUpdateInst); } } }//extention condition over }//if($conditionvar=='2') if($conditionvar=='1') { if($ext=="jpg" || $ext=="gif" || $ext=="png" || $ext=="jpeg" || $ext=="bmp" || $ext=="JPG" || $ext=="JPEG" || $ext=="GIF" ||$ext=="PNG" ||$ext=="BMP") { ob_start(); $myFile = $_FILES['txtlogo']; $srvfile = $myFile['tmp_name']; include('arya_ftpfile.php'); $destination_file =$destDirsrv.'/'.$FileName; $smalldestination_file =$destDirsrv.'/'.$SmallFileName; $srvupload = ftp_put($srvconn_id, $destination_file, $srvfile, FTP_BINARY); $srvthumbupload = ftp_put($srvconnect_id, $smalldestination_file, $srvfile, FTP_BINARY); $smupload = ftp_put($srvconnect_id, $smalldestination_file, "http://".$_SERVER['HTTP_HOST']."/aryaadmin/media/".$year."/".$month."/".$SmallFileName, FTP_BINARY); ftp_close($srvconn_id); ftp_close($srvconnect_id); $qryUpdateInst = "UPDATE arya_institution SET inst_image='".$smalldestination_file."' WHERE inst_id='".$dnId."'"; $qUpdateInst = mysql_query($qryUpdateInst); } } } else if($insttplogo != "") { $qryUpdateInst = "UPDATE arya_institution SET inst_image='' WHERE inst_id='".$dnId."'"; $qUpdateInst = mysql_query($qryUpdateInst); } unset($_SESSION["logoses"]); //code for copy .htaccess file put by nitesh $today = date('Y-m-d'); $abcd ='../.htaccess'; $nvfilePath='../htaccessfile/editinst_'.$today.'_'.$sid.'_usid '.$admusrid.'_htaccess'; copy($abcd ,$nvfilePath); if($_SESSION['pendinstses']=='1') { RedirecPage('arya_instpendinglist.php?'.$msgval); } else { RedirecPage('arya_mnginstitution.php?'.$getinstname.$getinsttyid.$getselins.$getselinslevel.$getcntid.$getsttid.$getctid.$getappr.$msgval.''); } } } else { $msg=$msgFillFormField; } } if($sid > 0) { //$lang=$qFetchpostinst["lang_id"]; $lngname=getFieldValue('lang_name','arya_language','lang_id="'.$lang.'"'); } if($_GET['sellng'] > 0) { $lngname=getFieldValue('lang_name','arya_language','lang_id="'.$_GET['sellng'].'"'); $lang=$_GET['sellng']; } if($_GET['sellng']=="" && $sid=="") { $lngname="Hindi"; $lang=2; $approveNo='checked="checked"'; } ?> <style> .brieftexs{ width:400px; border: solid 1px #CCCCCC; vertical-align: middle; padding: 3px; /*-moz-border-radius: 5px; /*border-radius: 5px;*/ margin: 0 5px 0 0; } .errbrief{ border:1px solid red; margin:0pt 5px 0pt 0pt; padding:3px; vertical-align:middle; width:400px; } </style> <?php /*$classinsttype='class="selbox"'; $classengname='class="txtbox"'; $classhndname='class="txtbox"'; $classothrname='class="txtbox"'; $classwebadd='class="txtbox"'; $classbrief='class="brieftexs"'; $classcnt='class="selbox"'; $classstate='class="selbox"'; $classadd='class="txtbox"'; $classpin='class="txtbox"'; $classcontact='class="txtbox"'; $classemail='class="txtbox"'; $classwebsite='class="txtbox"'; $classlat='class="txtbox"'; $classlong='class="txtbox"';*/ if($_GET['msg']=="emptype") { $emtttle="Please"." ".$lbl_selectinsttype; $msg=$emtttle; $insttypeid=""; $classinsttype='class="errtxtengbord"'; } else if($_GET['msg']=='empengname') { $emtttle=$lbl_errmenmsg." ".$lbl_instname." English"; $msg=$emtttle; $instname=""; $classengname='class="errtxtengbord"'; } else if($_GET['msg']=='engnmerr') { $emtttle=$lbl_errvalidmsg." ".$lbl_instname." English"; $msg=$emtttle; $instname=""; $classengname='class="errtxtengbord"'; } else if($_GET['msg']=='emphndname') { $emtttle=$lbl_errmenmsg." ".$lbl_instname." Hindi"; $msg=$emtttle; $insthinname=""; $classhndname='class="errtxtengbord"'; } else if($_GET['msg']=='hndnmerr') { $emtttle=$lbl_errvalidmsg." ".$lbl_instname." Hindi"; $msg=$emtttle; $insthinname=""; $classhndname='class="errtxtengbord"'; } else if($_GET['msg']=='empothrname') { $emtttle=$lbl_errmenmsg." ".$lbl_instname." Other"; $msg=$emtttle; $instothername=""; $classothrname='class="errtxtengbord"'; } else if($_GET['msg']=='otrnmerr') { $emtttle=$lbl_errvalidmsg." ".$lbl_instname." Other"; $msg=$emtttle; $instothername=""; $classothrname='class="errtxtengbord"'; } else if($_GET['msg']=='empwebadd') { $emtttle=$lbl_errmenmsg." Web Address"; $msg=$emtttle; $instwebadd=""; $classwebadd='class="errtxtengbord"'; } else if($_GET['msg']=='weberr') { $emtttle=$lbl_errvalidmsg." Web Address"; $msg=$emtttle; $instwebadd=""; $classwebadd='class="errtxtengbord"'; } else if($_GET['msg']=='brieferr') { $emtttle=$lbl_errvalidmsg." Brief Information"; $msg=$emtttle; $instbriefinfo=""; $classbrief='class="errbrief"'; } else if($_GET['msg']=='empcnt') { $emtttle="Please"." ".$lbl_selectcountry; $msg=$emtttle; $cntid=""; $classcnt='class="errtxtengbord"'; } else if($_GET['msg']=='empstate') { $emtttle="Please"." ".$lbl_selectstate; $msg=$emtttle; $sttid=""; $classstate='class="errtxtengbord"'; } else if($_GET['msg']=='empadd') { $emtttle=$lbl_errmenmsg." ".$lbl_address; $msg=$emtttle; $instaddress=""; $classadd='class="errtxtengbord"'; } else if($_GET['msg']=='adderr') { $emtttle=$lbl_errvalidmsg." ".$lbl_address; $msg=$emtttle; $instaddress=""; $classadd='class="errtxtengbord"'; } else if($_GET['msg']=='pinerr') { $emtttle=$lbl_errvalidmsg." ".$lbl_pincode; $msg=$emtttle; $instpincode=""; $classpin='class="errtxtengbord"'; } else if($_GET['msg']=='contacterr') { $emtttle=$lbl_errvalidmsg." ".$lbl_conno; $msg=$emtttle; $instconno=""; $classcontact='class="errtxtengbord"'; } else if($_GET['msg']=='empemail') { $emtttle=$lbl_errmenmsg." ".$lbl_offficialemail; $msg=$emtttle; $instemail=""; $classemail='class="errtxtengbord"'; } else if($_GET['msg']=='emailerr') { $emtttle=$lbl_errvalidmsg." ".$lbl_offficialemail; $msg=$emtttle; $instemail=""; $classemail='class="errtxtengbord"'; } else if($_GET['msg']=='siteweberr') { $emtttle=$lbl_errvalidmsg." ".$lbl_officialwebsite; $msg=$emtttle; $instwebsite=""; $classwebsite='class="errtxtengbord"'; } else if($_GET['msg']=='laterr') { $emtttle=$lbl_errvalidmsg." ".$lbl_latitude; $msg=$emtttle; $instlat=""; $classlat='class="errtxtengbord"'; } else if($_GET['msg']=='longerr') { $emtttle=$lbl_errvalidmsg." ".$lbl_longotude; $msg=$emtttle; $instlong=""; $classlong='class="errtxtengbord"'; } else if($_GET['msg']=='matchwebadd') { $msg=$lbl_dupwebaddress; $classwebadd='class="errtxtengbord"'; } else if($_GET['msg']=='dupweb') { $msg=$lbl_dupwebaddress; $classwebadd='class="errtxtengbord"'; } else { unset($_SESSION['instlngid']); unset($_SESSION['hidlngid']); unset($_SESSION['cmbInstType']); unset($_SESSION['cmbinstitutionlevel']); unset($_SESSION['cmbparentinst']); unset($_SESSION["txtinstname"]); unset($_SESSION["txtinsthindiname"]); unset($_SESSION["txtinstothername"]); unset($_SESSION['txtwebadd']); unset($_SESSION['FckContent']); unset($_SESSION['cmbcountry']); unset($_SESSION['cmbstate']); unset($_SESSION['cmbcity']); unset($_SESSION["txtaddress"]); unset($_SESSION['txtpincode']); unset($_SESSION['usercontactno']); unset($_SESSION['txtoffemail']); unset($_SESSION['txtwebsite']); unset($_SESSION['lat']); unset($_SESSION['lng']); unset($_SESSION['yesapprove']); unset($_SESSION['noapprove']); } if($_SESSION['yesapprove']!="" || $_SESSION['noapprove']!="") { $approveyes=""; $approveNo=""; } if($_GET['sid']>0) { $btntype='type="reset"'; if($_GET['msg']=="emptype" || $_GET['msg']=='empengname' || $_GET['msg']=='engnmerr' || $_GET['msg']=='emphndname' || $_GET['msg']=='hndnmerr' || $_GET['msg']=='empothrname' || $_GET['msg']=='otrnmerr' || $_GET['msg']=='empwebadd' || $_GET['msg']=='weberr' || $_GET['msg']=='brieferr' || $_GET['msg']=='empcnt' || $_GET['msg']=='empstate' || $_GET['msg']=='empadd' || $_GET['msg']=='adderr' || $_GET['msg']=='pinerr' || $_GET['msg']=='contacterr' || $_GET['msg']=='empemail' || $_GET['msg']=='emailerr' || $_GET['msg']=='weberr' || $_GET['msg']=='laterr' || $_GET['msg']=='longerr' || $_GET['msg']=='matchwebadd' || $_GET['msg']=='dupweb') { $btntype='type="submit"'; if(isset($_POST['btn_reset'])) { RedirecPage('arya_editinstitution.php?sid='.$_GET['sid'].'&scid='.$_GET['scid']); } } } //this is use for when reset record at the time temporory record deleted and main record display if(isset($_POST['btn_reset'])) { $smallimage=getFieldValue('inst_image','arya_tempinstitution','old_id="'.$sid.'"'); $mainimage=str_replace('SM_','',$smallimage); $mainphotimage=str_replace('media','photo',$mainimage); if($conditionvar=='2') { unlink($smallimage); unlink($mainphotimage); } else { $filesmallimage=$ttupimg; $image=str_replace("./","media/",$filesmallimage); unlink($image); } if($conditionvar=='1') { include('arya_ftpfile.php'); ftp_delete($srvconnect_id ,$smallimage); ftp_delete($srvconn_id ,$mainimage); } $qrydeltemp = "DELETE FROM arya_tempinstitution WHERE old_id=".$sid.""; $qdeltemp = mysql_query($qrydeltemp); if($_SESSION['pendinstses'] > 0) { RedirecPage('arya_editinstitution.php?sid='.$_GET['sid'].'&scid='.$_GET['scid'].'&pending=1'); } else { RedirecPage('arya_editinstitution.php?sid='.$_GET['sid'].'&scid='.$_GET['scid']); } } //this is use for when reset record at the time temporory record deleted and main record display end //$insttypelogo=getFieldValue('insttype_logo','arya_institutiontype','insttype_id="'.$_SESSION["logoses"].'"'); // echo "<bR>=====".$instwebadd; // echo "<bR>-----".$_SESSION['txtwebadd']; // echo $btntype; ?> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <!-- <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script> --> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script> <script type="text/javascript"> var map; function initialize() { <?php if($instlat!="" && $instlong!="") { $instlat1=$instlat; $instlong1=$instlong; } else { $instlat1="28.654441"; $instlong1="77.224274"; } ?> var myLatlng = new google.maps.LatLng(<?php echo $instlat1;?>,<?php echo $instlong1;?>); var myOptions = { zoom: 14, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var marker = new google.maps.Marker({ position: myLatlng, title:"Marker" }); var infowindow = new google.maps.InfoWindow({ //content: "Drag marker to position <br /> or click to place" }); // To add the marker to the map, call setMap(); <?php if($instlat!="" && $instlong!="") { ?> marker.setMap(map); <?php } ?> //infowindow.open(map); google.maps.event.addListener(map, 'click', function(event) { var clickedLocation = new google.maps.LatLng(event.latLng); var marker = new google.maps.Marker({ position: event.latLng, title:"Marker position", draggable: true, map: map }); infowindow.open(map,marker); map.setCenter(event.latLng); google.maps.event.addListener(map, 'click', function(event) { marker.setMap(null); }); google.maps.event.addListener(marker, 'dragend', function(event) { var point = event.latLng; var lat = point.lat(); var lng = point.lng(); document.getElementById("frmLat").value = lat; document.getElementById("frmLon").value = lng; }); var point = event.latLng; var lat = point.lat(); var lng = point.lng(); document.getElementById("frmLat").value = lat; document.getElementById("frmLon").value = lng; }); } </script> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <body onLoad="initialize()"> <form action="" method="post" name="frmissue" id="frmissue" > <input type="hidden" name="insttypelogoid" id="insttypelogoid" value="" /> </form> <script language="javascript" type="text/javascript"> function ChangeInstDetail(instid)//this function is used to to submit form in magazine issue { document.frmissue.insttypelogoid.value=instid; document.frmissue.submit(); } </script> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ //newly added $("#txtwebadd").blur(function(){ var webadd = $("#txtwebadd").val(); // assuming this is a input text field var hdnmgtid=$("#hdnmgtid").val(); if(webadd.length>0) { $.ajax({ type: 'POST', data: 'txtwebadd='+webadd+'&prid='+hdnmgtid, url: 'arya_checkwebadd.php', success: function(data){ if(data==0) { } else { //alert("Please Don't Insert Duplicate Web Address"); $("#errlink").html("<font color='red'>This Web Address is not available</font>"); document.frmnewinstreg.txtwebadd.focus(); return false; } //alert("ok"); //alert("call suc") } /*, error: function(){ //console.log(data); alert('There was an error in call'); }*/ }); return false; } else { $("#errlink").html(""); } }); }); </script> <form name="frmnewinstreg" id="frmnewinstreg" class="styleThese" method="POST" action="" enctype="multipart/form-data" onSubmit="return blankNewregister('add');" /> <table width="100%" summary="" border="0" cellpadding="0" cellspacing="0"> <tr><td align="center" height="85"><h2 class="bigheader"><?php echo $title_editinstitution; ?></h2></td></tr> <?php echo SuccessMessage($msg);?> <tr align="center"> <td> <table summary="" align="center" width="100%" cellpadding="0" cellspacing="0" border="0"> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"> <?php echo $lbl_selectlanguage; ?> : </td> <td align="left" colspan="3"> <select name="instlngid" id="instlngid" <?php echo $classlanguage; ?> onchange="return ChangeSelectLanguage(this.value,'editinst','','','<?php echo $scid; ?>','<?php echo $sid;?>','<?php echo $bid; ?>'); "> <!--<option value="0"><?php //echo $lbl_selectlanguage; ?></option>--> <?php echo GetAllLanguage($lang);?> </select> <input type="hidden" name="hdnmgtid" id="hdnmgtid" value="<?php echo $_GET["sid"];?>"/> <?php echo $lngtempname; ?> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." ".$lbl_selectinsttype; ?> : </td> <td align="left"> <?php $admincatid=getFieldValue('admcat_id','arya_adminuser','admuser_id="'.$_SESSION["adminuserid"].'"'); if($admincatid=="3") { ?> <select name="cmbInstType" id="cmbInstType" <?php echo $classinsttype; ?> onChange="return ChangeInstDetail(this.value);"> <?php }else { ?> <select name="cmbInstType" id="cmbInstType" <?php echo $classinsttype; ?> onChange="return ChangeInstDetail(this.value);" disabled="true"> <?php } ?> <option value="0"><?php echo $lbl_selectinsttype; ?></option> <?php if($_POST["insttypelogoid"] > 0) { echo getInstitutiontype($_POST["insttypelogoid"]); } else if($_SESSION['cmbInstType']>0) { echo getInstitutiontype($_SESSION['cmbInstType']); } else { echo getInstitutiontype($insttypeid); } ?> </select></td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_selectinstlevel; ?> : </td> <td align="left"> <select name="cmbinstitutionlevel" id="cmbinstitutionlevel" <?php echo $classinstlevel; ?> > <?php if($_SESSION['cmbinstitutionlevel']!="") { echo getInstLevel($_SESSION['cmbinstitutionlevel']); } else { echo getInstLevel($instlevel); } ?> </select> <?php echo $hidelevel; ?> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_selectinst; ?> : </td> <td align="left"> <select name="cmbparentinst" id="cmbparentinst" <?php echo $classinstparent; ?> > <option value="0"><?php echo $lbl_selectinst; ?></option> <?php echo getParentInsttype1($instparid,$cityid); ?> </select> <?php echo $hideparval; ?> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr align="right"> <td align="right" width="15%"><?php echo $sign." ".$lbl_instname." English";?> : </td> <td align="left" > <input type="text" name="txtinstname" id="txtinstname" <?php echo $classengname ; ?> value="<?php if($_SESSION['txtinstname']!=""){ echo $_SESSION['txtinstname']; }else { echo $instname; } ?>" maxlength="200"/> <?php echo "<br />".''.$hideinstname; ?> </td> <td align="right"><?php if($lngname=="Hindi"){ echo $sign." "; } echo $lbl_instname." Hindi";?> : </td> <td width="10%" align="left"><input type="text" name="txtinsthindiname" id="txtinsthindiname" onFocus="changeLanguage('txtinsthindiname', 'devanagari')" <?php echo $classhndname; ?> value="<?php if($_SESSION['txtinsthindiname']!=""){ echo $_SESSION['txtinsthindiname']; }else { echo $insthinname; } ?>" maxlength="300"/> <?php echo "<br />".''.$hidhinname; ?> </td> <?php if($lngname=='English' || $lngname == "Hindi") { ?> <td align="right" width="10%"> </td> <td align="left"> </td> <?php } else {?> <td align="right" width="10%"><?php echo $lbl_instname." Other";?> : </td> <td width="8%" align="left"><input type="text" name="txtinstothername" id="txtinstothername" <?php echo $classothrname; ?> value="<?php if($_SESSION['txtinstothername']!=""){ echo $_SESSION['txtinstothername']; }else { echo $instothername; } ?>" maxlength="300"/> <?php echo "<br />".''.$hidothename; ?> </td> <?php } ?> </tr> <tr><td height="3" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo "Logo"; ?> : </td> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" > <tr> <td> <?php if($_SESSION["logoses"] > 0) { ?> <input type="file" name="txtlogo" id="txtlogo" size="15" maxlength="100" class="skipThese txtbox" value="" /> <img src="<?php echo $pathvar.$insttplogo; ?>" width="51" alt="" title="" align="center" class="skipThese"/> <?php } else if($instlogo!="") { ?> <input type="file" name="txtlogo" id="txtlogo" value="" /> </td> <td <?php echo $classlogo; ?> style="width: 80px;"><img src="<?php echo $pathvar.$instlogo; ?>" width="80" alt="" title="" align="center"/></td> <td> <?php if($_SESSION['pendinstses']=='1' && $fetinstlogo == "" && $fettemplogo != "") { ?> <input type="checkbox" name="chkntchng" id="chkntchng" value="1">if you don't change your logo please check this button <?php } ?> <?php } else { ?> <input type="file" name="txtlogo" id="txtlogo" value="" /> <?php } ?> </td> </tr> </table> </td> </tr> <?php if($hidlogo != '') { ?> <tr><td height="3" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo "Old Logo"; ?> : </td> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" > <tr> <td> <img src="<?php echo $pathvar.$hidlogo; ?>" width="80" alt="" title="" align="center"/> <input type="checkbox" name="chkntchng" id="chkntchng" value="1">if you don't change your logo please check this button </td> </tr> </table> </td> </tr> <?php } ?> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." "."Web Address"; ?> : </td> <td colspan="3">www.thearyasamaj.org/<input type="text" name="txtwebadd" id="txtwebadd" <?php echo $classwebadd; ?> maxlength="30" value="<?php if($_SESSION['txtwebadd']!=""){ echo $_SESSION['txtwebadd']; }else { echo $instwebadd; } ?>" onKeyPress="return isAlphawebadd(event)" onpaste="return false;"/> <input type="hidden" name="hidtxtwebadd" id="hidtxtwebadd" class="txtbox" maxlength="20" value="<?php if($_SESSION['txtwebadd']!=""){ echo $_SESSION['txtwebadd']; }else { echo $instwebadd; } ?>" /><span id='errlink'></span> <?php echo $hidwebname; ?> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3">Brief Information : </td> <td <?php echo $classbrief; ?>> <?php if($_SESSION["FckContent"]!="") { $longtxt1=$_SESSION['FckContent']; } else { $longtxt1=$instbriefinfo; } include_once("arya_ckeditor.php"); ?> </td> <td style="width:4500px;"> </td> </tr> <?php if($hidbriefin != '') { ?> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3">Old Brief Information : </td> <td> <?php echo $hidbriefin; ?> </td> <td style="width:4500px;"> </td> </tr> <?php } ?> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." ".$lbl_selectcountry;?> : </td> <td align="left" > <select name="cmbcountry" id="cmbcountry" onChange="findselectstate(this.value);findselcity(this.value)" <?php echo $classcnt; ?>> <option value="0"><?php echo $lbl_selectcountry;?></option> <?php if($_SESSION['cmbcountry']!="") { echo GetCountry($_SESSION['cmbcountry']); } else { echo GetCountry($cntid); } ?> </select> <?php echo $hidcnt; ?> </td> </tr> <tr><td colspan="6" height="5"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." ".$lbl_selectstate;?> : </td> <td align="left"> <?php if($_SESSION['cmbcountry']>0 && $_SESSION['cmbstate']>0) { ?><select name="cmbstate" id="cmbstate" onChange="return findselcity(this.value);" <?php echo $classstate; ?>> <option value="0"><?php echo $lbl_selectstate;?></option> <?php echo GetState($_SESSION['cmbstate'],$_SESSION['cmbcountry']); ?> </select> <?php } else { ?> <div id="FetchAjaxDatastate"> <select name="cmbstate" id="cmbstate" onChange="return findselcity(this.value);" <?php echo $classstate; ?>> <option value="0"><?php echo $lbl_selectstate;?></option> <?php echo GetState($sttid,$cntid); ?> </select> <?php echo $hidstt; ?> </div><?php } ?> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo "Select District"; ?> : </td> <td align="left"> <?php if($_SESSION['cmbcountry']>0 && $_SESSION['cmbstate']>0) { ?><select name="cmbcity" id="cmbcity" <?php echo $classcity; ?>> <option value="0"><?php echo "Select District"?></option> <?php echo GetCity($_SESSION['cmbcity'],$_SESSION['cmbstate'],$_SESSION['cmbcountry']); ?> </select> <?php } else { ?> <div id="FetchAjaxDataCity"> <select name="cmbcity" id="cmbcity" <?php echo $classcity; ?>> <option value="0"><?php echo "Select District"?></option> <?php echo GetCity($cityid,$sttid,$cntid); ?> </select> <?php echo $hidcity; ?> </div><?php } ?> </td> </tr><tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." ".$lbl_address; ?> : </td> <td align="left"> <textarea name="txtaddress" id="txtaddress" <?php echo $classadd; ?>><?php if($_SESSION["txtaddress"]!=""){ echo $_SESSION["txtaddress"];}else{ echo $instaddress; } ?></textarea> <?php echo $hideaddres; ?> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_pincode; ?> : </td> <td><input type="text" name="txtpincode" id="txtpincode" <?php echo $classpin; ?> onKeyPress="return checkInt(event);" value="<?php if($_SESSION['txtpincode']!=""){ echo $_SESSION['txtpincode'];}else { echo $instpincode; } ?>" /> <?php echo $hidepinno; ?> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_conno; ?> : </td> <td><input type="text" name="usercontactno" id="usercontactno" value="<?php if($_SESSION['usercontactno']!=""){ echo $_SESSION['usercontactno'];}else { echo $instconno; } ?>" <?php echo $classcontact; ?>/> <?php echo $hideconno; ?> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." ".$lbl_offficialemail;?> : </td> <td colspan="3"> <input type="text" name="txtoffemail" id="txtoffemail" <?php echo $classemail; ?> onBlur="return blurEmailCheck('txtoffemail',1);" value="<?php if($_SESSION['txtoffemail']!=""){ echo $_SESSION['txtoffemail'];}else { echo $instemail; } ?>" maxlength="200"/> <div style="display:inline-block"><font color="Red"><b id="emailDupErrId" style="display:none;"><?php echo $dupemail; ?></b></font></div> <input id="emailDupId" type="hidden" name="hidval"></div> <?php echo $hideemail; ?> </td> </tr> <tr><td colspan="6" height="5"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_officialwebsite; ?> : </td> <td align="left" colspan="3"><input type="text" name="txtwebsite" id="txtwebsite" <?php echo $classwebsite; ?> value="<?php if($_SESSION['txtwebsite']!=""){ echo $_SESSION['txtwebsite'];}else{ echo $instwebsite; } ?>"/> <?php echo $hidewebsite; ?> </td> </tr> <!--<tr><td colspan="6" height="5"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php //echo $lbl_officialmagazine; ?> : </td> <td align="left" colspan="3"><input type="text" name="txtmagazine" id="txtmagazine" class="txtbox" value="<?php //echo $instmagazine; ?>" /></td> </tr>--> <tr><td height="5" colspan="6"></td></tr> <script language="javascript"> var geocoder = new google.maps.Geocoder(); function geocode () { geocoder.geocode({ 'address': document.getElementById('search').value }, function(results, status) { if(status == google.maps.GeocoderStatus.OK) { new google.maps.Marker({ position: results[0].geometry.location, map: map, icon: 'images/marker.png', cursor: 'images/' }); map.setZoom(7); map.setCenter(results[0].geometry.location); } }); } </script> <tr> <td align="right" colspan="3"><?php echo $lbl_fndlocation; ?> : </td> <td align="left" colspan="3"><input type="text" id="search"><input type="button" onClick="geocode();" value="Search"></td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" colspan="3"><?php echo $lbl_locationmap; ?> : </td> <td align="left" colspan="3"><div id="map_canvas" style="width: 650px; height: 400px"></div></td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" colspan="3"><?php echo $lbl_latitude;?> : </td> <td><input type="text" name="lat" id="frmLat" <?php echo $classlat; ?> value="<?php if($_SESSION['lat']!=""){ echo $_SESSION['lat']; }else{ echo $instlat; }?>" /> <?php echo $hidelat; ?> </td> </tr> <tr><td colspan="6" height="5"></td></tr> <tr> <td align="right" colspan="3"><?php echo $lbl_longotude;?> : </td> <td><input type="text" name="lng" id="frmLon" <?php echo $classlong; ?> value="<?php if($_SESSION['lng']!=""){ echo $_SESSION['lng']; }else{ echo $instlong; }?>" /> <?php echo $hidelong; ?> </td> </tr> <?php if($rightapprove == 'Self' || $rightapprove == 'All') { ?> <tr><td colspan="6" height="5"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_approve; ?> : </td>. <td> <input type="radio" name="txtapprove" id="txtapprove" value="Yes"<?php if($_SESSION['yesapprove']!=""){ echo $_SESSION['yesapprove'];}else{ echo $approveyes;} ?> />Yes <input type="radio" name="txtapprove" id="txtapprove" value="No"<?php if($_SESSION['noapprove']!=""){ echo $_SESSION['noapprove'];}else{ echo $approveNo; } ?> />No </td> </tr> <?php } ?> <tr><td colspan="6" height="5"></td></tr> <tr> <!--<td align="right" width="45%" colspan="3"> </td> <td colspan="3"> <input type="checkbox" name="txtcondition" id="txtcondition" class="skipThese" value="Yes"<?php //echo $checkever;?> onChange="enable()" /> I hereby affirm that all details given above are true to best of my knowledge & belief.</td> </tr>--> <tr><td height="5" colspan="6"></td></tr> <tr> <td colspan="3"></td> <td align="left" colspan="3"> <?php if($dbusercatname == 'Super Admin' || $_SESSION['pendinstses']=='1') { ?> <input type="submit" name="btnsubmit" id="btnsubmit" value="<?php echo $btn_update; ?>" class="button" /> <?php } else { ?> <input type="submit" name="btnadd" id="btnadd" value="<?php echo $btn_update; ?>" class="button" /> <?php } ?> <input type="submit" name="btn_reset" id="btn_reset" value="<?php echo $btn_reset; ?>"/> </td> </tr> </table> </td> </tr> </table> </form> <script language="javascript" type="text/javascript"> pph = new PramukhPhoneticHandler(); pph.convertToIndicIME("txtinsthindiname", document.getElementById('txtinsthindiname'),'devanagari'); <?php if($lngname=="Hindi") { ?> pph.convertToIndicIME("txtinsthindiname", document.getElementById('txtinsthindiname'),'devanagari'); <?php } else { ?> pph.convertToIndicIME("txtinstothername", document.getElementById('txtinstothername'),'<?php echo $lngname; ?>'); <?php } ?> </script> <?php // content over // footer start include("arya_footer.php"); // footer over ?>
Close