include("../config/conn.php"); include("../config/function.php"); sesCheck(); $bh=$_GET[bh]; $sqluser="select * from yjcode_user where uid='".$_SESSION[SHOPUSER]."' and shopzt=2";mysql_query("SET NAMES 'GBK'");$resuser=mysql_query($sqluser); if(!$rowuser=mysql_fetch_array($resuser)){Audit_alert("来源错误","openshop3.php","parent.");} $userid=$rowuser[id]; while0("*","yjcode_shopmenu where userid=".$userid." and bh='".$bh."'");if(!$row=mysql_fetch_array($res)){Audit_alert("来源错误","shopmenulist.php","parent.");} if($_GET[control]=="update"){ zwzr(); if(panduan("*","yjcode_shopmenu where admin=1 and tit1='".sqlzhuru($_POST[ttit1])."' and userid=".$userid." and id<>".$row[id])==1) {Audit_alert("该导航已存在!","shopmenu1.php?bh=".$bh);} if(!empty($row[tit1])){$s="tit1='".$row[tit1]."'";}else{$s="id=".$row[id];} updatetable("yjcode_shopmenu","tit1='".sqlzhuru($_POST[ttit1])."',aurl='".sqlzhuru($_POST[taurl])."',xh=".sqlzhuru($_POST[txh]).",targ=".sqlzhuru($_POST[R1]).",zt=0 where userid=".$userid." and ".$s); php_toheader("shopmenu1.php?t=suc&bh=".$bh); } ?>