#Affichage des fams des autres trolls=========================================== _print("<TABLE WIDTH=100%><TR><TD><BR><U><I><B>Les autres suivants: </U></I></B><BR><BR>"); _print(" <TABLE WIDTH=100% CELLSPACING=1 BORDER=0 CELLPADDING=0 CLASS=mh_tdborder><TR class=mh_tdtitre align=left><TD> <TABLE WIDTH=100% CELLSPACING=1 BORDER=1 CELLPADDING=1>"); _print("<TR><TD align=right colspan=2><b>Propriétaire</b></TD><TD><B>N° Suivant</B></TD><TD ><b>Commentaires</b></td></TR>"); $mysql=_sqlconnect(); # -------------- Ouverture DB $query = "SELECT P.TiD, P.Troll, F.Fam FROM `MZ_Profil` as P INNER JOIN `MZ_Fam` as F on P.TiD=F.TiD INNER JOIN `MZ_Share` as S ON P.TiD=S.TiD WHERE (S.SHRiD=$ZZ_TID) and (S.link='S') order by P.Troll, F.Fam"; //echo $query; $result = MySQL_QUERY($query); _sqlclose(); # -------------- Fermeture DB $nData = @MySQL_NUM_ROWS($result); for ($i=0; $i<$nData; $i++) { $TrollID=mysql_result($result,$i,"TiD"); _sqlAddLogId($TrollID); // ajout d'une log pour ce troll $Troll=mysql_result($result,$i,"Troll"); $Fam=mysql_result($result,$i,"Fam"); _print("<TR><TD colspan=2><B><A target=_blank HREF='$MHPJView$TrollID'><SPAN TITLE='$TrollID'>$Troll</SPAN></A></B></TD><TD><A target=_blank HREF='$MHMEView$Fam'>$Fam</a></TD><TD> </TD></TR>"); } _print("</TABLE></TD></TR></TABLE></TD></TR></TABLE>"); _print("<BR><BR></TD></TR></TABLE></TD></TR></TABLE>"); #======================================================================================== #======================================================================================== # Affichage de la boite de dialogue gerer les pieges } else if ($action=="DlgBoxPiege") { _print(' <SCRIPT LANGUAGE="JavaScript" TYPE="text/JavaScript">
$tab_VueId = explode("*", $tv); $TiD = $tab_VueId[0]; _sqlAddLogId($TiD); // ajout d'une log pour ce troll $VueId = $tab_VueId[1]; if ($WhereVueId != "") { $WhereVueId .= " or "; } $WhereVueId .= " (V.TiD={$TiD} and VueId={$VueId}) "; } } } else { $simpleVue = true; $tab_VueId = explode("*", $VueId); $TiD = $tab_VueId[0]; _sqlAddLogId($TiD); // ajout d'une log pour ce troll $VueId = $tab_VueId[1]; $WhereVueId = " (V.TiD={$TiD} and VueId={$VueId}) "; } #======================================================================================== # Log ZZ $mysql = _sqlconnect(); # -------------- Ouverture DB if ($TiD > 0) { _sqllogTiD($_SESSION['login'], "Play_vue.php"); // log sur les trolls } //============ Variable de la vue if ($PG == "") { $PG = "/MH/MH_Packs/packMH_parchemin";