Hello and thank you for your answer and your time,
So I tried to find out how display ressources only from Commercial team thanks to your indications but when I set those parameters :
<?php htmlDrawOptionForReference('idResource', 1, 'idTeam', true);
.
I get nothing (the multiSelect Window is white
http://prntscr.com/nh8tsg).
I tried to switch the spot of 1 and 'idTeam'. I also tried weird things to try to get only the resource where idTeam = 1 (which is commercial team id ofc), but same white result, so it doesn't work.
In fact I don't think it can work with idResource, because Resource table doesn't contain an 'idResource' element, it only contains 'id'.
So I tried to get all the resources from resource table, in order to extract the email from them, but 'id' alone doesn't give result as well..
I used htmlDrawOptionForReference() function again, but from what I've seen, this function haven't got a parameter to select which table you want to use for the SQL request.
So I'm thinking about just displaying all the ressources. Actually for little company it's OK, but I wished to do that for everyone including bigger companies. For now my best result is :
http://prntscr.com/nh8zgy
So if you have any ideas to help me I'd be glad to hear them. Else I'll try to create my own request, but then I have to import this code on a terminal and re-write it with Vi so I'm trying to do that with less code as possible.
Thank you again for your help.