以下为引用的内容:
<?php
include
(
"phpmydatagrid.class.php"
)
;
$objGrid
=
new
datagrid;
$objGrid
->
closeTags
(
true
)
;
$objGrid
->
friendlyHTML
()
;
$objGrid
->
methodForm
(
"get"
)
;
//连接数据库
$objGrid
->
conectadb
(
"127.0.0.1"
,
"root"
,
"root"
,
"guru"
)
;
//加密字符串
$objGrid
->
salt
(
"Myc0defor5tr0ng3r-Pro3EctiOn"
)
;
$objGrid
->
language
(
"en"
)
;
//
“
” “
” “
” “
”
最后一列显示的功能键,从左向右功能为 新增键 、 编辑键 、 删除键 、 浏览键 。
$objGrid
->
buttons
(
true
,
true
,
true
,
true
)
;
//修改数值时产生的 Form 名称
$objGrid
->
form
(
'employee'
,
true
)
;