fxset.inc.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. global $_GPC, $_W;
  3. $GLOBALS['frames'] = $this->getMainMenu();
  4. $item=pdo_get('zhtc_fxset',array('uniacid'=>$_W['uniacid']));
  5. if(checksubmit('submit')){
  6. $data['tx_rate']=$_GPC['tx_rate'];
  7. $data['is_fx']=$_GPC['is_fx'];
  8. $data['is_open']=$_GPC['is_open'];
  9. $data['is_ej']=$_GPC['is_ej'];
  10. $data['tx_money']=$_GPC['tx_money'];
  11. $data['commission2']=$_GPC['commission2'];
  12. $data['commission']=$_GPC['commission'];
  13. $data['img']=$_GPC['img'];
  14. $data['img2']=$_GPC['img2'];
  15. $data['uniacid']=$_W['uniacid'];
  16. $data['tx_details']=html_entity_decode($_GPC['tx_details']);
  17. $data['fx_details']=html_entity_decode($_GPC['fx_details']);
  18. $data['instructions']=html_entity_decode($_GPC['instructions']);
  19. if($_GPC['id']==''){
  20. $res=pdo_insert('zhtc_fxset',$data);
  21. if($res){
  22. message('添加成功',$this->createWebUrl('fxset',array()),'success');
  23. }else{
  24. message('添加失败','','error');
  25. }
  26. }else{
  27. $res = pdo_update('zhtc_fxset', $data, array('id' => $_GPC['id']));
  28. if($res){
  29. message('编辑成功',$this->createWebUrl('fxset',array()),'success');
  30. }else{
  31. message('编辑失败','','error');
  32. }
  33. }
  34. }
  35. include $this->template('web/fxset');