Class Cls_Fun
Private x,y,ii
'==============================
'函 数 名:AlertInfo
'作 用:错误显示函数
'参 数:错误提示内容InfoStr,转向页面GoUrl
'==============================
Public Function AlertInfo(InfoStr,GoUrl)
If GoUrl="1" Then
Response.Write ""
Else
Response.Write ""
End If
Response.End()
End Function
'==============================
'函 数 名:HTMLEncode
'作 用:字符转换函数
'参 数:需要转换的文本fString
'==============================
'==============================
'函 数 名:AlertNum
'作 用:判断是否是数字(验证字符,不为数字时的提示)
'参 数:需进行判断的文本CheckStr,错误提示ErrStr
'==============================
Public Function AlertNum(CheckStr,ErrStr)
If Not IsNumeric(CheckStr) or CheckStr="" Then
Call AlertInfo(ErrStr,"1")
End If
End Function
'==============================
'函 数 名:AlertString
'作 用:判断字符串长度
'参 数:
'需进行判断的文本CheckStr
'限定最短ShortLen
'限定最长LongLen
'验证类型CheckType(0两头限制,1限制最短,2限制最长)
'过短提示LongStr
'过长提示LongStr,
'==============================
Public Function AlertString(CheckStr,ShortLen,LongLen,CheckType,ShortErr,LongErr)
If (CheckType=0 Or CheckType=1) And StringLength(CheckStr)
End If
If (CheckType=0 Or CheckType=2) And StringLength(CheckStr)>LongLen Then
Call AlertInfo(LongStr,"1")
End If
End Function
'==============================
'函 数 名:AlertNum
'作 用:判断是否是数字(验证字符,不为数字时的提示)
'参 数:需进行判断的文本CheckStr,错误提示ErrStr
'==============================
Public Function ShowNum(CheckStr,ErrStr)
If Not IsNumeric(CheckStr) or CheckStr="" Then
Response.Write(ErrStr&"|||||")
PageErr=1
End If
End Function
'==============================
'函 数 名:ShowString
'作 用:判断字符串长度
'参 数:
'需进行判断的文本CheckStr
'限定最短ShortLen
'限定最长LongLen
'验证类型CheckType(0两头限制,1限制最短,2限制最长)
'过短提示LongStr
'过长提示LongStr,
'==============================
Public Function ShowString(CheckStr,ShortLen,LongLen,CheckType,ShortErr,LongErr)
If (CheckType=0 Or CheckType=1) And StringLength(CheckStr)
PageErr=1
End If
If (CheckType=0 Or CheckType=2) And StringLength(CheckStr)>LongLen Then
Response.Write(LongErr&"|||||")
PageErr=1
End If
End Function
a
'==============================
'函 数 名:BeSelect
'作 用:判断select选项选中
'参 数:Select1,Select2
'==============================
Public Function BeSelect(Select1,Select2)
If Select1=Select2 Then
BeSelect=" selected='selected'"
End If
End Function
'==============================
'函 数 名:BeCheck
'作 用:判断Check选项选中
'参 数:Check1,Check2
'==============================
Public Function BeCheck(Check1,Check2)
If Check1=Check2 Then
BeCheck=" checked='checked'"
End If
End Function
摩托车销售模拟器内置菜单中文版
摩托车出售模拟器,又名摩托车销售模拟器,这是一个以摩托车销售
船舶模拟2020最新版
船舶模拟2020是玩法非常有意思的模拟驾驶游戏,高清3d画质
油管主播的生活2内置菜单版
油管主播的生活2内置菜单版是一款模拟养成类游戏,在这里你将体
网吧老板模拟器2手机版
网吧老板模拟器2是非常受欢迎的模拟经营题材手游,在原本的基础
美国警察模拟器巡警2024最新版
美国警察模拟器是一款好玩的模拟手游,游戏中你将扮演一位警察,