public function addsystemdata()
{
if (!empty($_GET['key'])) {
$this->assign('pageTitle', L('PUBLIC_SYSTEM_EDIT_DATA'));
$map['key'] = t($_GET['key']);
$map['list'] = 'dict';
$detail = model('Xdata')->where($map)->find();
$d = unserialize($detail['value']);
$detail['name'] = $d['name'];
//中文名
$detail['value'] = $d['value'];
//内容
} else {
$this->assign('pageTitle', L('PUBLIC_SYSTEM_ADD_DATA'));
$detail = array();
}
$this->pageKeyList = array('id', 'name', 'key', 'value');
$this->savePostUrl = U('admin/Home/doaddsystemdata');
$this->displayConfig($detail);
}