Пример #1
0
</div>
	<?php 
}
?>
</div>

<script type="text/javascript">
	$(document).ready(function()
	{
		<?php 
$this->load->view('partial/bootstrap_tables_locale');
?>

		$('#table').bootstrapTable({
			columns: <?php 
echo transform_headers_readonly($headers);
?>
,
			pageSize: <?php 
echo $this->config->item('lines_per_page');
?>
,
			striped: true,
			sortable: true,
			showExport: true,
			pagination: true,
			showColumns: true,
			showExport: true,
			data: <?php 
echo json_encode($data);
?>
Пример #2
0
			showExport: true,
			data: <?php 
echo json_encode($summary_data);
?>
,
			iconSize: 'sm',
			paginationVAlign: 'bottom',
			detailView: true,
			uniqueId: 'id',
			escape: false,
			onPageChange: init_dialog,
			onPostBody: function() {
				dialog_support.init("a.modal-dlg");
			},
			onExpandRow: function (index, row, $detail) {
				$detail.html('<table></table>').find("table").bootstrapTable({
					columns: <?php 
echo transform_headers_readonly($headers['details']);
?>
,
					data: detail_data[row.id || $(row[0]).text().replace(/(POS|RECV)\s*/g, '')]
				});
			}
		});

		init_dialog();
	});
</script>

<?php 
$this->load->view("partial/footer");