isPost()) { //读取SEO信息 $list = Db::name('seo')->select()->toArray(); // dump($list);die; $seo = array(); foreach ((array) $list as $value) { $seo[$value['seo_type']] = $value; } View::assign('seo', $seo); return View::fetch('index'); } else { $seo = input('post.SEO/a');#获取数组 if (is_array($seo)) { foreach ($seo as $key => $value) { Db::name('seo')->where(array('seo_type' => $key))->update($value); } dkcache('seo'); ds_json_encode(10000, lang('ds_common_save_succ')); } } } } ?>