<!-- INÍCIO templateServico.jsp -->
<%@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"%>

<%@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="../../novoLayout/common/include/css/template.css"/>
		<%@include file="/include/javaScriptsComuns/javaScriptsComuns.jsp"%>
		<script type="text/javascript">
			var ctx = "${ctx}";
		</script>
	</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" class="<%=(iframe == null) ? "" : "nowrapper" %>">
				<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="templateServico.titulo" /></h4>
								</div>
								<div class="widget-body">
									<div class='row-fluid'>
										<div class='span12'>
											<form name='form' action='${ctx}/pages/templateServico/templateServico'>
												<input type='hidden' id='idTemplateServico' name='idTemplateServico'/>
									 			
												<div id="tabsTemplateServico" class="tabsbar">
													<ul> 
														<li class="active">
															<a href="#dadosTemplateServico" data-toggle="tab"><fmt:message key="templateServico.cadastro"/></a>
														</li>
														<li>
															<a href="#pesquisaTemplateServico" data-toggle="tab"><fmt:message key="templateServico.pesquisa"/></a>
														</li>
													</ul>
												</div>
												
												<div class="tab-content">
													<div class="tab-pane active" id="dadosTemplateServico">
														<div class="row-fluid ">
															<div class="span4">
																<label class="campoObrigatorio"><fmt:message key="templateServico.identificacao" /></label>
																<input type='text' name="identificacao" maxlength="40" class="Valid[Required] Description[templateServico.identificacao] span12"/>
															</div>
															<div class="span4">
																<label class="campoObrigatorio"><fmt:message key="templateServico.nomeTemplate" /></label>
																<input type='text' name="nomeTemplate" maxlength="200" class="Valid[Required] Description[templateServico.nomeTemplate] span12"/>
															</div>
														</div>
														<div class="row-fluid ">
															<div class="span4">
																<label><fmt:message key="templateServico.nomeClasseDto" /></label>
																<input type='text' name="nomeClasseDto" maxlength="255" class="span12"/>
															</div>
															<div class="span4">
																<label><fmt:message key="templateServico.nomeClasseAction" /></label>
																<input type='text' name="nomeClasseAction" maxlength="255" class="span12"/>
															</div>
														</div>
														<div class="row-fluid ">
															<div class="span4">
																<label><fmt:message key="templateServico.nomeClasseServico" /></label>
																<input type='text' name="nomeClasseServico" maxlength="255" class="span12"/>
															</div>
															<div class="span4">
																<label><fmt:message key="templateServico.urlRecuperacao" /></label>
																<input type='text' name="urlRecuperacao" maxlength="255" class="span12"/>
															</div>
														</div>
														<div class="row-fluid ">
															<div class="span4">
																<label class="campoObrigatorio"><fmt:message key="templateServico.alturaDiv"/></label>
																<input type='text' name="alturaDiv" maxlength="5" class="Valid[Required] Description[templateServico.alturaDiv] Format[Numero] span12"/>
															</div>
															<div class="span4">
																<label><fmt:message key="templateServico.questionario"/></label>
																<select class='span12' id="idQuestionario" name="idQuestionario" ></select>
															</div>
														</div>
														<div class="row-fluid ">
															<div class="span12">
																<label><fmt:message key="templateServico.scriptAposRecuperacao"/></label>
																<textarea class="span12" name="scriptAposRecuperacao" id="scriptAposRecuperacao" rows="3"></textarea>
															</div>
														</div>
														<div class="separator"></div>
														<div class='row-fluid' style="margin: 10px 0px 5px 5px;">
															<div class='span12'>
																<button type='button' name='btnGravar' class="lFloat btn btn-icon btn-primary btnGravar" onclick='gravar();'><i></i><fmt:message key="citcorpore.comum.gravar" /></button>
																<button type="button" name='btnLimpar' class="lFloat btn btn-icon btn-primary" onclick='limpar();'><i></i><fmt:message key="citcorpore.comum.limpar" /></button>
																<button type='button' name='btnUpDate' class="lFloat btn btn-icon btn-primary btnUpDate" onclick='excluir();'><i></i><fmt:message	key="citcorpore.comum.excluir" /></button>
															</div>
														</div>
													</div>
											</form>
											<div class="tab-pane" id="pesquisaTemplateServico">
												<div class="section">
													<form name='formPesquisa'>
														<cit:findField formName='formPesquisa' lockupName='LOOKUP_TEMPLATESERVICO' id='LOOKUP_TEMPLATESERVICO' heigth='400' javascriptCode='true' htmlCode='true' />
													</form>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<%@include file="/novoLayout/common/include/rodape.jsp" %>
			</div>
		</div>
		<script type="text/javascript" src="js/templateServico.js"></script>
	</body>
</html>
<!-- FIM templateServico.jsp -->