<? if (!$this->error): ?>
	<? if(count($this->paginator)): ?>
		<table class='grid' cellspacing='1' cellpadding='0' border='0' id='tablePagination'>
			<thead>
				<tr>
					<th nowrap="nowrap">Cobertura</th>
					<th width="1%" nowrap="nowrap">Franquia/NC (%)</th>
					<th width="1%" nowrap="nowrap">Taxa (%)</th>
					<th width="1%" nowrap="nowrap">Renovação (%)</th>
					<th width="1%" nowrap="nowrap">Taxa Reduzida (%)</th>
					<th width="1%" nowrap="nowrap">Relacionada a</th>
					<th width="1%" nowrap="nowrap">Ações</th>
				</tr>
			</thead>
			<tbody>
				<?
				$i = 0;
				foreach ($this->paginator as $item):
					if ($i % 2 == 0) {
						$class = '';
					} else {
						$class = "highlight";
					}

					?>
					<tr class="<?=$class?>">
						<td nowrap='nowrap'><?=($item['ds_nome_cobertura'] ? $item['ds_nome_cobertura'] : '&nbsp;'); ?></td>
						<td nowrap='nowrap' align="center"><?=($item['vl_franquia'] ? $item['vl_franquia'] : '&nbsp;'); ?></td>
						<td nowrap='nowrap' align="center"><?=($item['vl_taxa'] ? $item['vl_taxa'] : '&nbsp;'); ?></td>
						<td nowrap='nowrap' align="center"><?=($item['vl_taxa_renovacao'] ? $item['vl_taxa_renovacao'] : '&nbsp;'); ?></td>
						<td nowrap='nowrap' align="center"><?=($item['vl_taxa_reduzida'] ? $item['vl_taxa_reduzida'] : '&nbsp;'); ?></td>
						<td nowrap='nowrap' align="center"><?=($item['relacionado_com'] ? $item['relacionado_com'] : ' - '); ?></td>
						<td align='center' width='1%' nowrap='nowrap'>
							<?=$this->iconEdit("comercializacao", "taxa", $item)?>
						</td>
					</tr>
					<?
					$i++;
				endforeach;
				?>
			</tbody>
		</table>

		<?=$this->paginationControl($this->paginator, 'Sliding'); ?>
	<? endif; ?>
<? else: ?>
	<?= $this->showListError($this->error); ?>
<? endif; ?>
