dluuset.inc.php
968 Bytes
<?php
global $_GPC, $_W;
$action = 'start';
//$GLOBALS['frames'] = $this->getMainMenu2();
$uid=$_COOKIE["uid"];
$storeid=$_COOKIE["storeid"];
$cur_store = $this->getStoreById($storeid);
$GLOBALS['frames'] = $this->getNaveMenu($storeid, $action,$uid);
$info=pdo_get('wpdc_uuset',array('store_id'=>$storeid,'uniacid'=>$_W['uniacid']));
if(checksubmit('submit')){
$data['store_id']=$storeid;
$data['appid']=$_GPC['appid'];
$data['appkey']=$_GPC['appkey'];
$data['account']=$_GPC['account'];
$data['OpenId']=$_GPC['OpenId'];
//$data['is_open']=$_GPC['is_open'];
$data['is_check']=$_GPC['is_check'];
$data['uniacid']=$_W['uniacid'];
if($_GPC['id']==''){
$res = pdo_insert('wpdc_uuset', $data);
}else{
$res = pdo_update('wpdc_uuset', $data, array('store_id' => $storeid));
}
if($res){
message('编辑成功',$this->createWebUrl2('dluuset',array()),'success');
}else{
message('编辑失败','','error');
}
}
include $this->template('web/dluuset');