158
| <![CDATA[<style type="text/css">
.container-fluid { margin: 50px; }
input[type='text'] {width: 240px; }
input[name^='inscricao'] {font-family:courier;font-size:15px;font-weight:900;}
.navbar { background: #006738 !important; }
/* B4 adicionados */
b,strong { font-weight:bolder }
.font-weight-light{font-weight:300!important}
.font-weight-lighter{font-weight:lighter!important}
.font-weight-normal{font-weight:400!important}
.font-weight-bold{font-weight:700!important}
.font-weight-bolder{font-weight:bolder!important}
.text-white{color:#fff!important}
.text-primary{color:#007bff!important}
a.text-primary:focus,a.text-primary:hover{color:#0056b3!important}
.text-secondary{color:#6c757d!important}
a.text-secondary:focus,a.text-secondary:hover{color:#494f54!important}
.text-success{color:#28a745!important}
a.text-success:focus,a.text-success:hover{color:#19692c!important}
.text-info{color:#17a2b8!important}
a.text-info:focus,a.text-info:hover{color:#0f6674!important}
.text-warning{color:#ffc107!important}
a.text-warning:focus,a.text-warning:hover{color:#ba8b00!important}
.text-danger{color:#dc3545!important}
a.text-danger:focus,a.text-danger:hover{color:#a71d2a!important}
.text-light{color:#f8f9fa!important}
a.text-light:focus,a.text-light:hover{color:#cbd3da!important}
.text-dark{color:#343a40!important}
a.text-dark:focus,a.text-dark:hover{color:#121416!important}
.text-body{color:#212529!important}
.text-muted{color:#6c757d!important}
.bg-light{background-color:#f8f9fa!important}a.bg-light:focus,a.bg-light:hover,button.bg-light:focus,button.bg-light:hover{background-color:#dae0e5!important}
.bg-dark{background-color:#343a40!important}a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover{background-color:#1d2124!important}
.bg-secondary{background-color:#6c757d!important}a.bg-secondary:focus,a.bg-secondary:hover,button.bg-secondary:focus,button.bg-secondary:hover{background-color:#545b62!important}
.pl-0,.px-0{padding-left:0!important}
.p-0{padding:0!important}.pt-0,.py-0{padding-top:0!important}.pr-0,.px-0{padding-right:0!important}.pb-0,.py-0{padding-bottom:0!important}.pl-0,.px-0{padding-left:0!important}
.p-1{padding:.25rem!important}.pt-1,.py-1{padding-top:.25rem!important}.pr-1,.px-1{padding-right:.25rem!important}.pb-1,.py-1{padding-bottom:.25rem!important}.pl-1,.px-1{padding-left:.25rem!important}
.p-2{padding:.5rem!important}.pt-2,.py-2{padding-top:.5rem!important}.pr-2,.px-2{padding-right:.5rem!important}.pb-2,.py-2{padding-bottom:.5rem!important}.pl-2,.px-2{padding-left:.5rem!important}
.p-3{padding:1rem!important}.pt-3,.py-3{padding-top:1rem!important}.pr-3,.px-3{padding-right:1rem!important}.pb-3,.py-3{padding-bottom:1rem!important}.pl-3,.px-3{padding-left:1rem!important}
.p-4{padding:1.5rem!important}.pt-4,.py-4{padding-top:1.5rem!important}.pr-4,.px-4{padding-right:1.5rem!important}.pb-4,.py-4{padding-bottom:1.5rem!important}.pl-4,.px-4{padding-left:1.5rem!important}
.p-5{padding:3rem!important}.pt-5,.py-5{padding-top:3rem!important}.pr-5,.px-5{padding-right:3rem!important}.pb-5,.py-5{padding-bottom:3rem!important}.pl-5,.px-5{padding-left:3rem!important}
.m-0{margin:0!important}.mt-0,.my-0{margin-top:0!important}.mr-0,.mx-0{margin-right:0!important}.mb-0,.my-0{margin-bottom:0!important}.ml-0,.mx-0{margin-left:0!important}
.m-1{margin:.25rem!important}.mt-1,.my-1{margin-top:.25rem!important}.mr-1,.mx-1{margin-right:.25rem!important}.mb-1,.my-1{margin-bottom:.25rem!important}.ml-1,.mx-1{margin-left:.25rem!important}
.m-2{margin:.5rem!important}.mt-2,.my-2{margin-top:.5rem!important}.mr-2,.mx-2{margin-right:.5rem!important}.mb-2,.my-2{margin-bottom:.5rem!important}.ml-2,.mx-2{margin-left:.5rem!important}
.m-3{margin:1rem!important}.mt-3,.my-3{margin-top:1rem!important}.mr-3,.mx-3{margin-right:1rem!important}.mb-3,.my-3{margin-bottom:1rem!important}.ml-3,.mx-3{margin-left:1rem!important}
.m-4{margin:1.5rem!important}.mt-4,.my-4{margin-top:1.5rem!important}.mr-4,.mx-4{margin-right:1.5rem!important}.mb-4,.my-4{margin-bottom:1.5rem!important}.ml-4,.mx-4{margin-left:1.5rem!important}
.m-5{margin:3rem!important}.mt-5,.my-5{margin-top:3rem!important}.mr-5,.mx-5{margin-right:3rem!important}.mb-5,.my-5{margin-bottom:3rem!important}.ml-5,.mx-5{margin-left:3rem!important}
.border{border:1px solid #dee2e6!important}
.border-top{border-top:1px solid #dee2e6!important}
.border-right{border-right:1px solid #dee2e6!important}
.border-bottom{border-bottom:1px solid #dee2e6!important}
.border-left{border-left:1px solid #dee2e6!important}
.border-0{border:0!important}
.border-top-0{border-top:0!important}
.border-right-0{border-right:0!important}
.border-bottom-0{border-bottom:0!important}
.border-left-0{border-left:0!important}
.border-primary{border-color:#007bff!important}
.border-secondary{border-color:#6c757d!important}
.border-success{border-color:#28a745!important}
.border-info{border-color:#17a2b8!important}
.border-warning{border-color:#ffc107!important}
.border-danger{border-color:#dc3545!important}
.border-light{border-color:#f8f9fa!important}
.border-dark{border-color:#343a40!important}
.border-white{border-color:#fff!important}
.rounded-sm{border-radius:.2rem!important}
.rounded{border-radius:.25rem!important}
.rounded-top{border-top-left-radius:.25rem!important;border-top-right-radius:.25rem!important}
.rounded-right{border-top-right-radius:.25rem!important;border-bottom-right-radius:.25rem!important}
.rounded-bottom{border-bottom-right-radius:.25rem!important;border-bottom-left-radius:.25rem!important}
.rounded-left{border-top-left-radius:.25rem!important;border-bottom-left-radius:.25rem!important}
.rounded-lg{border-radius:.3rem!important}
.rounded-circle{border-radius:50%!important}
.rounded-pill{border-radius:50rem!important}
.rounded-0{border-radius:0!important}
.d-flex{display:-ms-flexbox!important;display:flex!important}
.d-none{display:none!important}
.flex-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}
.bg-secondary{ background-color: #dee2e6 !important; }
.btn-info, .btn-info:focus { background-color: #4c87ff !important; border-color: #4c87ff; }
.btn-success, .btn-success:focus { background-color: #88d535 !important; border-color: #88d535; }
@media (min-width:768px){.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}}
@media (min-width:992px){.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}}
@media (min-width:992px){.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}}
@media (min-width:1200px){.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}}
@media (max-width: 767px) { .btn-xs-block { display: block; width: 100%; } input[type="submit"].btn-xs-block, input[type="reset"].btn-xs-block, input[type="button"].btn-xs-block { width: 100%; } .btn-block + .btn-xs-block, .btn-xs-block + .btn-block, .btn-xs-block + .btn-xs-block { margin-top: 0.5rem; } }
/* B4 adicionados */
</style>]]>
|
67
| <![CDATA[<script type="text/javascript">
//Load content via ajax
var settings = {
WEBSIS_LIB_URL: '//siapegov.pindamonhangaba.sp.gov.br/websis/../siap-lib/',
WEBSIS_URL: '//siapegov.pindamonhangaba.sp.gov.br/pmpinda/websis/'
};
function MM_openBrWindow(theURL, winName = "Prefeitura Municipal de Pindamonhangaba", larg) { //v3.0
if ($('#modal').length == 0) {
$('.page-content').append("<div id='modal' class='modal' tabindex='-1' aria-labelledby='myModalLabel' aria-hidden='false'><div class='modal-dialog'><div class='modal-content'><div class='modal-header'><button type='button' class='close' data-dismiss='modal' aria-hidden='true'>�</button><h4 class='modal-title text-center' id='myModalLabel'>" + winName + "</h4></div><div id='printSection' class='modal-body'></div><div class='modal-footer no-margin hidden-xs'><button type='button' class='btn btn-default' data-dismiss='modal'>Fechar</button><button class='btn btn-info' aria-hidden='true' id='imprimeModal'><i class='fa fa-print'></i> Imprimir</button></div></div></div></div>");
}
spin = "<div class='text-center'><i class='ace-icon fa fa-circle-o-notch fa-spin blue bigger-250'></i></div>";
$('#modal .modal-body').html(spin);
$('#modal').modal('show');
$.ajax({
type: 'get',
url: theURL,
beforeSend: function( xhr ) {
xhr.overrideMimeType( "text/plain; charset=ISO-8859-1" ); },
success: function(conteudo){
$('#modal .modal-body').html(conteudo);
$('#modal .modal-dialog').css('width', '95%');
$('#modal .modal-body').css('max-height', function () {
return String(($(window).height()) - 200) + 'px';
});
$('#modal .modal-body').css('overflow', 'auto');
}
});
$("#imprimeModal").off();
$("#imprimeModal").on("click", function(){
PrintContent("printSection");
});
}
function PrintContent(div_to_print,css = null) {
if (css === null) {
var css1 = "<link rel='stylesheet' type='text/css' href='"+settings.WEBSIS_LIB_URL+"siap-lib/ace-template/assets/css/bootstrap.min.css' media='all'>\n";
var css2 = "<link rel='stylesheet' type='text/css' href='"+settings.WEBSIS_URL+"_css/egov/print.css' media='all'>\n";
var css = css1 + css2;
}
var DocumentContainer = document.getElementById(div_to_print);
var UniqueName = new Date();
var WindowObject = window.open("", "PrintWindow" + UniqueName.getTime(), "width=750,height=650,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes");
WindowObject.document.writeln("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html lang=\"en\">\n<head>\n" + css + "</head>\n<body>\n" + DocumentContainer.innerHTML.replace("", "") + "\n</body>\n</html>");
WindowObject.document.close();
WindowObject.focus();
setTimeout(function() {
WindowObject.print()
setTimeout(function() {
WindowObject.close()
}, 1000);
}, 1000);
}
$.ajaxSetup({ // Força os scripts a serem carregados com o encoding ISO-8859-1 (padrão dos fontes do Siap e-Gov), evitando assim, problemas de acentuação.
beforeSend: function(jqXHR) {
jqXHR.overrideMimeType('application/x-www-form-urlencoded; charset=ISO-8859-1');
}
});
</script>]]>
|