?? style.aspx
字號(hào):
"<tr><td width='15%'>上傳組件:</td><td width='35%'>" & s_FormUploadObject & " <span class=red>*</span></td><td width='15%'>自動(dòng)目錄:</td><td width='35%'>" & s_FormAutoDir & " <span class=red>*</span></td></tr>" & _
"<tr><td width='15%'>圖片目錄:</td><td width='35%'><input type=text class=input size=20 name=d_dir title='存放此樣式圖片文件的目錄名,必須在ButtonImage下,最大50個(gè)字符長(zhǎng)度' value=""" & sStyleDir & """> <span class=red>*</span></td><td width='15%'>樣式目錄:</td><td width='35%'><input type=text class=input size=20 name=d_css title='存放此樣式css文件的目錄名,必須在CSS下,最大50個(gè)字符長(zhǎng)度' value=""" & sStyleCSS & """> <span class=red>*</span></td></tr>" & _
"<tr><td width='15%'>最佳寬度:</td><td width='35%'><input type=text class=input name=d_width size=20 title='最佳引用效果的寬度,數(shù)字型' value='" & sStyleWidth & "'> <span class=red>*</span></td><td width='15%'>最佳高度:</td><td width='35%'><input type=text class=input name=d_height size=20 title='最佳引用效果的高度,數(shù)字型' value='" & sStyleHeight & "'> <span class=red>*</span></td></tr>" & _
"<tr><td width='15%'>狀 態(tài) 欄:</td><td width='35%'>" & s_FormStateFlag & " <span class=red>*</span></td><td width='15%'>Word粘貼:</td><td width='35%'>" & s_FormDetectFromWord & " <span class=red>*</span></td></tr>" & _
"<tr><td width='15%'>遠(yuǎn)程文件:</td><td width='35%'>" & s_FormAutoRemote & " <span class=red>*</span></td><td width='15%'>指導(dǎo)方針:</td><td width='35%'>" & s_FormShowBorder & " <span class=red>*</span></td></tr>" & _
"<tr><td width='15%'>自動(dòng)語(yǔ)言檢測(cè):</td><td width='35%'>" & s_FormAutoDetectLanguage & " <span class=red>*</span></td><td width='15%'>默認(rèn)語(yǔ)言:</td><td width='35%'>" & s_FormDefaultLanguage & " <span class=red>*</span></td></tr>" & _
"<tr><td width='15%'>上傳文件瀏覽:</td><td width='35%'>" & s_FormAllowBrowse & " <span class=red>*</span></td><td width='15%'> </td><td width='35%'> </td></tr>" & _
"<tr><td>備注說(shuō)明:</td><td colspan=3><input type=text name=d_memo size=90 title='此樣式的說(shuō)明,更有利于調(diào)用' value=""" & sStyleMemo & """></td></tr>" & _
"<tr><td colspan=4><span class=red> 上傳文件及系統(tǒng)文件路徑相關(guān)設(shè)置(只有在使用相對(duì)路徑模式時(shí),才要設(shè)置顯示路徑和內(nèi)容路徑):</span></td></tr>" & _
"<tr><td width='15%'>路徑模式:</td><td width='35%'>" & s_FormBaseUrl & " <span class=red>*</span> <a href='#baseurl'>說(shuō)明</a></td><td width='15%'>上傳路徑:</td><td width='35%'><input type=text class=input size=20 name=d_uploaddir title='上傳文件所存放路徑,相對(duì)eWebEditor根目錄文件的路徑,最大50個(gè)字符長(zhǎng)度' value=""" & sStyleUploadDir & """> <span class=red>*</span></td></tr>" & _
"<tr><td width='15%'>顯示路徑:</td><td width='35%'><input type=text class=input size=20 name=d_basehref title='顯示內(nèi)容頁(yè)所存放路徑,必須以"/"開(kāi)頭,最大50個(gè)字符長(zhǎng)度' value=""" & sStyleBaseHref & """></td><td width='15%'>內(nèi)容路徑:</td><td width='35%'><input type=text class=input size=20 name=d_contentpath title='實(shí)際保存在內(nèi)容中的路徑,相對(duì)顯示路徑的路徑,不能以"/"開(kāi)頭,最大50個(gè)字符長(zhǎng)度' value=""" & sStyleContentPath & """></td></tr>" & _
"<tr><td colspan=4><span class=red> 允許上傳文件類型及文件大小設(shè)置(文件大小單位為KB,0表示沒(méi)有限制):</span></td></tr>" & _
"<tr><td width='15%'>圖片類型:</td><td width='35%'><input type=text class=input name=d_imageext size=20 title='用于圖片相關(guān)的上傳,最大250個(gè)字符長(zhǎng)度' value='" & sStyleImageExt & "'></td><td width='15%'>圖片限制:</td><td width='35%'><input type=text class=input name=d_imagesize size=20 title='數(shù)字型,單位KB' value='" & sStyleImageSize & "'></td></tr>" & _
"<tr><td width='15%'>Flash類型:</td><td width='35%'><input type=text class=input name=d_flashext size=20 title='用于插入Flash動(dòng)畫(huà),最大250個(gè)字符長(zhǎng)度' value='" & sStyleFlashExt & "'></td><td width='15%'>Flash限制:</td><td width='35%'><input type=text class=input name=d_flashsize size=20 title='數(shù)字型,單位KB' value='" & sStyleFlashSize & "'></td></tr>" & _
"<tr><td width='15%'>媒體類型:</td><td width='35%'><input type=text class=input name=d_mediaext size=20 title='用于插入媒體文件,最大250個(gè)字符長(zhǎng)度' value='" & sStyleMediaExt & "'></td><td width='15%'>媒體限制:</td><td width='35%'><input type=text class=input name=d_mediasize size=20 title='數(shù)字型,單位KB' value='" & sStyleMediaSize & "'></td></tr>" & _
"<tr><td width='15%'>其它類型:</td><td width='35%'><input type=text class=input name=d_fileext size=20 title='用于插入其它文件,最大250個(gè)字符長(zhǎng)度' value='" & sStyleFileExt & "'></td><td width='15%'>其它限制:</td><td width='35%'><input type=text class=input name=d_filesize size=20 title='數(shù)字型,單位KB' value='" & sStyleFileSize & "'></td></tr>" & _
"<tr><td width='15%'>遠(yuǎn)程類型:</td><td width='35%'><input type=text class=input name=d_remoteext size=20 title='用于自動(dòng)上傳遠(yuǎn)程文件,最大250個(gè)字符長(zhǎng)度' value='" & sStyleRemoteExt & "'></td><td width='15%'>遠(yuǎn)程限制:</td><td width='35%'><input type=text class=input name=d_remotesize size=20 title='數(shù)字型,單位KB' value='" & sStyleRemoteSize & "'></td></tr>" & _
"<tr><td colspan=4><span class=red> 縮略圖及水印相關(guān)設(shè)置:</span></td></tr>" & _
"<tr><td width='15%'>圖形處理組件:</td><td width='35%'>" & s_FormSLTSYObject & "</td><td width='15%'>處理圖形擴(kuò)展名:</td><td width='35%'><input type=text name=d_sltsyext size=20 class=input value=""" & sSLTSYExt & """></td></tr>" & _
"<tr><td width='15%'>縮略圖使用狀態(tài):</td><td width='35%'>" & s_FormSLTFlag & "</td><td width='15%'>縮略圖長(zhǎng)度條件</td><td width='35%'><input type=text name=d_sltminsize size=20 class=input title='圖形的長(zhǎng)度只有達(dá)到此最小長(zhǎng)度要求時(shí)才會(huì)生成縮略圖,數(shù)字型' value='" & sSLTMinSize & "'>px</td></tr>" & _
"<tr><td width='15%'>縮略圖生成長(zhǎng)度:</td><td width='35%'><input type=text name=d_sltoksize size=20 class=input title='生成的縮略圖長(zhǎng)度值,數(shù)字型' value='" & sSLTOkSize & "'>px</td><td width='15%'> </td><td width='35%'> </td></tr>" & _
"<tr><td width='15%'>水印使用狀態(tài):</td><td width='35%'>" & s_FormSYFlag & "</td><td width='15%'>水印寬度條件:</td><td width='35%'><input type=text name=d_syminsize size=20 class=input title='圖形的寬度只有達(dá)到此最小寬度要求時(shí)才會(huì)生成水印,數(shù)字型' value='" & sSYMinSize & "'>px</td></tr>" & _
"<tr><td width='15%'>文字水印內(nèi)容:</td><td width='35%'><input type=text name=d_sytext size=20 class=input title='當(dāng)使用文字水印時(shí)的文字內(nèi)容' value=""" & sSYText & """></td><td width='15%'>文字水印字體顏色:</td><td width='35%'><input type=text name=d_syfontcolor size=20 class=input title='當(dāng)使用文字水印時(shí)文字的顏色' value=""" & sSYFontColor & """></td></tr>" & _
"<tr><td width='15%'>文字水印陰影顏色:</td><td width='35%'><input type=text name=d_syshadowcolor size=20 class=input title='當(dāng)使用文字水印時(shí)的文字陰影顏色' value=""" & sSYShadowColor & """></td><td width='15%'>文字水印陰影大小:</td><td width='35%'><input type=text name=d_syshadowoffset size=20 class=input title='當(dāng)使用文字水印時(shí)文字的陰影大小' value=""" & sSYShadowOffset & """>px</td></tr>" & _
"<tr><td width='15%'>文字水印字體大小:</td><td width='35%'><input type=text name=d_syfontsize size=20 class=input title='當(dāng)使用文字水印時(shí)文字的字體大小' value=""" & sSYFontSize & """>px</td><td width='15%'>文字水印字體名稱:</td><td width='35%'><input type=text name=d_syfontname size=20 class=input title='當(dāng)使用文字水印時(shí)文字的字體名' value=""" & sSYFontName & """></td></tr>" & _
"<tr><td width='15%'>圖片水印圖片路徑:</td><td width='35%'><input type=text name=d_sypicpath size=20 class=input title='當(dāng)使用圖片水印時(shí)圖片的路徑' value=""" & sSYPicPath & """></td><td width='15%'></td><td width='35%'></td></tr>" & _
s_Button & _
"</form>" & _
"</table><br>")
Dim sMsg
sMsg = "<a name=baseurl></a><p><span class=blue><b>路徑模式設(shè)置說(shuō)明:</b></span><br>" & _
"<b>相對(duì)路徑:</b>指所有的相關(guān)上傳或自動(dòng)插入文件路徑,編輯后都以""UploadFile/...""或""../UploadFile/...""形式呈現(xiàn),當(dāng)使用此模式時(shí),顯示路徑和內(nèi)容路徑必填,顯示路徑必須以""/""開(kāi)頭和結(jié)尾,內(nèi)容路徑設(shè)置中不能以""/""開(kāi)頭。<br>" & _
"<b>絕對(duì)根路徑:</b>指所有的相關(guān)上傳或自動(dòng)插入文件路徑,編輯后都以""/eWebEditor/UploadFile/...""這種形式呈現(xiàn),當(dāng)使用此模式時(shí),顯示路徑和內(nèi)容路徑不必填。<br>" & _
"<b>絕對(duì)全路徑:</b>指所有的相關(guān)上傳或自動(dòng)插入文件路徑,編輯后都以""http://xxx.xxx.xxx/eWebEditor/UploadFile/...""這種形式呈現(xiàn),當(dāng)使用此模式時(shí),顯示路徑和內(nèi)容路徑不必填。</p>"
Call ShowMessage(sMsg)
End Sub
Sub InitStyle()
Dim b, aCurrStyle
b = False
sStyleID = Trim(Request("id"))
If IsNumeric(sStyleID) = True Then
nStyleID = Clng(sStyleID)
If nStyleID <= Ubound(aStyle) Then
aCurrStyle = Split(aStyle(nStyleID), "|||")
sStyleName = aCurrStyle(0)
sStyleDir = aCurrStyle(1)
sStyleCSS = aCurrStyle(2)
sStyleUploadDir = aCurrStyle(3)
sStyleBaseHref = aCurrStyle(22)
sStyleContentPath = aCurrStyle(23)
sStyleWidth = aCurrStyle(4)
sStyleHeight = aCurrStyle(5)
sStyleMemo = aCurrStyle(26)
'nStyleIsSys = aCurrStyle()
sStyleFileExt = aCurrStyle(6)
sStyleFlashExt = aCurrStyle(7)
sStyleImageExt = aCurrStyle(8)
sStyleMediaExt = aCurrStyle(9)
sStyleRemoteExt = aCurrStyle(10)
sStyleFileSize = aCurrStyle(11)
sStyleFlashSize = aCurrStyle(12)
sStyleImageSize = aCurrStyle(13)
sStyleMediaSize = aCurrStyle(14)
sStyleRemoteSize = aCurrStyle(15)
sStyleStateFlag = aCurrStyle(16)
sStyleAutoRemote = aCurrStyle(24)
sStyleShowBorder = aCurrStyle(25)
sAutoDetectLanguage = aCurrStyle(27)
sDefaultLanguage = aCurrStyle(28)
sStyleUploadObject = aCurrStyle(20)
sStyleAutoDir = aCurrStyle(21)
sStyleDetectFromWord = aCurrStyle(17)
sStyleInitMode = aCurrStyle(18)
sStyleBaseUrl = aCurrStyle(19)
sSLTFlag = aCurrStyle(29)
sSLTMinSize = aCurrStyle(30)
sSLTOkSize = aCurrStyle(31)
sSYFlag = aCurrStyle(32)
sSYText = aCurrStyle(33)
sSYFontColor = aCurrStyle(34)
sSYFontSize = aCurrStyle(35)
sSYFontName = aCurrStyle(36)
sSYPicPath = aCurrStyle(37)
sSLTSYObject = aCurrStyle(38)
sSLTSYExt = aCurrStyle(39)
sSYMinSize = aCurrStyle(40)
sSYShadowColor = aCurrStyle(41)
sSYShadowOffset = aCurrStyle(42)
sStyleAllowBrowse = aCurrStyle(43)
b = True
End If
End If
If b = False Then
GoError ("無(wú)效的樣式ID號(hào),請(qǐng)通過(guò)頁(yè)面上的鏈接進(jìn)行操作!")
End If
End Sub
Sub CheckStyleForm()
sStyleName = Trim(Request("d_name"))
sStyleDir = Trim(Request("d_dir"))
sStyleCSS = Trim(Request("d_css"))
sStyleUploadDir = Trim(Request("d_uploaddir"))
sStyleBaseHref = Trim(Request("d_basehref"))
sStyleContentPath = Trim(Request("d_contentpath"))
sStyleWidth = Trim(Request("d_width"))
sStyleHeight = Trim(Request("d_height"))
sStyleMemo = Trim(Request("d_memo"))
sStyleImageExt = Request("d_imageext")
sStyleFlashExt = Request("d_flashext")
sStyleMediaExt = Request("d_mediaext")
sStyleRemoteExt = Request("d_remoteext")
sStyleFileExt = Request("d_fileext")
sStyleImageSize = Request("d_imagesize")
sStyleFlashSize = Request("d_flashsize")
sStyleMediaSize = Request("d_mediasize")
sStyleRemoteSize = Request("d_remotesize")
sStyleFileSize = Request("d_filesize")
sStyleStateFlag = Request("d_stateflag")
sStyleAutoRemote = Request("d_autoremote")
sStyleShowBorder = Request("d_showborder")
sAutoDetectLanguage = Request("d_autodetectlanguage")
sDefaultLanguage = Request("d_defaultlanguage")
sStyleUploadObject = Request("d_uploadobject")
sStyleAutoDir = Request("d_autodir")
sStyleDetectFromWord = Request("d_detectfromword")
sStyleInitMode = Request("d_initmode")
sStyleBaseUrl = Request("d_baseurl")
sSLTFlag = Trim(Request("d_sltflag"))
sSLTMinSize = Trim(Request("d_sltminsize"))
sSLTOkSize = Trim(Request("d_sltoksize"))
sSYFlag = Trim(Request("d_syflag"))
sSYText = Trim(Request("d_sytext"))
sSYFontColor = Trim(Request("d_syfontcolor"))
sSYFontSize = Trim(Request("d_syfontsize"))
sSYFontName = Trim(Request("d_syfontname"))
sSYPicPath = Trim(Request("d_sypicpath"))
sSLTSYObject = Trim(Request("d_sltsyobject"))
sSLTSYExt = Trim(Request("d_sltsyext"))
sSYMinSize = Trim(Request("d_syminsize"))
sSYShadowColor = Trim(Request("d_syshadowcolor"))
sSYShadowOffset = Trim(Request("d_syshadowoffset"))
sStyleAllowBrowse = Trim(Request("d_allowbrowse"))
sStyleUploadDir = Replace(sStyleUploadDir, "\", "/")
sStyleBaseHref = Replace(sStyleBaseHref, "\", "/")
sStyleContentPath = Replace(sStyleContentPath, "\", "/")
If Right(sStyleUploadDir, 1) <> "/" Then sStyleUploadDir = sStyleUploadDir & "/"
If Right(sStyleBaseHref, 1) <> "/" Then sStyleBaseHref = sStyleBaseHref & "/"
If Right(sStyleContentPath, 1) <> "/" Then sStyleContentPath = sStyleContentPath & "/"
If sStyleName = "" Or GetTrueLen(sStyleName) > 50 Then
GoError ("樣式名不能為空,且不大于50個(gè)字符長(zhǎng)度!")
End If
If IsSafeStr(sStyleName) = False Then
GoError ("樣式名請(qǐng)勿包含特殊字符!")
End If
If sStyleDir = "" Or GetTrueLen(sStyleDir) > 50 Then
GoError ("按鈕圖片目錄名不能為空,且不大于50個(gè)字符長(zhǎng)度!")
End If
If IsSafeStr(sStyleDir) = False Then
GoError ("按鈕圖片目錄名請(qǐng)勿包含特殊字符!")
End If
If sStyleCSS = "" Or GetTrueLen(sStyleCSS) > 50 Then
GoError ("樣式CSS目錄名不能為空,且不大于50個(gè)字符長(zhǎng)度!")
End If
If IsSafeStr(sStyleCSS) = False Then
GoError ("樣式CSS目錄名請(qǐng)勿包含特殊字符!")
End If
If sStyleUploadDir = "" Or GetTrueLen(sStyleUploadDir) > 50 Then
GoError ("上傳路徑不能為空,且不大于50個(gè)字符長(zhǎng)度!")
End If
If IsSafeStr(sStyleUploadDir) = False Then
GoError ("上傳路徑請(qǐng)勿包含特殊字符!")
End If
Select Case sStyleBaseUrl
Case "0"
If sStyleBaseHref = "" Or GetTrueLen(sStyleBaseHref) > 50 Then
GoError ("當(dāng)使用相對(duì)路徑模式時(shí),顯示路徑不能為空,且不大于50個(gè)字符長(zhǎng)度!")
End If
If IsSafeStr(sStyleBaseHref) = False Then
GoError ("當(dāng)使用相對(duì)路徑模式時(shí),顯示路徑請(qǐng)勿包含特殊字符!")
End If
If Left(sStyleBaseHref, 1) <> "/" Then
GoError ("當(dāng)使用相對(duì)路徑模式時(shí),顯示路徑必須以"/"開(kāi)頭!")
End If
If sStyleContentPath = "" Or GetTrueLen(sStyleContentPath) > 50 Then
GoError ("當(dāng)使用相對(duì)路徑模式時(shí),內(nèi)容路徑不能為空,且不大于50個(gè)字符長(zhǎng)度!")
End If
If IsSafeStr(sStyleContentPath) = False Then
GoError ("當(dāng)使用相對(duì)路徑模式時(shí),內(nèi)容路徑請(qǐng)勿包含特殊字符!")
End If
If Left(sStyleContentPath, 1) = "/" Then
GoError ("當(dāng)使用相對(duì)路徑模式時(shí),內(nèi)容路徑不能以"/"開(kāi)頭!")
End If
Case "1", "2"
sStyleBaseHref = ""
sStyleContentPath = ""
End Select
If IsNumeric(sStyleWidth) = False Then
GoError ("請(qǐng)?zhí)顚?xiě)有效的最佳引用寬度!")
End If
If IsNumeric(sStyleHeight) = False Then
GoError ("請(qǐng)?zhí)顚?xiě)有效的最佳引用高度!")
End If
If GetTrueLen(sStyleImageExt) > 250 Then
GoError ("圖片文件類型不能大于250個(gè)字符長(zhǎng)度!")
End If
If GetTrueLen(sStyleFlashExt) > 250 Then
GoError ("Flash文件類型不能大于250個(gè)字符長(zhǎng)度!")
End If
If GetTrueLen(sStyleMediaExt) > 250 Then
GoError ("媒體文件類型不能大于250個(gè)字符長(zhǎng)度!")
End If
If GetTrueLen(sStyleFileExt) > 250 Then
GoError ("其它文件類型不能大于250個(gè)字符長(zhǎng)度!")
End If
If GetTrueLen(sStyleRemoteExt) > 250 Then
GoError ("遠(yuǎn)程文件類型不能大于250個(gè)字符長(zhǎng)度!")
End If
If IsNumeric(sStyleImageSize) = False Then
GoError ("請(qǐng)?zhí)顚?xiě)有效的圖片限制大小!")
End If
If IsNumeric(sStyleFlashSize) = False Then
GoError ("請(qǐng)?zhí)顚?xiě)有效的Flash限制大小!")
End If
If IsNumeric(sStyleMediaSize) = False Then
GoError ("請(qǐng)?zhí)顚?xiě)有效的媒體文件限制大小!")
End If
If IsNumeric(sStyleFileSize) = False Then
GoError ("請(qǐng)?zhí)顚?xiě)有效的其它文件限制大小!")
End If
If IsNumeric(sStyleRemoteSize) = False Then
GoError ("請(qǐng)?zhí)顚?xiě)有效的遠(yuǎn)程文件限制大小!")
End If
If IsNumeric(sSLTMinSize) = False Then
GoError ("請(qǐng)?zhí)顚?xiě)有效的縮略圖使用最小長(zhǎng)度條件,不能為空,且為數(shù)字型!")
End If
If IsNumeric(sSLTOkSize) = False Then
GoError ("請(qǐng)?zhí)顚?xiě)有效的縮略圖生成長(zhǎng)度,不能為空,且為數(shù)字型!")
End If
If IsNumeric(sSYMinSize) = False Then
GoError ("請(qǐng)?zhí)顚?xiě)有效的水印的最小寬度條件,不能為空,且為數(shù)字型!")
End If
If sSYText = "" Then
GoError ("請(qǐng)?zhí)顚?xiě)有效水印文字內(nèi)容,不能為空!")
End If
If isValidColor(sSYFontColor) = False Then
GoError ("請(qǐng)?zhí)顚?xiě)有效的水印文字顏色,6位長(zhǎng)度,如黑色:000000!")
End If
If isValidColor(sSYShadowColor) = False Then
GoError ("請(qǐng)?zhí)顚?xiě)有效的水印文字陰影顏色,6位長(zhǎng)度,如白色:FFFFFF!")
End If
If IsNumeric(sSYShadowOffset) = False Then
GoError ("請(qǐng)?zhí)顚?xiě)有效的水印文字陰影大小,不能為空,且為數(shù)字型!")
End If
If IsNumeric(sSYFontSize) = False Then
GoError ("請(qǐng)?zhí)顚?xiě)有效的水印文字大小,不能為空,且為數(shù)字型!")
End If
If sSYFontName = "" Then
GoError ("請(qǐng)?zhí)顚?xiě)水印文字字體名稱,不能為空!")
End If
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -