<div class="UISelectLanguageForm">
	<% uiform.begin() %>
		<div class="HorizontalLayout" style="margin:10px 10px 10px 10px;background-color:#F3F3F3;">
			<table style="margin:10px 0px 10px 0px;">
				<%
				List selectedList = uicomponent.getListSelected() ;
				String[] localedLanguage = uicomponent.getLocaledLanguage() ;
				int i = 0 ;
				for(String language : uicomponent.getListLanguage()) {
					String localed = localedLanguage[i] ;
				%>
					<tr style="width:25px">
						<td style="width:10%">
							<div style="float:right; vertical-align:bottom;">
							<% if(selectedList.contains(language)) { %>
								<div class="Langguage"><span></span></div>
							<% } else { %>
								<div><span></span></div>
							<% } %>
							</div>
						</td>
						<td style="width:45%">
							<div style="float:left; margin-left:5px; height:20px;">
								<a title="$language" href="<%=uicomponent.event("SelectedLanguage",language);%>">
									$language
								</a>
							</div>
						</td>
						<td style="width:45%">
							<div style="float:right; margin-right:10px;">
								$localed
							</div>
						</td>
					</tr>
				<%
					i ++ ;
				}
				%>
			</table>
		</div>
		  <div class="UIAction">
     <% for(action in uicomponent.getActions()) { 
	        		 if(action.indexOf("Language") > 0) continue ; 
	        	 String actionLabel = _ctx.appRes(uicomponent.getName() + ".action." + action); 
	           String link = uicomponent.event(action) ;
	        %>
      <a href="javascript:void(0);" onclick="$link" class="ActionButton LightBlueStyle">$actionLabel</a>
      <%}%>
    </div>
	<%uiform.end()%>
</div>