Newer
Older
ubFramework / Portal / docroot / admin / stats / index.php
@Christopher W. Olsen Christopher W. Olsen on 10 Dec 2017 1 KB Cleaning Up Making It A Sub Module
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Basic DataGrid - jQuery EasyUI Demo</title>
	<link rel="stylesheet" type="text/css" href="/assets/css/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="/assets/css/easyui/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="/js/jquery-1.9.1.js"></script>
	<script type="text/javascript" src="/assets/js/easyui/jquery.easyui.min.js"></script>

<script>
$(function() {
  function grid_refresh() {
    $('#dg').datagrid('reload'); // reload grid

    setTimeout(grid_refresh, 15000); // schedule next refresh after 15sec
  }

  grid_refresh();
});
</script>
</head>
<body>
  <table class="easyui-datagrid" title="Tickets" style="width:550px;" data-options="singleSelect:true,collapsible:false,url:'/admin/stats/tickets.php',method:'get',rowStyler: function(index,row) { if (row.od == 1) return 'color:#AC0303;'; }">
		<thead>
			<tr>
				<th data-options="field:'ticketmaskid',width:90">Ticket ID</th>
				<th data-options="field:'subject'">Subject</th>
				<th data-options="field:'lastactivity',width:100">Attribute</th>
			</tr>
		</thead>
	</table>

</body>
</html>