<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@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" %>

<html <%=(iframe != null) ? "data-iframe=\"" + iframe + "\"" : "" %>>
	<head>
		<%
			response.setHeader("Cache-Control", "no-cache");
	    	response.setHeader("Pragma", "no-cache");
	    	response.setDateHeader("Expires", -1);
		%>
		<%@include file="/novoLayout/common/include/libCabecalho.jsp" %>
		<link type="text/css" rel="stylesheet" href="../../novoLayout/common/include/css/template.css"/>
	</head>
	<body>
		<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">
				<!-- Inicio conteudo -->
				<div>
					<%if (iframe == null) {%>
						<h3><fmt:message key="citcorpore.comum.categoriaOcorrencia" /></h3>
					<%}%>
					<div class="box-generic">
						<div class="tabsbar">
							<ul>
								<li class="active"><a href="#tab1" data-toggle="tab"><fmt:message key="citcorpore.comum.cadastro" /></a></li>
								<li><a href="#tab2" data-toggle="tab"><fmt:message key="citcorpore.comum.pesquisa" /></a></li>
							</ul>
						</div>
						<div class="tab-content">
							<div class="tab-pane active" id="tab1">
								<form name="formCategoriaOcorrencia" action="${ctx}/pages/categoriaOcorrencia/categoriaOcorrencia">
									<input type="hidden" id="idCategoriaOcorrencia" name="idCategoriaOcorrencia" />
									<input type="hidden" id="dataInicio" name="dataInicio" />
									<input type="hidden" id="dataFim" name="dataFim" />
									<div class="row-fluid">
										<div class="span5">
											<label class="strong campoObrigatorio"><fmt:message key="citcorpore.comum.nome"/></label>
										  	<input type="text" name="nome" class="span10 Valid[Required] Description[citcorpore.comum.nome]" id="nome" maxlength="255" />
										</div>
									</div>
									<div class="row-fluid">
										<button type='button' name='btnGravar' class="lFloat btn btn-icon btn-primary btnGravar" onclick='document.formCategoriaOcorrencia.save();'><i></i><fmt:message key="citcorpore.comum.gravar" /></button>
										<button type="button" name='btnLimpar' class="lFloat btn btn-icon btn-primary" onclick='document.formCategoriaOcorrencia.clear();'><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>
								</form>
							</div>
							<div class="tab-pane" id="tab2">
								<form name="pesquisaCategoriOcorrencia">
									<cit:findField id="LOOKUP_CATEGORIA_OCORRENCIA"	formName="pesquisaCategoriOcorrencia" lockupName="LOOKUP_CATEGORIA_OCORRENCIA"	top="0"	left="0" len="550" heigth="400" javascriptCode="true" htmlCode="true" />
								</form>
							</div>
						</div>
					</div>
				</div>
				<!--  Fim conteudo-->

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

			</div>
		</div>
	</body>
	<script type="text/javascript" src="./js/categoriaOcorrencia.js"></script>

</html>