Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1816

Pagination links not shown correctly

$
0
0
Hello,

I have a datatable with default style but my pagination links look all wrong.
They look like this:
http://ruben.preview.sanmax.be/Knipsel.PNG
This is my code (please don't mind the PHP code inside it):

<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered bootstrap-datatable" id="table">
	<thead>
		<tr>
			<th>Gebruikersnaam</th>
			<th>E-mail</th>
			<th>Naam</th>
			<th>Laatst ingelogd</th>
			<th>Rechten</th>
			<th>Acties</th>
		</tr>
	</thead>
	<tbody>
		<?php if($this->members):?>
		<?php foreach($this->members as $member): ?>
			<tr>
				<td><?php echo $this->escape($member->getUsername());?></td>
				<td><?php echo $this->escape($member->getEmail());?></td>
				<td><?php echo $this->escape($member->getFullName());?></td>
				<td><?php echo $this->escape($member->getDateFirstUse());?></td>
				<td><?php foreach($member->getGroups() as $g): echo $g->getName();?><?php endforeach;?></td>
				<td class="center" style="width: 250px;">
					<?php if($canActivate):?>
						<a class="btn <?php if($member->getActive()):?>btn-success<?php else:?>btn-danger<?php endif;?>" href="<?php
								echo $this->url(array('controller' => 'member', 'action' => 'activate', 'id' => $member->getId()));
								?>" rel="tooltip" title="Activate">
							<i class="icon-refresh icon-white"></i> <?php if($member->getActive()):?>Deactiveer<?php else:?>Activeer<?php endif;?>
						</a>
					<?php endif;?>
					<?php if($canEdit): ?>
						<a class="btn btn-info" href="<?php
								echo $this->url(array('controller' => 'member', 'action' => 'edit', 'id' => $member->getId()));
								?>" rel="tooltip" title="Edit">
							<i class="icon-edit icon-white"></i> Edit
						</a>
					<?php endif;?>
					<?php if($canDelete):?>
						<a class="btn btn-danger" onclick="showDialog('#dialog', '<?php echo $this->url(array('controller' => 'member', 'action' => 'delete', 'id' => $member->getId()))?>');" rel="tooltip" title="Delete">
							<i class="icon-trash icon-white"></i> Delete
						</a>
					<?php endif;?>
				</td>
			</tr>
		<?php endforeach;?>
		<?php endif;?>
	</tbody>
</table>

<?php $this->headScript()->captureStart(); ?>
$('#table').dataTable();
<?php $this->headScript()->captureEnd(); ?>

I'm pretty new to using datatables.

Viewing all articles
Browse latest Browse all 1816

Latest Images

Trending Articles



Latest Images