<script>
$('document').ready(function(){
	
	var totalSubmissions = 0;
	$('.mailer-total-contacts').each(function(i, val){
		totalSubmissions += parseInt($(this).html());
	})
	
	$('.table.table-hover').append('<tr> <td></td> <td></td> <td align="right">Total:</td><td><a href="<?php echo $this->createAbsoluteUrl('report/formSubmissionsList'); ?>">'+totalSubmissions+'</a></td> </tr>')
});

</script>
<h4>Mailers</h4>
<div class="table-responsive">
	<?php 
	$this->widget('zii.widgets.CListView', array(
		'dataProvider' => $dataProvider,
		'itemsTagName' => 'table',
		'itemsCssClass' => 'table table-hover',
		'template' => ' {items} <br/> {pager}'   ,
		'itemView' => 'application.yii_app_emailer.yii_app_emailer_views.report._formSubmissionsMailerList',
		'viewData' => array(
			'pagination' => $dataProvider->getPagination()
		),
		'pager' => array(
			// 'class' => 'BootstrapLinkPager', 
			'cssFile' => false, 
			'header' => false, 
			'firstPageLabel' => '&lt;&lt;',
			'prevPageLabel' => '&lt;',
			'nextPageLabel' => '&gt;',
			'lastPageLabel' => '&gt;&gt;',
		),
	));
	?>
</div>