* @version 03/07/05 * @param $node The node we are looking at * **/ global $jzUSER, $row_colors, $node; // Let's setup the object $item = new jzMediaElement($node->getPath('String')); $track = new jzMediaTrack($node->getPath('String')); // Let's grab the meta data from the file and display it's name $meta = $track->getMeta(); $this->displayPageTop("", "Discuss Item: " . $meta['title']); $this->openBlock(); // Did they submit the form? if (isset($_POST['edit_addcomment'])) { // Let's add it $item->addDiscussion($_POST['edit_newcomment'], $jzUSER->getName()); } // Let's setup our form $arr = array(); $arr['action'] = "popup"; $arr['ptype'] = "discussitem"; $arr['jz_path'] = $node->getPath('String'); echo '<form action="' . urlize($arr) . '" method="POST">'; // Now let's setup the display $i = 0; ?> <table width="100%" cellpadding="5" cellspacing="0" border="0"> <tr class="<?php echo $row_colors[$i]; $i = 1 - $i; ?>