1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- global $_GPC, $_W;
- $GLOBALS['frames'] = $this->getMainMenu();
- $item=pdo_get('zhtc_system',array('uniacid'=>$_W['uniacid']));
- if(checksubmit('submit')){
- $data['rz_xuz']=html_entity_decode($_GPC['rz_xuz']);
- $data['sj_audit']=$_GPC['sj_audit'];
- $data['is_img']=$_GPC['is_img'];
- $data['is_rz']=$_GPC['is_rz'];
- $data['is_dnss']=$_GPC['is_dnss'];
- $data['is_vr']=$_GPC['is_vr'];
- $data['is_yysj']=$_GPC['is_yysj'];
- $data['is_qgb2']=$_GPC['is_qgb2'];
- // $data['is_yhqsh']=$_GPC['is_yhqsh'];
- $data['is_pzsj']=$_GPC['is_pzsj'];
- $data['is_style']=$_GPC['is_style'];
- $data['uniacid']=$_W['uniacid'];
- if($_GPC['id']==''){
- $res=pdo_insert('zhtc_system',$data);
- if($res){
- message('添加成功',$this->createWebUrl('storecheck',array()),'success');
- }else{
- message('添加失败','','error');
- }
- }else{
- $res = pdo_update('zhtc_system', $data, array('id' => $_GPC['id']));
- if($res){
- message('编辑成功',$this->createWebUrl('storecheck',array()),'success');
- }else{
- message('编辑失败','','error');
- }
- }
- }
- include $this->template('web/storecheck');
|