Commit a63845a90593d896b2da5932f7b03cf80969b72f
1 parent
d40eb229dc
Exists in
master
login api call
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/partials/accountSetting/accountSetting.Controller.js
1 | (function() { | 1 | (function() { |
2 | 'use strict' | 2 | 'use strict' |
3 | 3 | ||
4 | angular.module('acufuel') | 4 | angular.module('acufuel') |
5 | .controller('AccountSettingController', [ '$scope', '$filter', '$rootScope', '$state', 'AccountSettingService', AccountSettingController]); | 5 | .controller('AccountSettingController', [ '$scope', '$filter', '$rootScope', '$state', 'AccountSettingService', AccountSettingController]); |
6 | 6 | ||
7 | function AccountSettingController($scope, $filter, $rootScope, $state, AccountSettingService) { | 7 | function AccountSettingController($scope, $filter, $rootScope, $state, AccountSettingService) { |
8 | $scope.addArray = []; | 8 | $scope.addArray = []; |
9 | $scope.userData = {}; | 9 | $scope.userData = {}; |
10 | getAdditionalAccounts(); | 10 | getAdditionalAccounts(); |
11 | 11 | ||
12 | function getAdditionalAccounts() { | 12 | function getAdditionalAccounts() { |
13 | AccountSettingService.getAdditionalAccounts().then(function(result) { | 13 | AccountSettingService.getAdditionalAccounts().then(function(result) { |
14 | $scope.additionalAccounts = result; | 14 | $scope.additionalAccounts = result; |
15 | }) | 15 | }) |
16 | } | 16 | } |
17 | 17 | ||
18 | $scope.userid = JSON.parse(localStorage.getItem('userProfileId')); | 18 | $scope.userid = JSON.parse(localStorage.getItem('userProfileId')); |
19 | 19 | ||
20 | //call this function after upload data | 20 | //call this function after upload data |
21 | function getLoginUserData(){ | 21 | function getLoginUserData(){ |
22 | 22 | console.log("===call---") | |
23 | if($scope.userid && $scope.userid != null && $scope.userid != undefined){ | 23 | if($scope.userid && $scope.userid != null && $scope.userid != undefined){ |
24 | var id = $scope.userid; | 24 | var id = $scope.userid; |
25 | AccountSettingService.loginUserData(id).then(function(result) { | 25 | AccountSettingService.loginUserData(id).then(function(result) { |
26 | if(result.userTimeZone.slice(0,1)==="P"){ | 26 | if(result.userTimeZone.slice(0,1)==="P"){ |
27 | 27 | ||
28 | result.userTimeZone = result.userTimeZone.replace("P","+"); | 28 | result.userTimeZone = result.userTimeZone.replace("P","+"); |
29 | 29 | ||
30 | }else if(result.userTimeZone.slice(0,1)==="M"){ | 30 | }else if(result.userTimeZone.slice(0,1)==="M"){ |
31 | 31 | ||
32 | result.userTimeZone = result.userTimeZone.replace("M","-"); | 32 | result.userTimeZone = result.userTimeZone.replace("M","-"); |
33 | } | 33 | } |
34 | $scope.userData = result; | 34 | $scope.userData = result; |
35 | $scope.userData.status = $scope.userData.account.user.status.toLowerCase(); | 35 | $scope.userData.status = $scope.userData.account.user.status.toLowerCase(); |
36 | $scope.userData.userType = $scope.userData.userType.type.toLowerCase(); | 36 | $scope.userData.userType = $scope.userData.userType.type.toLowerCase(); |
37 | }) | 37 | }) |
38 | } | 38 | } |
39 | } | 39 | } |
40 | 40 | ||
41 | getLoginUserData(); | 41 | getLoginUserData(); |
42 | 42 | ||
43 | 43 | ||
44 | AccountSettingService.getProducts().then(function(result) { | 44 | AccountSettingService.getProducts().then(function(result) { |
45 | $scope.productList = result; | 45 | $scope.productList = result; |
46 | for(var i=0;i<$scope.productList.length;i++){ | 46 | for(var i=0;i<$scope.productList.length;i++){ |
47 | var obj = { | 47 | var obj = { |
48 | id : $scope.productList[i].id, | 48 | id : $scope.productList[i].id, |
49 | name : $scope.productList[i].name, | 49 | name : $scope.productList[i].name, |
50 | status : $scope.productList[i].status | 50 | status : $scope.productList[i].status |
51 | } | 51 | } |
52 | $scope.addArray.push(obj); | 52 | $scope.addArray.push(obj); |
53 | } | 53 | } |
54 | }) | 54 | }) |
55 | 55 | ||
56 | $scope.productData = {}; | 56 | $scope.productData = {}; |
57 | $scope.productData.productList = []; | 57 | $scope.productData.productList = []; |
58 | 58 | ||
59 | $scope.checkProduct = function(productlist, product, index){ | 59 | $scope.checkProduct = function(productlist, product, index){ |
60 | $scope.addArray[index].id = productlist[index].id; | 60 | $scope.addArray[index].id = productlist[index].id; |
61 | $scope.addArray[index].name = productlist[index].name; | 61 | $scope.addArray[index].name = productlist[index].name; |
62 | $scope.addArray[index].status = productlist[index].status; | 62 | $scope.addArray[index].status = productlist[index].status; |
63 | $scope.productData.productList = $scope.addArray; | 63 | $scope.productData.productList = $scope.addArray; |
64 | // console.log($scope.productData) | 64 | // console.log($scope.productData) |
65 | } | 65 | } |
66 | 66 | ||
67 | $scope.updateUser = function(){ | 67 | $scope.updateUser = function(){ |
68 | 68 | ||
69 | window.localStorage.setItem('userTimeZone',JSON.stringify($scope.userData.userTimeZone)); | 69 | window.localStorage.setItem('userTimeZone',JSON.stringify($scope.userData.userTimeZone)); |
70 | //Database not save the = and - sign of timezone offset | 70 | //Database not save the = and - sign of timezone offset |
71 | if($scope.userData.userTimeZone.slice(0,1)==="+"){ | 71 | if($scope.userData.userTimeZone.slice(0,1)==="+"){ |
72 | 72 | ||
73 | $scope.userData.userTimeZone = $scope.userData.userTimeZone.replace("+","P"); | 73 | $scope.userData.userTimeZone = $scope.userData.userTimeZone.replace("+","P"); |
74 | 74 | ||
75 | }else if($scope.userData.userTimeZone.slice(0,1)==="-"){ | 75 | }else if($scope.userData.userTimeZone.slice(0,1)==="-"){ |
76 | 76 | ||
77 | $scope.userData.userTimeZone = $scope.userData.userTimeZone.replace("-","M"); | 77 | $scope.userData.userTimeZone = $scope.userData.userTimeZone.replace("-","M"); |
78 | } | 78 | } |
79 | 79 | ||
80 | var updateData = "companyName=" + $scope.userData.companyName + "&username=" + $scope.userData.username + "&firstName=" + $scope.userData.firstName | 80 | var updateData = "companyName=" + $scope.userData.companyName + "&username=" + $scope.userData.username + "&firstName=" + $scope.userData.firstName |
81 | + "&lastName=" + $scope.userData.lastName + "&phone=" + $scope.userData.phone + "&mobile=" + $scope.userData.mobile | 81 | + "&lastName=" + $scope.userData.lastName + "&phone=" + $scope.userData.phone + "&mobile=" + $scope.userData.mobile |
82 | + "&status=" + $scope.userData.status + "&userType=" + $scope.userData.userType + "&userTypeId=" + $scope.userData.userType.id + "&userProfileId=" + $scope.userid + "&userTimeZone=" + $scope.userData.userTimeZone; | 82 | + "&status=" + $scope.userData.status + "&userType=" + $scope.userData.userType + "&userTypeId=" + $scope.userData.userType.id + "&userProfileId=" + $scope.userid + "&userTimeZone=" + $scope.userData.userTimeZone; |
83 | 83 | ||
84 | // console.log("======updateData===",updateData) | 84 | // console.log("======updateData===",updateData) |
85 | AccountSettingService.updateUserProfile(updateData).then(function(result) { | 85 | AccountSettingService.updateUserProfile(updateData).then(function(result) { |
86 | 86 | ||
87 | AccountSettingService.updateProducts($scope.productData).then(function(result) { | 87 | AccountSettingService.updateProducts($scope.productData).then(function(result) { |
88 | toastr.success(''+result.success+'', { | 88 | toastr.success(''+result.success+'', { |
89 | closeButton: true | 89 | closeButton: true |
90 | }); | 90 | }); |
91 | window.localStorage.setItem('currentUserName', JSON.stringify($scope.userData.firstName +' '+ $scope.userData.lastName)); | 91 | window.localStorage.setItem('currentUserName', JSON.stringify($scope.userData.firstName +' '+ $scope.userData.lastName)); |
92 | window.localStorage.setItem('companyName', JSON.stringify($scope.userData.companyName)); | 92 | window.localStorage.setItem('companyName', JSON.stringify($scope.userData.companyName)); |
93 | $scope.currentUserName = JSON.parse(localStorage.getItem('currentUserName')); | 93 | $scope.currentUserName = JSON.parse(localStorage.getItem('currentUserName')); |
94 | $scope.companyName= JSON.parse(localStorage.getItem('companyName')); | 94 | $scope.companyName= JSON.parse(localStorage.getItem('companyName')); |
95 | $scope.userTimeZone = JSON.parse(localStorage.getItem('userTimeZone')); | 95 | $scope.userTimeZone = JSON.parse(localStorage.getItem('userTimeZone')); |
96 | //console.log("====value after update===",$scope.userTimeZone ) | 96 | //console.log("====value after update===",$scope.userTimeZone ) |
97 | window.localStorage.removeItem('userTime'); | 97 | window.localStorage.removeItem('userTime'); |
98 | $scope.testFunction(); | 98 | $scope.testFunction(); |
99 | getLoginUserData(); | 99 | getLoginUserData(); |
100 | }) | 100 | }) |
101 | 101 | ||
102 | }) | 102 | }) |
103 | } | 103 | } |
104 | $scope.accountdata = {}; | 104 | $scope.accountdata = {}; |
105 | $scope.accountdata.userName = ''; | 105 | $scope.accountdata.userName = ''; |
106 | $scope.accountdata.status = true; | 106 | $scope.accountdata.status = true; |
107 | 107 | ||
108 | $scope.addAccount = function(){ | 108 | $scope.addAccount = function(){ |
109 | $('#demo-modal').css('display', 'block'); | 109 | $('#demo-modal').css('display', 'block'); |
110 | $scope.accountdata.status = true; | 110 | $scope.accountdata.status = true; |
111 | } | 111 | } |
112 | 112 | ||
113 | $scope.cancelAddAccount = function(){ | 113 | $scope.cancelAddAccount = function(){ |
114 | $scope.accountdata = {}; | 114 | $scope.accountdata = {}; |
115 | $('#demo-modal').css('display', ''); | 115 | $('#demo-modal').css('display', ''); |
116 | } | 116 | } |
117 | 117 | ||
118 | $scope.checkEmail = function(email, type) { | 118 | $scope.checkEmail = function(email, type) { |
119 | //console.log(type) | 119 | //console.log(type) |
120 | AccountSettingService.checkEmail(email).then(function(result) { | 120 | AccountSettingService.checkEmail(email).then(function(result) { |
121 | if(result.status == 'ACTIVE'){ | 121 | if(result.status == 'ACTIVE'){ |
122 | toastr.error('Email already exists.', { | 122 | toastr.error('Email already exists.', { |
123 | closeButton: true | 123 | closeButton: true |
124 | }) | 124 | }) |
125 | if(type == 'additional'){ | 125 | if(type == 'additional'){ |
126 | $scope.accountdata.userName = ''; | 126 | $scope.accountdata.userName = ''; |
127 | } | 127 | } |
128 | } | 128 | } |
129 | }) | 129 | }) |
130 | } | 130 | } |
131 | 131 | ||
132 | $scope.additionalAccnObj = {}; | 132 | $scope.additionalAccnObj = {}; |
133 | $scope.createAddAccount = function(){ | 133 | $scope.createAddAccount = function(){ |
134 | $scope.accountdata.status = true; | 134 | $scope.accountdata.status = true; |
135 | if ($scope.accountdata.userName === '') { | 135 | if ($scope.accountdata.userName === '') { |
136 | toastr.error('Please enter all the fields.', { | 136 | toastr.error('Please enter all the fields.', { |
137 | closeButton: true | 137 | closeButton: true |
138 | }) | 138 | }) |
139 | }else{ | 139 | }else{ |
140 | if (validateEmail($scope.accountdata.userName)) { | 140 | if (validateEmail($scope.accountdata.userName)) { |
141 | //console.log("checkbox",$scope.accountdata.allowEpd ,$scope.accountdata.allowFma) | 141 | //console.log("checkbox",$scope.accountdata.allowEpd ,$scope.accountdata.allowFma) |
142 | AccountSettingService.addAdditionalAccount($scope.accountdata).then(function(result) { | 142 | AccountSettingService.addAdditionalAccount($scope.accountdata).then(function(result) { |
143 | getAdditionalAccounts(); | 143 | getAdditionalAccounts(); |
144 | $scope.accountdata = {}; | 144 | $scope.accountdata = {}; |
145 | $('#demo-modal').css('display', ''); | 145 | $('#demo-modal').css('display', ''); |
146 | toastr.success(''+result.success+'', { | 146 | toastr.success(''+result.success+'', { |
147 | closeButton: true | 147 | closeButton: true |
148 | }) | 148 | }) |
149 | }) | 149 | }) |
150 | }else{ | 150 | }else{ |
151 | toastr.error('Please enter valid email.', { | 151 | toastr.error('Please enter valid email.', { |
152 | closeButton: true | 152 | closeButton: true |
153 | }) | 153 | }) |
154 | } | 154 | } |
155 | } | 155 | } |
156 | 156 | ||
157 | } | 157 | } |
158 | 158 | ||
159 | /*Validate Email */ | 159 | /*Validate Email */ |
160 | function validateEmail(email) { | 160 | function validateEmail(email) { |
161 | var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; | 161 | var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; |
162 | return re.test(email); | 162 | return re.test(email); |
163 | } | 163 | } |
164 | 164 | ||
165 | $scope.changeStatus = function(id, index){ | 165 | $scope.changeStatus = function(id, index){ |
166 | event.stopPropagation(); | 166 | event.stopPropagation(); |
167 | var id = id; | 167 | var id = id; |
168 | var statusData = "status=" + $scope.additionalAccounts[index].status + "&id=" + $scope.additionalAccounts[index].id + "&firstName=" + $scope.additionalAccounts[index].firstName | 168 | var statusData = "status=" + $scope.additionalAccounts[index].status + "&id=" + $scope.additionalAccounts[index].id + "&firstName=" + $scope.additionalAccounts[index].firstName |
169 | + "&lastName=" + $scope.additionalAccounts[index].lastName + "&username=" + $scope.additionalAccounts[index].userName + "&password=" + $scope.additionalAccounts[index].password | 169 | + "&lastName=" + $scope.additionalAccounts[index].lastName + "&username=" + $scope.additionalAccounts[index].userName + "&password=" + $scope.additionalAccounts[index].password |
170 | + "&allowEpd=" + $scope.additionalAccounts[index].allowEpd + "&allowFma=" + $scope.additionalAccounts[index].allowFma; | 170 | + "&allowEpd=" + $scope.additionalAccounts[index].allowEpd + "&allowFma=" + $scope.additionalAccounts[index].allowFma; |
171 | AccountSettingService.updateStatus(statusData).then(function(result) { | 171 | AccountSettingService.updateStatus(statusData).then(function(result) { |
172 | if(result.success){ | 172 | if(result.success){ |
173 | toastr.success('Updated Successfully', { | 173 | toastr.success('Updated Successfully', { |
174 | closeButton: true | 174 | closeButton: true |
175 | }) | 175 | }) |
176 | } | 176 | } |
177 | }) | 177 | }) |
178 | } | 178 | } |
179 | var deleteAccnId = ""; | 179 | var deleteAccnId = ""; |
180 | $scope.deleteAdditionalAccount = function(id) { | 180 | $scope.deleteAdditionalAccount = function(id) { |
181 | $('#delete1').css('display', 'block'); | 181 | $('#delete1').css('display', 'block'); |
182 | deleteAccnId = id; | 182 | deleteAccnId = id; |
183 | 183 | ||
184 | } | 184 | } |
185 | 185 | ||
186 | $scope.accnDelete = function(){ | 186 | $scope.accnDelete = function(){ |
187 | AccountSettingService.deleteAccount(deleteAccnId).then(function(result) { | 187 | AccountSettingService.deleteAccount(deleteAccnId).then(function(result) { |
188 | getAdditionalAccounts(); | 188 | getAdditionalAccounts(); |
189 | $('#delete1').css('display', 'none'); | 189 | $('#delete1').css('display', 'none'); |
190 | if(result.success){ | 190 | if(result.success){ |
191 | toastr.success('Deleted Successfully', { | 191 | toastr.success('Deleted Successfully', { |
192 | closeButton: true | 192 | closeButton: true |
193 | }) | 193 | }) |
194 | } | 194 | } |
195 | }) | 195 | }) |
196 | } | 196 | } |
197 | 197 | ||
198 | 198 | ||
199 | $scope.cancelDelete = function(){ | 199 | $scope.cancelDelete = function(){ |
200 | $('#delete1').css('display', 'none'); | 200 | $('#delete1').css('display', 'none'); |
201 | } | 201 | } |
202 | 202 | ||
203 | $scope.resetPassword = function(email) { | 203 | $scope.resetPassword = function(email) { |
204 | //console.log("emailid",email) | 204 | //console.log("emailid",email) |
205 | AccountSettingService.resetPassword(email).then(function(result){ | 205 | AccountSettingService.resetPassword(email).then(function(result){ |
206 | if(typeof result == 'object') { | 206 | if(typeof result == 'object') { |
207 | toastr.info("Password generated successfully. Please check your email for new password"); | 207 | toastr.info("Password generated successfully. Please check your email for new password"); |
208 | //localStorage.setItem('requiredChangePwd', "Y"); | 208 | //localStorage.setItem('requiredChangePwd', "Y"); |
209 | //$state.go('login'); | 209 | //$state.go('login'); |
210 | } else { | 210 | } else { |
211 | toastr.info("Error in generating password"); | 211 | toastr.info("Error in generating password"); |
212 | } | 212 | } |
213 | }) | 213 | }) |
214 | } | 214 | } |
215 | 215 | ||
216 | 216 | ||
217 | $scope.timeZoneList = [{name:'(GMT-12:00) International Date Line West',value:'-12.00'}, | 217 | $scope.timeZoneList = [{name:'(GMT-12:00) International Date Line West',value:'-12.00'}, |
218 | {name:'(GMT-11:00) Midway Island, Samoa',value:'-11.00'}, | 218 | {name:'(GMT-11:00) Midway Island, Samoa',value:'-11.00'}, |
219 | {name:'(GMT-10:00) Hawaii',value :'-10.00'}, | 219 | {name:'(GMT-10:00) Hawaii',value :'-10.00'}, |
220 | {name:'(GMT-09:30) Pacific/Marquesas (French Polynesia)',value :'-09.30'}, | 220 | {name:'(GMT-09:30) Pacific/Marquesas (French Polynesia)',value :'-09.30'}, |
221 | {name:'(GMT-09:00) Pacific/Gambier(French Polynesia)(US)',value :'-09.00'}, | 221 | {name:'(GMT-09:00) Pacific/Gambier(French Polynesia)(US)',value :'-09.00'}, |
222 | {name:'(GMT-08:00) Alaska',value :'-08.00'}, | 222 | {name:'(GMT-08:00) Alaska',value :'-08.00'}, |
223 | {name:'(GMT-07:00) Arizona,(US and Canada)',value :'-07.00'}, | 223 | {name:'(GMT-07:00) Arizona,(US and Canada)',value :'-07.00'}, |
224 | {name:'(GMT-06:00) (Central America),Chihuahua,Saskatchewan,Ecuador',value :'-06.00'}, | 224 | {name:'(GMT-06:00) (Central America),Chihuahua,Saskatchewan,Ecuador',value :'-06.00'}, |
225 | {name:'(GMT-05:00) Central Time (US and Canada) Bogota, Mexico City,Lima,Brazil, Quito',value :'-05.00'}, | 225 | {name:'(GMT-05:00) Central Time (US and Canada) Bogota, Mexico City,Lima,Brazil, Quito',value :'-05.00'}, |
226 | {name:'(GMT-04:00) Eastern Time (US and Canada),Caracas, La Paz,Indiana (East)',value :'-04.00'}, | 226 | {name:'(GMT-04:00) Eastern Time (US and Canada),Caracas, La Paz,Indiana (East)',value :'-04.00'}, |
227 | {name:'(GMT-03:00) Atlantic Time (Canada),Santiago,Brasilia,Buenos Aires',value :'-03.00'}, | 227 | {name:'(GMT-03:00) Atlantic Time (Canada),Santiago,Brasilia,Buenos Aires',value :'-03.00'}, |
228 | {name:'(GMT-02:30) Newfoundland and Labrador,(Canada)',value :'-02.30'}, | 228 | {name:'(GMT-02:30) Newfoundland and Labrador,(Canada)',value :'-02.30'}, |
229 | {name:'(GMT-02:00) Mid-Atlantic,Greenland',value :'-02.00'}, | 229 | {name:'(GMT-02:00) Mid-Atlantic,Greenland',value :'-02.00'}, |
230 | {name:'(GMT-01:00) Cape Verde Islands',value :'-01.00'}, | 230 | {name:'(GMT-01:00) Cape Verde Islands',value :'-01.00'}, |
231 | {name:'(GMT) Azores,Dublin, Edinburgh, Lisbon, London',value :'00.00'}, | 231 | {name:'(GMT) Azores,Dublin, Edinburgh, Lisbon, London',value :'00.00'}, |
232 | {name:'(GMT+01:00) West Central Africa,Canary Islands,Casablanca, Monrovia',value :'+01.00'}, | 232 | {name:'(GMT+01:00) West Central Africa,Canary Islands,Casablanca, Monrovia',value :'+01.00'}, |
233 | {name:'(GMT+02:00) Brussels,Amsterdam,Harare,Madrid,Paris,Cairo,Belgrade',value :'+02.00'}, | 233 | {name:'(GMT+02:00) Brussels,Amsterdam,Harare,Madrid,Paris,Cairo,Belgrade',value :'+02.00'}, |
234 | {name:'(GMT+03:00) Moscow,Jerusalem,St.Petersburg, Athens,Baghdad,Kuwait,Helsinki,Nairobi',value :'+03.00'}, | 234 | {name:'(GMT+03:00) Moscow,Jerusalem,St.Petersburg, Athens,Baghdad,Kuwait,Helsinki,Nairobi',value :'+03.00'}, |
235 | {name:'(GMT+04:00) Armenia,Azerbaijan,UAE,(Russia)',value :'+04.00'}, | 235 | {name:'(GMT+04:00) Armenia,Azerbaijan,UAE,(Russia)',value :'+04.00'}, |
236 | {name:'(GMT+04:30) Kabul,(Afghanistan)',value :'+04.30'}, | 236 | {name:'(GMT+04:30) Kabul,(Afghanistan)',value :'+04.30'}, |
237 | {name:'(GMT+05:00) Islamabad, Karachi, Tashkent (Pakistan)',value :'+05.00'}, | 237 | {name:'(GMT+05:00) Islamabad, Karachi, Tashkent (Pakistan)',value :'+05.00'}, |
238 | {name:'(GMT+05:30) Chennai,New Delhi(India),(Sri Lanka)',value :'+05.30'}, | 238 | {name:'(GMT+05:30) Chennai,New Delhi(India),(Sri Lanka)',value :'+05.30'}, |
239 | {name:'(GMT+05:45) Kathmandu (Nepal)',value :'+05.45'}, | 239 | {name:'(GMT+05:45) Kathmandu (Nepal)',value :'+05.45'}, |
240 | {name:'(GMT+06:00) Astana,Kazakhstan,Dhaka(Bangladesh),(Bhutan),(Russia)',value :'+06.00'}, | 240 | {name:'(GMT+06:00) Astana,Kazakhstan,Dhaka(Bangladesh),(Bhutan),(Russia)',value :'+06.00'}, |
241 | {name:'(GMT+06:30) Yangon Rangoon (Myanmar)',value :'+06.30'}, | 241 | {name:'(GMT+06:30) Yangon Rangoon (Myanmar)',value :'+06.30'}, |
242 | {name:'(GMT+07:00) Laos,Krasnoyarsk,Hanoi,Bangkok(Thailand),Jakarta(Indonesia)',value :'+07.00'}, | 242 | {name:'(GMT+07:00) Laos,Krasnoyarsk,Hanoi,Bangkok(Thailand),Jakarta(Indonesia)',value :'+07.00'}, |
243 | {name:'(GMT+08:00) Perth(Western Australia),Beijing(China),Kuala Lumpur(Singapore),(Malaysia)',value :'+08.00'}, | 243 | {name:'(GMT+08:00) Perth(Western Australia),Beijing(China),Kuala Lumpur(Singapore),(Malaysia)',value :'+08.00'}, |
244 | {name:'(GMT+08:45) Australia/Eucla',value :'+08.45'}, | 244 | {name:'(GMT+08:45) Australia/Eucla',value :'+08.45'}, |
245 | {name:'(GMT+09:00) Japan/North Korea/South Korea/East Timor',value :'+09.00'}, | 245 | {name:'(GMT+09:00) Japan/North Korea/South Korea/East Timor',value :'+09.00'}, |
246 | {name:'(GMT+09:30) Adelaide/Darwin(Australia)',value :'+09.30' }, | 246 | {name:'(GMT+09:30) Adelaide/Darwin(Australia)',value :'+09.30' }, |
247 | {name:'(GMT+10:00) Guam, Port Moresby,Hobart,Vladivostok,Brisbane,Melbourne(Australia),Papua New Guinea',value :'+10.00'}, | 247 | {name:'(GMT+10:00) Guam, Port Moresby,Hobart,Vladivostok,Brisbane,Melbourne(Australia),Papua New Guinea',value :'+10.00'}, |
248 | {name:'(GMT+10:30) Australia/Lord_Howe',value :'+10.30'}, | 248 | {name:'(GMT+10:30) Australia/Lord_Howe',value :'+10.30'}, |
249 | {name:'(GMT+11:00) Magadan, Solomon Islands, New Caledonia',value :'+11.00'}, | 249 | {name:'(GMT+11:00) Magadan, Solomon Islands, New Caledonia',value :'+11.00'}, |
250 | {name:'(GMT+12:00) Auckland, Wellington,Fiji Islands, Kamchatka, Marshall Islands',value :'+12.00'}, | 250 | {name:'(GMT+12:00) Auckland, Wellington,Fiji Islands, Kamchatka, Marshall Islands',value :'+12.00'}, |
251 | {name:'(GMT+12:45) Pacific/Chatham, New Zealand',value :'+12.45'}, | 251 | {name:'(GMT+12:45) Pacific/Chatham, New Zealand',value :'+12.45'}, |
252 | {name:'(GMT+13:00) Nuku alofa,Samoa,Tonga',value :'+13.00'}, | 252 | {name:'(GMT+13:00) Nuku alofa,Samoa,Tonga',value :'+13.00'}, |
253 | {name:'(GMT+14:00) Pacific/Kiritimati',value :'+14.00'}] | 253 | {name:'(GMT+14:00) Pacific/Kiritimati',value :'+14.00'}] |
254 | 254 | ||
255 | 255 | ||
256 | } | 256 | } |
257 | })(); | 257 | })(); |
258 | 258 | ||
259 | 259 |