<%@page import="br.com.centralit.citcorpore.util.CitCorporeConstantes"%>
<%@page import="br.com.centralit.citcorpore.util.WebUtil"%>
<%@page import="br.com.centralit.citcorpore.bean.UsuarioDTO"%>
<%@page import="br.com.citframework.dto.Usuario"%>
<%@page import="java.util.Collection"%>

<%@include file="/novoLayout/common/include/iframe.jsp"%>

<!doctype html public "">
<html <%=(iframe != null) ? "data-iframe=\"" + iframe + "\"" : ""%>>

<head>
<%@include file="/novoLayout/common/include/libCabecalho.jsp"%>
<%@include file="/novoLayout/common/include/titulo.jsp"%>
<link type="text/css" rel="stylesheet" href="css/mobileGerenciamentoDeWebServices.css" />
<link rel="stylesheet" type="text/css" href="../../css/common/modal.css">
<link type="text/css" rel="stylesheet" href="../../novoLayout/common/include/css/template.css" />
</head>

<cit:janelaAguarde id="JANELA_AGUARDE_MENU" title=""
	style="display:none;top:325px;width:300px;left:500px;height:50px;position:absolute;"></cit:janelaAguarde>

<body>
	<%@include file="/novoLayout/common/include/customtip.jsp"%>
	<div class="container-fluid fixed">
		<div class="navbar main hidden-print">
			<%@include file="/novoLayout/common/include/cabecalho.jsp"%>
			<%@include file="/novoLayout/common/include/menuPadrao.jsp"%>
		</div>

		<div id="wrapper">
			<div id="content">
				<div class="separator top"></div>
				<div class="row-fluid">
					<div id="innerLR" class="innerLR">
						<div class="widget">
							<div class="widget-head">
								<h4 class="heading">
									<fmt:message key="citsmartMobile.configuracaoWebservices.titulo" />
								</h4>
							</div>
							<div id="citsmartMobileWebServices">
								<div class="widget-body collapse in">
									<div class="tabsbar">
										<ul>
											<li class="active"><a href="#configuraGruposWebServices" data-toggle="tab">
												<fmt:message key="citsmartMobile.configuracaoWebservices.tituloAbaGrupo" />
											</a></li>
											<li><a href="#gerenciaWebServices" data-toggle="tab"> 
												<fmt:message key="citsmartMobile.configuracaoWebservices.tituloAbaWebService" />
											</a></li>
										</ul>
									</div>
									<div class="tab-content">
										<div id="configuraGruposWebServices" class="tab-pane active">
											<form name="formMobileGerenciamentoDeWebServices" action='${ctx}/pages/mobileGerenciamentoDeWebServices/mobileGerenciamentoDeWebServices'>
												<input type="hidden" id="idGrupo" name="idGrupo" />
												<input type='hidden' name='textoPesquisado' id='textoPesquisado'/>
												<input type="hidden" id="colGrupoSerialize" name="colGrupoSerialize" />
												<input type="hidden" id="rowIndex" name="rowIndex" />
												<div class="row-fluid">
													<div class="span4">
														<label class="strong campoObrigatorio"><fmt:message	key='citsmartMobile.configuracaoWebservices.vincularGrupoAosWebservices'/></label>
														<input id="nomeGrupo" name="nomeGrupo" class="span12" type="text" readonly="readonly" onclick="abrirModalPesquisaGrupo();"> </input>
													</div>
												</div>
												<div class="separator top"></div>
												<div class="row-fluid" id="divTabelaGrupos">
													<table class="table" id="tabelaGrupos">
														<tr>
															<th style="width: 3%;"></th>
															<th style="width: 12%;"><fmt:message key="grupo.idgrupo" /></th>
															<th style="width: 85%;"><fmt:message key="controle.grupo" /></th>
														</tr>
													</table>
												</div>
												<div class="separator top"></div>
											</form>
										</div>
										<div id="gerenciaWebServices" class="tab-pane">
											<div class='row-fluid' id='divDonoNegogio'>
												<div class="row-fluid">
													<div class="span12 input-append">
														<div class="span12">
															<label class="strong"><fmt:message	key='citsmartMobile.configuracaoWebservices.filtrarWebService' /></label>
															<input autofocus class="campoPesquisa" type="text" id="inputFiltroWebService">
															<span onclick="limparFiltroWebServices();" class="add-on remove xPesquisa"><i class="icon-remove" deluminate_imagetype="png"></i></span>
															<span class="add-on lupaPesquisa" onclick="filtrarWebService();" ><i class="icon-search" deluminate_imagetype="png"></i></span>
														</div>
													</div>
												</div>
												<div class="separator top"></div>
												<div class="row-fluid">
													<div class='span12' id="divDinamicoListaCitsmartMobileWebServices"></div>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="modal modal-medium hide fade" id="modal-pesquisa-grupo">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="fechaModalPesquisaGrupo();">&times;</button>
					<h3 class="title">
						<fmt-message key="citcorpore.comum.pesquisa" />
					</h3>
				</div>
				<div class="modal-body modal-body-max-height">
					<form name='formPesquisaGrupo'>
						<cit:findField formName='formPesquisaGrupo' lockupName='LOOKUP_GRUPO' id='LOOKUP_GRUPO' heigth='400' javascriptCode='true' htmlCode='true' />
					</form>
				</div>
			</div>

			<div class="modal modal-big hide fade" id="modal-webservice" aria-hidden="false">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="fechaModalWebService();">&times;</button>
					<h3 class='modalTitle'></h3>
				</div>
				<div class="modal-body modal-body-max-height">
					<div id="conteudoiframeWebService">
						<iframe id="iframeWebService" src="about:blank" width="99%" height="700" class="iframeSemBorda"></iframe>
					</div>
				</div>
			</div>
			<!--  Fim conteudo-->
			<%@include file="/novoLayout/common/include/rodape.jsp"%>
		</div>
	</div>
	<%@include file="/include/javaScriptsComuns/javaScriptsComuns.jsp" %>
	<script type="text/javascript" src="js/mobileGerenciamentoDeWebServices.js"></script>
	<script type="text/javascript" src="../../cit/objects/GrupoDTO.js"></script>
</body>
</html>