File size: 826B
<?php echo $this->validation()->messages() ?>
<h1><?php echo __('Bulk insert') ?></h1>
<h3><?php echo __('Preview of data to be inserted') ?></h3>
<?php
$info = '<p>' . __('Displaying first 30 rows.') . ' <a href="' . get_url('admin/bulkWrite/') . '" class="button green">' . __('insert') . '»</a></p>';
echo $info;
?>
<table class="grid">
<tr>
<?php
foreach ($data[0] as $k => $v)
{
echo '<th>' . View::escape($k) . '</th>';
}
?>
</tr>
<?php
foreach ($data as $k => $row)
{
echo '<tr class="r' . ($tr_row++ % 2) . '">';
foreach ($row as $val)
{
echo '<td>' . View::escape($val) . '</td>';
}
echo '</tr>';
}
?>
</table>
<?php
echo $info;