<? _title($this, '{page}'); ?>

<form method="post" style="margin-top:50px;">

	<table cellpadding="0" cellspacing="0" border="0" class="display" id="{page}_dt">
		<thead>
			<!--
			INSERT ROW
			-->
			<tr class="dataTables_structur_insert dataRow">
				{mysql_insert}
				<td><input type="submit" name="insert_{page}" value="<?=$this->Language('Insert');?>" class="insertDT"/></td>
			</tr>
			<!--
			UPDATE ROW
			-->
			<tr class="dataTables_structur_selected dataRow">
				{mysql_update}
				<td><input type="submit" name="update_{page}" value="<?=$this->Language('Update');?>" class="updateDT"/></td>
			</tr>
			<!--
			STRUCTUR ROW
			-->
			<tr class="dataTables_structur dataRow">
				{mysql_select}
				<td></td>
			</tr>
			<!--
			HEADER ROW
			-->
			<tr>
				{mysql_header}
				<th class="dt-sort-no dt-search-no"></th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td colspan="{colspan}" class="dataTables_empty"><?=$this->Language('Loading data from server');?></td>
			</tr>
		</tbody>
	</table>
</form>

<script type="text/javascript">
$(document).ready(function(){
	oTable = $DT.load('.display');
});
if( typeof $DT == 'object' ){

	$DT.fnDefaults({
		'request' : '?model={model}&page=ajax_{page}&id=',
		'bStateSave' : false,
		'columnOrder' : 'LISTING',
		'iDisplayLength' : 100,
		'reload' : false,
		'alert' : false,
		'initComplete' : function(){}
	});
	$DT.fnOptional(function(data, nRow){});
}
</script>