getMainMenu(); $item=pdo_get('zhtc_system',array('uniacid'=>$_W['uniacid'])); if(checksubmit('submit')){ $data['is_hbfl']=$_GPC['is_hbfl']; $data['is_hbzf']=$_GPC['is_hbzf']; $data['is_tzhb']=$_GPC['is_tzhb']; $data['is_sjhb']=$_GPC['is_sjhb']; $data['hb_sxf']=$_GPC['hb_sxf']; $data['hb_img']=$_GPC['hb_img']; $data['hbbj_img']=$_GPC['hbbj_img']; $data['hb_content']=$_GPC['hb_content']; $data['uniacid']=$_W['uniacid']; if($_GPC['id']==''){ $res=pdo_insert('zhtc_system',$data); if($res){ message('添加成功',$this->createWebUrl('hbopen',array()),'success'); }else{ message('添加失败','','error'); } }else{ $res = pdo_update('zhtc_system', $data, array('id' => $_GPC['id'])); if($res){ message('编辑成功',$this->createWebUrl('hbopen',array()),'success'); }else{ message('编辑失败','','error'); } } } include $this->template('web/hbopen');