<? global $vis_language; ?>
<form method="post" name="vis_staff_setting_form" id="vis_staff_setting_form" class="form-horizontal">
	<div class="form-group">
		<label class="col-sm-2 text-right"><?= $vis_language['TXTTIMEZONE']; ?></label>
		<div class="col-sm-10">
			<span id="vis_staff_timezone_value" style="margin-top:20px;"><? echo "GMT".calulate_timezone($staff['timezone']); ?> <span class="vis_button label vh-success-bg m vis-pointer" onclick="$('#vis_staff_timezone_setting').toggle(); $('#vis_staff_timezone_value').toggle(); $('#vis_change_timezone').val(1); "><? echo $vis_language['TXTCHANGE']; ?></span></span><span id="vis_staff_timezone_setting" style="display:none">
			<select name="vis_timezone" id="vis_timezone" class='form-control input-sm selectpicker' data-live-search="true"> 
				<option value="-12:00#International Date Line West#0">(GMT-12:00) International Date Line West</option>
				<option value="-11:00# Midway, Niue, Pago Pago#0" <?php ?>>(GMT-11:00)Midway, Niue, Pago Pago</option>
				<option value="-10:00#Fakaofo, Hawaii Time, Rarotonga, Tahiti#0">(GMT-10:00) Hawaii Time, Rarotonga, Tahiti</option>
				<option value="-9:30#Marquesas#0">(GMT-09:30) Marquesas</option>
				<option value="-9:00#Gambier#0">(GMT-09:00) Gambier</option>
				<option value="-8:00#Pacific Time, Tijuana, Vancouver, Whitehorse#1">(GMT-08:00) Pacific Time, Tijuana, Vancouver, Whitehorse</option>
				<option value="-8:00#Pitcairn#0">(GMT-08:00) Pitcairn</option>
				<option value="-7:00#Mountain Time, Edmonton, Yellowknife,Chihuahua,Mazatlan#1">(GMT-07:00) Mountain Time, Edmonton, Yellowknife,Chihuahua,Mazatlan</option>
				<option value="-7:00#Dawson Creek, Hermosillo, Arizona#0">(GMT-07:00) Dawson Creek, Hermosillo, Arizona</option>
				<option value="-6:00#Belize, Central Time, Regina, Winnipeg, Costa Rica,El Salvador,Galapagos, Guatemala, Managua#0">(GMT-06:00) Belize, Central Time, Regina, Winnipeg, Costa Rica,El Salvador,Galapagos, Guatemala, Managua</option>
				<option value="-6:00#Johnston,Mexico City,Winnipeg,Easter Island#1">(GMT-06:00)Johnston,Mexico City,Winnipeg,Easter Island</option>
				<option value="-5:00#Bogota, Cayman, Guayaquil, Jamaica, Lima,Panama, Port-au-Prince, Rio Branco#0">(GMT-05:00) Bogota, Cayman, Guayaquil, Jamaica, Lima,Panama, Port-au-Prince, Rio Branco</option>
				<option value="-5:00#Eastern Time, Iqaluit, Montreal, Toronto, Grand Turk, Havana, Nassau#1">(GMT-05:00) Eastern Time, Iqaluit, Montreal, Toronto, Grand Turk, Havana, Nassau</option>
				<option value="-4:00#Caracas, Anguilla, Antigua, Aruba,Atlantic Time - Halifax, Barbados,Boa Vista#0">(GMT-04:00) Caracas, Anguilla, Antigua, Aruba,Atlantic Time - Halifax, Barbados,Boa Vista </option>
				<option value="-4:00#Asuncion,Bermuda, Santiago, Thule#1">(GMT-04:00) Asuncion,Bermuda, Santiago, Thule</option>
				<option value="-4:00#Campo Grande, Cuiaba, Curacao, Dominica, Grenada, Guadeloupe, Guyana, La Paz, Manaus, St. Lucia, St. Thomas,St. Vincent#0">(GMT-04:00) Campo Grande, Cuiaba, Curacao, Dominica, Grenada, Guadeloupe, Guyana, La Paz, Manaus, St. Lucia, St. Thomas,St. Vincent</option>
				<option value="-4:00#Martinique, Montserrat, Port of Spain, Porto Velho, Puerto Rico,Santo Domingo,St. Kitts,Tortola#0">(GMT-04:00) Martinique, Montserrat, Port of Spain, Porto Velho, Puerto Rico,Santo Domingo,St. Kitts,Tortola</option>
				<option value="-3:30#Newfoundland Time - St. Johns#1">(GMT-03:30) Newfoundland Time - St. Johns</option>
				<option value="-3:00#Belem, Buenos Aires, Cayenne, Fortaleza, Godthab, Maceio, Salvador#0">(GMT-03:00) Belem, Buenos Aires, Cayenne, Fortaleza, Godthab, Maceio, Salvador</option>
				<option value="-3:00#Montevideo, Paramaribo, Recife, Rothera,Stanley,Araguaina#0">(GMT-03:00)  Montevideo, Paramaribo, Recife, Rothera,Stanley,Araguaina</option>
				<option value="-3:00#Sao Paulo#1">(GMT-03:00) Sao Paulo</option>
				<option value="-2:00#Noronha, South Georgia#0">(GMT-02:00) Noronha, South Georgia</option>
				<option value="-1:00#Azores, Scoresbysund#1">(GMT-01:00) Azores, Scoresbysund</option>
				<option value="-1:00#Cape Verde#0">(GMT-01:00) Cape Verde</option>
				<option value="+0:00#Abidjan, Accra, Bamako, Banjul, Bissau,Lome, Freetown,Danmarkshavn Dakar#0">(GMT+00:00) Abidjan, Accra, Bamako, Banjul, Bissau, Conakry,Lome, Freetown,Danmarkshavn ,Dakar</option>
				<option value="+0:00# Monrovia, Nouakchott, Ouagadougou, Reykjavik, Sao Tome, St Helena#0">(GMT+00:00)  Monrovia, Nouakchott, Ouagadougou, Reykjavik, Sao Tome, St Helena</option>
				<option value="+0:00#London, Canary Islands, Ireland, Casablanca, Dublin, El Aaiun, Faeroe, Lisbon#1">(GMT+00:00) London, Canary Islands, Ireland, Casablanca, Dublin, El Aaiun, Faeroe, Lisbon</option>
				<option value="+1:00#Amsterdam, Andorra, Berlin, Brussels, Budapest, Ceuta, Copenhagen, Gibraltar,Luxembourg#1">(GMT+01:00)Amsterdam, Andorra, Berlin, Brussels, Budapest, Ceuta, Copenhagen, Gibraltar,Luxembourg</option>
				<option value="+1:00#Madrid , Malta, Monaco, Oslo,Paris, Rome ,Stockholm, Tirane, Vaduz, Vienna, Warsaw, Windhoek, Zurich#1">(GMT+01:00) Madrid , Malta, Monaco, Oslo,Paris, Rome ,Stockholm, Tirane, Vaduz, Vienna, Warsaw, Windhoek, Zurich </option>
				<option value="+1:00#Algiers, Bangui, Brazzaville, Central European Time, Douala, Kinshasa, Lagos, Libreville#0">(GMT+01:00)Algiers, Bangui, Brazzaville, Central European Time, Douala, Kinshasa, Lagos, Libreville</option>				
				<option value="+1:00# Luanda,Malabo, Ndjamena, Niamey, Porto-Novo, Tunis#0">(GMT+01:00)  Luanda,Malabo, Ndjamena, Niamey, Porto-Novo, Tunis</option>
				<option value="+2:00#Amman, Athens,, Beirut, Bucharest, Chisinau, Damascus, Gaza, Helsinki, Istanbul, Jerusalem#1">(GMT+02:00) Amman, Athens, Beirut, Bucharest, Chisinau, Damascus, Gaza, Helsinki, Istanbul, Jerusalem</option>
				<option value="+2:00# Kiev, Minsk, Nicosia, Riga, Sofia, Tallinn, Vilnius#1">(GMT+02:00) Kiev, Minsk, Nicosia, Riga, Sofia, Tallinn, Vilnius</option>
				<option value="+2:00#  Blantyre, Bujumbura, Cairo, Gaborone,Harare,Johannesburg,Kigali,Lubumbashi,Lusaka,Maputo,Maseru,Mbabane,Moscow-01 - Kaliningrad,Tripoli#0">(GMT+02:00)  Blantyre, Bujumbura, Cairo, Gaborone,Harare,Johannesburg,Kigali,Lubumbashi,Lusaka,Maputo,Maseru,Mbabane,Moscow-01 - Kaliningrad,Tripoli</option>				
				<option value="+3:00#Addis Ababa, Aden, Antananarivo#0">(GMT+03:00) Addis Ababa, Aden, Antananarivo,Asmera,Baghdad</option>
				<option value="+3:00#Asmera, Baghdad, Bahrain, Comoro, Dar es Salaam, Djibouti, Nairobi, Qatar, Riyadh, Syowa#0">(GMT+03:00)Bahrain, Comoro, Dar es Salaam, Djibouti, Nairobi, Qatar, Riyadh, Syowa</option>
				<option value="+3:00#Kampala, Khartoum, Kuwait, Mayotte, Mogadishu, Moscow+00#0">(GMT+03:00) Kampala, Khartoum, Kuwait, Mayotte, Mogadishu, Moscow+00</option>
				<option value="+3:30#Tehran#1">(GMT+03:30) Tehran</option>
				<option value="+4:00#Baku, Dubai, Mahe, Mauritius, Moscow+01 - Samara#0">(GMT+04:00) Baku, Dubai, Mahe, Mauritius, Moscow+01 - Samara</option>
				<option value="+4:00#Muscat, Reunion, Tbilisi, Yerevan#0">(GMT+04:00) Muscat, Reunion, Tbilisi, Yerevan</option>
				<option value="+4:30#Kabul#0">(GMT+04.30) Kabul</option>
				<option value="+5:00#Aqtau, Aqtobe, Ashgabat, Dushanbe#0">(GMT+05:00) Aqtau, Aqtobe, Ashgabat, Dushanbe,Mawson</option>
				<option value="+5:00#Karachi, Kerguelen, Maldives, Moscow+02 - Yekaterinburg, Tashkent#0">(GMT+05:00) Karachi, Kerguelen, Maldives, Moscow+02 - Yekaterinburg, Tashkent</option>
				<option value="+5:30#Colombo, India Standard Time#0">(GMT+05:30) Colombo, India Standard Time</option>
				<option value="+6:00#Almaty, Bishkek, Chagos, Dhaka#0">(GMT+06:00) Almaty, Bishkek, Chagos, Dhaka</option>
				<option value="+6:00#Moscow+03 - Omsk, Novosibirsk, Thimphu, Vostok#0">(GMT+06:00) Moscow+03 - Omsk, Novosibirsk, Thimphu, Vostok</option>
				<option value="+6:30#Cocos, Rangoon#0">(GMT+06:30) Cocos, Rangoon</option>
				<option value="+7:00#Bangkok, Christmas, Davis, Hanoi, Hovd, Jakarta#0">(GMT+07:00) Bangkok, Christmas, Hanoi, Hovd, Jakarta</option>
				<option value="+7:00#Moscow+04 - Krasnoyarsk, Phnom Penh, Vientiane#0">(GMT+07:00) Moscow+04 - Krasnoyarsk, Phnom Penh, Vientiane</option>
				<option value="+8:00#Brunei, Casey, China Time - Beijing,Singapore, Taipei#0">(GMT+08:00) Brunei, Casey, China Time - Beijing,Singapore, Taipei </option>
				<option value="+8:00#Hong Kong, Kuala Lumpur, Macau, Makassar, Manila, Moscow+05 - Irkutsk,Western Time - Perth#0">(GMT+08:00) Hong Kong, Kuala Lumpur, Macau, Makassar, Manila, Moscow+05 - Irkutsk,Western Time - Perth</option>
				<option value="+8:00#Ulaanbaatar, Choibalsan#0">(GMT+08:00)  Ulaanbaatar, Choibalsan</option>
				<option value="+9:00#Dili, Jayapura, Moscow+06 - Yakutsk, Palau, Pyongyang, Seoul, Tokyo#0">(GMT+09:00) Dili, Jayapura, Moscow+06 - Yakutsk, Palau, Pyongyang, Seoul, Tokyo</option>
				<option value="+9:30#Central Time - Darwin#0">(GMT+09:30) Central Time - Darwin</option>
				<option value="+10:00#Brisbane,Guam, Moscow+07 - Yuzhno-Sakhalinsk, Port Moresby, Saipan, Truk#0">(GMT+10:00)Brisbane,Guam, Moscow+07 - Yuzhno-Sakhalinsk, Port Moresby, Saipan, Truk</option>
				<option value="+10:30#Central Time - Adelaide#1">(GMT+10:30) Central Time - Adelaide</option>			
				<option value="+11:00#Efate, Guadalcanal, Kosrae, Moscow+08 - Magadan, Noumea, Ponape#0">(GMT+11:00) Efate, Guadalcanal, Kosrae, Moscow+08 - Magadan, Noumea, Ponape</option>
				<option value="+11:00#Hobart,Melbourne,Sydney#1">(GMT+11:00) Hobart,Melbourne,Sydney</option>
				<option value="+12:00#Fiji#1">(GMT+12:00)Fiji</option>
				<option value="+12:00#Funafuti, Kwajalein, Majuro, Moscow+09 - Petropavlovsk-Kamchatskiy, Nauru, Tarawa, Wake, Wallis#0">(GMT+12:00) Funafuti, Kwajalein, Majuro, Moscow+09 - Petropavlovsk-Kamchatskiy, Nauru, Tarawa, Wake, Wallis</option>
				<option value="+13:00#Enderbury, Tongatapu#0">(GMT+13:00) Fakaofo, Enderbury, Tongatapu</option>
				<option value="+13:00#Apia,Auckland, Antarctica/McMurdo, Antarctica/South_Pole#1">(GMT+13:00) Apia,Auckland, Antarctica/McMurdo, Antarctica/South_Pole</option>
			</select>
		</span>
		</div>	
	</div>
	<div class="line b-b line-lg pull-in"></div>
	<br/>
	<div class="form-group">
		<div class="col-sm-4 col-sm-offset-2">
		<button type="button" class="btn btn-primary" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'home', 'vis_operation':'update_staff_setting', 'vis_form':'vis_staff_setting_form'})"><? echo $vis_language['TXTUPDATE']; ?></button>
		</div>	
	</div>
	<input type="hidden" name="vis_staff_id" id="vis_staff_id" value="<? echo $staff['staff_id']; ?>" />
	<input type="hidden" name="vis_change_timezone" id="vis_change_timezone" value="0" />	
</form>
<script>
var tes = '<? echo calulate_timezone($staff['timezone'])."#".$staff['timezone_name']; ?>';
$("#vis_timezone").val(tes);
$('.selectpicker').selectpicker();
</script>
