storecheck.inc.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. global $_GPC, $_W;
  3. $GLOBALS['frames'] = $this->getMainMenu();
  4. $item=pdo_get('zhtc_system',array('uniacid'=>$_W['uniacid']));
  5. if(checksubmit('submit')){
  6. $data['rz_xuz']=html_entity_decode($_GPC['rz_xuz']);
  7. $data['sj_audit']=$_GPC['sj_audit'];
  8. $data['is_img']=$_GPC['is_img'];
  9. $data['is_rz']=$_GPC['is_rz'];
  10. $data['is_dnss']=$_GPC['is_dnss'];
  11. $data['is_vr']=$_GPC['is_vr'];
  12. $data['is_yysj']=$_GPC['is_yysj'];
  13. $data['is_qgb2']=$_GPC['is_qgb2'];
  14. // $data['is_yhqsh']=$_GPC['is_yhqsh'];
  15. $data['is_pzsj']=$_GPC['is_pzsj'];
  16. $data['is_style']=$_GPC['is_style'];
  17. $data['uniacid']=$_W['uniacid'];
  18. if($_GPC['id']==''){
  19. $res=pdo_insert('zhtc_system',$data);
  20. if($res){
  21. message('添加成功',$this->createWebUrl('storecheck',array()),'success');
  22. }else{
  23. message('添加失败','','error');
  24. }
  25. }else{
  26. $res = pdo_update('zhtc_system', $data, array('id' => $_GPC['id']));
  27. if($res){
  28. message('编辑成功',$this->createWebUrl('storecheck',array()),'success');
  29. }else{
  30. message('编辑失败','','error');
  31. }
  32. }
  33. }
  34. include $this->template('web/storecheck');