show_tabbed_nav($links, $captions, 3); ?>
Comments
Approve all Remove unpublished

load('libraries', 'table'); $tmpl = array ( 'table_open' => '', 'heading_row_start' => '', 'heading_row_end' => '', 'heading_cell_start' => '', 'row_start' => '', 'row_end' => '', 'cell_start' => '', 'row_alt_start' => '', 'row_alt_end' => '', 'cell_alt_start' => '', 'table_close' => '
', 'heading_cell_end' => '
', 'cell_end' => '
', 'cell_alt_end' => '
' ); $cms->table->set_template($tmpl); if($comments){ global $_MY_CONFIG; $cms->table->clear(); $cms->table->set_heading('', 'Name/Email/IP', 'Comments', 'Date'); foreach($comments as $row){ $onClick = $_MY_CONFIG->get('allowModerateComment') ? "jax.icall('myblog', 'myxToggleCommentPublish', $row->id);" : "void(0)"; if ($row->published == 1){ $published = "id\" src=\"" . $mainframe->getCfg('live_site') . "/components/com_myblog/images/publish_g.png\" border=\"0\" alt=''/>"; }else{ $published = "id\" src=\"" . $mainframe->getCfg('live_site') . "/components/com_myblog/images/publish_x.png\" border=\"0\" alt=''/>"; } $cms->table->add_row($published , $row->name . " ({$row->email}) " . $row->ip, $cms->trunchtml->trunchtml($row->comment), $row->date); } echo $cms->table->generate(); echo $pagination; } else { echo "Nobody has written any comment on your article yet"; } ?>