123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- {% extends "base.html" %}
- {% block title %}
- {% endblock %}
- {% block head %}
- <script type="text/javascript">
- var grid;
- $(function() {
- grid = $('#grid').datagrid({
- title : '',
- url : sy.contextPath + '/base/syonline!grid.action',
- striped : true,
- rownumbers : true,
- pagination : true,
- singleSelect : true,
- idField : 'id',
- sortName : 'createdatetime',
- sortOrder : 'desc',
- pageSize : 100,
- pageList : [ 10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 1000 ],
- frozenColumns : [ [ {
- width : '100',
- title : '登录名',
- field : 'loginname',
- sortable : true
- }, {
- width : '300',
- title : 'IP地址',
- field : 'ip',
- sortable : true
- } ] ],
- columns : [ [ {
- width : '150',
- title : '创建时间',
- field : 'createdatetime',
- sortable : true
- }, {
- width : '100',
- title : '类别',
- field : 'type',
- sortable : true,
- formatter : function(value, row, index) {
- switch (value) {
- case '0':
- return '注销系统';
- case '1':
- return '登录系统';
- }
- }
- } ] ],
- toolbar : '#toolbar',
- onBeforeLoad : function(param) {
- parent.$.messager.progress({
- text : '数据加载中....'
- });
- },
- onLoadSuccess : function(data) {
- $('.iconImg').attr('src', sy.pixel_0);
- parent.$.messager.progress('close');
- }
- });
- });
- </script>
- {% endblock %}
- {% block body %}
- <body class="easyui-layout" data-options="fit:true,border:false">
- <div id="toolbar" style="display: none;">
- <table>
- <tr>
- <td>
- <form id="searchForm">
- <table>
- <tr>
- <td>登录名</td>
- <td><input name="QUERY_t#loginname_S_LK" style="width: 80px;" /></td>
- <td>IP地址</td>
- <td><input name="QUERY_t#ip_S_LK" style="width: 80px;" /></td>
- <td>类别</td>
- <td><select name="QUERY_t#type_S_EQ" class="easyui-combobox" data-options="panelHeight:'auto',editable:false"><option value="">请选择</option>
- <option value="1">登录系统</option>
- <option value="0">注销系统</option></select></td>
- <td>创建时间</td>
- <td><input name="QUERY_t#createdatetime_D_GE" class="Wdate" onclick="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})" readonly="readonly" style="width: 120px;" />-<input name="QUERY_t#createdatetime_D_LE" class="Wdate" onclick="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})" readonly="readonly" style="width: 120px;" /></td>
- <td><a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-zoom',plain:true" onclick="grid.datagrid('load',sy.serializeObject($('#searchForm')));">过滤</a><a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-zoom_out',plain:true" onclick="$('#searchForm input').val('');grid.datagrid('load',{});">重置过滤</a></td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- <tr>
- <td>
- <table>
- <tr>
- <td><a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-table_go',plain:true" onclick="">导出</a></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </div>
- <div data-options="region:'center',fit:true,border:false">
- <table id="grid" data-options="fit:true,border:false"></table>
- </div>
- </body>
- {% endblock %}
|