$CantVinPER=LeerStd($Vinculos,"410AR4","*","AR4Linea1='$NroContacto'","","","","");
$CantVinOpPER=LeerStd($VinculosOp,"410AR4","*","AR4EnlaceP='$NroContacto'","","","","");
if ($CantVinPER==0 && $CantVinOpPER ==0) {
echo "
";
}
else{
$clase = 'headceldtb1';
echo"
Nombre |
".buscarnombre("AR1Linea3")." |
".buscarnombre("AR4Linea4")." |
".buscarnombre("AR4Checkbox1")." | ";
if(($rowP[PERCheckbox5]==='1' || $rowP[PERCodAgente]===$COKAgente || strstr($Perfil, 'Admin')!== FALSE || strstr($Perfil, 'Edita Finanzas Ejecutivo')!== FALSE) && strstr($Perfil, 'Consulta')=== FALSE){
echo "Acción | ";
}
echo " ";
for ($i=0; $i<$CantVinPER; $i++){
$rowV=mysql_fetch_array($Vinculos);
$CantAR1=LeerStd($Emp,"410AR1","*","AR1Codigo='$rowV[AR4Enlace1]'","","","","");
$rowE=mysql_fetch_array($Emp);
if ($CantAR1!=0){
if($clase == 'headceldtbl1') $clase = 'headceldtbl';
else $clase = 'headceldtbl1';
echo "
$rowE[AR1Nombre] |
$rowE[AR1Linea3] |
$rowV[AR4Linea4] | ";
echo "";
if ($rowV[AR4Checkbox1]==1) echo "SI";
else echo "NO";
echo " | ";
if(( $rowP[PERCheckbox5]==='1' || $rowP[PERCodAgente]===$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);
$CantAR1Op=LeerStd($EmpOp,"410AR1","*","AR1Codigo='$rowVOp[AR4Linea2]'","","","","");
$rowEOp=mysql_fetch_array($EmpOp);
if ($CantAR1Op!=0){
if($clase == 'headceldtbl1') $clase = 'headceldtbl';
else $clase = 'headceldtbl1';
echo "
$rowEOp[AR1Nombre] |
$rowEOp[AR1Linea3] |
$rowVOp[AR4Linea4] |
";
if ($rowVOp[AR4Checkbox1]==1) echo "SI";
else echo "NO";
echo " | ";
if( ( $rowP[PERCheckbox5]==='1' || $rowP[PERCodAgente]===$COKAgente || strstr($Perfil, 'Admin')!== FALSE || strstr($Perfil, 'Edita Finanzas Ejecutivo')!== FALSE) && strstr($Perfil, 'Consulta')=== FALSE){
echo " | ";
}
echo " ";
};
};
echo"
";
}
?>
|