auditorhotelinfo.inc.php 683 B

123456789101112131415161718192021
  1. <?php
  2. global $_GPC, $_W;
  3. $GLOBALS['frames'] = $this->getMainMenu();
  4. $sql="SELECT * FROM ".tablename('zh_jdgjb_seller')." where id=:id ";
  5. $item=pdo_fetch($sql,array(':id'=>$_GPC['id']));
  6. if(checksubmit('submit')){
  7. $data['name']=$_GPC['name'];
  8. $data['link_name']=$_GPC['link_name'];
  9. $data['link_tel']=$_GPC['link_tel'];
  10. $data['state']=$_GPC['state'];
  11. $data['other']=html_entity_decode($_GPC['other']);
  12. $rst=pdo_update('zh_jdgjb_seller',$data,array('id'=>$_GPC['id']));
  13. if($rst){
  14. message('编辑成功!', $this->createWebUrl('auditorhotel'), 'success');
  15. }else{
  16. message('编辑失败!','','error');
  17. }
  18. }
  19. include $this->template('web/auditorhotelinfo');