$id)); $item['modules'] = iunserializer($item['modules']); $item['templates'] = iunserializer($item['templates']); } $templates = pdo_fetchall("SELECT * FROM ".tablename('site_templates')); if (checksubmit('submit')) { if (empty($_GPC['name'])) { message('请输入公众号组名称!'); } $data = array( 'name' => $_GPC['name'], 'modules' => iserializer($_GPC['modules']), 'templates' => iserializer($_GPC['templates']) ); if (empty($id)) { pdo_insert('uni_group', $data); } else { pdo_update('uni_group', $data, array('id' => $id)); cache_build_account_modules(); } load()->model('module'); module_build_privileges(); message('公众号组更新成功!', url('account/groups/display'), 'success'); } } template('account/groups');