dlcall.inc.php
1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
global $_GPC, $_W;
$action = 'start';
$uid=$_COOKIE["uid"];
$storeid=$_COOKIE["storeid"];
$cur_store = $this->getStoreById($storeid);
$GLOBALS['frames'] = $this->getNaveMenu($storeid, $action,$uid);
$info=pdo_get('cjdc_call',array('store_id'=>$storeid));
if(checksubmit('submit')){
$data['store_id']=$storeid;
$data['is_open']=$_GPC['is_open'];
$data['appid']=$_GPC['appid'];
$data['apikey']=$_GPC['apikey'];
$data['uniacid']=$_W['uniacid'];
if($_GPC['id']){
$res = pdo_update('cjdc_call', $data, array('store_id' => $storeid));
}else{
$res=pdo_insert('cjdc_call', $data);
}
if($res){
message('编辑成功',$this->createWebUrl2('dlcall',array()),'success');
}else{
message('编辑失败','','error');
}
}
if($_GPC['op']=='ok'){
$res=pdo_update('cjdc_call',array('src'=>''),array('store_id'=>$storeid));
if($res){
message('操作成功',$this->createWebUrl2('dlcall',array()),'success');
}else{
message('操作失败','','error');
}
}
include $this->template('web/dlcall');