public function logs()
{
// 列表key值 DOACTION表示操作
$this->pageKeyList = array('id', 'uid', 'uname', 'app_name', 'ip', 'data', 'ctime', 'isAdmin', 'type_info', 'DOACTION');
// 搜索key值
$this->searchKey = array('uname', 'app_name', array('ctime', 'ctime1'), 'isAdmin', 'keyword');
// 针对搜索的特殊选项
$this->opt['isAdmin'] = array('0' => L('PUBLIC_USER_LOGS'), '1' => L('PUBLIC_MANAGEMENT_LOG'));
$this->opt['app_name'] = array('0' => L('PUBLIC_ALL_STREAM'), 'admin' => L('PUBLIC_SYSTEM_BACK'));
//TODO 从目录读取 或者应用表里读取
// Tab选项
$this->pageTab[] = array('title' => '日志列表', 'tabHash' => 'list', 'url' => U('admin/Home/logs'));
$this->pageTab[] = array('title' => '日志归档', 'tabHash' => 'down', 'url' => U('admin/Home/logsArchive'));
// 指定查询的表尾
$table = isset($_REQUEST['table']) ? t($_REQUEST['table']) : '';
// 列表分页栏按钮
$this->pageButton[] = array('title' => L('PUBLIC_SEARCH_INDEX'), 'onclick' => "admin.fold('search_form')");
$this->pageButton[] = array('title' => L('PUBLIC_SYSTEM_DELALL'), 'onclick' => "admin.delselectLog('{$table}')");
// 数据的格式化 与pageKeyList保持一致
$listData = $this->_getLogsData($table);
$this->displayList($listData);
}