Ho creato un codice di esempio, con pulsante che se cliccato apre un popup che carica il contenuto del link relativo a silentauctionbid.php.
Qursto è l'esmpio:
Codice HTML:
<style>
@charset "UTF-8";
/* Stili della finestra modale */
.modal-header h2 {
color: #555;
font-size: 20px;
font-weight: normal;
line-height: 1;
margin: 0;
}
/* bottone della chiusura */
.modal .btn-close {
color: #aaa;
cursor: pointer;
font-size: 30px;
text-decoration: none;
position: absolute;
right: 5px;
top: 0;
}
.modal .btn-close:hover {
color: red;
}
/* sfondo oscurante */
.modal-wrap:before {
content: "";
display: none;
background: rgba(0, 0, 0, 0.6);
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 101;
}
.modal-overlay {
bottom: 0;
display: none;
left: 0;
position: fixed;
right: 0;
top: 0;
z-index: 102;
}
/* ativazione dello sfondo oscurante e della finestra */
.modal-open:checked ~ .modal-wrap:before,
.modal-open:checked ~ .modal-wrap .modal-overlay {
display: block;
}
.modal-open:checked ~ .modal-wrap .modal-dialog {
-webkit-transform: translate(-50%, 0);
-ms-transform: translate(-50%, 0);
-o-transform: translate(-50%, 0);
transform: translate(-50%, 0);
top: 20%;
}
/* elementi della finestra modale */
.modal-dialog {
background: #fefefe;
border: #555555 solid 1px;
border-radius: 5px;
position: fixed;
left: 50%;
top: -100%;
-webkit-transform: translate(-50%, -500%);
-ms-transform: translate(-50%, -500%);
-o-transform: translate(-50%, -500%);
transform: translate(-50%, -500%);
-webkit-transition: -webkit-transform 0.4s ease-out;
-moz-transition: -moz-transform 0.4s ease-out;
-o-transition: -o-transform 0.4s ease-out;
transition: transform 0.4s ease-out;
width: 80%;
max-width: 500px;
z-index: 103;
}
.modal-body {
padding: 20px;
}
.modal-body p {
margin: 0;
}
.modal-header,
.modal-footer {
padding: 20px 20px;
}
.modal-header {
border-bottom: #eaeaea solid 1px;
}
.modal-header h2 {
font-size: 20px;
margin: 0;
}
.modal-footer {
border-top: #eaeaea solid 1px;
text-align: right;
}
/* imagini addative nella finestra modale */
.modal-body img {
max-width: 100%;
height: auto;
}
/* bottoni */
.btn {
background: #fff;
border: #555 solid 1px;
border-radius: 3px;
cursor: pointer;
display: inline-block;
font-size: 14px;
padding: 8px 15px;
text-decoration: none;
text-align: center;
min-width: 60px;
position: relative;
}
.btn:hover, .btn:focus {
background: #f2f2f2;
}
.btn-primary {
background: #428bca;
border-color: #357ebd;
color: #fff;
}
.btn-primary:hover{
background: #66A1D3;
}
/* elementi dell forma di contatto */
.textbox{
height:45px;
width:100%;
border-radius:3px;
border:rgba(0,0,0,.3) 1px solid;
box-sizing:border-box;
font-size:14px;
padding:8px;
margin-bottom:20px;
}
.message:focus,
.textbox:focus{
outline:none;
border:rgba(24,149,215,1) 1px solid;
color:rgba(24,149,215,1);
}
.message{
background: rgba(255, 255, 255, 0.4);
width:100%;
height: 120px;
border:rgba(0,0,0,.3) 1px solid;
box-sizing:border-box;
-moz-border-radius: 3px;
font-size:14px;
-webkit-border-radius: 3px;
border-radius: 3px;
display:block;
padding:10px;
margin-bottom:20px;
overflow:hidden;
}
/* bottone "inviare" della forma */
.btn-form{
width:100%;
height:45px;
border:rgba(0,0,0,.2) 1px solid;
box-sizing:border-box;
background: grey;
color:white;
transition:background .4s;
}
/* Modifica dello sfondo del bottone al hover */
.btn-form:hover{
background: #f2f2f2;
}
</style>
<label target="contenuto" title="Forma di contatto nella finestra modale" class="btn" for="modal-2">Esempio</label>
<div class="modal">
<input class="modal-open" id="modal-2" type="checkbox" hidden>
<div class="modal-wrap" aria-hidden="true" role="dialog">
<label class="modal-overlay" for="modal-2"></label>
<div class="modal-dialog">
<div class="modal-header">
<h2>Finestra modale o popup!</h2>
<label class="btn-close" for="modal-2" aria-hidden="true">×</label>
</div>
<div class="modal-body">
<form>
<iframe src="silentauctionbid.php?recordID=<?php echo $row_playersearch['id']; ?>" frameborder="0" style="width:100%; height:300px; border:0 overflow:hidden;" seamless="seamless" scrolling="no"></iframe>
</form>
</div>
</div>
</div>
</div>
Ora, dovrebbe avre solo da modificare lo stile e la misura della finesta, secondo le sue preferenze.
Cordiali saluti.