plugin header added v1.0.20260629

This commit is contained in:
2026-06-29 13:31:38 -03:00
parent cee1409335
commit d517d9bc2a

View File

@@ -1,4 +1,16 @@
<?php
/*
Plugin Name: Simulador Mob-Out ARI-POLI
Plugin URI: https://code.beco.cc/beco/simulador-mob-out-ari-poli
Description: Calculadora de pré-seleção para mobilidade OUT da ARI/POLI-UPE, exibida via shortcode [simulador_mob].
Version: 1.0.20260629
Author: Ruben Carlo Benante
Author URI: https://beco.cc
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: simulador-mob-out-ari-poli
*/
/* ------------------------------------------------------------------------ */
// Simulador Mob Out - Copyright (C) 2022-2024 - Versão 1.0.20220701
// Autores:
@@ -7,6 +19,12 @@
// Data: 2022-07-01
/* ------------------------------------------------------------------------ */
namespace Beco\SimuladorMobOut;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/* ------------------------------------------------------------------------ */
@@ -182,6 +200,8 @@ function outras_brafitec($es, $ms, $est, $apy, $acy, $cy, $ly, $ry, $ea, $pa, $c
}
function simulador_mob_shortcode() {
if ($_SERVER['REQUEST_METHOD'] == 'POST'){
//var_dump($_POST);
if (isset($_POST["calcular"])) {
@@ -210,28 +230,15 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST'){
ob_start();
?>
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<title> Simulador MOB OUT </title>
<div class="simulador-mob-out">
<style>
td {
padding: 5px;
}
</head>
<style>
td.labels {
width: 220px;
}
.simulador-mob-out td { padding: 5px; }
.simulador-mob-out td.labels { width: 220px; }
</style>
<body>
<div style="overflow-x: auto;">
<div style="display: flex;">
<div style="flex: 80%;">
@@ -269,7 +276,7 @@ td.labels {
</div>
<div style="flex: 20%;">
<img src="http://ari.poli.br/wp-content/uploads/2022/08/20220823-ilustracao-simulador.png" width="200px" style="float:right">
<img src="https://ari.poli.br/wp-content/uploads/2022/08/20220823-ilustracao-simulador.png" width="200px" style="float:right">
</div>
</div>
@@ -634,12 +641,11 @@ td.labels {
<br>
</form>
</div>
</body>
</div>
<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"></script>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML">
<script type="text/javascript">
function start() {
var inputReproRec = document.querySelector("#repro_rec");
var inputReproNRec = document.querySelector("#repro_nrec");
@@ -703,8 +709,9 @@ function totalRepro() {
start();
</script>
<?php
return ob_get_clean();
}
</html>
\add_shortcode( 'simulador_mob', __NAMESPACE__ . '\\simulador_mob_shortcode' );