<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal"><i class="icon-remove"></i></button>
    <h3 class="title">aa</h3>
</div>
<div class="modal-body">

        <div >
            <table class="table pgui-record-card">
                <tbody>
                <?php unset($this->_sections['RowGrid']);
$this->_sections['RowGrid']['name'] = 'RowGrid';
$this->_sections['RowGrid']['loop'] = is_array($_loop=$this->_tpl_vars['ColumnCount']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['RowGrid']['show'] = true;
$this->_sections['RowGrid']['max'] = $this->_sections['RowGrid']['loop'];
$this->_sections['RowGrid']['step'] = 1;
$this->_sections['RowGrid']['start'] = $this->_sections['RowGrid']['step'] > 0 ? 0 : $this->_sections['RowGrid']['loop']-1;
if ($this->_sections['RowGrid']['show']) {
    $this->_sections['RowGrid']['total'] = $this->_sections['RowGrid']['loop'];
    if ($this->_sections['RowGrid']['total'] == 0)
        $this->_sections['RowGrid']['show'] = false;
} else
    $this->_sections['RowGrid']['total'] = 0;
if ($this->_sections['RowGrid']['show']):

            for ($this->_sections['RowGrid']['index'] = $this->_sections['RowGrid']['start'], $this->_sections['RowGrid']['iteration'] = 1;
                 $this->_sections['RowGrid']['iteration'] <= $this->_sections['RowGrid']['total'];
                 $this->_sections['RowGrid']['index'] += $this->_sections['RowGrid']['step'], $this->_sections['RowGrid']['iteration']++):
$this->_sections['RowGrid']['rownum'] = $this->_sections['RowGrid']['iteration'];
$this->_sections['RowGrid']['index_prev'] = $this->_sections['RowGrid']['index'] - $this->_sections['RowGrid']['step'];
$this->_sections['RowGrid']['index_next'] = $this->_sections['RowGrid']['index'] + $this->_sections['RowGrid']['step'];
$this->_sections['RowGrid']['first']      = ($this->_sections['RowGrid']['iteration'] == 1);
$this->_sections['RowGrid']['last']       = ($this->_sections['RowGrid']['iteration'] == $this->_sections['RowGrid']['total']);
?>
                <tr <?php if ($this->_tpl_vars['RowCssStyles'][($this->_foreach['RowsGrid']['iteration']-1)] != ''): ?> style="<?php echo $this->_tpl_vars['RowCssStyles'][($this->_foreach['RowsGrid']['iteration']-1)]; ?>
"<?php endif; ?>>
                    <td>
                        <b><?php echo $this->_tpl_vars['Columns'][$this->_sections['RowGrid']['index']]->GetCaption(); ?>
</b>
                    </td>
                    <td>
                        <?php echo $this->_tpl_vars['Row'][$this->_sections['RowGrid']['index']]; ?>

                    </td>
                </tr>
                <?php endfor; endif; ?>
                </tbody>
            </table>
        </div>


</div>

<div class="modal-footer">

    <div class="btn-toolbar">

        <div class="btn-group">
            <button class="btn close-button">Close</button>
        </div>

    </div>

</div>