function displayDiscussIcon($node) { global $img_discuss, $img_discuss_dis; $item = new jzMediaElement($node->getPath('String')); $arr = array(); $arr['action'] = "popup"; $arr['ptype'] = "discussitem"; $arr['jz_path'] = $item->getPath("String"); echo '<a onClick="openPopup(' . "'" . urlize($arr) . "'" . ',450,300); return false;" href="javascript:;">'; if ($item->getDiscussion() == "") { echo $img_discuss_dis; } else { echo $img_discuss; } echo "</a>"; }
</td> </tr> <tr class="<?php echo $row_colors[0]; ?> "> <td colspan="2" width="100%" align="center"> <strong><?php echo word('Previous Comments'); ?> </strong><br><br> </td> </tr> <?php // Now let's get the previous discussions $disc = $item->getDiscussion(); if (count($disc) > 0) { rsort($disc); foreach ($disc as $comment) { ?> <tr class="<?php echo $row_colors[$i]; $i = 1 - $i; ?> "> <td width="20%" valign="top"> <nobr> <?php echo $comment['user']; ?> </nobr>