<link rel="stylesheet" type="text/css" href="../js/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="../js/themes/icon.css" />
<script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../js/jquery.easyui.js"></script>
<table id="dg" class="easyui-datagrid">
<thead>
<tr>
<th field="username" width="50">用户名</th>
<th field="password" width="50">密码</th>
<th field="phone" width="50">电话号</th>
<th field="email" width="50">邮箱</th>
</tr>
</thead>
</table>
<script type="text/javascript">
//datagrid初始化
$('#dg').datagrid({
title:'用户列表',
nowrap: false,
striped: true,
border: true,
fit: true,
url:'../php/user.php',
remoteSort:false,
fitColumns:true,
idField:'fldId',
singleSelect:false,
pagination:true,
rownumbers:true
});
</script>