109
| <![CDATA[<div id="loading" style="display: none;">
<div class="spinner-border text-primary" role="status">
<span class="sr-only">Carregando...</span>
</div>
</div>]]>
|
117
| <![CDATA[<div class="card bg-white position-relative w-100 shadow d-inline-flex" id="main-card" style="max-width: 25rem;">
<div class="card-body">
<h5 class="card-title">Sistemas</h5>
<p class="card-text text-muted">Escolha dentre os sistemas disponíveis</p>
<form name="WFRLogon" id="WFRSystem" class="needs-validation" method="post" action="open.do">
<input type="hidden" name="locale" value="">
<div class="input-group">
<select class="form-control custom-select h-100" name="syscode" id="syscode" tabindex="1">
<option value="" class="d-none" hidden disabled selected> ;</option>
<option value="ALM">Almoxarifado</option>
<option value="FRO">Frotas</option>
<option value="LIC">Licitações e Contratos</option>
<option value="OBR">Obras</option>
<option value="PAT">Patrimônio</option>
<option value="PRO">Protocolo</option>
</select>
<div class="input-group-append btn-group">
<button type="button" class="btn btn-light dropdown-toggle px-2 py-0 flag-button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="width: 4rem;">
<img src="assets/icons/flags/pt_BR.svg" style="max-width: 1.68rem; max-height: 1.68rem;">
</button>
<div class="dropdown-menu dropdown-menu-right flag-menu">
<h6 class="dropdown-header">Idioma</h6>
<button class="dropdown-item flag" type="button" onclick="changeLanguage('pt_BR');"><img src="assets/icons/flags/pt_BR.svg" class="mr-2" style="width: 2rem;"> Português (Brasil)</button>
<button class="dropdown-item flag" type="button" onclick="changeLanguage('en_US');"><img src="assets/icons/flags/en_US.svg" class="mr-2" style="width: 2rem;"> English (USA)</button>
<button class="dropdown-item flag" type="button" onclick="changeLanguage('es_ES');"><img src="assets/icons/flags/es_ES.svg" class="mr-2" style="width: 2rem;"> Español</button>
<button class="dropdown-item flag" type="button" onclick="changeLanguage('fr_FR');"><img src="assets/icons/flags/fr_FR.svg" class="mr-2" style="width: 2rem;"> Français</button>
</div>
</div>
<div class="invalid-feedback" id="syscode-feedback"></div>
</div>
</form>
</div>
<div class="card-footer bg-white border-top px-md-4 py-md-3">
<button type="button" class="btn btn-primary mr-2" onclick="toLink(event, this, '/adm/open.do?action=open&sys=' + getSelectedSystem());">Acessar</button>
<div class="btn-group">
<button type="button" class="btn btn-secondary" onclick="toggleAdminLogon(event); return false;">Configurações</button>
<button type="button" class="btn btn-secondary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only"></span>
</button>
<div class="dropdown-menu">
<h6 class="dropdown-header">Avançado</h6>
<a class="dropdown-item" href="/adm/autotest">Auto Test</a>
</div>
</div>
</div>
</div>]]>
|
146
| <![CDATA[<button type="button" class="btn btn-light dropdown-toggle px-2 py-0 flag-button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="width: 4rem;">
<img src="assets/icons/flags/pt_BR.svg" style="max-width: 1.68rem; max-height: 1.68rem;">
</button>]]>
|
147
| <![CDATA[<img src="assets/icons/flags/pt_BR.svg" style="max-width: 1.68rem; max-height: 1.68rem;">]]>
|
153
| <![CDATA[<img src="assets/icons/flags/pt_BR.svg" class="mr-2" style="width: 2rem;">]]>
|
156
| <![CDATA[<img src="assets/icons/flags/en_US.svg" class="mr-2" style="width: 2rem;">]]>
|
159
| <![CDATA[<img src="assets/icons/flags/es_ES.svg" class="mr-2" style="width: 2rem;">]]>
|
162
| <![CDATA[<img src="assets/icons/flags/fr_FR.svg" class="mr-2" style="width: 2rem;">]]>
|
185
| <![CDATA[<div class="card bg-white position-relative w-100 shadow d-none" id="admin-card" style="max-width: 25rem;">
<form name="WFRLogon" id="WFRLogon" class="needs-validation" method="post" action="admincore">
<input name="action" type="hidden" id="action" value="logon">
<div class="card-body">
<h5 class="card-title">Acesso à Tela de Configurações</h5>
<p class="card-text text-muted">Informe o nome e a senha do usuário e clique em Acessar</p>
<div class="form-group mb-3 row position-relative">
<label for="input-user" class="col-sm-3 col-form-label">Usuário</label>
<div class="col-sm-9">
<input type="text" name="user" class="form-control" id="input-user" placeholder="Usuário" autofocus required>
</div>
</div>
<div class="form-group mb-0 row position-relative">
<label for="input-password" class="col-sm-3 col-form-label">Senha</label>
<div class="col-sm-9">
<input type="password" name="password" class="form-control" id="input-password" placeholder="Senha" required>
</div>
</div>
</div>
<div class="card-footer bg-white border-top px-md-4 py-md-3">
<button type="submit" class="btn btn-primary mr-2">Acessar</button>
<button type="button" class="btn btn-secondary" onclick="toggleAdminLogon(event); return false;">Sistemas</button>
</div>
</form>
</div>]]>
|
153
| <![CDATA[<button class="dropdown-item flag" type="button" onclick="changeLanguage('pt_BR');"><img src="assets/icons/flags/pt_BR.svg" class="mr-2" style="width: 2rem;"> Português (Brasil)</button>]]>
|
156
| <![CDATA[<button class="dropdown-item flag" type="button" onclick="changeLanguage('en_US');"><img src="assets/icons/flags/en_US.svg" class="mr-2" style="width: 2rem;"> English (USA)</button>]]>
|
159
| <![CDATA[<button class="dropdown-item flag" type="button" onclick="changeLanguage('es_ES');"><img src="assets/icons/flags/es_ES.svg" class="mr-2" style="width: 2rem;"> Español</button>]]>
|
162
| <![CDATA[<button class="dropdown-item flag" type="button" onclick="changeLanguage('fr_FR');"><img src="assets/icons/flags/fr_FR.svg" class="mr-2" style="width: 2rem;"> Français</button>]]>
|
172
| <![CDATA[<button type="button" class="btn btn-primary mr-2" onclick="toLink(event, this, '/adm/open.do?action=open&sys=' + getSelectedSystem());">Acessar</button>]]>
|
174
| <![CDATA[<button type="button" class="btn btn-secondary" onclick="toggleAdminLogon(event); return false;">Configurações</button>]]>
|
208
| <![CDATA[<button type="button" class="btn btn-secondary" onclick="toggleAdminLogon(event); return false;">Sistemas</button>]]>
|
27
| <![CDATA[<script type="text/javascript">const showMessageAsLegacy = false</script>]]>
|
28
| <![CDATA[<script type="text/javascript">const messageConfig = {};</script>]]>
|
33
| <![CDATA[<script type="text/javascript">
function showLoading() {
var loading = document.getElementById("loading");
if (loading) loading.style.display = "block";
}
function switchCard(currentCard, targetCard, direction) {
if (currentCard.classList.contains("d-none")) currentCard.classList.remove("d-none");
if (!currentCard.classList.contains("d-inline-flex")) currentCard.classList.add("d-inline-flex");
if (!currentCard.classList.contains("animated")) currentCard.classList.add("animated");
if (!currentCard.classList.contains("slideOut" + (direction ? "Left" : "Right"))) currentCard.classList.add("slideOut" + (direction ? "Left" : "Right"));
function handleAnimationEnd() {
currentCard.removeEventListener("animationend", handleAnimationEnd);
if (!currentCard.classList.contains("d-none")) currentCard.classList.add("d-none");
if (currentCard.classList.contains("d-inline-flex"))currentCard.classList.remove("d-inline-flex");
if (currentCard.classList.contains("animated")) currentCard.classList.remove("animated");
if (currentCard.classList.contains("slideOut" + (direction ? "Left" : "Right"))) currentCard.classList.remove("slideOut" + (direction ? "Left" : "Right"));
if (targetCard.classList.contains("d-none")) targetCard.classList.remove("d-none");
if (!targetCard.classList.contains("d-inline-flex")) targetCard.classList.add("d-inline-flex");
if (!targetCard.classList.contains("animated")) targetCard.classList.add("animated");
if (!targetCard.classList.contains("slideIn" + (direction ? "Right" : "Left"))) targetCard.classList.add("slideIn" + (direction ? "Right" : "Left"));
clearInvalidState();
}
currentCard.addEventListener("animationend", handleAnimationEnd);
}
function toggleAdminLogon(e) {
e.preventDefault();
var mainCard = document.getElementById("main-card");
var adminCard = document.getElementById("admin-card");
if (mainCard.classList.contains("d-inline-flex")) switchCard(mainCard, adminCard, true);
else switchCard(adminCard, mainCard, false);
}
function changeLanguage(locale) {
showLoading();
var form = document.getElementById("WFRSystem");
form.action = "admincore?action=indexChangeLanguage&locale=" + locale;
form.submit();
}
function toLink(event, same, link) {
event.preventDefault();
var syscode = document.getElementById("syscode");
var selectedSys = getSelectedSystem();
if (!selectedSys || selectedSys.length == 0) {
var syscodeFeedback = document.getElementById("syscode-feedback");
syscode.classList.add("is-invalid");
syscodeFeedback.innerHTML = 'Você deve especificar o código do sistema!';
} else {
showLoading();
window.location = link;
}
return false;
}
function clearInvalidState() {
var syscode = document.getElementById("syscode");
var syscodeFeedback = document.getElementById("syscode-feedback");
syscode.classList.remove("is-invalid");
syscodeFeedback.innerHTML = "";
document.querySelector('[autofocus]').focus(); //Focar componente de usuário após animação
}
function getSelectedSystem() {
var e = document.getElementById("syscode");
return e.selectedIndex >= 0 ? e.options[e.selectedIndex].value : null;
}
</script>]]>
|