$cnt_idmc += 1; } } else { $cnt_idpc += 1; } } else { $cnt_idcc += 1; } if (!$rem_destino) { $rem_destino = 1; } $sgd_dir_tipo = 1; echo "<input type=hidden name={$espcodi} value='{$espcodi}'>"; $ruta_raiz = ".."; include "../jh_class/funciones_sgd.php"; $a = new LOCALIZACION($pCodDep, $pCodMun, $db); $departamento_us = $a->departamento; $destino = $a->municipio; $pais_us = $a->GET_NOMBRE_PAIS($dat->idpais, $db); $dir_codigo = $dat->documento_us; include "../envios/listaEnvio.php"; $cantidadDestinos++; $rsEnviar->MoveNext(); } if ($cnt_idcl > 0 && $cnt_idcc > 0) { $igual_destino = "no"; } else { $cnt_idcl > 0 ? $masiva = 3 : ($masiva = 4); //Si contador continente local > 0 ==> masiva = 3 (Grupo 1) sino masiva = 4 (Grupo 2) if ($cnt_idpl > 0 && $cnt_idpc > 0) { $igual_destino = "no";
//Recorre la consulta $i = -1; $vec_id = array(); while ($rs && !$rs->EOF) { $i++; //Cambia el estilo de la fila si es par if ($i % 2 == 0) { $clase = "timparr"; } else { $clase = ""; } $nomb = $rs->fields['NOMBRE']; $sigla = $rs->fields['SIGLA']; $codep_us1 = $rs->fields['IDPAIS'] . '-' . $rs->fields['IDDPTO']; $muni_us1 = $codep_us1 . '-' . $rs->fields['IDMPIO']; $a = new LOCALIZACION($codep_us1, $muni_us1, $db); $dpto_nombre_us1 = $a->departamento; $muni_nombre_us1 = $a->municipio; $chequeado = " "; $b = new Contactos($db); //Si el registro tiene nuir if (strlen($rs->fields['ID'])) { //Si el registro ya fu� seleccionado lo muestra marcado //if ( strlen(strpos($selected, $rs->fields['NUIR']."," ))) Comentariado por HLP. if (in_array($rs->fields['ID'], explode(',', ${'selected' . $_POST['slc_tb']}))) { $chequeado = "checked"; strlen($selectedForm) == 0 ? $selectedForm = $rs->fields['ID'] : ($selectedForm = $selectedForm . "," . $rs->fields['ID']); $defa_idctt = array_search($rs->fields['ID'], explode(',', ${'selected' . $_POST['slc_tb']})); //Trae la posicion del NUIR en el "vector" $selected if (!is_array($tmp_vectorctt)) { $tmp_vectorctt = explode(",", ${'selectedctt' . $_POST['slc_tb']});
</tr> <tr> <td width="10%" height="12" align="center" class="titulos3">Continente</td> <td width="30%" height="12" align="center" class="titulos3">País</td> <td width="30%" height="12" align="center" class="titulos3">Departamento</td> <td width="30%" height="12" align="center" class="titulos3">Municipio</td> </tr> <?php if (!$rs) { echo "<br><b>No trae nada de la DB</b>"; } //Recorre la consulta while ($rs && !$rs->EOF) { $codCont = $rs->fields['ID_CONT']; $codPais = $rs->fields['ID_PAIS']; $a = new LOCALIZACION($rs->fields['DEPTO'], $rs->fields['MUNICIP'], $db); $a->GET_NOMBRE_CONT($codCont, $db); $a->GET_NOMBRE_PAIS($codPais, $db); ?> <tr align="center"> <td class="listado2" height="12" ><span class="etextomenu"><?php echo $a->continente; ?> </span></td> <td class="listado2" height="12" ><span class="etextomenu"><?php echo $a->pais; ?> </span></td> <td class="listado2" height="12" ><span class="etextomenu"><?php echo $a->departamento; ?>
} $sgd_dir_tipo = 1; echo "<input type=hidden name={$espcodi} value='{$espcodi}'>"; $ruta_raiz = ".."; include "../jh_class/funciones_sgd.php"; /* *Se incluyen ya que en ver_datosrad no esta contemplada esta opcion *que corresponde a copias */ $a = new LOCALIZACION($codep_us7, $muni_us7, $db); $dpto_nombre_us7 = $a->departamento; $muni_nombre_us7 = $a->municipio; /* * Fin modificacion */ $a = new LOCALIZACION($pCodDep, $pCodMun, $db); $dpto_nombre_us = $a->departamento; $muni_nombre_us = $a->municipio; $direccion_us = $dir; $destino = $muni_nombre_us; $departamento = $dpto_nombre_us; $pais = $a->GET_NOMBRE_PAIS($pais, $db); $dir_codigo = $documento; /* * Modificado 27072005 * Se modifica para que asuma el destinatario */ if ($rem_destino == 1) { $email_us = $email_us1; $telefono_us = $telefono_us1; $nombre_us = trim($nombre_us1);