<%@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 "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html lang="en-us" <%=(iframe != null) ? "data-iframe=\"" + iframe + "\"" : "" %>>
<head>

<%@include file="/include/header.jsp"%>
<%@include file="/include/security/security.jsp"%>
<title><fmt:message key="citcorpore.comum.title"/></title>
<%@include file="/include/javaScriptsComuns/javaScriptsComuns.jsp"%>
<script type="text/javascript" src="./js/templateSolicitacaoServico.js"></script>
<%
if (iframe != null) {%>
<link rel="stylesheet" type="text/css" href="./css/templateSolicitacaoServico.css" />
<%}%>
</head>
<body>
	<div id="wrapper">
		<div id="main_container" class="main_container container_16 clearfix">
		<%@include file="/include/menu_horizontal.jsp"%>

		<div class="flat_area grid_16">
				<h2>
					<fmt:message key="templateSolicitacaoServico.Template" />
				</h2>
			</div>
			<div class="box grid_16 tabs">
				<ul class="tab_header clearfix">
					<li><a href="#tabs-1"><fmt:message key="templateSolicitacaoServico.cadastro" /></a></li>
					<li><a href="#tabs-2" class="round_top"><fmt:message key="templateSolicitacaoServico.pesquisa" /></a></li>
				</ul>
				<a href="#" class="toggle">&nbsp;</a>
				<div class="toggle_container">
					<div id="tabs-1" class="block">
						<div class="section">
							<form name='form' action='${ctx}/templateSolicitacaoServico/templateSolicitacaoServico'>
								<input type='hidden' id='idTemplate' name='idTemplate'/>

								<div class="columns clearfix">
									<div class="col_50">
										<fieldset>
											<label class="campoObrigatorio"><fmt:message key="templateSolicitacaoServico.identificacao" /></label>
											<div>
												<input type='text' name="identificacao" maxlength="40" class="Valid[Required] Description[templateSolicitacaoServico.identificacao]" />
											</div>
										</fieldset>
										<fieldset>
											<label class="campoObrigatorio"><fmt:message key="templateSolicitacaoServico.nomeTemplate" /></label>
											<div>
												<input type='text' name="nomeTemplate" maxlength="200" class="Valid[Required] Description[templateSolicitacaoServico.nomeTemplate]" />
											</div>
										</fieldset>
										<fieldset>
											<label ><fmt:message key="templateSolicitacaoServico.nomeClasseDto" /></label>
											<div>
												<input type='text' name="nomeClasseDto" maxlength="255" />
											</div>
										</fieldset>
										<fieldset>
											<label ><fmt:message key="templateSolicitacaoServico.nomeClasseAction" /></label>
											<div>
												<input type='text' name="nomeClasseAction" maxlength="255"  />
											</div>
										</fieldset>
										<fieldset>
											<label ><fmt:message key="templateSolicitacaoServico.nomeClasseServico" /></label>
											<div>
												<input type='text' name="nomeClasseServico" maxlength="255" />
											</div>
										</fieldset>
										<fieldset>
											<label><fmt:message key="templateSolicitacaoServico.urlRecuperacao" /></label>
											<div>
												<input type='text' name="urlRecuperacao" maxlength="255"  />
											</div>
										</fieldset>
                                        <fieldset>
                                            <label style="cursor: pointer;"><fmt:message key="menu.nome.questionario" /></label>
                                            <div>
                                                <select name='idQuestionario' id='idQuestionario'></select>
                                            </div>
                                        </fieldset>
										<fieldset>
											<label><fmt:message key="templateSolicitacaoServico.scriptAposRecuperacao" /></label>
											<div>
												<textarea name="scriptAposRecuperacao"></textarea>
											</div>
										</fieldset>
										<fieldset>
											<label class="campoObrigatorio"><fmt:message key="templateSolicitacaoServico.alturaDiv" /></label>
											<div>
												<input type='text' name="alturaDiv" maxlength="5" class="Valid[Required] Description[templateSolicitacaoServico.alturaDiv] Format[Numero]" />
											</div>
										</fieldset>
									</div>
									<div class="col_33">
										<fieldset>
											<label class="campoObrigatorio"><fmt:message key="templateSolicitacaoServico.habilitaDirecionamento" /></label>
											<div  class="inline clearfix">
												<label><input type="radio" id="radioHabilitaDirecionamento" name="habilitaDirecionamento" value="S" checked="checked" /><fmt:message key="citcorpore.comum.sim" /></label>
												<label><input type="radio" id="radioHabilitaDirecionamento" name="habilitaDirecionamento" value="N" /><fmt:message key="citcorpore.comum.nao" /></label>
											</div>
										</fieldset>
										<fieldset>
											<label class="campoObrigatorio"><fmt:message key="templateSolicitacaoServico.habilitaSituacao" /></label>
											<div  class="inline clearfix">
												<label><input type="radio" id="radioHabilitaSituacao" name="habilitaSituacao" value="S" checked="checked" /><fmt:message key="citcorpore.comum.sim" /></label>
												<label><input type="radio" id="radioHabilitaSituacao" name="habilitaSituacao" value="N" /><fmt:message key="citcorpore.comum.nao" /></label>
											</div>
										</fieldset>
										<fieldset>
											<label class="campoObrigatorio"><fmt:message key="templateSolicitacaoServico.habilitaSolucao" /></label>
											<div  class="inline clearfix">
												<label><input type="radio" id="radioHabilitaSolucao" name="habilitaSolucao" value="S" checked="checked" /><fmt:message key="citcorpore.comum.sim" /></label>
												<label><input type="radio" id="radioHabilitaSolucao" name="habilitaSolucao" value="N" /><fmt:message key="citcorpore.comum.nao" /></label>
											</div>
										</fieldset>
										<fieldset>
											<label class="campoObrigatorio"><fmt:message key="templateSolicitacaoServico.habilitaUrgenciaImpacto" /></label>
											<div  class="inline clearfix">
												<label><input type="radio" id="radioHabilitaUrgenciaImpacto" name="habilitaUrgenciaImpacto" value="S" checked="checked" /><fmt:message key="citcorpore.comum.sim" /></label>
												<label><input type="radio" id="radioHabilitaUrgenciaImpacto" name="habilitaUrgenciaImpacto" value="N" /><fmt:message key="citcorpore.comum.nao" /></label>
											</div>
										</fieldset>
										<fieldset>
											<label class="campoObrigatorio"><fmt:message key="templateSolicitacaoServico.habilitaNotificacaoEmail" /></label>
											<div  class="inline clearfix">
												<label><input type="radio" id="radioHabilitaNotificacaoEmail" name="habilitaNotificacaoEmail" value="S" checked="checked" /><fmt:message key="citcorpore.comum.sim" /></label>
												<label><input type="radio" id="radioHabilitaNotificacaoEmail" name="habilitaNotificacaoEmail" value="N" /><fmt:message key="citcorpore.comum.nao" /></label>
											</div>
										</fieldset>
                                        <fieldset>
                                            <label class="campoObrigatorio"><fmt:message key="templateSolicitacaoServico.habilitaProblema" /></label>
                                            <div  class="inline clearfix">
                                                <label><input type="radio" id="radioHabilitaProblema" name="habilitaProblema" value="S" checked="checked" /><fmt:message key="citcorpore.comum.sim" /></label>
                                                <label><input type="radio" id="radioHabilitaProblema" name="habilitaProblema" value="N" /><fmt:message key="citcorpore.comum.nao" /></label>
                                            </div>
                                        </fieldset>
                                        <fieldset>
                                            <label class="campoObrigatorio"><fmt:message key="templateSolicitacaoServico.habilitaMudanca" /></label>
                                            <div  class="inline clearfix">
                                                <label><input type="radio" id="radioMudanca" name="habilitaMudanca" value="S" checked="checked" /><fmt:message key="citcorpore.comum.sim" /></label>
                                                <label><input type="radio" id="radioMudanca" name="habilitaMudanca" value="N" /><fmt:message key="citcorpore.comum.nao" /></label>
                                            </div>
                                        </fieldset>
                                        <fieldset>
                                            <label class="campoObrigatorio"><fmt:message key="templateSolicitacaoServico.habilitaItemConfiguracao" /></label>
                                            <div  class="inline clearfix">
                                                <label><input type="radio" id="radioItemConfiguracao" name="habilitaItemConfiguracao" value="S" checked="checked" /><fmt:message key="citcorpore.comum.sim" /></label>
                                                <label><input type="radio" id="radioItemConfiguracao" name="habilitaItemConfiguracao" value="N" /><fmt:message key="citcorpore.comum.nao" /></label>
                                            </div>
                                        </fieldset>
                                        <fieldset>
                                            <label class="campoObrigatorio"><fmt:message key="templateSolicitacaoServico.habilitaSolicitacaoRelacionada" /></label>
                                            <div  class="inline clearfix">
                                                <label><input type="radio" id="radioSolicitacaoRelacionada" name="habilitaSolicitacaoRelacionada" value="S" checked="checked" /><fmt:message key="citcorpore.comum.sim" /></label>
                                                <label><input type="radio" id="radioSolicitacaoRelacionada" name="habilitaSolicitacaoRelacionada" value="N" /><fmt:message key="citcorpore.comum.nao" /></label>
                                            </div>
                                        </fieldset>
                                        <fieldset>
                                            <label class="campoObrigatorio"><fmt:message key="templateSolicitacaoServico.habilitaGravarEContinuar" /></label>
                                            <div  class="inline clearfix">
                                                <label><input type="radio" id="radioGravarEContinuar" name="habilitaGravarEContinuar" value="S" checked="checked" /><fmt:message key="citcorpore.comum.sim" /></label>
                                                <label><input type="radio" id="radioGravarEContinuar" name="habilitaGravarEContinuar" value="N" /><fmt:message key="citcorpore.comum.nao" /></label>
                                            </div>
                                        </fieldset>
										<fieldset>
											<label class="campoObrigatorio"><fmt:message key="citcorpore.comum.aprovacao" /></label>
											<div  class="inline clearfix">
												<label><input type="radio" id="aprovacao" name="aprovacao" value="S" checked="checked" /><fmt:message key="citcorpore.comum.sim" /></label>
												<label><input type="radio" id="aprovacao" name="aprovacao" value="N" /><fmt:message key="citcorpore.comum.nao" /></label>
											</div>
										</fieldset>
									</div>
								</div>
								<button type='button' name='btnGravar' class="light"
									onclick='document.form.save();'>
									<img
										src="${ctx}/template_new/images/icons/small/grey/pencil.png">
									<span><fmt:message key="citcorpore.comum.gravar" />
									</span>
								</button>
								<button type='button' name='btnLimpar' class="light"
									onclick='document.form.clear();'>
									<img
										src="${ctx}/template_new/images/icons/small/grey/clear.png">
									<span><fmt:message key="citcorpore.comum.limpar" />
									</span>
								</button>
								<button type='button' name='btnExcluir' class="light"
									onclick='excluir();'>
									<img
										src="${ctx}/template_new/images/icons/small/grey/trashcan.png">
									<span><fmt:message key="citcorpore.comum.excluir" />
									</span>
								</button>
							</form>
						</div>

					</div>
					<div id="tabs-2" class="block">
						<div class="section">
							<form name='formPesquisa'>
								<cit:findField formName='formPesquisa' lockupName='LOOKUP_TEMPLATESOLICITACAOSERVICO' id='LOOKUP_TEMPLATESOLICITACAOSERVICO' top='0'left='0' len='550' heigth='400' javascriptCode='true' htmlCode='true' />
							</form>
						</div>
					</div>
					<!-- ## FIM - AREA DA APLICACAO ## -->
				</div>
			</div>
		</div>
		<!-- Fim da Pagina de Conteudo -->
	</div>
	<%@include file="/include/footer.jsp"%>
</body>
</html>

