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_editmagazines_08-11-14.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 $admusrid=$_SESSION["adminuserid"]; $msgid=$_GET["lid"]; $pagesecid=$_GET['scid']; if($_GET['pending']=='1') { $_SESSION['mgznpend']=$_GET['pending']; } $dbusercatid=getFieldValue('admcat_id','arya_adminsectionrights','admuser_id="'.$admusrid.'"'); $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_addmagazines.php" ) { $rightapprove=getFieldValue('admsecright_approve','arya_adminsectionrights','admsecright_pageid="'.$key.'" AND admuser_id="'.$admusrid.'" AND admcat_id="'.$dbusercatid.'"'); } } } $logindate=date('Y-m-d h:i:s'); $curntdate=date('Y-m-d'); $curnttime= date('h:i:s'); $mid=$_SESSION['mgid']; $cmbnwstypid=$_SESSION['nwsid']; if($mid > 0){$aval='&mgnid='.$mid;}else{$aval="";} if($cmbnwstypid > 0){$cmbnwstypval='pendid='.$cmbnwstypid;}else{$cmbnwstypval="";} if($mid > 0){$msgval='&msg=upd';}else{$msgval='msg=upd';} $qryLMagazine="SELECT * FROM arya_latestmagazines WHERE lmgzn_id='".$msgid."'"; $qLMagazine=mysql_query($qryLMagazine); $qFetchLMagazine=mysql_fetch_array($qLMagazine); $id=$qFetchLMagazine["lmgzn_id"]; $mgznid=$qFetchLMagazine["mgzn_id"]; $magazinetitle=stripslashes($qFetchLMagazine["lmgzn_name"]); $magazinehindititle=stripslashes($qFetchLMagazine["lmgzn_namehindi"]); $magazineothertitle=stripslashes($qFetchLMagazine["lmgzn_nameother"]); $magazinetitlelngid=stripslashes($qFetchLMagazine["lmgzn_namelngid"]); $langname=getFieldValue("lang_name","arya_language","lang_id='".$magazinetitlelngid."'"); $magazineisuperiod=stripslashes($qFetchLMagazine["lmgzn_issueperiod"]); $magazineisuperiodhindi=stripslashes($qFetchLMagazine["lmgzn_issueperiodhindi"]); $magazineisuperiodother=stripslashes($qFetchLMagazine["lmgzn_issueperiodother"]); $mgzissueperiodlngid=stripslashes($qFetchLMagazine["lmgzn_issueperiodlngid"]); $isuperiodlangname=getFieldValue("lang_name","arya_language","lang_id='".$mgzissueperiodlngid."'"); $Nvfetchstdate=$qFetchLMagazine['lmgzn_issue_pub_date']; $fetchstdate = date("Y-m-d",strtotime($Nvfetchstdate)); $_SESSION['fetchstdate']=$fetchstdate; list($c_year,$c_month,$c_day) = split('-',$fetchstdate); $fetchtime=$qFetchLMagazine['lmgzn_issue_pub_time']; $issuesdate = $qFetchLMagazine['lmgzn_issueperiod_sdate']; list($s_year,$s_month,$s_day) = split('-',$issuesdate); $issueedate = $qFetchLMagazine['lmgzn_issueperiod_edate']; list($e_year,$e_month,$e_day) = split('-',$issueedate); $magazineimg=stripslashes($qFetchLMagazine["lmgzn_image"]); $mgzimgname=str_replace("./","",$magazineimg); $magazinefilelink=$qFetchLMagazine['lmgzn_fileorlink']; $lmgzn_approve=$qFetchLMagazine['lmgzn_approve']; $magazinefile=stripslashes($qFetchLMagazine["lmgzn_files"]); $year=date('Y'); $month=date('m'); if($conditionvar=='2') { $newmgzfile=str_replace("uploads/magazine/".$year."/".$month."/","",$magazinefile); } if($conditionvar=='1') { $newmgzfile=str_replace("./".$year."/".$month."/","",$magazinefile); } $langid=$qFetchLMagazine["id"]; /*$magazinesequence = $qFetchLMagazine['lmgzn_sequence'];*/ $magazinevisible=$qFetchLMagazine["lmgzn_visible"]; $newfetlink=$qFetchLMagazine["lmgzn_link"]; $advresult = substr($newfetlink, 0, 7); $advresults = substr($newfetlink, 0, 8); if($advresult=="http://") { $link=str_replace("http://","",$newfetlink); } else if($advresults=="https://") { $link=str_replace("https://","",$newfetlink); } else { $link=$newfetlink; } $magazinedownload=$qFetchLMagazine["lmgzn_downloadornot"]; $fetchedition=$qFetchLMagazine['lmgzn_edition']; if($fetchedition == 'Yes') { $Approveyes='checked="checked"'; } else { $Approveno='checked="checked"'; } if($magazinefilelink == 'file') { $fileselected='checked="checked"'; } else if($magazinefilelink == 'link') { $linkselected='checked="checked"'; } if($magazinevisible == 'Yes') { $visibleyes='checked="checked"'; } else { $visibleno='checked="checked"'; } if($magazinedownload == 'Yes') { $downloadyes='checked="checked"'; } else { $downloadno='checked="checked"'; } $curnttime=date("H:i:s"); if(isset($_POST["btnupdate"]))//update start { $magazinid=explode("-",$_POST["cmbmagazine"]); $magazinetitle=$magazinid[0]; $_SESSION['cmbmagazine']=$magazinetitle; $issueperiodeng=getFieldValue('mgzn_title','arya_magazines','mgzn_id="'.$magazinetitle.'"'); $txttitle=addslashes($_POST["txttitle"]); $_SESSION['txttitle']=$txttitle; $txthindititle=addslashes($_POST["txthindititle"]); $_SESSION['txthindititle']=$txthindititle; $txtothertitle=addslashes($_POST["othertxttitle"]); $_SESSION['othertxttitle']=$txtothertitle; $edition=$_POST['txtapprove']; unset($_SESSION['special']); unset($_SESSION['normal']); if($_POST['txtapprove']=='Yes') { $_SESSION['special']='checked="checked"'; } if($_POST['txtapprove']=='No') { $_SESSION['normal']='checked="checked"'; } $issueperiod=explode(",",$_POST["cmbisuperiod"]); $isuperiodlngnm=$issueperiod[0]; $issueperiodid=$issueperiod[1]; if($fetchstdate!=$postdate) { $posttime=$curnttime; } else { $posttime=$fetchtime; } $postdate=$_POST['year']."-".$_POST['month']."-".$_POST['day']." ".$posttime; $_SESSION['year']=$_POST['year']; $_SESSION['month']=$_POST['month']; $_SESSION['day']=$_POST['day']; if($_POST["endday"]=="") { $issuepriodsdate=$_POST["endyear"]."-".$_POST["endmonth"]."-"."00"; } if($_POST["endmonth"]=="") { $issuepriodsdate=$_POST["endyear"]."-"."00"."-"."00"; } if($_POST["endyear"]!="" && $_POST["endmonth"]!="" && $_POST["endday"]!="") { $issuepriodsdate=$_POST["endyear"]."-".$_POST["endmonth"]."-".$_POST["endday"]; } if($_POST["endfreqday"]=="") { $issueperiodedate=$_POST["endfreqyear"]."-".$_POST["endfreqmonth"]."-"."00"; } if($_POST["endfreqmonth"]=="") { $issueperiodedate=$_POST["endfreqyear"]."-"."00"."-"."00"; } if($_POST["endfreqyear"]!="" && $_POST["endfreqmonth"]!="" && $_POST["endfreqday"]!="") { $issueperiodedate=$_POST["endfreqyear"]."-".$_POST["endfreqmonth"]."-".$_POST["endfreqday"]; } //$issueperiodedate=$_POST["endfreqyear"]."-".$_POST["endfreqmonth"]."-".$_POST["endfreqday"]; $language=explode(",",$_POST["cmblng"]); $lngname=$language[0]; $lngid=$language[1]; $language=$_POST["drpLanguage"]; $langid=getFieldValue("lang_id","arya_language","language='".$language."'"); $txtshowhome=$_POST["txtshowhome"]; $txtshowportal=$_POST["txtshowportal"]; /*$sequence=$_POST["txtsequence"]; */ $chkopenwind=$_POST["chkopenwind"]; if($rightapprove == 'Self' || $rightapprove == 'All') { $txtvisible=$_POST["txtvisible"]; $postqryselfall="lmgzn_visible='".$txtvisible."'"; } else { $postqryselfall="lmgzn_visible='".$magazinevisible."'"; } $txtlink=$_POST["txtlink"]; $_SESSION['txtlink']=$txtlink; $txtdownload=$_POST["txtdownload"]; $txtlinkfile=$_POST['txtlinkfile']; unset($_SESSION['txtlinkfile']); if($_POST['txtlinkfile']=='Link') { $_SESSION['txtlinkfile']='checked="checked"'; } $txtfile=$_POST['txtfile']; unset($_SESSION['txtfile']); if($_POST['txtfile']=='File') { $_SESSION['txtfile']='checked="checked"'; } if($txtfile) { $filelink='file'; } if($txtlinkfile) { $filelink='link'; } unset($_SESSION['yesdownload']); unset($_SESSION['nodownload']); if($_POST["txtdownload"]=='Yes') { $_SESSION['yesdownload']='checked="checked"'; } if($_POST["txtdownload"]=='No') { $_SESSION['nodownload']='checked="checked"'; } unset($_SESSION['yesvisible']); unset($_SESSION['novisible']); if($_POST["txtvisible"]=='Yes') { $_SESSION['yesvisible']='checked="checked"'; } if($_POST["txtvisible"]=='No') { $_SESSION['novisible']='checked="checked"'; } if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { /*if($magazinetitle<=0) { RedirecPage('arya_editmagazines.php?lid='.$_GET['lid'].'&scid='.$_GET['scid'].'&msg=empmgznid'); } else if($_POST['day']<=0) { RedirecPage('arya_editmagazines.php?lid='.$_GET['lid'].'&scid='.$_GET['scid'].'&msg=emppday'); } else if($_POST['month']<=0) { RedirecPage('arya_editmagazines.php?lid='.$_GET['lid'].'&scid='.$_GET['scid'].'&msg=emppmonth'); } else if($_POST['year']<=0) { RedirecPage('arya_editmagazines.php?lid='.$_GET['lid'].'&scid='.$_GET['scid'].'&msg=emppyear'); }*/ } if($txtlink!="") { $advresult = substr($txtlink, 0, 7); $advresults = substr($txtlink, 0, 8); if($advresult=="http://") { $lnkcheck=$txtlink; } else if($advresults=="https://") { $lnkcheck=$txtlink; } else { $lnkcheck="http://".$txtlink; } } if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { /*if(find_specialchar($txttitle)=="Yes" || find_scripttags($txttitle)=="Yes") { RedirecPage('arya_editmagazines.php?lid='.$_GET['lid'].'&scid='.$_GET['scid'].'&msg=errengname'); } else if(find_scripttags($txthindititle)=="Yes") { RedirecPage('arya_editmagazines.php?lid='.$_GET['lid'].'&scid='.$_GET['scid'].'&msg=errhndname'); } else if(find_scripttags($txtothertitle)=="Yes") { RedirecPage('arya_editmagazines.php?lid='.$_GET['lid'].'&scid='.$_GET['scid'].'&msg=errotrname'); } else if(CheckWebUrl($lnkcheck)=="Yes" || find_specialchar($txtlink)=="Yes" || find_scripttags($txtlink)=="Yes") { if($lnkcheck!="" && $txtlink!="") { RedirecPage('arya_editmagazines.php?lid='.$_GET['lid'].'&scid='.$_GET['scid'].'&msg=errlink'); } }*/ } /*$dupmagazine=getFieldValue("lmgzn_name","arya_latestmagazines","lmgzn_name='".$txttitle."' AND lmgzn_id!='".$msgid."'"); if($dupmagazine!="") { RedirecPage('arya_editmagazines.php?lid='.$_GET['lid'].'&scid='.$_GET['scid'].'&msg=dupmsg'); }*/ $qUpdLMagazine="UPDATE arya_latestmagazines SET mgzn_id='".$magazinetitle."',lmgzn_name ='".$txttitle."',lmgzn_namehindi ='".$txthindititle."',lmgzn_nameother ='".$txtothertitle."',lmgzn_namelngid ='".$lngid."',lmgzn_issueperiodlngid='".$issueperiodid."',lmgzn_approve='".$lmgzn_approve."',lmgzn_issue_pub_date='".$postdate."',lmgzn_issue_pub_time='".$posttime."',".$postqryselfall.", lmgzn_downloadornot='".$txtdownload."',"; if($txtlink!="") { $qUpdLMagazine .="lmgzn_link='".$lnkcheck."',"; } $qUpdLMagazine .="lmgzn_fileorlink='".$filelink."',lmgzn_issueperiod_sdate='".$issuepriodsdate."',lmgzn_issueperiod_edate='".$issueperiodedate."',lmgzn_edition='".$edition."' WHERE lmgzn_id='".$msgid."'"; $qUpdLMagazine=mysql_query($qUpdLMagazine); if($qUpdLMagazine) { getadminactivity('title_editnewmagazines',$pagesecid,$_SESSION["adminuserid"],$_SERVER["REMOTE_ADDR"],$issueperiodeng,$curntdate,$curnttime); if($_FILES['txtdocfile']['name'] != "") { $mgzunlinkfile=getFieldValue('lmgzn_files','arya_latestmagazines','lmgzn_id='.$msgid); if($conditionvar=='2') { unlink($mgzunlinkfile); } if($conditionvar=='1') { include('arya_ftpfile.php'); ftp_delete($srvmgzconn_id ,$mgzunlinkfile); } $number = rand(); $imagenumber=strtoupper(base_convert($number, 10, 36)); $FileName = $imagenumber."_".str_replace(" ","_",$_FILES['txtdocfile']['name']); $expdoc=strtoupper(substr($_FILES['txtdocfile']['name'],strlen($_FILES['txtdocfile']['name'])-4)); if($expdoc==".pdf" || $expdoc==".PDF") { if($conditionvar=='2') { include('arya_makedirectory.php'); $mgzfilePath=$magazinepathmonth.$FileName; copy($_FILES['txtdocfile']['tmp_name'],$mgzfilePath); $size=$_FILES['txtdocfile']['size']; $updatefile = "update arya_latestmagazines set lmgzn_files='".$mgzfilePath."' where lmgzn_id=".$msgid; $quvres = mysql_query($updatefile); } if($conditionvar=='1') { ob_start(); $myFile = $_FILES['txtdocfile']; $srvfile = $myFile['tmp_name']; include('arya_ftpfile.php'); $destination_file =$destDirsrv.'/'.$FileName; $srvupload = ftp_put($srvmgzconn_id, $destination_file, $srvfile, FTP_BINARY); ftp_close($srvmgzconn_id); $updatefile = "update arya_latestmagazines set lmgzn_files='".$destination_file."' where lmgzn_id=".$msgid; $quvres=mysql_query($updatefile); } } else { $msg.="Upload only PDF.<br/>"; } } else { $updatefile = "update arya_latestmagazines set lmgzn_files='".$magazinefile."' where lmgzn_id =".$msgid.""; $quvres = mysql_query($updatefile); } // Magazine Main Image Code Start if($_FILES['txtimage']['name'] != "") { $smallimage=getFieldValue('lmgzn_image','arya_latestmagazines','lmgzn_id='.$msgid); $bigimage=str_replace('SM','BG',$smallimage); $mainimage=str_replace('SM_','',$smallimage); $mainphotimage=str_replace('media','photo',$mainimage); if($conditionvar=='2') { unlink($smallimage); unlink($bigimage); unlink($mainphotimage); } if($conditionvar=='1') { include('arya_ftpfile.php'); ftp_delete($srvconnect_id ,$smallimage); ftp_delete($srvconnect_id ,$bigimage); ftp_delete($srvconn_id ,$mainimage); } $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 = "100"; $Thumheight = "122"; $bigThumwidth = "112"; $bigThumheight = "148"; $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_latestmagazines SET lmgzn_image='".$ThumbtoPath."' WHERE lmgzn_id='".$msgid."'"; $qUpdateAdvert = mysql_query($qryUpdateAdvert); } } }//extention condition over }//if($conditionvar=='2') /*else { $smallimage=getFieldValue('lmgzn_image','arya_latestmagazines','lmgzn_id='.$msgid); $image=str_replace("./","media/",$smallimage); $bigimage=str_replace('SM','BG',$image); unlink($image); unlink($bigimage); $year=date('Y'); $month=date('m'); $mediaPath="media/"; $mediayearpath="media/".$year."/"; $mediamonthpath="media/".$year."/".$month."/"; $Thumwidth = "100"; $Thumheight = "122"; $bigThumwidth = "112"; $bigThumheight = "148"; 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') { 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_latestmagazines SET lmgzn_image='".$smalldestination_file."' WHERE lmgzn_id='".$msgid."'"; $qUpdArticleImage=mysql_query($qryUpdArticleImage); } } /*if($_FILES["txtdocfile"]["name"]!="") { $filetmpname=$_FILES["txtdocfile"]["tmp_name"]; $filename=$msgid."_".str_replace(" ","_",$_FILES["txtdocfile"]["name"]); $update_file_name="update arya_latestmagazines set lmgzn_files='".$filename."' where lmgzn_id =".$msgid.""; $res=mysql_query($update_file_name); } else { $updatefile = "update arya_latestmagazines set lmgzn_files='".$magazinefile."' where lmgzn_id =".$msgid.""; $quvres = mysql_query($updatefile); }*/ /*if($txtlink!="") { $updatefile = "update arya_latestmagazines set lmgzn_files='' where lmgzn_id =".$msgid.""; $quvres = mysql_query($updatefile); }*/ if($_SESSION['mgznpend']=='1') { // echo "<script language=JavaScript>location.href='arya_mgznissuependlist.php?".$msgval."'; RedirecPage('arya_mgznissuependlist.php?'.$msgval); } else { //echo "<script language=JavaScript>location.href='arya_mngmagazines.php?".$aval.$msgval."'; RedirecPage('arya_mngmagazines.php?'.$aval.$msgval); } } else { $msg=$msgNotUpdate; } }//update end $classmgzntitle='class="selbox"'; $classepday='class="brthdate"'; $classepmonth='class="brthdate"'; $classepyear='class="brthdate"'; $classengname='class="txtbox"'; $classhndname='class="txtbox"'; $classotrname='class="txtbox"'; $classlink='class="txtbox"'; if($_GET['msg']=="empmgznid") { $emtttle="Please"." ".$lbl_selectmagazinetitle; $msg=$emtttle; $mgznid=""; $classmgzntitle='class="errtxtengbord"'; } else if($_GET['msg']=="emppday") { $emtttle="Please"." Select Issue Publish Day"; $msg=$emtttle; $c_day=""; $classepday='class="errbrthdate"'; } else if($_GET['msg']=="emppmonth") { $emtttle="Please"." Select Issue Publish Month"; $msg=$emtttle; $c_month=""; $classepmonth='class="errbrthdate"'; } else if($_GET['msg']=="emppyear") { $emtttle="Please"." Select Issue Publish Year"; $msg=$emtttle; $c_year=""; $classepyear='class="errbrthdate"'; } else if($_GET['msg']=="errengname") { $emtttle=$lbl_errvalidmsg." ".$lbl_magazinespecialtitle; $msg=$emtttle; $magazinetitle=""; $classengname='class="errtxtengbord"'; } else if($_GET['msg']=="errhndname") { $emtttle=$lbl_errvalidmsg." ".$lbl_hindiname; $msg=$emtttle; $magazinehindititle=""; $classhndname='class="errtxtengbord"'; } else if($_GET['msg']=="errotrname") { $emtttle=$lbl_errvalidmsg." ".$lbl_othername; $msg=$emtttle; $magazineothertitle=""; $classotrname='class="errtxtengbord"'; } else if($_GET['msg']=="errlink") { $emtttle=$lbl_errvalidmsg." ".$lbl_link; $msg=$emtttle; $link=""; $classlink='class="errtxtengbord"'; } /*else if($_GET['msg']=='dupmsg') { $msg=$msgDuplicatRecord; }*/ else { unset($_SESSION['cmbmagazine']); unset($_SESSION['year']); unset($_SESSION['month']); unset($_SESSION['day']); unset($_SESSION['special']); unset($_SESSION['normal']); unset($_SESSION['txttitle']); unset($_SESSION['txthindititle']); unset($_SESSION['othertxttitle']); unset($_SESSION['txtfile']); unset($_SESSION['txtlinkfile']); unset($_SESSION['txtlink']); unset($_SESSION['yesdownload']); unset($_SESSION['nodownload']); unset($_SESSION['yesvisible']); unset($_SESSION['novisible']); $classmgzntitle='class="selbox"'; $classepday='class="brthdate"'; $classepmonth='class="brthdate"'; $classepyear='class="brthdate"'; $classengname='class="txtbox"'; $classhndname='class="txtbox"'; $classotrname='class="txtbox"'; $classlink='class="txtbox"'; } ?> <form action="arya_editmagazines.php?lid=<?php echo $msgid;?>&scid=<?php echo $pagesecid;?>" method="post" name="frmissue" id="frmissue" > <input type="hidden" name="instid" id="instid" value="" /> </form> <?php if($_POST['instid']!="") { $mgznid=explode("-",$_POST['instid']); $magazinid=$mgznid[0]; $langid=$mgznid[1]; } else { $magazinid=$mgznid; $langid=getFieldValue('lang_id','arya_magazines','mgzn_id="'.$mgznid.'"'); } $_SESSION['nlnid']=$langid; if($_SESSION['nlnid'] > 0) { $lngid=getFieldValue('lang_id','arya_language','lang_id="'.$_SESSION['nlnid'].'"'); } else { $lngid=getFieldValue('lang_id','arya_magazines','mgzn_id="'.$mgznid.'"'); } $lngname=getFieldValue('lang_name','arya_language','lang_id="'.$lngid.'"'); if($_GET['mgzn'] > 0) { $mgzid=getFieldValue('mgzn_id','arya_magazines','mgzn_id="'.$_GET['mgzn'].'"'); } else { $mgzid=getFieldValue('mgzn_id','arya_magazines','mgzn_id="'.$mgznid.'"'); } if($_GET['msg']=="err") // php validation error message { $msg="Please Enter Valid Input"; } if($_POST['instid']!="") { //$mgzarray=getFieldValueArray('max(lmgzn_issue_pub_date),lmgzn_image','arya_latestmagazines','mgzn_id="'.$_POST['instid'].'"'); $uploaderdate=getFieldValue('max(lmgzn_uploaddate)','arya_latestmagazines','mgzn_id="'.$_POST['instid'].'"'); $mgzissuedate=getFieldValue('max(lmgzn_issue_pub_date)','arya_latestmagazines','mgzn_id="'.$_POST['instid'].'"'); $issueimage=getFieldValue('lmgzn_image','arya_latestmagazines','mgzn_id="'.$_POST['instid'].'" AND lmgzn_uploaddate="'.$uploaderdate.'"'); //$mgzissuedate=$mgzarray[0]; //$issueimage=$mgzarray[1]; $newimgmgz=str_replace("./","",$issueimage); if($conditionvar=='2') { $retcode=file_exists($pathvar.$newimgmgz); if($retcode==1) { $retcode=200; } } if($conditionvar=='1') { $ch = curl_init($pathvar.$newimgmgz); curl_setopt($ch, CURLOPT_NOBODY, true); curl_exec($ch); $retcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); // $retcode > 400 -> not found, $retcode = 200, found. curl_close($ch); } if($mgzissuedate!="") { $issuedate=date('d M Y',strtotime($mgzissuedate)); } } else { //$mgzarray=getFieldValueArray('max(lmgzn_issue_pub_date),lmgzn_image','arya_latestmagazines','mgzn_id="'.$mgznid.'"' ); $uploaderdate=getFieldValue('max(lmgzn_uploaddate)','arya_latestmagazines','mgzn_id="'.$mgznid.'"'); $mgzissuedate=getFieldValue('max(lmgzn_issue_pub_date)','arya_latestmagazines','mgzn_id="'.$mgznid.'"'); $issueimage=getFieldValue('lmgzn_image','arya_latestmagazines','mgzn_id="'.$mgznid.'" AND lmgzn_uploaddate="'.$uploaderdate.'"'); //$mgzissuedate=$mgzarray[0]; //$issueimage=$mgzarray[1]; $newimgmgz=str_replace("./","",$issueimage); if($conditionvar=='2') { $retcode=file_exists($pathvar.$newimgmgz); if($retcode==1) { $retcode=200; } } if($conditionvar=='1') { $ch = curl_init($pathvar.$newimgmgz); curl_setopt($ch, CURLOPT_NOBODY, true); curl_exec($ch); $retcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); // $retcode > 400 -> not found, $retcode = 200, found. curl_close($ch); } if($mgzissuedate!="") { $issuedate=date('d M Y',strtotime($mgzissuedate)); } } if($_POST['instid']!="") { $instarray=getFieldValueArray('lang_id,mgzn_frequency','arya_magazines','mgzn_id="'.$_POST['instid'].'"'); $instlangid=$instarray[0]; $mgzfreqcy=$instarray[1]; if($mgzfreqcy=="") { $mgzfreqcy='0'; } } else { $instarray=getFieldValueArray('lang_id,mgzn_frequency','arya_magazines','mgzn_id="'.$mgznid.'"'); $instlangid=$instarray[0]; $mgzfreqcy=$instarray[1]; if($mgzfreqcy=="") { $mgzfreqcy='0'; } } if($_SESSION['normal']!="" || $_SESSION['special']!="") { $Approveno=""; $Approveyes=""; } if($_SESSION['txtfile']!="" ) { $fileselected=""; $linkselected=""; } if($_SESSION['txtlinkfile']!="") { $fileselected=""; $linkselected=""; } if($_SESSION['yesdownload']!="" || $_SESSION['nodownload']!="") { $downloadyes=""; $downloadno=""; } if($_SESSION['yesvisible']!="" || $_SESSION['novisible']!="") { $visibleyes=""; $visibleno=""; } $btntype='type="reset"'; if($_GET['msg']=="empmgznid" || $_GET['msg']=="emppday" || $_GET['msg']=="emppmonth" || $_GET['msg']=="emppyear" || $_GET['msg']=="errengname" || $_GET['msg']=="errhndname" || $_GET['msg']=="errotrname" || $_GET['msg']=="errlink" || $_GET['msg']=='dupmsg') { $btntype='type="submit"'; if(isset($_POST['btn_reset'])) { RedirecPage('arya_editmagazines.php?lid='.$_GET['lid'].'&scid='.$_GET['scid']); } } if($_SESSION['txtfile']!='' || $_SESSION['txtlinkfile']!='') { $magazinefilelink=""; } ?> <script type="text/javascript" language="javascript"> $(document).ready(function(){ <?php unset($_SESSION['fday']); unset($_SESSION['fmonth']); unset($_SESSION['fyear']); ?> }); // function ChangeMgzTitleLanguage(magazinid,id) // { // var str=(magazinid); // var ne=str.split("-"); // mgznid= ne[0].replace(/^\s*/, "").replace(/\s*$/, ""); // nvlngid= ne[1].replace(/^\s*/, "").replace(/\s*$/, ""); // location.href ="arya_editmagazines.php?lid="+id+"&mgzn="+mgznid+"&lng="+nvlngid; // // var file = window.location.href ="arya_editmagazinetitle.php?svid="+id+"&sellng="+newLng; // } //image size validation start $(document).ready(function() { $("#txtimage").change(function () { var size = 51200; var iSize = ($("#txtimage")[0].files[0].size); if (iSize > size) { alert("Please Upload Only Less-Than 50 Kb Image."); this.value=''; document.frmlatestmagazines.txtimage.focus(); } }); }); //image size validation end </script> <form name="frmlatestmagazines" id="frmlatestmagazines" method="post" action="" enctype="multipart/form-data" onsubmit="return blankLMagazin();"> <table width="100%" summary="" border="0" cellpadding="0" cellspacing="0"> <tr><td align="center" height="85"><h2 class="bigheader"><?php echo $title_editnewmagazines; ?></h2></td></tr> <?php echo SuccessMessage($msg);?> <tr> <td> <table summary="" border="0" align="center" width="100%" cellpadding="0" cellspacing="0"> <tr><td height="3" colspan="2"></td></tr> <tr> <td align="right" width="15%"><?php echo $sign." ".$lbl_selectmagazinetitle; ?> : </td> <td colspan="2"> <select name="cmbmagazine" id="cmbmagazine" <?php echo $classmgzntitle; ?> onchange="return ChangeInstDetail(this.value);"> <option value="0"><?php echo $lbl_selectmagazinetitle;?></option> <?php if($_SESSION['cmbmagazine']>0){ echo getMagazineTitle($_SESSION['cmbmagazine']); }else{ echo getMagazineTitle($magazinid); } ?> </select> </td> </tr> <tr><td height="10" colspan="2"></td></tr> <tr><td align="right" width="25%"><?php echo $lbl_LastIssueUploaded; ?> : </td><td> <?php if($issueimage!="") { ?> <img src="<?php echo $pathvar.$newimgmgz;?>" align="top" height="122" width="100"> <?php } else { ?> <img src="images/imagesnot.jpeg" alt="" title="" height="122" width="100" /> <?php } ?> <?php if($issuedate!="") { echo $issuedate; } else { } ?> </td> </tr> <tr><td height="10" colspan="2"></td></tr> <tr><td align="right" width="25%"><?php echo $lbl_magFrequency; ?> : </td><td> <select name="cmbfreqcy" id="cmbfreqcy" class="selbox" onchange="return ChangeSelectLanguage(this.value,'add');" disabled="true"> <option value="0"> <?php echo $lbl_magFrequency; ?></option> <?php echo getIFrequency($mgzfreqcy);?> </select></td></tr> <tr><td height="10" colspan="2"></td></tr> <tr> <td align="right" ><?php echo $sign." ".$lbl_publishdate; ?> : </td> <td colspan="2"><?php if($_SESSION['day']=="" || $_SESSION['month'] || $_SESSION['year']) { echo '<select id="day" name="day" onchange="return findfreqdate(this.value,0,0,'.$mgzfreqcy.');" '.$classepday.'>'.GetDay(date($c_day)).'</select>'; echo '<select id="month" name="month" onchange = "return findfreqdate(0,this.value,0,'.$mgzfreqcy.');" '.$classepmonth.' >'.GetMonth(date($c_month)).'</select>'; echo '<select id="year" name="year" onchange = "return findfreqdate(0,0,this.value,'.$mgzfreqcy.')" '.$classepyear.'>'.GetYear(date($c_year)).'</select>'; } else { echo '<select id="day" name="day" onchange="return findfreqdate(this.value,0,0,'.$mgzfreqcy.');" '.$classepday.'>'.GetDay(date($_SESSION['day'])).'</select>'; echo '<select id="month" name="month" onchange = "return findfreqdate(0,this.value,0,'.$mgzfreqcy.');" '.$classepmonth.'>'.GetMonth(date($_SESSION['month'])).'</select>'; echo '<select id="year" name="year" onchange = "return findfreqdate(0,0,this.value,'.$mgzfreqcy.')" '.$classepyear.'>'.GetYear(date($_SESSION['year'])).'</select>'; } ?></td> </tr> <tr><td height="10" colspan="2"></td></tr> <tr><td align="right" width="25%"> <?php echo $sign." ".$lbl_magIssuePeriod; ?> : </td><td width="29%"> <?php if($_POST['instid']==""){ ?> <div id="fetchfreqdaytest"> <?php if($mgzfreqcy <= 3) { ?> <div id = "fetchday" style="float:left;"> <?php echo '<select id="endday" name="endday" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese" onchange = "return findfreqdate(this.value,0,0,'.$mgzfreqcy.');">'.GetDay(date($s_day)).'</select>' ; ?> </div> <?php } if($mgzfreqcy <= 7) { ?> <div id = "fetchfreqmonth1" style="float:left;"> <?php echo '<select id="endmonth" name="endmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese" onchange = "return findfreqdate(0,this.value,0,'.$mgzfreqcy.');">'.GetMonth(date($s_month)).'</select>'; ?> </div> <?php } ?> <div id = "fetchfreqyear1" style="float:left;"> <?php echo '<select id="endyear" name="endyear" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese" onchange = "return findfreqdate(0,0,this.value,'.$mgzfreqcy.')">'.GetYear(date($s_year)).'</select>'; ?> <?php if($mgzfreqcy > 1) { ?> <b>To</b> <?php } ?> </div> <?php if($mgzfreqcy > 1) { ?> <?php if($mgzfreqcy <= 3) { if($mgzfreqcy=='2') { if(date($e_day)>=26) { ?> <div id = "fetchfreqday" style="float:left;"> <?php echo '<select id="endfreqday" name="endfreqday" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese" >'.GetDay(date($e_day)).'</select>' ; ?> </div> <?php } else { ?> <div id = "fetchfreqday" style="float:left;"> <?php echo '<select id="endfreqday" name="endfreqday" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese" >'.GetDay(date($e_day)).'</select>' ; ?> </div> <?php }//else } else if($mgzfreqcy=='3') { if(date($e_day)>=18) { ?> <div id = "fetchfreqday" style="float:left;"> <?php echo '<select id="endfreqday" name="endfreqday" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese" >'.GetDay(date($e_day)).'</select>' ; ?> </div> <?php } else { ?> <div id = "fetchfreqday" style="float:left;"> <?php echo '<select id="endfreqday" name="endfreqday" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese" >'.GetDay(date($e_day)).'</select>' ; ?> </div> <?php }//else } else { ?> <div id = "fetchfreqday" style="float:left;"> <?php echo '<select id="endfreqday" name="endfreqday" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese" >'.GetDay(date($e_day)).'</select>' ; ?> </div> <?php } } if($mgzfreqcy <= 7) { if($mgzfreqcy=='5') { if(date($e_month)>=12) { ?> <div id = "fetchfreqmonth" style="float:left;"> <?php echo '<select id="endfreqmonth" name="endfreqmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetMonth(date($e_month)).'</select>'; ?> </div> <?php } else { ?> <div id = "fetchfreqmonth" style="float:left;"> <?php echo '<select id="endfreqmonth" name="endfreqmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetMonth(date($e_month)).'</select>'; ?> </div> <?php } } else if($mgzfreqcy=='6') { if(date($e_month)>=11) { ?> <div id = "fetchfreqmonth" style="float:left;"> <?php echo '<select id="endfreqmonth" name="endfreqmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetMonth(date($e_month)).'</select>'; ?> </div> <?php } else { ?> <div id = "fetchfreqmonth" style="float:left;"> <?php echo '<select id="endfreqmonth" name="endfreqmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetMonth(date($e_month)).'</select>'; ?> </div> <?php } } else if($mgzfreqcy=='7') { if(date($e_month)>=8) { ?> <div id = "fetchfreqmonth" style="float:left;"> <?php echo '<select id="endfreqmonth" name="endfreqmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetMonth(date($e_month)).'</select>'; ?> </div> <?php } else { ?> <div id = "fetchfreqmonth" style="float:left;"> <?php echo '<select id="endfreqmonth" name="endfreqmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetMonth(date($e_month)).'</select>'; ?> </div> <?php } } else if(date($e_day)>=18 && $mgzfreqcy=='3' || date($e_day)>=26 && $mgzfreqcy=='2') { if(date($e_month)>=12) { ?> <div id = "fetchfreqmonth" style="float:left;"> <?php echo '<select id="endfreqmonth" name="endfreqmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetMonth(date($e_month)).'</select>'; ?> </div> <?php } else { ?> <div id = "fetchfreqmonth" style="float:left;"> <?php echo '<select id="endfreqmonth" name="endfreqmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetMonth(date($e_month)).'</select>'; ?> </div> <?php } } else { ?> <div id = "fetchfreqmonth" style="float:left;"> <?php echo '<select id="endfreqmonth" name="endfreqmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetMonth(date($e_month)).'</select>'; ?> </div> <?php } } if(date($e_month) > 12 || date($e_month)>=11 || date($e_month)>=8) { ?> <div id = "fetchfreqyear" style="float:left;"> <?php echo '<select id="endfreqyear" name="endfreqyear" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetYear(date($e_year)).'</select>'; ?> </div> <?php } else { ?> <div id = "fetchfreqyear" style="float:left;"> <?php echo '<select id="endfreqyear" name="endfreqyear" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetYear(date($e_year)).'</select>'; ?> </div> <?php } ?> <div class="clr"></div> </div> <?php } ?> </div><?php } else { ?> <div id="fetchfreqdaytest"> <?php if($mgzfreqcy <= 3) { ?> <div id = "fetchday" style="float:left;"> <?php echo '<select id="endday" name="endday" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese" onchange = "return findfreqdate(this.value,0,0,'.$mgzfreqcy.');">'.GetDay(date($c_day)).'</select>' ; ?> </div> <?php } if($mgzfreqcy <= 7) { ?> <div id = "fetchfreqmonth1" style="float:left;"> <?php echo '<select id="endmonth" name="endmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese" onchange = "return findfreqdate(0,this.value,0,'.$mgzfreqcy.');">'.GetMonth(date($c_month)).'</select>'; ?> </div> <?php } ?> <div id = "fetchfreqyear1" style="float:left;"> <?php echo '<select id="endyear" name="endyear" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese" onchange = "return findfreqdate(0,0,this.value,'.$mgzfreqcy.')">'.GetYear(date($c_year)).'</select>'; ?> <?php if($mgzfreqcy > 1) { ?> <b>To</b> <?php } ?> </div> <?php if($mgzfreqcy > 1) { ?> <?php if($mgzfreqcy <= 3) { if($mgzfreqcy=='2') { if(date($c_day)>=26) { ?> <div id = "fetchfreqday" style="float:left;"> <?php echo '<select id="endfreqday" name="endfreqday" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese" >'.GetDay(date($c_day)+6-31).'</select>' ; ?> </div> <?php } else { ?> <div id = "fetchfreqday" style="float:left;"> <?php echo '<select id="endfreqday" name="endfreqday" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese" >'.GetDay(date($c_day)+6).'</select>' ; ?> </div> <?php }//else } else if($mgzfreqcy=='3') { if(date($c_day)>=18) { ?> <div id = "fetchfreqday" style="float:left;"> <?php echo '<select id="endfreqday" name="endfreqday" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese" >'.GetDay(date($c_day)+14-31).'</select>' ; ?> </div> <?php } else { ?> <div id = "fetchfreqday" style="float:left;"> <?php echo '<select id="endfreqday" name="endfreqday" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese" >'.GetDay(date($c_day)+14).'</select>' ; ?> </div> <?php }//else } else { ?> <div id = "fetchfreqday" style="float:left;"> <?php echo '<select id="endfreqday" name="endfreqday" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese" >'.GetDay(date($c_day)).'</select>' ; ?></div> <?php } } if($mgzfreqcy <= 7) { if($mgzfreqcy=='5') { if(date($c_month)>=12) { ?> <div id = "fetchfreqmonth" style="float:left;"> <?php echo '<select id="endfreqmonth" name="endfreqmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetMonth(date($c_month)+1-12).'</select>'; ?> </div> <?php } else { ?> <div id = "fetchfreqmonth" style="float:left;"> <?php echo '<select id="endfreqmonth" name="endfreqmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetMonth(date($c_month)+1).'</select>'; ?> </div> <?php } } else if($mgzfreqcy=='6') { if(date($c_month)>=11) { ?> <div id = "fetchfreqmonth" style="float:left;"> <?php echo '<select id="endfreqmonth" name="endfreqmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetMonth(date($c_month)+2-12).'</select>'; ?> </div> <?php } else { ?> <div id = "fetchfreqmonth" style="float:left;"> <?php echo '<select id="endfreqmonth" name="endfreqmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetMonth(date($c_month)+2).'</select>'; ?> </div> <?php } } else if($mgzfreqcy=='7') { if(date($c_month)>=8) { ?> <div id = "fetchfreqmonth" style="float:left;"> <?php echo '<select id="endfreqmonth" name="endfreqmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetMonth(date($c_month)+5-12).'</select>'; ?> </div> <?php } else { ?> <div id = "fetchfreqmonth" style="float:left;"> <?php echo '<select id="endfreqmonth" name="endfreqmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetMonth(date($c_month)+5).'</select>'; ?> </div> <?php } } else if(date($c_day)>=18 && $mgzfreqcy=='3' || date($c_day)>=26 && $mgzfreqcy=='2') { if(date($c_month)>=12) { ?> <div id = "fetchfreqmonth" style="float:left;"> <?php echo '<select id="endfreqmonth" name="endfreqmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetMonth(date($c_month)+1-12).'</select>'; ?> </div> <?php } else { ?> <div id = "fetchfreqmonth" style="float:left;"> <?php echo '<select id="endfreqmonth" name="endfreqmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetMonth(date($c_month)+1).'</select>'; ?> </div> <?php } } else { ?> <div id = "fetchfreqmonth" style="float:left;"> <?php echo '<select id="endfreqmonth" name="endfreqmonth" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetMonth(date($c_month)).'</select>'; ?> </div> <?php } } //if(date('m') > 12 || date('m')>=11 || date('m')>=8) if(date($c_day) >= 26 && date($c_month)=='12' && $mgzfreqcy=='2' || date($c_day) >= 18 && date($c_month)=='12' && $mgzfreqcy=='3' || date($c_month)>='12' && $mgzfreqcy=='5' || date($c_month)>='11' && $mgzfreqcy=='6' || date($c_month)>=8 && $mgzfreqcy=='7') { ?> <div id = "fetchfreqyear" style="float:left;"> <?php echo '<select id="endfreqyear" name="endfreqyear" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetYear(date($c_year)+1).'</select>'; ?> </div> <?php } else { ?> <div id = "fetchfreqyear" style="float:left;"> <?php echo '<select id="endfreqyear" name="endfreqyear" style="width:60px; margin:0 3px 0 0; padding-top:3px;" class="skipThese">'.GetYear(date($c_year)).'</select>'; ?> </div> <?php } ?> <div class="clr"></div> </div> <?php } ?> </div> <?php } ?></TD></tr> <div class="clr"></div> <tr><td height="10" colspan="2"></td></tr> <tr> <td align="right" ><?php echo $lbl_SpecialEdition; ?> : </td> <td colspan="2"> <input type="radio" name="txtapprove" id="txtapprove" value="No"<?php if($_SESSION['normal']!=""){ echo $_SESSION['normal']; }else{ echo $Approveno;} ?> onclick="return getnormal(this.value);" />Normal <input type="radio" name="txtapprove" id="txtapprove" value="Yes"<?php if($_SESSION['special']!=""){ echo $_SESSION['special'];}else{ echo $Approveyes; } ?> onclick="return getspecial(this.value);" />Special</td> </tr> <tr> <td colspan="2"> <?php if($_SESSION['special']!='') { $style='style="display:inline"'; } elseif($fetchedition=='Yes') { $style='style="display:inline"'; } else { $style='style="display:none"'; } ?> <table border="0" align="center" width="100%" cellspacing="4" id="newtab" <?php echo $style; ?>> <tr> <?php if($lngname!='English' && $lngname!="Hindi" ) { $nvwidth="width='19%'"; } else { $nvwidth="width='32%'"; } ?> <td align="right" <?php echo $nvwidth;?>><?php echo $lbl_magazinespecialtitle;?> : </td> <td align="left"><input type="text" name="txttitle" id="txttitle" <?php echo $classengname; ?> maxlength="200" value="<?php if($_SESSION['txttitle']!=""){ echo $_SESSION['txttitle'];}else{ echo $magazinetitle;} ?>"/></td> <td align="right" width="22%"><?php echo $lbl_hindiname;?> : </td> <td align="left"><input type="text" id="txthindititle" name="txthindititle" onfocus="changeLanguage('txthindititle', 'devanagari')" <?php echo $classhndname; ?> maxlength="300" value="<?php if($_SESSION['txthindititle']!=""){ echo $_SESSION['txthindititle'];}else{ echo $magazinehindititle; } ?>"/></td> <?php if($lngname!='English' && $lngname!="Hindi" ) { ?> <td align="right"><?php echo $lbl_othername;?> : </td> <td align="left"><input type="text" name="othertxttitle" id="othertxttitle" <?php echo $classotrname; ?> maxlength="300" value="<?php if($_SESSION['othertxttitle']!=""){ echo $_SESSION['othertxttitle'];}else{ echo $magazineothertitle;} ?>"/> </td> <?php } ?> </tr> </table> </td> </tr> <tr><td height="10" colspan="2"></td></tr> <tr> <td align="right"></td> <td class="redMsg">Please Upload Only Less-Than 50 Kb Image.</td> </tr> <tr><td height="10" colspan="2"></td></tr> <tr> <td align="right" ><?php echo $sign." ".$lbl_image;?> : </td> <td colspan="2"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td><input type="file" name="txtimage" id="txtimage" value="<?php echo $magazineimg; ?>" /></td> <?php if($magazineimg!="") { ?> <td><img src="<?php echo $pathvar.$mgzimgname; ?>" width="80" alt="" title="" /></td> <?php } ?> </tr> </table> </td> </tr> <tr><td colspan="2" height="10"></td></tr> <tr> <td align="right" ><?php echo $lbl_FileLink; ?> : </td> <td colspan="2"> <input type="radio" name="txtfile" id="txtfile" value="File" <?php if($_SESSION['txtfile']!=""){ echo $_SESSION['txtfile']; } else{ echo $fileselected; } ?> onclick="return getfile();"/>File <input type="radio" name="txtlinkfile" id="txtlinkfile" value="Link" <?php if($_SESSION['txtlinkfile']!=""){ echo $_SESSION['txtlinkfile']; }else{ echo $linkselected; } ?> onclick="return getlink();" />Link</td> </tr> <tr><td height="10" colspan="2"></td></tr> <tr> <td align="right" ><?php echo $lbl_docfile;?> : </td> <td colspan="2"><input type="hidden" name="docfile" value="<?php echo $magazinefile;?>"> <?php if($magazinefilelink=="link" || $_SESSION['txtlinkfile']!=""){ ?> <input type="file" name="txtdocfile" id="txtdocfile" disabled="true" /><?php } else { ?><input type="file" name="txtdocfile" id="txtdocfile" value="<?php echo $magazinefile;?>" /><?php } ?><?php echo $newmgzfile;?></td> </tr> <tr><td height="10" colspan="2"></td></tr> <tr> <td align="right"><?php echo $lbl_link;?> : </td> <td colspan="2"><?php if($magazinefilelink=="file" || $_SESSION['txtfile']!=""){ ?><input type="text" name="txtlink" id="txtlink" <?php echo $classlink; ?> disabled="true"/> <?php } else{ ?><input type="text" name="txtlink" id="txtlink" <?php echo $classlink; ?> value="<?php if($_SESSION['txtlink']!=""){ echo $_SESSION['txtlink'];}else{ echo $link; } ?>" maxlength="300"/><?php }?><?php echo $link; ?></td> </tr> <tr><td colspan="2" height="10"></td></tr> <tr> <td align="right" >Download File : </td> <td colspan="2"> <input type="radio" name="txtdownload" id="txtdownload" value="Yes" <?php if($_SESSION['yesdownload']!=""){ echo $_SESSION['yesdownload']; }else { echo $downloadyes; } ?> />Yes <input type="radio" name="txtdownload" id="txtdownload" value="No" <?php if($_SESSION['nodownload']!=""){ echo $_SESSION['nodownload']; }else{ echo $downloadno; } ?> />No </td> </tr> <tr><td colspan="2" height="10"></td></tr> <?php if($rightapprove == 'Self' || $rightapprove == 'All') { ?> <tr> <td align="right" ><?php echo $lbl_visible;?> : </td> <td colspan="2"> <input type="radio" name="txtvisible" id="txtvisible" value="Yes" <?php if($_SESSION['yesvisible']!=""){ echo $_SESSION['yesvisible'];}else{ echo $visibleyes; } ?> />Yes <input type="radio" name="txtvisible" id="txtvisible" value="No" <?php if($_SESSION['novisible']!=""){ echo $_SESSION['novisible']; }else{ echo $visibleno; } ?> />No</td> </tr> <?php } ?> <tr><td colspan="2" height="10"></td></tr> <tr><td></td> <td colspan="2" align="left"> <input type="submit" name="btnupdate" id="btnupdate" value="<?php echo $btn_update;?>" class="button" /> <input <?php echo $btntype; ?> name="btn_reset" id="btn_reset" value="<?php echo $btn_reset; ?>"/> <input type="button" name="btnBack" id="btnBack" value="<?php echo $btn_back; ?>" class="button" onclick="history.back(-1);" /></td> </tr> <script language="javascript" type="text/javascript"> pph = new PramukhPhoneticHandler(); pph.convertToIndicIME("txthindititle", document.getElementById('txthindititle'),'english'); <?php if($lngname=="Hindi") { ?> pph.convertToIndicIME("othertxttitle", document.getElementById('othertxttitle'),'devanagari'); <?php } else { ?> pph.convertToIndicIME("othertxttitle", document.getElementById('othertxttitle'),'<?php echo $lngname; ?>'); <?php } ?> </script> </table> </td> </tr> </table> </form> <?php // content over // footer start include("arya_footer.php"); // footer over ?>
Close