alsomean
(usa Outra)
Enviado em 09/04/2015 - 22:29h
Ola Pessoal,
Esse eh o codigo script do link de rastreamento de quem tem contrato, espero que possa ser util.
<script language="javascript">
<!-- inicio
function ver_ar(obj) {
/* NewWindow('ver_ar.php?objetox='+obj,'ars',400,250,1); */
NewWindow('../../tools/ar/?opcao=visualizar®istro='+obj,'ars',570,300,1);
}
function BT_PAGE_OnClick(ctl,dt,cep) {
if (ctl.substring(0,2)=='AR') {
NewWindow('aguarde.php?objetox='+ctl+'&datax=' + dt + '&cepx=' + cep,'objetos',550,350,1);
} else {
//NewWindow('aguarde.php?objetox='+ctl+'BR&datax=' + dt + '&cepx=' + cep,'objetos',550,350,1);
//maximizada('http://websro.correios.com.br/sro_bin/txect01$.QueryList?P_LINGUA=001&P_COD_UNI=' + ctl + 'BR', 'jancorreio');
maximizada('novorastreamento.php?obj=' + ctl + 'BR', 'jancorreio');
}
}
function rastrear_ar(obj, dt, cep) {
var tmpobj = 'AR' + obj.substring(2, 11) + obj.substring(0,2);
//alert(tmpobj);
NewWindow('aguarde.php?objetox=' + tmpobj + '&datax=' + dt + '&cepx=' + cep, 'objetos', 550, 350, 1);
}
function relat(n,o) {
window.location='htmlect.php?datai=09/04/2015&dataf=09/04/2015&hrini=00:00&hrfim=23:59&r=3&descri=' + n + '&opcao=' + o + '&desanexar=0&sx=BR';
}
function relatar(n,o) {
window.location='htmlect.php?datai=09/04/2015&dataf=09/04/2015&hrini=00:00&hrfim=23:59&r=16&descri=' + n + '&opcao=' + o + '&desanexar=0&sx=BR';
}
function relatsecaoar(n, m, o) {
window.location='htmlect.php?datai=09/04/2015&dataf=09/04/2015&hrini=00:00&hrfim=23:59&r=21&descri=' + n + '&prod=' + m + '&opcao=' + o + '&desanexar=0&sx=BR';
}
function relatuf(n) {
window.location='htmlect.php?datai=09/04/2015&dataf=09/04/2015&hrini=00:00&hrfim=23:59&r=13&descri=' + n + '&desanexar=0&sx=BR';
}
function relatsecao(n,m,o) {
window.location='htmlect.php?datai=09/04/2015&dataf=09/04/2015&hrini=00:00&hrfim=23:59&r=7&descri=' + n + '&prod=' + m + '&opcao=' + o + '&desanexar=0&sx=BR';
}
function relatsecaouf(n,m) {
window.location='htmlect.php?datai=09/04/2015&dataf=09/04/2015&hrini=00:00&hrfim=23:59&r=15&descri=' + n + '&prod=' + m + '&desanexar=0&sx=BR';
}
function relatsecao1(n,m,o) {
window.location='htmlect.php?datai=09/04/2015&dataf=09/04/2015&hrini=00:00&hrfim=23:59&r=10&descri=' + n + '&prod=' + m + '&opcao=' + o + '&desanexar=0&sx=BR';
}
function relatsecao02(n,m,o) {
window.location='htmlect.php?datai=09/04/2015&dataf=09/04/2015&hrini=00:00&hrfim=23:59&r=23&descri=' + n + '&prod=' + m + '&opcao=' + o + '&desanexar=0&sx=BR';
}
function imprimir(n) {
if (n==1) {
var tsx = "";
if ("1" == "1") {
//if (parent.menu.document.formdata.sufixo.checked == true) {
tsx = "BR";
}
document.frmimp.action = 'imp.php?sx=' + tsx;
NewWindow('','novo_imp',500,500,1);
document.frmimp.submit();
}
if (n==2) {
var tsx = "";
if ("1" == "1") {
//if (parent.menu.document.formdata.sufixo.checked == true) {
tsx = "BR";
}
document.frmimp.action = 'excell.php?sx=' + tsx;
NewWindow('','novo_imp',350,150,0);
document.frmimp.submit();
}
if (n==3) {
var tsx = "";
if ("1" == "1") {
//if (parent.menu.document.formdata.sufixo.checked == true) {
tsx = "BR";
}
document.frmimp.action = 'texto.php?sx=' + tsx;
NewWindow('','novo_imp',350,150,0);
document.frmimp.submit();
}
if (n==4) {
var tsx = "";
if ("1" == "1") {
//if (parent.menu.document.formdata.sufixo.checked == true) {
tsx = "BR";
}
document.frmimp.action = 'html_pdf.php?sx=' + tsx;
NewWindow('','novo_imp',350,150,0);
document.frmimp.submit();
}
if (n==5) {
var tsx = "";
if ("1" == "1") {
//if (parent.menu.document.formdata.sufixo.checked == true) {
tsx = "BR";
}
document.frmimp.action = 'hexcell.php?sx=' + tsx;
NewWindow('','novo_imp',350,150,0);
document.frmimp.submit();
}
if (n==6) {
var tsx = "";
if ("1" == "1") {
//if (parent.menu.document.formdata.sufixo.checked == true) {
tsx = "BR";
}
document.frmimp.action = 'excellformatado.php?sx=' + tsx;
NewWindow('','novo_imp',350,150,0);
document.frmimp.submit();
}
if (n==7) {
var tsx = "";
if ("1" == "1") {
tsx = "BR";
}
document.frmimp.action = 'expvp.php?sx=' + tsx;
NewWindow('','novo_imp',350,150,0);
document.frmimp.submit();
}
}
//-->fim
</script>