Viewing file: interno_campolibero.php (4.66 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include 'global.php';
$Importo = $_GET["Importo"];
?>
<!DOCTYPE html>
<html lang="en"> <head> <meta charset="utf-8"> <meta content="IE=edge" http-equiv="X-UA-Compatible"> <meta content="width=device-width,initial-scale=1" name="viewport">
<title><?php echo SITENAME; ?> - Pagamento online</title><!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet"><!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --><!-- WARNING: Respond.js doesn't work if you view the page via file:// --><!--[if lt IE 9]> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <!-- Include all compiled plugins (below), or include individual files as needed --> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.1.38/jquery.form-validator.min.js"></script> <script src="js/jquery.mask.min.js"></script> <script src="js/jquery.base64.js"></script> <![endif]-->
<style> body { margin-top:20px; } .container { max-width:960px; } input[disabled] { border: 0px solid transparent!important; background-color: #FFF!important; box-shadow: 0px 0px!important; font-weight: bold; } </style> <script> jQuery(document).ready(function() { jQuery('#form_pagamento input[name="Importo"]').mask('000000000000000.00', { reverse: true }); jQuery("#sendRequest").click( function(e){ e.preventDefault(); fData =''; jQuery("#form_pagamento input").each( function(item) { var _k_ = this.name; var _v_ = this.value; fData += _k_ + "=" + _v_ + "&"; }); jQuery("#response-link").html("<p>http://essebinet.com/pagamento/index.php?"+fData+"</p>"); var encoded = jQuery.base64.encode("http://essebinet.com/pagamento/index.php?"+fData+""); jQuery("#response-qrcode").html("<img src='qrcode.php?url="+encoded+"'>"); return false; }); }); </script> </head>
<body> <div class="container"> <div class="header">
<img src="logo_wt1.jpg" height="100">
<h3 class="pull-right text-muted"><?php echo SITENAME; ?> - Pagamento Online</h3>
</div>
<hr style="color:#EEE;width:100%"> <form id="form_pagamento"> <div class="form-horizontal">
<?php outputField('Nome','Nome',$_GET['Nome'],'Nome','required length'); outputField('Cognome','Cognome',$_GET['Cognome'],'Cognome','required length'); outputField('Indirizzo','Indirizzo',$_GET['Indirizzo'],'Indirizzo','required length'); outputField('Cap','Cap',$_GET['Cap'],'Cap','required length'); outputField('Citta','Citta',$_GET['Citta'],'Citta','required length'); outputField('Ragione sociale','societa',$_GET['Societa'],'Non obbligatorio',''); outputField('COD.Fiscale o P.IVA','CF_PIVA',$_GET['CF_PIVA'],'Inserire il CF per i privati oppure inserire la P.IVA per le società','required length'); ?> </div> <hr style="color:#EEE;width:100%"> <div class="form-horizontal"> <div class="form-group"> <label class="col-sm-3 control-label" for="Importo">Importo</label> <div class="col-sm-9"> <input class="form-control" name="Importo" placeholder="es. 10.00" type="text" data-validation="number" data-validation-allowing="float" data-validation-error-msg="Questo campo è obbligatorio" value="<?php echo $Importo; ?>" <?php if (!empty($Importo)) echo "disabled data-collect=1";?>> </div> </div> <?php outputField('Causale','Causale',$_GET['Causale'],'Causale','required length'); ?> </div>
<hr style="color:#EEE;width:100%"> <div class="form-horizontal"> <?php outputField('Email','Email',$_GET['Email'],'es. latuaemail@dominio.it','required length'); ?> </div> <hr style="color:#EEE;width:100%"> <div class="form-group col-sm-offset-8" class="col-sm-4"> <button id="sendRequest" class="btn btn-default btn-success pull-right" type="submit" click="return false;">Crea link pagamento cliente</button> </div> </div> </form> <div class="form-horizontal"> <div class="col-sm-4 col-sm-offset-2" id="response-link"> </div> <div class="col-sm-4" id="response-qrcode"> </div> </div> </div> <script src="js/bootstrap.min.js"></script> </body> </html>
|