<div class="ibox-content">
	<h3>Attachment List</h3>
	<div class="table-responsive">
		<table class="table">
			<thead>
				<tr>
					<th>
						File
					</th>
					<th>
						size
					</th>
					<th>
						Note
					</th>
					<th>
						*
					</th>
				</tr>
			</thead>
			<tbody>
				<?php foreach($attachment_list->result_array() as $row){?>
				<tr>
					<td><a target="_blank" href="<?=base_url('main/upload/download_attachment/'.encode($row['idAttachment']))?>" title="click to download file"
							download="<?=$row['origName']?>"><code class="color-cyan"><i class="fa fa-download"></i>&nbsp;<?=$row['origName']?></code></a></td>
					<td><span class="font-normal"><?=formatKB($row['fileSize'])?></span> </td>
					<td><span class="font-normal"><?=$row['remark']?></span> </td>
					<td><span class="font-normal"><button class="btn btn-default btn-circle" type="button"
								onclick="remove_attachment(<?=$row['idAttachment']?>)"><i class="fa fa-trash-o"></i></button></span>
					</td>
				</tr>
				<?php }?>
			</tbody>
		</table>
	</div>
</div>
<style>
	.color-cyan{
		color: #009e9e !important;
	}
</style>