<p align="center"><a class="button" onClick="$('#batchs_form input.check-all').click(); if ($('#batchs_form input.check-all').attr('checked')) { $('#batchs_form input.check-all').click(); } $('input.approval_ids[value=<?php echo $this->approval_item['id']; ?>]').attr('checked', true); $('#batch_approval').click();" href="javascript:;">Approved</a> &nbsp; <a class="button" onClick="$('#batchs_form input.check-all').click(); if ($('#batchs_form input.check-all').attr('checked')) { $('#batchs_form input.check-all').click(); } $('input.approval_ids[value=<?php echo $this->approval_item['id']; ?>]').attr('checked', true); $('#batch_decline').click();" href="javascript:;">Review denied</a></p>

<h3>Content</h3>
<p><?php echo $this->approval_item['content']; ?></p>

<?php if ($this->approval_item['data']['topics']) {  ?>
<h3>Tags</h3>
<p><?php echo htmlspecialchars(implode(', ', $this->approval_item['data']['topics'])); ?></p>
<?php } ?>

<?php if ($this->approval_item['attachs']) {  ?>
<h3>Attachment</h3>
<p class="q_con_imgs tny-alpHover">
	<?php foreach ($this->approval_item['attachs'] AS $key => $attach) { ?>
	<?php if ($attach['is_image']) { ?>
		<a href="<?php echo $attach['attachment']; ?>" target="_blank"><img src="<?php echo $attach['thumb']; ?>" alt="<?php echo $attach['attach_name']; ?>" /></a>
		<?php } else if (!$attach['is_image']) { ?>
		<p class="questionacc"><a href="<?php echo download_url($attach['file_name'], $attach['attachment']); ?>" class="tny-txtHide"><em class="q_ico"></em><?php echo $attach['file_name']; ?></a></p>
		<?php } ?>
	<?php } ?>
</p>
<?php } ?>

<p align="center"><a class="button" onClick="$('#batchs_form input.check-all').click(); if ($('#batchs_form input.check-all').attr('checked')) { $('#batchs_form input.check-all').click(); } $('input.approval_ids[value=<?php echo $this->approval_item['id']; ?>]').attr('checked', true); $('#batch_approval').click();" href="javascript:;">Approved</a> &nbsp; <a class="button" onClick="$('#batchs_form input.check-all').click(); if ($('#batchs_form input.check-all').attr('checked')) { $('#batchs_form input.check-all').click(); } $('input.approval_ids[value=<?php echo $this->approval_item['id']; ?>]').attr('checked', true); $('#batch_decline').click();" href="javascript:;">Review denied</a></p>