<? $this->load->view( $this->aSystemVar['template_viewer_root'] . 'admin/_header') ?>
	<?// print_r($Comment_list);?>
	<div class="bigCaption">Comments</div>
	<?= form_open('admin/comment_list/' . $Comment_list['Status'], array( 'id' => 'approve_comment_form') ) ?>
		<div><input type="hidden" id="action" name="action" value="" /></div>
	<table cellpadding="0" cellspacing="1" width="100%" class="contentList">
		<tr class="head">
			<td class="id">id</td>
			<td class="checkbox"><input type="checkbox" disabled="disabled" /></td>
			<td>comment</td>
			<td>author</td>
			<td class="title">post</td>
			<td colspan="2" class="action">action</td>
		</tr>
		<? $i = 0; ?>
		<? foreach( $Comment_list['CommentList'] as $aComment ):?>
		<?
			if( ($i%2) == 0 )
			{
				$sClassName = 'odd';
			}
			else
			{
				$sClassName = 'even';
			}
		?>
		<tr class="<?= $sClassName ?>">
			<td><?= $aComment['Id']; ?></td>
			<td><input type="checkbox" name="CommentId[]" value="<?= $aComment['Id'] ?>" id="c<?= $aComment['Id'] ?>" class="checkbox" /></td>
			<td><?=  $aComment['Body']; ?></td>
			<td><?= $aComment['Name'] ?></td>
			<td><?= $aComment['Title'] ?></td>
			<!-- actions -->
			<td class="textCenter view"><?= anchor('post/review/' . $aComment['PostId'], 'view') ?></td>
			<td class="textCenter delete"><a href="javascript:void(0);" onclick="javascript: document.getElementById('action').value ='deleted'; document.getElementById('c<?= $aComment['Id'] ?>').checked = true; document.getElementById('approve_comment_form').submit(); return false;">delete</a></td>
			<!-- /actions -->
		</tr>
		<?$i++;?>
		<? endforeach; ?>
	</table>
	<?= form_close() ?>

<? $this->load->view( $this->aSystemVar['template_viewer_root'] . 'admin/_footer') ?>