plugin header added v1.0.20260629
This commit is contained in:
@@ -1,4 +1,16 @@
|
|||||||
<?php
|
<?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
|
// Simulador Mob Out - Copyright (C) 2022-2024 - Versão 1.0.20220701
|
||||||
// Autores:
|
// Autores:
|
||||||
@@ -7,6 +19,12 @@
|
|||||||
// Data: 2022-07-01
|
// 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'){
|
if ($_SERVER['REQUEST_METHOD'] == 'POST'){
|
||||||
//var_dump($_POST);
|
//var_dump($_POST);
|
||||||
if (isset($_POST["calcular"])) {
|
if (isset($_POST["calcular"])) {
|
||||||
@@ -210,28 +230,15 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST'){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ob_start();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<div class="simulador-mob-out">
|
||||||
<html lang="pt-br">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title> Simulador MOB OUT </title>
|
|
||||||
<style>
|
<style>
|
||||||
td {
|
.simulador-mob-out td { padding: 5px; }
|
||||||
padding: 5px;
|
.simulador-mob-out td.labels { width: 220px; }
|
||||||
}
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
td.labels {
|
|
||||||
width: 220px;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<div style="overflow-x: auto;">
|
<div style="overflow-x: auto;">
|
||||||
<div style="display: flex;">
|
<div style="display: flex;">
|
||||||
<div style="flex: 80%;">
|
<div style="flex: 80%;">
|
||||||
@@ -269,7 +276,7 @@ td.labels {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="flex: 20%;">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -634,12 +641,11 @@ td.labels {
|
|||||||
<br>
|
<br>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</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
|
<script type="text/javascript">
|
||||||
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML">
|
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
var inputReproRec = document.querySelector("#repro_rec");
|
var inputReproRec = document.querySelector("#repro_rec");
|
||||||
var inputReproNRec = document.querySelector("#repro_nrec");
|
var inputReproNRec = document.querySelector("#repro_nrec");
|
||||||
@@ -703,8 +709,9 @@ function totalRepro() {
|
|||||||
|
|
||||||
|
|
||||||
start();
|
start();
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
<?php
|
||||||
|
return ob_get_clean();
|
||||||
|
}
|
||||||
|
|
||||||
</html>
|
\add_shortcode( 'simulador_mob', __NAMESPACE__ . '\\simulador_mob_shortcode' );
|
||||||
|
|||||||
Reference in New Issue
Block a user