📄 newcomplaint.asp
字号:
<%
'************************************************************************************************
' 文件名: newcomplaint.asp
' Copyright(c) 2001-2002 上海阿尔卡特网络支援系统有限公司
'
' 创建人 : 魏霖
' 日 期 : 2002-10-31
' 修改历史 :
' ****年**月**日 ****** 修改内容:**************************************************
' 功能描述 :
' 版 本 :V1.0
'************************************************************************************************
option explicit
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
%>
<!-- #include file="../include/common.inc" -->
<!-- #include file="../include/recordlist.inc" -->
<!-- #include file="../include/commonpage.inc" -->
<!-- #include file="newcomplaint.inc" -->
<%
call CheckSecurity()
dim iRight:iRight=HasRight(ID_CUSTOMER)
if iRight=1 or iRight=2 then
else
Response.Clear
Response.Redirect "../include/error.asp?error=只有具有客户意见更新权限的人员才能访问该网页&"
Response.End
end if
dim conn:set conn=DBConnection
'*********************************************************************************************************
'获取参数:商户的id。如果该参数为空,置为0,表示新增商户。
'********************************************************************************************************
dim iComplaintid : iComplaintid = GetParam("complaintid")
dim iPage : iPage = GetParam("page")
if IsEmpty(iComplaintid) then iComplaintid = 0
'response.write "first = "&iPage
'response.end
'********************************************************************************************************
' 如果是提交,则调用函数UpdateFirm()更新数据库
if UCase(Request.ServerVariables("REQUEST_METHOD") = "POST") then
UpdateComplaint()
end if
%>
<html>
<head>
<title>客户意见</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../include/common.css" type="text/css">
<script language="javascript" src="../include/common.js"></script>
<script language="VBScript">
sub checkbox_onclicked()
end sub
sub btnSubmit_Onclick()
' 输入合法性检查
if trim(frmnewcomplaint.customername.value) = "" then
msgbox"请输入客户名称!"
frmnewcomplaint.customername.focus()
exit sub
end if
if len(frmnewcomplaint.content.value)=0 then
msgbox"请输入投诉内容!"
frmnewcomplaint.content.focus()
exit sub
end if
if len(frmnewcomplaint.content.value)>=100 then
msgbox"投诉内容不能超过400个字符!"
frmnewcomplaint.content.focus()
exit sub
end if
if len(frmnewcomplaint.dealopinion.value)>=50 then
msgbox"投诉内容不能超过50个字符!"
frmnewcomplaint.dealopinion.focus()
exit sub
end if
frmnewcomplaint.formaction.value = "add"
frmnewcomplaint.submit()
end sub
sub btnUpdate_Onclick()
' 输入合法性检查
frmnewcomplaint.formaction.value = "upd"
frmnewcomplaint.submit()
end sub
sub btnCancel_Onclick()
' 重新输入
frmnewcomplaint.reset()
end sub
sub btnReset_Onclick()
' 重新输入
frmnewcomplaint.reset()
end sub
sub btnReturn_Onclick()
' 返回
history.go(-1)
end sub
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="../images/bg/bg0.jpg">
<br>
<%
Response.Write OuterTableHeader
Response.Write HeaderWithMenu
Response.Write InnerTableHeader
'********************************************************************************************************
' 主体从这里开始
'-------------------------------------------------------------------------------------------------------------------------------------------------
Response.write FormComplaintTable(iComplaintid)
Response.write TableLink
'-------------------------------------------------------------------------------------------------------------------------------------------------
' 主体到这里结束
'********************************************************************************************************
Response.Write InnerTableTailer
Response.Write Footer
Response.Write OuterTableTailer
Disconnect(conn)
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -