File size: 1.47Kb
<?php echo $this->validation()->messages() ?>
<h1><?php echo __('Bulk insert') ?></h1>
<h3>Some errors from bulk insert</h3>
<?php
$msg = __('There are total {num} errors.', array('{num}' => $bulk_error_total));
$bulk_error_limit = 30;
if ($bulk_error_total > $bulk_error_limit)
{
$msg .= ' ' . __('Only first {num} errors displayed in table below.', array('{num}' => $bulk_error_limit));
}
echo '<p>' . $msg . '</p>';
?>
<p>
<a href="<?php echo get_url('admin/bulkErrorDeleteAll/') ?>"><?php echo __('Delete all errors') ?></a> |
<a href="<?php echo get_url('admin/bulkErrorDownload/') ?>" target="_blank"><?php echo __('Download errors as CSV') ?></a>
</p>
<table class="grid">
<tr>
<th><?php echo __('Name') ?></th>
<th><?php echo __('Img') ?></th>
<th><?php echo __('Error') ?></th>
</tr>
<?php
foreach ($bulk_error as $e)
{
echo '<tr>
<td>' . View::escape($e->name) . '</td>
<td>' . View::escape($e->img) . '</td>
<td>' . View::escape($e->ip) . '</td>
</tr>';
}
if ($bulk_error_total > 30)
{
echo '<tr>
<td>(' . __('There are {num} more errors. Please download errors as csv to view them all.', array('{num}' => ($bulk_error_total - $bulk_error_limit))) . ')</td>
<td>...</td>
<td>...</td>
</tr>';
}
?>
</table>