".$id." and typeid=".$typeid)==1){Audit_alert("该附加选项已存在!","typesx.php?action=update&id=".$id."&typeid=".$typeid);} updatetable("yjcode_typesx","name1='".sqlzhuru($_POST[t1])."' where name1='".sqlzhuru($_POST[oldty1])."' and typeid=".$typeid); updatetable("yjcode_typesx","sj='".$sj."',xh=".sqlzhuru($_POST[t2]).",ifjd=".sqlzhuru($_POST[Rifjd]).",ifzi=".sqlzhuru($_POST[Rifzi]).",ifsel=".sqlzhuru($_POST[Rifsel])." where id=".$_GET[id]); move_uploaded_file($_FILES["inp1"]['tmp_name'], "../tem/moban/".$rowcontrol[nowmb]."/homeimg/typesx1_".$id.".png"); php_toheader("typesx.php?t=suc&action=update&id=".$id."&typeid=".$typeid); }elseif($_GET[control]=="del"){ if(!strstr($adminqx,",0,") && !strstr($adminqx,",0301,")){Audit_alert("权限不够","default.php");} zwzr(); $id=intval($_GET[id]); delFile($_GET[tp]); php_toheader("typesx.php?action=update&id=".$id."&typeid=".$typeid); } //函数结果 ?>