📄 pdt_sortupd.asp
字号:
<!-- #include file="../inc_config.asp" -->
<!-- #include file="LoginCk.asp" -->
<%
Call PopCheck(15)
Set PSortData = Conn.Query("EfangPdtSort","PSort_Sign='" & Sign & "'")
if PSortData.BOF or PSortData.EOF then ShowErMsg("商品分类不存在!")
'if UData("User_State")=3 then ShowErMsg("会员帐号已被删除!")
If Cmd="Upd" then
PSort_Name = Request("PSort_Name")
PSort_Memo = Request("PSort_Memo")
'Response.Write PSort_Desc & "<br>" : Response.End
EfsValue=EfsValue & "PSort_Name='" & PSort_Name & "',"
EfsValue=EfsValue & "PSort_Memo='" & PSort_Memo & "'"
call Conn.Update("EfangPdtSort",EfsValue,"PSort_Sign='" & Sign & "'")
Call ShowErMsgGo("修改成功!","?Sign=" & Sign)
Elseif Cmd = "Del" then
If PSortData("PSort_Flag")=1 Then ShowErMsg("商品分类 " & Sign & " 为系统默认分类不可删除!")
If Conn.Num("EfangPdt","Pdt_Sort='" & Sign & "'")>0 Then ShowErMsg("请先删除此分类中的所有商品!")
call Conn.Delete("EfangPdtSort","PSort_Sign='" & Sign & "'")
WriteLog "删除商品分类 - " & Sign
Call ShowErMsgGo("商品分类 " & Sign & " 已经成功删除!","Pdt_Sort.asp")
End if
%>
<html>
<head>
<title>商品分类修改</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link id="style_sheet" href="css/save.css" type="text/css" rel="stylesheet">
<script language="JavaScript">style_sheet.href = parent.parent.style_sheet.href;</script>
<%=Efs_Cfg_PHeader%>
<style type="text/css">
<!--
.unnamed1 {
color: #FF0000;
font-weight: bold;
}
-->
</style>
</head>
<script language="JavaScript" src="js/common_Efang.js"></script>
<body class="NormalPage">
<form id="form_help" action="help_content.asp" method="get" target="working_area">
<input name="help_topic" type="hidden" value="商品分类管理">
</form>
<form action="?Cmd=Upd" method="POST" name="EForm" id="EForm">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="headerToolBar" valign="middle" nowrap style="width:100%; height:22px;"><table cellpadding="0" cellspacing="0" class="HeaderPageControl">
<tr>
<td align="left" valign="middle" nowrap height="20">系统设置>> 商品管理 >> <b></b><b></b><b>商品分类管理</b></td>
<td align="center" valign="middle" nowrap width="10" height="20"></td>
<td align="right" valign="middle" width="100%" nowrap height="20"></td>
<td align="center" valign="middle" nowrap width="10" height="20"></td>
<td align="right" valign="middle" width="60" nowrap height="20"><img id="id_back" alt="返回上一页" onclick="JavaScript:history.back()" onmouseover="JavaScript:this.src=imgBackUp.src" onmouseout="JavaScript:this.src=imgBackDown.src" src="images/toolbar_back.gif" border="0" style="cursor:hand;width:22px; height:20px;"><img id="id_refresh" alt="刷新" onclick="JavaScript:fn_Refresh()" onmouseover="JavaScript:this.src=imgRefreshUp.src" onmouseout="JavaScript:this.src=imgRefreshDown.src" src="images/toolbar_refresh.gif" border="0" style="cursor:hand;width:22px; height:20px;"></td>
<td align="right" valign="middle" width="25" nowrap height="20"><img id="id_locate" alt="帮助" onclick="JavaScript:fn_ShowHelp()" onmouseover="JavaScript:this.src=imgHelpUp.src" onmouseout="JavaScript:this.src=imgHelpDown.src" src="images/toolbar_help.gif" border="0" style="cursor:hand;width:22px; height:20px;"></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top">
<div id="viewPanel" style="visibility:visible; position:absolute; overflow:auto;">
<br>
<table width="85%" height="300" border="0" align="center" cellpadding="0" cellspacing="0" class="datalist">
<tr>
<td class="DataGroup" valign="Top">
<table width="100%" border="0" align="center" cellPadding="0" cellSpacing="0" class="datalist">
<tr align="center">
<td height="30" colspan="2"><span class="10pt"><b>商品分类修改 </b></span></td>
</tr>
<tr>
<td width="297" height="28" align="right"> 分类编号:
</td>
<td height="28" width="543"><%=Sign%> <span class="10pt">
<input name="Sign" type="hidden" id="User3" value="<%=Sign%>">
</span></td>
</tr>
<tr>
<td height="28" align="right"><span class="10pt">分类名称:</span></td>
<td height="28"><input name="PSort_Name" type="text" class="InputOne" id="PSort_Name" onblur="CkName();" value="<%=PSortData("PSort_Name")%>">
<script language="JavaScript">
function CkName(){
if(EForm.PSort_Name.value==""){
alert("请填写名称!");
EForm.PSort_Name.focus();
return false;
}
}
</script> </td>
</tr>
<tr>
<td height="28" align="right">分类说明:</td>
<td height="28"><textarea name="PSort_Memo" cols="30" rows="6" wrap="VIRTUAL" id="PSort_Memo"><%=PSortData("PSort_Memo")%></textarea> </td>
</tr>
<tr>
<td colspan="2" height="33" align="center"> <input type='submit' value=' 修 改 ' name='amend' class="ButtonOne">
<%If PSortData("PSort_Flag")<>1 Then%> <input class=ButtonOne name=delete type=button value=" 删 除 " onClick="if(!confirm('确认要删除此商品分类吗?')){return false;}else{document.location='?Cmd=Del&Sign=<%=Sign%>';}">
<%End If%> </td>
</tr>
</table></td>
</tr>
</table>
</div></td>
</tr>
</table>
</form>
<% Call ExitEnd(False) %>
</body>
<script language="JavaScript">
<!--
document.parentWindow.onresize = fn_RejustViewPanel ;
fn_RejustViewPanel ( ) ;
//alert ( document.body.clientWidth + ":" + viewPanel.clientWidth ) ;
//-->
</script>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -