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.186
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_addnews_arvind-18-01-19.php
<?php if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { date_default_timezone_set('Asia/Kolkata'); } include('arya_AdminInclude.php'); // created by vaishali //header start include('arya_header.php'); //header over // link start include("arya_menu.php"); // link over // content start //This is used for admin rights wise display field Start Added By Navneet 45/01/2013 unset($_SESSION['editeventid']); unset($_SESSION['photonewsid']); unset($_SESSION["lmtlvlses"]); //this is for limit upload photo session $usersessid=$_SESSION["adminuserid"]; $dbusercatid=getFieldValue('admcat_id','arya_adminsectionrights','admuser_id="'.$usersessid.'"'); $rightsid=mysql_query('SELECT admsecright_pageid FROM arya_adminsectionrights WHERE admcat_id IN('.$dbusercatid.') AND admuser_id="'.$usersessid.'"'); 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); $url_parts = parse_url($headername); $constructed_url = $url_parts['scheme'] . '' . $url_parts['hostname'] . $url_parts['path']; if($constructed_url==$pagename) { $rightapprove=getFieldValue('admsecright_approve','arya_adminsectionrights','admsecright_pageid="'.$key.'" AND admuser_id="'.$usersessid.'" AND admcat_id="'.$dbusercatid.'"'); } } } $logindate=date('Y-m-d h:i:s'); $pagesecid=getFieldValue('page_sectionid','arya_adminpage','page_filename="'.$constructed_url.'"'); $modulenm=getFieldValue('page_title','arya_adminpage','page_filename="'.$constructed_url.'"'); ?> <script language="JavaScript"> function ChangeLang(evid,inid) { window.location.href ="arya_addnews.php?evid="+evid+"&ins="+inid; } function ChangeLangnews(lngid,evid,inid) { var str=(lngid); var ne=str.split(","); newLng= ne[1].replace(/^\s*/, "").replace(/\s*$/, ""); if(newLng>0) { window.location.href ="arya_addnews.php?evid="+evid+"&ins="+inid+"&lngid="+newLng; } } </script> <?php $eventarray=getFieldValueArray('lang_id,event_smddate,event_periodenddate,event_address,cnt_id,state_id,city_id,event_title,inst_id,event_image,event_titlehindi,event_titleother,event_singlemultiday,event_shorttext,event_shorttexthindi,event_shorttextother,event_level','arya_event','event_id="'.$_GET['evid'].'"'); if($_GET['lngid']=="") { $lnid=$eventarray[0]; } else { $lnid=$_GET['lngid']; } $startdate=$eventarray[1]; $enddate=$eventarray[2]; $address=$eventarray[3]; $cntid=$eventarray[4]; $stateid=$eventarray[5]; $cityid=$eventarray[6]; $eventtitle=$eventarray[7]; $instid=$eventarray[8]; $fethceventimg=$eventarray[9]; $eventtitlehindi=$eventarray[10]; $eventtitleother=$eventarray[11]; $eventsinglemulti=$eventarray[12]; $neweventshorttext=$eventarray[13]; $neweventshorttexthindi=$eventarray[14]; $eventshorttextother=$eventarray[15]; //this is use for limit of Photos uploaded start $eventlevel=$eventarray[16]; if($eventlevel > 0) { $_SESSION["lmtlvlses"]=$eventlevel; } else { $_SESSION["lmtlvlses"]=$_SESSION["lmtlvlses"]; } //this is use for limit of Photos uploaded end $eventshorttext=substr($neweventshorttext,0,499); $eventshorttexthindi=substr($neweventshorttexthindi,0,449); if($fethceventimg=="") { $catid=getFieldValue("ecat_id",'arya_event','event_id="'.$_GET['evid'].'"'); $typeicon=getFieldValue('ecat_icon','arya_ecategory','ecat_id="'.$catid.'"'); $neweventimg=$typeicon; } else { $neweventimg=$fethceventimg; } $eventimg=str_replace("./","",$neweventimg); $cntname=getFieldValue('cnt_name','arya_country','cnt_id="'.$cntid.'"'); $statename=getFieldValue('state_name','arya_state','state_id="'.$stateid.'"'); $cityname=getFieldValue('city_name','arya_city','city_id="'.$cityid.'"'); $instaddress=$cityname." ".$statename." ".$cntname; $timestamp=explode("-",$enddate); $vyear = $timestamp[0]; $vmonth = $timestamp[1]; $vday = $timestamp[2]; if($startdate > 0) { $startdatene=date("d-M-Y",strtotime($startdate)); } if($enddate > 0) { if($startdate!=$enddate) { $endnewdate=date("d-M-Y",strtotime($enddate)); } } $instname=getFieldValue('inst_name','arya_institution','inst_id="'.$instid.'"'); if($lnid > 0) {$lid=$lnid; } else {$lid="2";} $lngname=getFieldValue('lang_name','arya_language','lang_id="'.$lnid.'"'); $evnewscheck=''; $topcheck=''; if($_GET['lngid']=="") { $evnewscheck="checked='checked';"; } else { $topcheck="checked='checked';"; } //this code use for +1 feasequence in database put code nitesh for next prev in client side $pagesequence=getFieldValueWithoutWhere("MAX(news_feasequence)","arya_news"); if($pagesequence ==""){$nvsquence=1; }else{$nvsquence=$pagesequence+1;} $curntdate=date('Y-m-d'); $curnttime= date('h:i:s'); if(isset($_POST["submit_news"])) { $aduid=getFieldValue("admuser_id","arya_adminuser","admuser_email='".$_SESSION["uname"]."'"); $postdate=$_POST['year']."-".$_POST['month']."-".$_POST['day']; $postcountryid = $_POST["cmbCountry"]; $_SESSION["cmbCountry"]=$postcountryid; $poststateid = $_POST["cmbstate"]; $_SESSION["cmbstate"]=$poststateid; $postcityid = $_POST["cmbcity"]; $postevent=$_POST['cmbevent']; $_SESSION['cmbevent']=$postevent; $postnewstitle = addslashes($_POST['txtnewstitle']); $_SESSION['txtnewstitle']=$postnewstitle; $txthindititle = addslashes($_POST['txthindititle']); $_SESSION['txthindititle']=$txthindititle; $othertxttitle = addslashes($_POST['othertxttitle']); $_SESSION['othertxttitle']=$othertxttitle; $txtshorttexttitle = addslashes($_POST["txtshorttexttitle"]); $_SESSION['txtshorttexttitle']=$txtshorttexttitle; $txthindishorttext = addslashes($_POST["txthindishorttext"]); $_SESSION['txthindishorttext']=$txthindishorttext; $othertxtshorttext = addslashes($_POST["othertxtshorttext"]); $_SESSION['othertxtshorttext']=$othertxtshorttext; $txtlink1title = addslashes($_POST['txtlink1title']); $_SESSION['txtlink1title']=$txtlink1title; $txtlink1link = addslashes($_POST['txtlink1link']); $_SESSION['txtlink1link']=$txtlink1link; $txtlink2title = addslashes($_POST['txtlink2title']); $_SESSION['txtlink2title']=$txtlink2title; $txtlink2link = addslashes($_POST['txtlink2link']); $_SESSION['txtlink2link']=$txtlink2link; $txtlink3title = addslashes($_POST['txtlink3title']); $_SESSION['txtlink3title']=$txtlink3title; $txtlink3link = addslashes($_POST['txtlink3link']); $_SESSION['txtlink3link']=$txtlink3link; $postFckText = addslashes($_POST['FckContent']); $_SESSION['longtext']=$postFckText; $evntplace = $_POST['place']; $seleventdate=$_POST['videoyear']."-".$_POST['videomonth']."-".$_POST['videoday']; $_SESSION['videoyear']=$_POST['videoyear']; $_SESSION['videomonth']=$_POST['videomonth']; $_SESSION['videoday']=$_POST['videoday']; $websites = $_POST['website']; $_SESSION['website']=$websites; $posteventcountry = $_POST["cmbnvCoun"]; $_SESSION["cmbnvCoun"]=$posteventcountry; $photoalbumurl = addslashes($_POST['photoalbumurl']); $_SESSION['photoalbumurl']=$photoalbumurl; $videoalbumurl = addslashes($_POST['videoalbumurl']); $_SESSION['videoalbumurl']=$videoalbumurl; $newsplace=$_POST["eventpalce"]; $_SESSION["eventpalce"]=$newsplace; $chknewstype=$_POST["type"]; $_SESSION['newstype']=$_POST["type"]; unset($_SESSION['nocheck']); unset($_SESSION['yescheck']); if($_POST["type"]=='Yes') { $_SESSION['yescheck']='checked="checked"'; } if($_POST["type"]=='No') { $_SESSION['nocheck']='checked="checked"'; } if($chknewstype=="Yes") { $languageid=$_POST['eventlngid']; $newstype="Yes"; $postinst=$_SESSION['getnewsinstid']; $_SESSION['cmbinst']=$postinst; } if($chknewstype=="No") { $fetchlanguage=explode(",",$_POST["cmblanguage"]); $languagename=$fetchlanguage[0]; $languageid=$fetchlanguage[1]; $languageid=$fetchlanguage[1]; $_SESSION['instlngid']=$languageid; if($_SESSION['instlngid'] > 0) { //$_SESSION['nlnid']; $sellngid='sellng='.$_SESSION['instlngid'].'&'; } else { $sellngid=''; } if($_GET['evid'] > 0) { //$_SESSION['nlnid']; $eventid='evid='.$_GET['evid'].'&'; } else { $eventid=''; } if($_GET['ins'] > 0) { //$_SESSION['nlnid']; $ins='ins='.$_GET['ins'].'&'; } else { $ins=''; } $newstype="No"; $postinst=$_POST['newrowID']; $_SESSION['txtrelainst']=$postinst; } if($rightapprove == 'Self' || $rightapprove == 'All') { if($newstype=='Yes') { if($vday>0 || $vmonth>0 || $vyear>0) { $curdate=$enddate; } else { $curdate = date('Y-m-d'); } $date = strtotime(date("Y-m-d", strtotime($curdate)). " +60 day"); $fetchdate = explode('-',date('Y-m-d', $date)); $newday=$fetchdate[2]; $newmonth=$fetchdate[1]; $newyear=$fetchdate[0]; $postexpirydate=$newyear."-".$newmonth."-".$newday; } else { $postexpirydate=$_POST['year1']."-".$_POST['month1']."-".$_POST['day1']; } $_SESSION['year1']=$_POST['year1']; $_SESSION['month1']=$_POST['month1']; $_SESSION['day1']=$_POST['day1']; $posttxtshowhome=$_POST["txtshowhome"]; $shownewshome=$_POST["shownewshome"]; $posttxtapprove=$_POST["txtapprove"]; $showhome=$_POST["chkshowhome"]; } else { $curdate = date('Y-m-d'); $date = strtotime(date("Y-m-d", strtotime($curdate)). " +60 day"); $fetchdate = explode('-',date('Y-m-d', $date)); $newday=$fetchdate[2]; $newmonth=$fetchdate[1]; $newyear=$fetchdate[0]; $postexpirydate = $newyear.'-'.$newmonth.'-'.$newday; $posttxtshowhome = "No"; $shownewshome = "No"; $posttxtapprove = "No"; $showhome = "No"; $tophome = "No"; } unset($_SESSION['yesnewshome']); unset($_SESSION['nonewshome']); if($_POST["shownewshome"]=='Yes') { $_SESSION['yesnewshome']='checked="checked"'; } if($_POST["shownewshome"]=='No') { $_SESSION['nonewshome']='checked="checked"'; } unset($_SESSION['yesportalhome']); unset($_SESSION['noportalhome']); if($_POST["chkshowhome"]=='Yes') { $_SESSION['yesportalhome']='checked="checked"'; } if($_POST["chkshowhome"]=='No') { $_SESSION['noportalhome']='checked="checked"'; } if($rightapprove == 'Self' || $rightapprove == 'All') { $newsapprcon='Yes'; } else { $newsapprcon='No'; } $postsequence=1; if($photoalbumurl!="") { $advresult = substr($photoalbumurl, 0, 7); $advresults = substr($photoalbumurl, 0, 8); if($advresult=="http://") { $postcheckalbumurl=$photoalbumurl; } else if($advresults=="https://") { $postcheckalbumurl=$photoalbumurl; } else { $postcheckalbumurl="http://".$photoalbumurl; } } if($videoalbumurl!="") { $link2result = substr($videoalbumurl, 0, 7); $link2advresults = substr($videoalbumurl, 0, 8); if($link2result=="http://") { $link2check=$videoalbumurl; } else if($link2advresults=="https://") { $link2check=$videoalbumurl; } else { $link2check="http://".$videoalbumurl; } } if($websites!="") { $res3link = substr($websites, 0, 7); $res3checklink = substr($websites, 0, 8); if($res3link=="http://") { $chekc3link=$websites; } else if($res3checklink=="https://") { $chekc3link=$websites; } else { $chekc3link="http://".$websites; } } if($txtlink1link!="") { $titlelink1 = substr($txtlink1link, 0, 7); $newtitlelink = substr($txtlink1link, 0, 8); if($titlelink1=="http://") { $linktitlelink1=$txtlink1link; } else if($newtitlelink=="https://") { $linktitlelink1=$txtlink1link; } else { $linktitlelink1="http://".$txtlink1link; } } if($txtlink2link!="") { $titlelink2 = substr($txtlink2link, 0, 7); $newtitlelink2 = substr($txtlink2link, 0, 8); if($titlelink2=="http://") { $linktitlelink2=$txtlink2link; } else if($newtitlelink2=="https://") { $linktitlelink2=$txtlink2link; } else { $linktitlelink2="http://".$txtlink2link; } } if($txtlink3link!="") { $titlelink3 = substr($txtlink3link, 0, 7); $newtitlelink3 = substr($txtlink3link, 0, 8); if($titlelink3=="http://") { $linktitlelink3=$txtlink3link; } else if($newtitlelink3=="https://") { $linktitlelink3=$txtlink3link; } else { $linktitlelink3="http://".$txtlink3link; } } if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { if($chknewstype=='Yes') { if($postinst <= 0) { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=empinst'); } else if($_POST['cmbevent'] <=0) { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=empevent'); } } if($postnewstitle=="") { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=engempname'); } else if($languageid==2 && $txthindititle="") { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=hndempname'); } else if($languageid>2 && $othertxttitle="") { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=otrempname'); } else if($txtshorttexttitle=="") { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=shrtempenm'); } else if($languageid==2 && $txthindishorttext=="") { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=shrtemphnm'); } else if($languageid>2 && $othertxtshorttext=="") { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=shrtemponm'); } else if($_POST['videoday']<=0) { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=empvideoday'); } else if($_POST['videomonth']<=0) { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=empvideomonth'); } else if($_POST['videoyear']<=0) { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=empvideoyear'); } else if($newsplace=="") { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=empnewsplace'); } else if($posteventcountry<=0) { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=empcnt'); } } if($postnewstitle!="") { if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { if(find_scripttags($postnewstitle)=="Yes") { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=engnmerr'); } else if(find_scripttags($txthindititle)=="Yes") { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=hndnmerr'); } else if(find_scripttags($othertxttitle)=="Yes") { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=otrnmerr'); } else if(find_scripttags($txtshorttexttitle)=="Yes") { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=senmerr'); } else if(find_scripttags($txthindishorttext)=="Yes") { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=shnnmerr'); } else if(find_scripttags($othertxtshorttext)=="Yes") { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=sotnmerr'); } // if($chknewstype=='Yes') // { // if(CheckWebUrl($postcheckalbumurl)=="Yes" || find_specialchar($photoalbumurl)=="Yes" || find_scripttags($photoalbumurl)=="Yes") // { // RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=photourlerr'); // } // else if(CheckWebUrl($link2check)=="Yes" || find_specialchar($videoalbumurl)=="Yes" || find_scripttags($videoalbumurl)=="Yes") // { // RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=videourlerr'); // } // else if(CheckWebUrl($chekc3link)=="Yes" || find_specialchar($websites)=="Yes" || find_scripttags($websites)=="Yes") // { // RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=weberr'); // } // // } if(find_scripttags($newsplace)=="Yes") { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=placeerr'); } if($chknewstype=='No') { if(find_scripttags($txtlink1title)=="Yes") { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=title1err'); } /* else if(CheckWebUrl($linktitlelink1)=="Yes" || find_specialchar($txtlink1link)=="Yes" || find_scripttags($txtlink1link)=="Yes") { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=link1err'); }*/ else if(find_scripttags($txtlink2title)=="Yes") { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=title2err'); } // else if(CheckWebUrl($linktitlelink2)=="Yes" || find_specialchar($txtlink2link)=="Yes" || find_scripttags($txtlink2link)=="Yes") // { // RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=link2err'); // } else if(find_scripttags($txtlink3title)=="Yes") { RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=title3err'); } // else if(CheckWebUrl($linktitlelink3)=="Yes" || find_specialchar($txtlink3link)=="Yes" || find_scripttags($txtlink3link)=="Yes") // { // RedirecPage('arya_addnews.php?'.$sellngid.$eventid.$ins.'msg=link2err'); // } } } $dtime=time(); $curdate=date('Y-m-d'); $updtime=date('h:i:s A',$dtime); $qryInsnews="INSERT INTO arya_news(`lang_id`, `news_title`, `news_titlehindi`, `news_titleother`, `news_titlelngid`, `news_shorttext`, `news_shorttexthindi`, `news_shorttextother`, `news_shorttextlngid`, `news_longtext`, `news_type`, `inst_id`, `event_id`, `news_eventstartdate`, `news_eventenddate`, `news_eventplace`, `news_albumurl`, `news_videourl`, `news_websites`, `news_date`, `news_place`, `cnt_id`, `news_link1title`, `news_link1link`, `news_link2title`, `news_link2link`, `news_link3title`, `news_link3link`, `state_id` , `news_approve`, `news_sequence`, `news_expiredate`, `news_shownewshome`, `news_showportalhome`, `user_id`, `login_status`,`news_feasequence`,news_upload_date,news_upload_time) VALUES ('".$languageid."','".$postnewstitle."','".$_SESSION['txthindititle']."','".$_SESSION['othertxttitle']."','".$langid."','".$txtshorttexttitle."','".$txthindishorttext."','".$othertxtshorttext."','".$shorttextid."','".$postFckText."','".$newstype."','".$postinst."','".$postevent."','".$startdate."','".$enddate."','".$evntplace."','".$postcheckalbumurl."','".$link2check."','".$websites."','".$seleventdate."','".$newsplace."','".$posteventcountry."','".$txtlink1title."','".$linktitlelink1."','".$txtlink2title."','".$linktitlelink2."','".$txtlink3title."','".$linktitlelink3."','".$poststateid."','".$newsapprcon."','".$postsequence."','".$postexpirydate."','".$shownewshome."','".$showhome."','".$_SESSION["adminuserid"]."','0','".$nvsquence."','".$curdate."','".$updtime."')"; $newsInsert = mysql_query($qryInsnews); if($newsInsert) { $dnId = mysql_insert_id(); $_SESSION['newsautoid']=$dnId; if($newstype=='No') { $seqfetcharray=getArrayFieldValue('news_id','arya_news','news_type="No" AND news_id!='.$dnId.' order by news_sequence'); $i=1; foreach($seqfetcharray as $nsid) { if($i==1) { $sqval=2; } else { $sqval=$i+1; } $updaterecord=mysql_query('update arya_news set news_sequence='.$sqval.' where news_id='.$nsid); $i++; } }//if($newstype=='No') getadminactivity('title_addnews',$pagesecid,$_SESSION["adminuserid"],$_SERVER["REMOTE_ADDR"],$postnewstitle,$curntdate,$curnttime); if($_FILES['txtimage']['name'] != "") { $ImageSource = $_FILES['txtimage']['tmp_name']; $number = rand(); $imagenumber=strtoupper(base_convert($number, 10, 36)); $FileName = $imagenumber."_".str_replace(" ","_",$_FILES['txtimage']['name']); $SmallFileName = $imagenumber."_SM_".str_replace(" ","_",$_FILES['txtimage']['name']); $BigFileName = $imagenumber."_BG_".str_replace(" ","_",$_FILES['txtimage']['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 = "200"; $Thumheight = ""; $bigThumwidth = "400"; $bigThumheight = ""; $filePath=$photomonthpath.$FileName; $d=copy($ImageSource,$filePath); if($d) { $ThumbtoPath=$mediamonthpath.$SmallFileName; $UploadImg=generate_image_thumbnail($ImageSource, $ThumbtoPath, $Thumwidth, $Thumheight); $bigThumbtoPath=$mediamonthpath.$BigFileName; $UploadImg=generate_image_thumbnail($ImageSource, $bigThumbtoPath, $bigThumwidth, $bigThumheight); if($UploadImg== "true") { $qryUpdateAdvert = "UPDATE arya_news SET news_image='".$ThumbtoPath."' WHERE news_id='".$dnId."'"; $qUpdateAdvert = mysql_query($qryUpdateAdvert); } } }//extention condition over }//if($conditionvar=='2') /*else { $year=date('Y'); $month=date('m'); $mediaPath="media/"; $mediayearpath="media/".$year."/"; $mediamonthpath="media/".$year."/".$month."/"; $Thumwidth = "200"; $Thumheight = ""; $bigThumwidth = "400"; $bigThumheight = ""; if(!is_dir($mediaPath)) { mkdir($mediaPath); chmod($mediaPath,0777); } if(!is_dir($mediayearpath)) { mkdir($mediayearpath); chmod($mediayearpath,0777); } if(!is_dir($mediamonthpath)) { mkdir($mediamonthpath); chmod($mediamonthpath,0777); } $ThumbtoPath=$mediamonthpath.$SmallFileName; $UploadImg=generate_image_thumbnail($ImageSource, $ThumbtoPath, $Thumwidth, $Thumheight); $bigThumbtoPath=$mediamonthpath.$BigFileName; $UploadImg=generate_image_thumbnail($ImageSource, $bigThumbtoPath, $bigThumwidth, $bigThumheight); }*/ 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['txtimage']; $srvfile = $myFile['tmp_name']; include('arya_ftpfile.php'); $destination_file =$destDirsrv.'/'.$FileName; $smalldestination_file =$destDirsrv.'/'.$SmallFileName; $bigdestination_file =$destDirsrv.'/'.$BigFileName; $srvupload = ftp_put($srvconn_id, $destination_file, $srvfile, FTP_BINARY); $srvthumbupload = ftp_put($srvconnect_id, $smalldestination_file, $srvfile, FTP_BINARY); $srvbigthumbupload = ftp_put($srvconnect_id, $bigdestination_file, $srvfile, FTP_BINARY); $smupload = ftp_put($srvconnect_id, $smalldestination_file, "http://".$_SERVER['HTTP_HOST']."/aryaadmin/media/".$year."/".$month."/".$SmallFileName, FTP_BINARY); $bigupload = ftp_put($srvconnect_id, $bigdestination_file, "http://".$_SERVER['HTTP_HOST']."/aryaadmin/media/".$year."/".$month."/".$BigFileName, FTP_BINARY); ftp_close($srvconn_id); ftp_close($srvconnect_id); $qryUpdArticleImage="UPDATE arya_news SET news_image='".$smalldestination_file."' WHERE news_id='".$dnId."'"; $qUpdArticleImage=mysql_query($qryUpdArticleImage); } } } else { $qryUpdateAdvert = "UPDATE arya_news SET news_image='' WHERE news_id='".$dnId."'"; $qUpdateAdvert = mysql_query($qryUpdateAdvert); } //unset($_SESSION['newsinstgetid']) ?> <script type="text/javascript"> <!-- $(document).ready(function(){ setTimeout(function() { //$.colorbox({iframe:true, href:'master',height:800,width:1000, open:true}); $.colorbox({iframe:true, href:'arya_newsphotoupload.php', width:"850px", height:"650px", }); }, 500 ); }); //--> </script> <?php //$msg=$msgInserRecord; } } else { $msg=$msgFillFormField; } } $pagesequence=getFieldValueWithoutWhere("MAX(news_sequence)","arya_news"); if($pagesequence ==""){$nvsquence=1; }else{$nvsquence=$pagesequence+1;} //$lngname=getFieldValue('lang_name','arya_language','lang_id="'.$_SESSION["vlangid"].'"'); $_SESSION['nlnid']=$_GET['sellng']; if($startdatene!="") { $datereport=$startdatene; } if($endnewdate!="") { if($startdatene=="") { $datereport.=$endnewdate; } else { $datereport.=" To ".$endnewdate; } } $datereport.="\n".$instaddress." \n".$instname; $classinst='class="selbox"'; $classevent='class="selbox"'; $classengname='class="txtbox"'; $classhndname='class="txtbox"'; $classotrname='class="txtbox"'; $classshortename='class="txtbox"'; $classshorthname='class="txtbox"'; $classshortoname='class="txtbox"'; $classphotourl='class="txtbox"'; $classvideourl='class="txtbox"'; $classwebsite='class="txtbox"'; $classvideoday='class="brthdate"'; $classvideomonth='class="brthdate"'; $classvideoyear='class="brthdate"'; $classplace='class="txtbox"'; $classcnt='class="selbox"'; $classtitle1='class="txtbox"'; $classlink1='class="txtbox"'; $classtitle2='class="txtbox"'; $classlink2='class="txtbox"'; $classtitle3='class="txtbox"'; $classlink3='class="txtbox"'; if($_GET['msg']=="empinst") { $emtttle="Please"." ".$lbl_selinstitution; $msg=$emtttle; $classinst='class="errtxtengbord"'; } else if($_GET['msg']=="empevent") { $emtttle="Please"." ".$sel_evtttl; $msg=$emtttle; $classevent='class="errtxtengbord"'; } else if($_GET['msg']=="engempname") { $emtttle=$lbl_errmenmsg." ".$lbl_headline." English"; $msg=$emtttle; $classengname='class="errtxtengbord"'; } else if($_GET['msg']=="engnmerr") { $emtttle=$lbl_errvalidmsg." ".$lbl_headline." English"; $msg=$emtttle; $classengname='class="errtxtengbord"'; } else if($_GET['msg']=="hndempname") { $emtttle=$lbl_errmenmsg." ".$lbl_headline." Hindi"; $msg=$emtttle; $classhndname='class="errtxtengbord"'; } else if($_GET['msg']=="hndnmerr") { $emtttle=$lbl_errvalidmsg." ".$lbl_headline." Hindi"; $msg=$emtttle; $classhndname='class="errtxtengbord"'; } else if($_GET['msg']=="otrempname") { $emtttle=$lbl_errmenmsg." ".$lbl_headline." Other"; $msg=$emtttle; $classotrname='class="errtxtengbord"'; } else if($_GET['msg']=="otrnmerr") { $emtttle=$lbl_errvalidmsg." ".$lbl_headline." Other"; $msg=$emtttle; $classotrname='class="errtxtengbord"'; } else if($_GET['msg']=="shrtempenm") { $emtttle=$lbl_errmenmsg." ".$shortreport; $msg=$emtttle; $classshortename='class="errtxtengbord"'; } else if($_GET['msg']=="senmerr") { $emtttle=$lbl_errvalidmsg." ".$shortreport; $msg=$emtttle; $classshortename='class="errtxtengbord"'; } else if($_GET['msg']=="shrtemphnm") { $emtttle=$lbl_errmenmsg." ".$shortreporthindi; $msg=$emtttle; $classshorthname='class="errtxtengbord"'; } else if($_GET['msg']=="shnnmerr") { $emtttle=$lbl_errvalidmsg." ".$shortreporthindi; $msg=$emtttle; $classshorthname='class="errtxtengbord"'; } else if($_GET['msg']=="shrtemponm") { $emtttle=$lbl_errmenmsg." ".$shortreportother; $msg=$emtttle; $classshortoname='class="errtxtengbord"'; } else if($_GET['msg']=="sotnmerr") { $emtttle=$lbl_errvalidmsg." ".$shortreportother; $msg=$emtttle; $classshortoname='class="errtxtengbord"'; } else if($_GET['msg']=="photourlerr") { $emtttle=$lbl_errvalidmsg." Photo Album URL"; $msg=$emtttle; $classphotourl='class="errtxtengbord"'; } else if($_GET['msg']=="videourlerr") { $emtttle=$lbl_errvalidmsg." Video Album URL"; $msg=$emtttle; $classvideourl='class="errtxtengbord"'; } else if($_GET['msg']=="weberr") { $emtttle=$lbl_errvalidmsg." Online Link"; $msg=$emtttle; $classwebsite='class="errtxtengbord"'; } else if($_GET['msg']=="empvideoday") { $emtttle="Please Select News Day"; $msg=$emtttle; $classvideoday='class="errbrthdate"'; } else if($_GET['msg']=="empvideomonth") { $emtttle="Please Select News Month"; $msg=$emtttle; $classvideomonth='class="errbrthdate"'; } else if($_GET['msg']=="empvideoyear") { $emtttle="Please Select News Year"; $msg=$emtttle; $classvideoyear='class="errbrthdate"'; } else if($_GET['msg']=="empnewsplace") { $emtttle=$lbl_errmenmsg." ".$lbl_newsplace; $msg=$emtttle; $classplace='class="errtxtengbord"'; } else if($_GET['msg']=="placeerr") { $emtttle=$lbl_errvalidmsg." ".$lbl_newsplace; $msg=$emtttle; $classplace='class="errtxtengbord"'; } else if($_GET['msg']=="empcnt") { $emtttle="Please Select Country"; $msg=$emtttle; $classcnt='class="errtxtengbord"'; } else if($_GET['msg']=="title1err") { $emtttle=$lbl_errvalidmsg." ".$lbl_linktitle1; $msg=$emtttle; $classtitle1='class="errtxtengbord"'; } else if($_GET['msg']=="link1err") { $emtttle=$lbl_errvalidmsg." ".$lbl_url1; $msg=$emtttle; $classlink1='class="errtxtengbord"'; } else if($_GET['msg']=="title2err") { $emtttle=$lbl_errvalidmsg." ".$lbl_linktitle2; $msg=$emtttle; $classtitle2='class="errtxtengbord"'; } else if($_GET['msg']=="link2err") { $emtttle=$lbl_errvalidmsg." ".$lbl_url2; $msg=$emtttle; $classlink2='class="errtxtengbord"'; } else if($_GET['msg']=="title3err") { $emtttle=$lbl_errvalidmsg." ".$lbl_linktitle3; $msg=$emtttle; $classtitle3='class="errtxtengbord"'; } else if($_GET['msg']=="link3err") { $emtttle=$lbl_errvalidmsg." ".$lbl_url3; $msg=$emtttle; $classlink3='class="errtxtengbord"'; } else { unset($_SESSION['cmbinst']); unset($_SESSION['cmbevent']); unset($_SESSION['txtnewstitle']); unset($_SESSION['txthindititle']); unset($_SESSION['othertxttitle']); unset($_SESSION['txtshorttexttitle']); unset($_SESSION['txthindishorttext']); unset($_SESSION['othertxtshorttext']); unset($_SESSION['photoalbumurl']); unset($_SESSION['videoalbumurl']); unset($_SESSION['website']); unset($_SESSION['videoyear']); unset($_SESSION['videomonth']); unset($_SESSION['videoday']); unset($_SESSION['newstype']); unset($_SESSION['yescheck']); unset($_SESSION['nocheck']); unset($_SESSION['txtlink1title']); unset($_SESSION['txtlink1link']); unset($_SESSION['txtlink2title']); unset($_SESSION['txtlink2link']); unset($_SESSION['txtlink3title']); unset($_SESSION['txtlink3link']); unset($_SESSION['year1']); unset($_SESSION['month1']); unset($_SESSION['day1']); unset($_SESSION['yesnewshome']); unset($_SESSION['nonewshome']); unset($_SESSION['yesportalhome']); unset($_SESSION['noportalhome']); unset($_SESSION["cmbnvCoun"]); unset($_SESSION["cmbstate"]); unset($_SESSION['longtext']); unset($_SESSION['txtrelainst']); unset($_SESSION['instlngid']); unset($_SESSION['newsinstgetid']); unset($_SESSION['getnewsinstid']); unset($_SESSION["eventpalce"]); $classinst='class="selbox"'; $classevent='class="selbox"'; $classengname='class="txtbox"'; $classhndname='class="txtbox"'; $classotrname='class="txtbox"'; $classshortename='class="txtbox"'; $classshorthname='class="txtbox"'; $classshortoname='class="txtbox"'; $classphotourl='class="txtbox"'; $classvideourl='class="txtbox"'; $classwebsite='class="txtbox"'; $classvideoday='class="brthdate"'; $classvideomonth='class="brthdate"'; $classvideoyear='class="brthdate"'; $classplace='class="txtbox"'; $classcnt='class="selbox"'; $classtitle1='class="txtbox"'; $classlink1='class="txtbox"'; $classtitle2='class="txtbox"'; $classlink2='class="txtbox"'; $classtitle3='class="txtbox"'; $classlink3='class="txtbox"'; } if($_SESSION['yescheck']!="" || $_SESSION['nocheck']!="") { $evnewscheck=""; $topcheck=""; } if($_POST["shownewshome"]!='Yes' || $_POST["shownewshome"]!='No') { $_SESSION['yesnewshome']='checked="checked"'; } if($_SESSION["yesportalhome"]=='' && $_SESSION["noportalhome"]=='') { //$_SESSION['noportalhome']='checked="checked"'; $check='checked="checked"'; } if($_GET['ins']>0) { $_SESSION['getnewsinstid']=$_GET['ins']; } else { $_SESSION['getnewsinstid']=$_SESSION['getnewsinstid']; } ?> <script type="text/javascript"> $(document).ready(function(){ $("input[name$='type']").click(function(){ var value = $(this).val(); if(value=='Yes') { $("#Individual_box").show(); $("#Company_box").hide(); $("#Individual").show(); $("#Company").hide(); $("#eventlan").show(); $("#toplan").hide(); } else if(value=='No') { $("#Company_box").show(); $("#Individual_box").hide(); $("#Company").show(); $("#Individual").hide(); $("#toplan").show(); $("#eventlan").hide(); } }); <?php if($_GET['lngid']!="") { ?> $("#Company_box").show(); $("#Individual_box").hide(); $("#Company").show(); $("#Individual").hide(); $("#toplan").show(); $("#eventlan").hide(); <?php } else if( $_SESSION['newstype']=='No'){ ?> $("#Company_box").show(); $("#Individual_box").hide(); $("#Company").show(); $("#Individual").hide(); $("#toplan").show(); $("#eventlan").hide(); <?php } else { ?> $("#Individual_box").show(); $("#Company_box").hide(); $("#Individual").show(); $("#Company").hide(); $("#eventlan").show(); $("#toplan").hide(); <?php } ?> }); </script> <script language="javascript"> $(document).ready(function(){ $("#txtrelainst").autocomplete("arya_searchinsttitle.php", { width: 350, selectFirst: false, autoFill: true, mustMatch:true, max: 120, formatItem: function(data, i, n, value) { return value.split("|")[0]; } }); $("#txtrelainst").result(function(event, data, formatted) { //var hidden = $("#rowID"); var hidden = $("#newrowID"); hidden.val(data[1]); var b=$("#newrowID").val(); }); //return false; $("#cmbinst").autocomplete("arya_searchinsttitle.php", { width: 350, selectFirst: false, autoFill: true, mustMatch:true, max: 120, formatItem: function(data, i, n, value) { return value.split("|")[0]; } }); $("#cmbinst").result(function(event, data, formatted) { //var hidden = $("#rowID"); var hidden = $("#rowID"); hidden.val(data[1]); var b=$("#rowID").val(); if(b>0) { var xmlhttp=false; try { xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); } catch (e) { try { xmlhttp = new ActiveXObject('Microsoft.XMLHTTP'); } catch (E) { xmlhttp = false; } } if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp = new XMLHttpRequest(); } var file ="common/arya_fnd_event_ajax.php?instid="+b; //window.open(file); xmlhttp.open('GET', file, true); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4) { var myContent; myContent=xmlhttp.responseText; document.getElementById('fetcheventdata').innerHTML=myContent; } } xmlhttp.send(null) //Nullify the XMLHttpRequest return; } }); return false; }); </script> <?php if($_GET['ins']>0) { $cityid=getFieldValue("city_id","arya_institution","inst_id=".$_GET['ins'].""); $citynm=getFieldValue("city_name","arya_city","city_id=".$cityid.""); $instname=getFieldValue("inst_name","arya_institution","inst_id=".$_GET['ins'].""); if($cityid>0) { $newinstname=$instname." (".$citynm.")"; } else { $newinstname=$instname; } } ?> <form name="frmnews" id="frmnews" method="POST" enctype="multipart/form-data" action="arya_addnews.php" onSubmit="return blankNews('add');"> <table width="100%" summary="" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="center" height="85"> <h2 class="bigheader"><?php echo $title_addnews; ?></h2> </td> </tr> <?php echo SuccessMessage($msg);?> <tr align="center"> <td> <table summary="" border="0" align="center" width="100%" cellpadding="0" cellspacing="0" > <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_newstype;?> : </td> <td align="left" colspan="3"> <input type="radio" name="type" value="Yes" id="type_0" <?php if($_SESSION['yescheck']!=""){ echo $_SESSION['yescheck'];} else{ echo $evnewscheck; } ?>/>Event News <input type="radio" name="type" value="No" id="type_1" <?php if($_SESSION['nocheck']!=""){ echo $_SESSION['nocheck'];} else{ echo $topcheck; } ?> />Other News </td> </tr> <tr> <td colspan="6" > <div id="Individual_box"> <table align="center" width="100%" border="0"> <tr><td height="6" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." ".$lbl_selinstitution; ?> : </td> <td> <!-- <select name="cmbinst" id="cmbinst" <?php //echo $classinst; ?> onchange="return findselevent(this.value);"> <option value="0"><?php// echo $lbl_selinstitution; ?></option> <?php //if($_SESSION['cmbinst']>0){ echo getNewsInstitution($_SESSION['cmbinst']); }else{ echo getNewsInstitution($_GET['ins']); } ?> </select>--> <input type="text" name="cmbinst" id="cmbinst" class="txtbox" value="<?php echo $newinstname; ?>" /> <input type="hidden" id="rowID" name="rowID" value="" /> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." ".$sel_evtttl; ?> : </td> <td> <div id="fetcheventdata"> <select name="cmbevent" id="cmbevent" <?php echo $classevent; ?> onchange="ChangeLang(this.value,'<?php echo $_SESSION['getnewsinstid']; ?>')" > <option value="0"><?php echo $sel_evtttl; ?></option> <?php if($_SESSION['cmbevent']>0){ echo getEventComming($_SESSION['cmbevent'],$_SESSION['cmbinst']); }else{ echo getEventComming($_GET['evid'],$_GET['ins']); }?> </select> </div> </td> </tr> <?php if($_GET['evid']>0) { echo '<tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"></td> <td >'; if($startdatene !="") { $date=$lbl_startdate." : "."<font color= 'grey'>".$startdatene."</font><br/>"; } if($endnewdate !="") { $date.=$lbl_enddate." : "."<font color= 'grey'>".$endnewdate."</font><br/>"; } echo $date; if($address!="") { $content.=$address; } if($cityname!="") { if($address=="") { $content.=$cityname; } else { $content.=" ,".$cityname; } } if($statename!="") { if($cityname=="") { $content.=$statename; } else { $content.=" ,".$statename; } } if($cntname!="") { if($statename=="") { $content.=$cntname; } else { $content.=" ,".$cntname; } } if($content) { echo $lbl_place." : "."<font color= 'grey'>".$content."</font>"; } echo '<input type="hidden" name="place" value="'.$content.'"/> </td> </tr>'; }//if($_GET['evid']!="") ?> </table> </div> <!--<div id="Individual_box">--> </td> </tr> <tr> <td colspan="6"> <div id="eventlan"> <table align="center" width="100%" border="0"> <tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"> <?php echo $locallanguage; ?> : </td> <td align="left" colspan="3"> <select name="eventlngid" id="eventlngid" class="selbox" disabled="true" > <?php echo GetAllLanguage($lid);?> <input type="hidden" name="eventlngid" id="eventlngid" value="<?php echo $lid; ?>" > </select> </td> </tr> </table> </div> </td> </tr> <tr> <td colspan="6"> <div id="toplan"> <table align="center" width="100%" border="0"> <tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"> <?php echo $locallanguage; ?> : </td> <td align="left" colspan="3"> <select name="cmblanguage" id="cmblanguage" class="selbox" onChange="ChangeLangnews(this.value,'<?php echo $_GET['evid'];?>','<?php echo $instid;?>');" > <?php echo GetAllLanguage($lid);?> </select> </td> </tr> </table> </div> </td> </tr> <tr><td height="5" colspan="5"></td></tr> <tr align="right"> <td align="right" ><?php echo $sign." ".$lbl_headline." English";?> : </td> <td align="left"> <input type="text" name="txtnewstitle" id="txtnewstitle" value="<?php if($_SESSION['txtnewstitle']!=""){ echo $_SESSION['txtnewstitle']; }else{ echo $eventtitle;} ?>" <?php echo $classengname; ?> maxlength="85" /> </td> <td align="right"><?php if($lid=="2") { echo $sign." "; } echo $lbl_headline." Hindi";?> : </td> <td align="left" width="17%"><input type="text" name="txthindititle" id="txthindititle" value="<?php if($_SESSION['txthindititle']!=""){ echo $_SESSION['txthindititle']; }else{ echo $eventtitlehindi; } ?>" onFocus="changeLanguage('txthindititle', 'devanagari')" <?php echo $classhndname; ?> onKeyPress="return imposeMaxLength(this, 25);" maxlength="300"/> </td> <?php if($lid=='1' || $lid == "2") { ?> <td align="right" width="10%"> </td> <td align="left"> </td> <?php } else {?> <td align="right" width="10%"> <?php echo $sign." ".$lbl_headline." Other";?> : </td> <td align="left"> <input type="text" name="othertxttitle" id="othertxttitle" onFocus="changeLanguage('othertxttitle', '<?php echo $lngname; ?>')" <?php echo $classotrname; ?> value="<?php if($_SESSION['othertxttitle']!=""){ echo $_SESSION['othertxttitle']; }else{ echo $eventtitleother;} ?>" maxlength="300"/> </td><?php } ?> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right"><?php echo $sign." ".$shortreport;?> : </td> <td align="left" > <textarea rows="3" cols="10" name="txtshorttexttitle" id="txtshorttexttitle" <?php echo $classshortename; ?> onkeypress="return imposeMaxLength(this,500);" ><?php if($_SESSION['txtshorttexttitle']!=""){ echo $_SESSION['txtshorttexttitle']; }elseif($_GET['evid']!="") { echo $eventshorttext;}?></textarea></td> <td align="right"><?php if($lid=="2") { echo $sign." "; } echo $shortreporthindi;?> : </td> <td align="left" ><textarea rows="3" cols="10" name="txthindishorttext" id="txthindishorttext" onFocus="changeLanguage('txthindishorttext', 'devanagari')" <?php echo $classshorthname; ?> onKeyPress="return imposeMaxLength(this, 450);"><?php if($_SESSION['txthindishorttext']!=""){ echo $_SESSION['txthindishorttext']; }else if($_GET['evid']!="") { echo $eventshorttexthindi; }?></textarea></td> <?php if($lid!='1' && $lid!="2" ) { ?> <td align="right"><?php echo $sign." ".$shortreportother;?> : </td> <td align="left"><textarea rows="3" cols="10" name="othertxtshorttext" id="othertxtshorttext" <?php echo $classshortoname; ?>><?php if($_SESSION['othertxtshorttext']!=""){ echo $_SESSION['othertxtshorttext'];}else{ echo $eventshorttextother; } ?></textarea> </td><?php } ?> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"></td><td align="left" colspan="6" class="redMsg">Preferable image width 400px height 165px.</td></tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." ".$lbl_frnimage;?> : </td> <td align="left" colspan="3"> <?php if($eventimg=="") { ?> <input type="file" name="txtimage" id="txtimage" size="20" value="<?php echo $neweventimg; ?>" maxlength="100" class="txtbox" /> <?php } else { ?> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td><input type="file" name="txtimage" id="txtimage" value="123" /></td> <?php if($neweventimg=='logo.png'){ ?> <td><img src="images/logo.png" width="80" alt="" title="" /></td> <?php }else{ ?><td><img src="<?php echo $pathvar.$eventimg; ?>" width="80" alt="" title="" /></td><?php } ?> </tr> </table> <?php } ?> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_detailrep; ?> : </td> <td align="left"> <?php $longtxt1=$_SESSION['longtext']; include_once("arya_ckeditor.php"); /*include_once("FCK/fckeditor.php"); $oFCKeditor=new FCKeditor('FckContent'); $oFCKeditor->BasePath="FCK/" ; $oFCKeditor->Value="".$longtxt1.""; $oFCKeditor->Width=650; $oFCKeditor->Height=300; $oFCKeditor->Create() ;*/ ?> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td colspan="6"> <div id="Individual"> <table align="center" width="100%" border="0"> <!-- <tr> <td align="right" width="45%" colspan="3"><?php //echo "Photo Album URL"; ?> : </td> <td align="left" colspan="3"><input type="text" name="photoalbumurl" id="photoalbumurl" value="<?php// echo $_SESSION['photoalbumurl']; ?>" <?php// echo $classphotourl; ?> maxlength="300"/> </td> </tr>--> <!-- <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php //echo "Video Album URL"; ?> : </td> <td align="left" colspan="3"><input type="text" name="videoalbumurl" value="<?php //echo $_SESSION['videoalbumurl']; ?>" id="videoalbumurl" <?php //echo $classvideourl; ?> maxlength="300"/> </td> </tr> <tr><td height="5" colspan="6"></td></tr>--> <tr> <td align="right" width="45%" colspan="3"><?php echo "Online Link"; ?> : </td> <td align="left" colspan="3"><input type="text" name="website" value="<?php echo $_SESSION['website']; ?>" id="website" <?php echo $classwebsite; ?> maxlength="300"/></td> </tr> <tr><td colspan="6" height="5"></td></tr> </table> </div> </td> </tr> <div id="Company"></div> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." ".$lbl_newsdate; ?> : </td> <td align="left" colspan="3"> <?php if($_SESSION['videoday']!="" || $_SESSION['videomonth']!="" || $_SESSION['videoyear']!="") { echo '<select id="videoday" name="videoday" '.$classvideoday.'>'.GetDay(date($_SESSION['videoday'])).'</select>'; echo '<select id="videomonth" name="videomonth" '.$classvideomonth.'>'.GetMonth(date($_SESSION['videomonth'])).'</select>'; echo '<select id="videoyear" name="videoyear" '.$classvideoyear.'>'.GetYear(date($_SESSION['videoyear'])).'</select>'; } else if($vday>0 || $vmonth>0 || $vyear>0) { echo '<select id="videoday" name="videoday" '.$classvideoday.'>'.GetDay(date($vday)).'</select>'; echo '<select id="videomonth" name="videomonth" '.$classvideomonth.'>'.GetMonth(date($vmonth)).'</select>'; echo '<select id="videoyear" name="videoyear" '.$classvideoyear.'>'.GetYear(date($vyear)).'</select>'; } else { echo '<select id="videoday" name="videoday" '.$classvideoday.'>'.GetDay(date('d')).'</select>'; echo '<select id="videomonth" name="videomonth" '.$classvideomonth.'>'.GetMonth(date('m')).'</select>'; echo '<select id="videoyear" name="videoyear" '.$classvideoyear.'>'.GetnYear(date('Y')).'</select>'; } ?> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." ".$lbl_newsplace;?> : </td> <td align="left" colspan="3"> <input type="text" name="eventpalce" id="eventpalce" <?php echo $classplace; ?> value="<?php if($_SESSION['eventpalce']!=""){ echo $_SESSION['eventpalce'];}else{ echo $cityname;} ?>" maxlength="200"/> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." "."Country";?> : </td> <td align="left" colspan="3"> <select name="cmbnvCoun" id="cmbnvCoun" <?php echo $classcnt; ?> onChange="findselectstate(this.value),findselstateinst(this.value);"> <option value="0"><?php echo $lbl_selectcountry;?></option> <?php if($_SESSION['cmbnvCoun']>0){ echo Getcountry($_SESSION['cmbnvCoun']); } else { echo Getcountry($cntid); } ?> </select> </td> </tr> <tr><td colspan="6" height="5"></td></tr> <tr> <td colspan="6"> <div id="Company_box"> <table align="center" width="100%" border="0"> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_selectstate;?> : </td> <td align="left" colspan="3" ><div id="FetchAjaxDatastate"> <select name="cmbstate" id="cmbstate" onChange="findselstateinst(this.value);" class="selbox" > <option value="0"><?php echo $lbl_selectstate;?></option> <?php echo Getstate($_SESSION['cmbstate']); ?> </select> </div></td> </tr> <tr><td colspan="6" height="5"></td></tr> <tr> <td align="right" width="44%" colspan="3"><?php echo $lbl_realinst;?> : </td> <td align="left" colspan="3"> <!-- <div id="FetchAjaxDataInstitute">--> <!-- <select id="txtrelainst" name="txtrelainst" class="selbox" > <option value="0"><?php //echo $lbl_selinstitution;?></option> <?php //echo getNewsInstitution($_SESSION['txtrelainst']);?> </select>--> <!--</div> --> <input type="text" name="txtrelainst" id="txtrelainst" class="txtbox" value="<?php echo $newinstname; ?>" /> <input type="hidden" id="newrowID" name="newrowID" value="" /> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td colspan="6"> <table align="center" border="0" width="100%"> <tr> <td align="right" width="30%"><?php echo /*$sign." ".*/$lbl_linktitle1;?> : </td> <td><input type="text" name="txtlink1title" id="txtlink1title" value="<?php echo $_SESSION['txtlink1title']; ?>" <?php echo $classtitle1; ?> maxlength="200"/></td> <td align="right"><?php echo /*$sign." ".*/$lbl_url1;?> : </td> <td align="left" width="40%"><input type="text" name="txtlink1link" id="txtlink1link" value="<?php echo $_SESSION['txtlink1link']; ?>" <?php echo $classlink1; ?> maxlength="300"/></td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="30%"><?php echo $lbl_linktitle2;?> : </td> <td align="left"><input type="text" name="txtlink2title" id="txtlink2title" value="<?php echo $_SESSION['txtlink2title']; ?>" <?php echo $classtitle2; ?> maxlength="200"/></td> <td align="right"><?php echo $lbl_url2;?> : </td> <td align="left"><input type="text" name="txtlink2link" id="txtlink2link" value="<?php echo $_SESSION['txtlink2link']; ?>" <?php echo $classlink2; ?> maxlength="300"/></td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right"><?php echo $lbl_linktitle3;?> : </td> <td align="left"><input type="text" name="txtlink3title" id="txtlink3title" value="<?php echo $_SESSION['txtlink3title']; ?>" <?php echo $classtitle3; ?> maxlength="200"/></td> <td align="right"><?php echo $lbl_url3;?> : </td> <td align="left"><input type="text" name="txtlink3link" id="txtlink3link" value="<?php echo $_SESSION['txtlink3link']; ?>" <?php echo $classlink3; ?> maxlength="300"/></td> </tr> </table> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_expdate; ?> : </td> <td align="left" colspan="3"> <?php if($vday>0 || $vmonth>0 || $vyear>0) { $curdate=$enddate; } else { $curdate = date('Y-m-d'); } $date = strtotime(date("Y-m-d", strtotime($curdate)). " +60 day"); $fetchdate = explode('-',date('Y-m-d', $date)); $newday=$fetchdate[2]; $newmonth=$fetchdate[1]; $newyear=$fetchdate[0]; if($_SESSION['day1']=="" || $_SESSION['month1']=="" || $_SESSION['year1']=="") { echo '<select id="day1" name="day1">'.GetDay($newday).'</select>'; echo '<select id="month1" name="month1">'.GetMonth($newmonth).'</select>'; echo '<select id="year1" name="year1">'.GetnYear($newyear).'</select>'; } else { echo '<select id="day1" name="day1">'.GetDay($_SESSION['day1']).'</select>'; echo '<select id="month1" name="month1">'.GetMonth($_SESSION['month1']).'</select>'; echo '<select id="year1" name="year1">'.GetnYear($_SESSION['year1']).'</select>'; } ?> </td> </tr> <!--<tr><td colspan="6" height="5"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php// echo $lbl_sequence ; ?> : </td> <td align="left"><input type="text" name="txtsequence" id="txtsequence" size="2" maxlength="2" value="1" disabled="disabled" onKeyPress="return checkInt(event)"/> </td> </tr>--> </table> </div> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <?php if($rightapprove == 'Self' || $rightapprove == 'All') { ?> <tr> <td align="right" width="45%" colspan="3"><?php echo "Show on News Home";?> : </td> <td align="left" colspan="3"><input type="radio" name="shownewshome" <?php echo $_SESSION['yesnewshome']; ?> id="shownewshome" value="Yes" />Yes <input type="radio" name="shownewshome" id="shownewshome" value="No" <?php echo $_SESSION['nonewshome']; ?> />No </td> </tr> <tr><td colspan="6" height="5"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_showonhome;?> : </td> <td align="left" colspan="3"><input type="radio" name="chkshowhome" id="chkshowhome" value="Yes"<?php echo $_SESSION['yesportalhome']; ?> />Yes <input type="radio" name="chkshowhome" id="chkshowhome" value="No" <?php echo $_SESSION['noportalhome']; echo $check; ?> />No </td> </tr> <?php } ?> <tr><td height="5" colspan="6"></td></tr> <tr> <td colspan="3"></td> <td colspan="3" align="left"> <input type="submit" name="submit_news" id="submit_news" value="<?php echo $btn_add; ?>" class="button" /> <input type="reset" name="reset" id="reset" value="<?php echo $btn_reset;?>" class="button" /> <input type="button" name="back" id="back" value="<?php echo $btn_back;?>" class="button" onClick="history.go(-1);" /> </td></tr> <script language="javascript" type="text/javascript"> pph = new PramukhPhoneticHandler(); pph.convertToIndicIME("txthindititle", document.getElementById('txthindititle'),'english'); pph.convertToIndicIME("txthindishorttext", document.getElementById('txthindishorttext'),'english'); pph.convertToIndicIME("txtlink1title",document.getElementById('txtlink1title'),'Devanagari'); pph.convertToIndicIME("txtlink2title",document.getElementById('txtlink2title'),'Devanagari'); pph.convertToIndicIME("txtlink3title",document.getElementById('txtlink3title'),'Devanagari'); <?php if($lngname=='Hindi') { ?> pph.convertToIndicIME("othertxttitle",document.getElementById('othertxttitle'),'Devanagari'); pph.convertToIndicIME("othertxtshorttext", document.getElementById('othertxtshorttext'),'Devanagari'); pph.convertToIndicIME("txtlink1title",document.getElementById('txtlink1title'),'Devanagari'); pph.convertToIndicIME("txtlink2title",document.getElementById('txtlink2title'),'Devanagari'); pph.convertToIndicIME("txtlink3title",document.getElementById('txtlink3title'),'Devanagari'); <?php } else { ?> pph.convertToIndicIME("othertxttitle", document.getElementById('othertxttitle'),'<?php echo $lngname; ?>'); pph.convertToIndicIME("othertxtshorttext", document.getElementById('othertxtshorttext'),'<?php echo $lngname; ?>'); pph.convertToIndicIME("txtlink1title", document.getElementById('txtlink1title'),'<?php echo $lngname; ?>'); pph.convertToIndicIME("txtlink2title", document.getElementById('txtlink2title'),'<?php echo $lngname; ?>'); pph.convertToIndicIME("txtlink3title", document.getElementById('txtlink3title'),'<?php echo $lngname; ?>'); <?php } ?> </script> </table> </td> </tr> </table> </form> <!--<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>--> <?php // content over // footer start include("arya_footer.php"); // footer over ?>
Close