cptj.inc.php 698 Bytes
<?php
global $_GPC, $_W;
$GLOBALS['frames'] = $this->getMainMenu();
$list=pdo_getall('cjdc_cptj',array('uniacid'=>$_W['uniacid']),array(),'','num ASC');
if($_GPC['op']=='delete'){
	$res=pdo_delete('cjdc_cptj',array('id'=>$_GPC['id']));
	if($res){
		 message('删除成功!', $this->createWebUrl('cptj'), 'success');
		}else{
			  message('删除失败!','','error');
		}
}
// if($_GPC['status']){
// 	$data['status']=$_GPC['status'];
// 	$res=pdo_update('cjdc_cptj',$data,array('id'=>$_GPC['id']));
// 	if($res){
// 		 message('编辑成功!', $this->createWebUrl('cptj'), 'success');
// 		}else{
// 			  message('编辑失败!','','error');
// 		}
// }
include $this->template('web/cptj');