bottom.inc.php 680 B

12345678910111213141516171819202122
  1. <?php
  2. global $_GPC, $_W;
  3. $GLOBALS['frames'] = $this->getMainMenu();
  4. $list=pdo_getall('zhtc_bottom',array('uniacid'=>$_W['uniacid']),array(),'','num ASC');
  5. if($_GPC['op']=='delete'){
  6. $res=pdo_delete('zhtc_bottom',array('id'=>$_GPC['id']));
  7. if($res){
  8. message('删除成功!', $this->createWebUrl('bottom'), 'success');
  9. }else{
  10. message('删除失败!','','error');
  11. }
  12. }
  13. if($_GPC['state']){
  14. $data['state']=$_GPC['state'];
  15. $res=pdo_update('zhtc_bottom',$data,array('id'=>$_GPC['id']));
  16. if($res){
  17. message('编辑成功!', $this->createWebUrl('bottom'), 'success');
  18. }else{
  19. message('编辑失败!','','error');
  20. }
  21. }
  22. include $this->template('web/bottom');