include("../config/conn.php"); include("../config/function.php"); sesCheck(); $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)){php_toheader("openshop3.php");} $userid=$rowuser[id]; $bh=$_GET[bh]; while0("*","yjcode_protype where userid=".$userid." and admin=2 and bh='".$bh."'"); if(!$row=mysql_fetch_array($res)){Audit_alert("来源错误","protypelist.php","parent.");} if($_GET[control]=="update"){ zwzr(); if(panduan("*","yjcode_protype where admin=2 and name1='".sqlzhuru($_POST[tname1])."' and userid=".$userid." and name2='".sqlzhuru($_POST[tname2])."' and id<>".$row[id])==1) {Audit_alert("该分组已存在!","protype2.php?bh=".$bh);} updatetable("yjcode_protype","name2='".sqlzhuru($_POST[tname2])."',xh=".sqlzhuru($_POST[txh]).",zt=0 where id=".$row[id]); php_toheader("protype2.php?t=suc&bh=".$bh); } ?>