Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
84 righe
3.3 KiB
84 righe
3.3 KiB
<!doctype html> |
|
<? |
|
include '../../lib/api.php'; |
|
define('WS_MODULE', 'domanda'); |
|
define('THIS_PERMISSION', GRUPPO_ISTANZE); |
|
define('THIS_PERMISSION2', GRUPPO_REGIONE); |
|
include_once (ROOT . "layout/include_permission.php"); |
|
|
|
$stDomande = (intval($_REQUEST['std']) > 0 ? intval($_REQUEST['std']) : 2 ); |
|
?> |
|
<html lang="en"> |
|
<? include_once ROOT . 'layout/head.php'; ?> |
|
<body> |
|
<? include_once ROOT . 'layout/header.php'; ?> |
|
<main role="main" class="<?= $cssColumNavBar ?>" > |
|
<div class="container-fluid"> |
|
<? include_once ROOT . 'layout/menu.php'; ?> |
|
|
|
<div class="row"> |
|
<div class="col-sm-12"> |
|
|
|
<nav aria-label="breadcrumb"> |
|
<ol class="breadcrumb"> |
|
<li class="breadcrumb-item"><a href="#">Home</a></li> |
|
<li class="breadcrumb-item active" aria-current="page">RICERCA PER ID RICHIESTA SCONTO</li> |
|
</ol> |
|
</nav> |
|
</div> |
|
</div> |
|
<div class="row"> |
|
<div class="col-sm-12"> |
|
<h4 class="card-title">RICERCA ISTANZA PER ID RICHIESTA SCONTO</h4> |
|
<div class="card-body"> |
|
<div class="row"> |
|
<div class="col-sm-6"> |
|
<p>Inserisci ID RICHIESTA SCONTO</p> |
|
<input type="number" id="iddomanda" class="form-control"> |
|
</div> |
|
<div class="col-sm-6"> |
|
<p>Ricerca</p> |
|
<button class="btn btn-sm btn-primary" onclick="cercaPratica()"><i class="fa fa-search"></i>Cerca Richiesta Sconto</button> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
</div> |
|
</main> |
|
<? include_once ROOT . 'layout/footer.php'; ?> |
|
<script type="text/javascript"> |
|
$(document).ready(function () { |
|
console.log("ee"); |
|
}); |
|
function cercaPratica() { |
|
var iddomanda = $("#iddomanda").val(); |
|
if (!isNaN(iddomanda) && Number(iddomanda) > 0) { |
|
var obj = { |
|
module: 'domanda', |
|
action: 'searchID', |
|
idSconto: iddomanda |
|
}; |
|
postdataClassic(WS_CALL, obj, function (response) { |
|
$('#loader').hide(); |
|
var risp = jQuery.parseJSON(response); |
|
if (risp.id_domanda != -999) { |
|
var object = { |
|
domanda: risp.id_domanda |
|
} |
|
$.redirect("domanda.php", object); |
|
} else { |
|
functionSwall('error', 'Domanda non trovata', ''); |
|
} |
|
}); |
|
} else { |
|
functionSwall("error", "Valore di Ricerca Errato"); |
|
} |
|
} |
|
|
|
|
|
</script> |
|
|
|
</body> |
|
</html>
|
|
|