$CantVinPER=LeerStd($Vinculos,"050AR4","*","AR4Linea2='$NroContacto' AND NOT(AR4EnlaceP='0')","","","","");
$CantVinOpPER=LeerStd($VinculosOp,"050AR4","*","AR4Enlace1='$NroContacto' AND NOT(AR4Linea1='0')","","","","");
if ($CantVinPER==0 && $CantVinOpPER==0 ) {
echo "
";
}
else{
echo"
".buscarnombre('PERNombre')." |
".buscarnombre('AR4Linea4')."
| ".buscarnombre('AR4Lista1')." |
".buscarnombre('AR4Checkbox1')." | ";
/** Colocar la columna acción sólo si el cliente es Compartido o el perfil es Admin o es el custodio del cliente **/
if( ($rowE[AR1Checkbox2]==='1' || $rowE[AR1CodAgente]===$COKAgente || strstr($Perfil, 'Admin')!== FALSE || strstr($Perfil, 'Edita Finanzas Ejecutivo')!== FALSE) && strstr($Perfil, 'Consulta')=== FALSE){
echo "Acción | ";
}
for ($i=0; $i<$CantVinPER; $i++){
if(($i%2) == 0)$clase = 'headceldtbl1';
else $clase = 'headceldtbl';
$rowV=mysql_fetch_array($Vinculos);
$CantPER=LeerStd($Per,"050PER","*","PERCodigo='$rowV[AR4EnlaceP]'","","","","");
$rowP=mysql_fetch_array($Per);
if ($rowV[AR4Checkbox1] == '1') $RteLegal='SI';
else $RteLegal='NO';
echo "
| $rowP[PERNombre] |
$rowV[AR4Linea4] |
$rowV[AR4Lista1] |
$RteLegal | ";
/** Colocar la columna acción, email y teléfonos sólo si el cliente es Compartido o el perfil es Admin o es el custodio del cliente **/
if(($rowE[AR1Checkbox2]==='1' || $rowE[AR1CodAgente]===$COKAgente || strstr($Perfil, 'Admin')!== FALSE || strstr($Perfil, 'Edita Finanzas Ejecutivo')!== FALSE) && strstr($Perfil, 'Consulta')=== FALSE){
echo " | ";
}
echo " ";
};
for($i=0; $i<$CantVinOpPER; $i++){
$rowVOp=mysql_fetch_array($VinculosOp);
$CantPEROp=LeerStd($PerOp,"050PER","*","PERCodigo='$rowVOp[AR4Linea1]'","","","","");
$rowPEROp=mysql_fetch_array($PerOp);
if ($CantPEROp!=0){
if($clase == 'headceldtbl1') $clase = 'headceldtbl';
else $clase = 'headceldtbl1';
if ($rowVOp[AR4Checkbox1] == '1') $RteLegal='SI';
else $RteLegal='NO';
echo "
| $rowPEROp[PERNombre] |
$rowVOp[AR4Linea4] |
$rowVOp[AR4Lista1] |
$RteLegal | ";
/** Colocar la columna acción, email y teléfonos sólo si el cliente es Compartido o el perfil es Admin o es el custodio del cliente **/
if(($rowE[AR1Checkbox2]==='1' || $rowE[AR1CodAgente]===$COKAgente || strstr($Perfil, 'Admin')!== FALSE || strstr($Perfil, 'Edita Finanzas Ejecutivo')!== FALSE) && strstr($Perfil, 'Consulta')=== FALSE){
echo " | ";
}
echo " ";
};
};
}
echo"
";
?> |