<%@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"/>
	</head>
	<cit:janelaAguarde id="JANELA_AGUARDE_MENU"  title="" style="display:none;top:325px;width:300px;left:500px;height:50px;position:absolute;"></cit:janelaAguarde>
	<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 id="content">
					<div class="separator top"></div>
					<div class="row-fluid">
						<div class="innerLR">
							<div class="widget">
								<div class="widget-head">
									<h4 class="heading"><fmt:message key="evm.expressoes.cron" /></h4>
								</div>
								<div class="widget-body collapse in">		
									<div class="tabsbar">
										<ul>
											<li class="active"><a href="#tab1-3" data-toggle="tab"><fmt:message key="evm.cadastro.cron"/></a></li>
											<li><a href="#tab2-3" data-toggle="tab"><fmt:message key="evm.pesquisa.cron"/></a></li>
										</ul>
									</div>
									<div class="tab-content">
										<div class="tab-pane active" id="tab1-3">
											<form name='form' action='<%=CitCorporeConstantes.CAMINHO_SERVIDOR%><%=request.getContextPath()%>/pages/evmCron/evmCron'>
												<input type='hidden' name='idCron' id='idCron'/>
												<input type='hidden' name='idUsuarioCriador' id='idUsuarioCriador'/>
												<input type='hidden' name='idUsuarioModificador' id='idUsuarioModificador'/>
												<input type='hidden' name='dataHoraInicio' id='dataHoraInicio'/>
												
												<div class='row-fluid'>
													<div class='span4'>
														<label class="campoObrigatorio"><fmt:message key="citcorpore.comum.nome" /></label>
														<input id="nome" name="nome" type='text' maxlength="50" class="span12 Valid[Required] Description[citcorpore.comum.nome]" />
													</div>
												</div>
												<div class='row-fluid'>
													<div class='span1'>
														<label class="campoObrigatorio"><fmt:message key="processamentoBatch.segundos"/></label>
														<select name='segundo' id='segundo' class="span12 Valid[Required] Description[processamentoBatch.segundos]"></select>
													</div>
													<div class='span1'>
														<label class="campoObrigatorio"><fmt:message key="processamentoBatch.minutos"/></label>
														<select name='minuto' id='minuto' class="span12 Valid[Required] Description[processamentoBatch.minutos]"></select>
													</div>
													<div class='span1'>
														<label class="campoObrigatorio"><fmt:message key="processamentoBatch.horas"/></label>
														<select name='hora' id='hora' class="span12 Valid[Required] Description[processamentoBatch.horas]"></select>
													</div>
													<div class='span2'>
														<label><fmt:message key="processamentoBatch.diaDoMes"/></label>
														<select name='diaDoMes' id='diaDoMes' class="span12 Valid[Required] Description[processamentoBatch.diaDoMes]"></select>
													</div>
													<div class='span1'>
														<label class="campoObrigatorio"><fmt:message key="processamentoBatch.mes"/></label>
														<select name='mes' id='mes' class="span12 Valid[Required] Description[processamentoBatch.mes]"></select>
													</div>
													<div class='span2'>
														<label><fmt:message key="processamentoBatch.diaDaSemana"/></label>
														<select name='diaDaSemana' id='diaDaSemana' class="span12 Valid[Required] Description[processamentoBatch.diaDaSemana]"></select>
													</div>
													<div class='span1'>
														<label><fmt:message key="processamentoBatch.ano"/></label>
														<select name='ano' id='ano' class="span12 Description[processamentoBatch.ano]"></select>
													</div>
												</div>
												
												<div class='row-fluid hide' id="divCriador">
													<div class='span4'>
														<label><fmt:message key="citcorpore.comum.criadopor"/></label>
														<p class="muted" id="criadopor"></p>
													</div>
													<div class='span4'>
														<label><fmt:message key="citcorpore.comum.dataHoraCriacao" /></label>
														<p class="muted" id="datahoracriacao"></p>
													</div>
												</div>
												
												<div class='row-fluid hide' id="divModificador">
													<div class='span4'>
														<label><fmt:message key="citcorpore.comum.alteradopor"/></label>
														<p class="muted" id="alteradopor"></p>
													</div>
													<div class='span4'>
														<label><fmt:message key="Data/Hora Alteração"/></label>
														<p class="muted" id="datahoraalteracao"></p>
													</div>
												</div>
												
												<div class='row-fluid'>
													<div class='span12'>
														<button type='button' name='btnGravar' class="lFloat btn btn-icon btn-primary" 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" onclick='excluir();'>
															<i></i><fmt:message	key="citcorpore.comum.excluir" />
														</button>
													</div>
											   </div>
											</form>
										</div>
										<div class="tab-pane" id="tab2-3">
											<div class="section"><fmt:message key="citcorpore.comum.pesquisa" />
												<form name='formPesquisa'>
													<cit:findField formName='formPesquisa' lockupName='LOOKUP_EVM_CRON' id='LOOKUP_EVM_CRON' top='0' left='0' len='550' heigth='400' javascriptCode='true' htmlCode='true' />
												</form>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					
				</div>
				<!--  Fim conteudo-->
				<%@include file="/novoLayout/common/include/rodape.jsp" %>
			</div>
		</div>
		<script type="text/javascript" src="js/evmCron.js"></script>
	</body>
</html>