* Import demo data when install.

* Code for task#808.
This commit is contained in:
chencongzhi520@gmail.com
2012-06-07 01:51:05 +00:00
parent ebd55b86b9
commit 55b02649cb
9 changed files with 421 additions and 32 deletions
+8 -1
View File
@@ -411,7 +411,14 @@ class user extends control
}
}
else
{
{
$demoUsers = $this->user->getPairs('nodeleted, noletter');
array_shift($demoUsers);
array_shift($demoUsers);
array_pop($demoUsers);
$this->view->showDemoUsers = $this->dao->select('value')->from(TABLE_CONFIG)->where('`key`')->eq('showDemoUsers')->fetch();
$this->view->demoUsers = $demoUsers;
$header['title'] = $this->lang->user->login;
$this->view->header = $header;
$this->view->referer = $this->referer;