|
@@ -88,7 +88,9 @@ exit('分类不存在');
|
|
|
|
|
|
$r=$empire->fetch1("select id from www_jianzhanzj_com_ecms_movie where cid='$cid' or title='$title' limit 1");
|
|
$r=$empire->fetch1("select id from www_jianzhanzj_com_ecms_movie where cid='$cid' or title='$title' limit 1");
|
|
if ($r[id]){
|
|
if ($r[id]){
|
|
-$empire->query("update www_jianzhanzj_com_ecms_movie set title='$_POST[title]',xhyid='$_POST[xhyid]',titlepic='$titlepic',live='$_POST[live]',typename='$_POST[typename]',livename='$_POST[livename]',zd='$_POST[zd]',kd='$_POST[kd]',newstime='$newstime' where id='$r[id]' limit 1");
|
|
|
|
|
|
+ $istop=0;
|
|
|
|
+ if ($_POST[istop]>0) $istop = 1;
|
|
|
|
+$empire->query("update www_jianzhanzj_com_ecms_movie set title='$_POST[title]',xhyid='$_POST[xhyid]',istop='$istop',titlepic='$titlepic',live='$_POST[live]',typename='$_POST[typename]',livename='$_POST[livename]',zd='$_POST[zd]',kd='$_POST[kd]',newstime='$newstime' where id='$r[id]' limit 1");
|
|
exit('增加信息成功');
|
|
exit('增加信息成功');
|
|
}else{
|
|
}else{
|
|
AddNews($_POST,$logininid,$loginin);
|
|
AddNews($_POST,$logininid,$loginin);
|