Skip to main content
Post restaurado por user60252
adicionou 62 caracteres ao conteúdo
Fonte Link
user60252
user60252

BibliotecaBiblioteca

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

ScriptModal HTML

if($visualizarVerificar->Bloqueado == "S"){
    $("#myModal").modal('show');
    exit;
}

Modal

<div id="myModal" class="modal fade">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">Página bloqueada</h4>
            </div>
            <div class="modal-body">
                <p>Favor entrar em contato com o administrador para solicitar o desbloqueio.</p>
                <p class="text-warning"><small>contato</small></p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Fechar</button>
            </div>
        </div>
    </div>
</div>

Script

if($visualizarVerificar->Bloqueado == "S"){
    echo "<script>
        $(\"#myModal\").modal('show');
    </script>"; 
    
    exit();
}

O script depois do Modal HTML

Teste - Pagina Bloqueada

Biblioteca

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

Script

if($visualizarVerificar->Bloqueado == "S"){
    $("#myModal").modal('show');
    exit;
}

Modal

<div id="myModal" class="modal fade">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">Página bloqueada</h4>
            </div>
            <div class="modal-body">
                <p>Favor entrar em contato com o administrador para solicitar o desbloqueio.</p>
                <p class="text-warning"><small>contato</small></p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Fechar</button>
            </div>
        </div>
    </div>
</div>

Biblioteca

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

Modal HTML

<div id="myModal" class="modal fade">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">Página bloqueada</h4>
            </div>
            <div class="modal-body">
                <p>Favor entrar em contato com o administrador para solicitar o desbloqueio.</p>
                <p class="text-warning"><small>contato</small></p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Fechar</button>
            </div>
        </div>
    </div>
</div>

Script

if($visualizarVerificar->Bloqueado == "S"){
    echo "<script>
        $(\"#myModal\").modal('show');
    </script>"; 
    
    exit();
}

O script depois do Modal HTML

Teste - Pagina Bloqueada

Post removido por user60252
Fonte Link
user60252
user60252

Biblioteca

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

Script

if($visualizarVerificar->Bloqueado == "S"){
    $("#myModal").modal('show');
    exit;
}

Modal

<div id="myModal" class="modal fade">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">Página bloqueada</h4>
            </div>
            <div class="modal-body">
                <p>Favor entrar em contato com o administrador para solicitar o desbloqueio.</p>
                <p class="text-warning"><small>contato</small></p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Fechar</button>
            </div>
        </div>
    </div>
</div>