</table> </td> </tr> <tr> <td class="tbl_header"> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td class="tbl_header">Assigned Tags</td> <td align="right" class="tbl_header" style="font-style: italic;">Tag ID [ MAC ]</td> </tr> </table> </td> </tr> <?php foreach ($people as $person) { $assignedTags = $registry->listAssignedTags($person->getId()); if ($assignedTags) { ?> <tr id="tagInfoFor_<?php echo $person->getId(); ?> " name="assignedTagsList" style="display: none;"> <td class="tbl_cell"> <table border="0" width="780" bgcolor="#80bbe8" cellspacing="1" cellpadding="5"> <?php foreach ($assignedTags as $item) { foreach ($tags as $tag) { if ($item->getTagId() == $tag->getTagId()) { $tag_id = $item->getId(); $item = $tag; $item->setId($tag_id);