<? $this->load->view( $this->aSystemVar['template_viewer_root'] . 'admin/_header') ?>
	<div class="bigCaption">Deleted Items</div>
	<?= form_open('admin/trash/' . $Trash['Group'], array( 'id' => 'trash_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 class="title" width="70%">item</td>
				<td colspan="3">action</td>
			</tr>
			<? $i = 0; ?>
			<? foreach( $Trash['ItemList'] as $aItem ): ?>
					<?
				if( ($i%2) == 0 )
				{
					$sClassName = 'odd';
				}
				else
				{
					$sClassName = 'even';
				}
			?>

				<tr class="<?= $sClassName ?>">
					<td><?= $aItem['Id'] ?></td>
					<td><input type="checkbox" name="ItemId[]" value="<?= $aItem['Id'] ?>" id="t<?= $aItem['Id'] ?>" class="checkbox" /></td>
					<td><?= $aItem['Title'] ?></td>
					<td class="textCenter view"><?= anchor( $aItem['ViewUrl'], ' view ') ?></td>
					<td class="textCenter activate"><a href="javascript:void(0);" onclick="javascript: document.getElementById('action').value='active'; document.getElementById('t<?= $aItem['Id'] ?>').checked=true; document.getElementById('trash_form').submit(); return false;">restore</a></td>
					<td class="textCenter delete"><a href="javascript:void(0);" onclick="javascript: document.getElementById('action').value='deleted'; document.getElementById('t<?= $aItem['Id'] ?>').checked=true; document.getElementById('trash_form').submit(); return false;">delete</a></td>
				</tr>
				<? $i++; ?>
			<? endforeach; ?>
		</table>
	<?= form_close() ?>
<? $this->load->view( $this->aSystemVar['template_viewer_root'] . 'admin/_footer') ?>