新闻发布系统毕业论文 叶思思
End If
'对中文的处理:把双字节低位和高位分开 If varasc〉255 Then
varlow = Left(Hex(Asc(varchar)),2) varhigh = right(Hex(Asc(varchar)),2)
str2bin = str2bin & chrB(\Else
str2bin = str2bin & chrB(AscB(varchar)) End If Next
End Function
'取得文件名(去掉Path)
Function GetFileName(FullPath) If FullPath 〈〉 \FullPath = StrReverse(FullPath)
FullPath = Left(FullPath, InStr(1, FullPath, \GetFileName = StrReverse(FullPath) Else
GetFileName = \End If End Function 〈/SCRIPT〉
〈SCRIPT RUNAT=SERVER LANGUAGE=JSCRIPT〉
function CreateUploadField(){ return new uf_Init() } function uf_Init(){ this.Name = null this.FileName = null this.FilePath = null this.ContentType = null
25
新闻发布系统毕业论文 叶思思
this.Value = null this.Length = null }
〈/SCRIPT〉 //新闻添加
〈!--#include file=\〉 〈html〉 〈head〉
〈meta http-equiv=\〉
〈meta http-equiv=\〉 〈style type=\〉 .buttonface {
BACKGROUND-COLOR: #0079F2; BORDER-BOTTOM: #333333 1px outset; BORDER-LEFT: #333333 1px outset; BORDER-RIGHT: #ffffff 1px outset; BORDER-TOP: #ffffff 1px outset; COLOR: #ffffff; FONT-SIZE: 9pta { color: #000000; text-decoration: none}
〈/style〉
〈SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript〉 〈!--
function client_onblur(ii) { server=eval(\if(server.value==\
client=eval(\clientvalue=client.value+\varlen=clientvalue.length a=clientvalue.lastIndexOf('\\\\') clientvalue=clientvalue.substring(a+1) //alert(clientvalue); server.value=clientvalue
26
新闻发布系统毕业论文 叶思思
} }
function form1_onsubmit() { for(i=1;i〈1;i++){
client=eval(\server=eval(\
if(client.value!=\上传后的文件名不能空!\
} } //--〉 〈/SCRIPT〉
〈title〉新闻发布系统〈/title〉 〈/head〉
〈body bgcolor=#EDF0F5 topmargin=10 marginheight=5 leftmargin=4 marginwidth=0〉
〈
form
method=\
action=\LANGUAGE=javascript
name=\
enctype=\form1_onsubmit()\〉
〈div align=\〉
onsubmit=\
〈table border=\〉 〈tr align=\〉
〈td width=\height=\colspan=\style=\〉〈strong〉新闻发布系统后台管理--新闻添加〈/strong〉〈/td〉
〈/tr〉 〈tr〉
〈td width=\〉新闻标题〈/td〉
〈td width=\〉
27
新闻发布系统毕业论文 叶思思
〈input type=\〉〈/td〉 〈/tr〉 〈tr〉
〈td width=\〉新闻内容〈/td〉
〈td width=\height=\colspan=\〉〈textarea rows=\name=\〉〈/textarea〉〈/td〉
〈/tr〉 〈tr〉
〈td width=\〉新闻来源〈/td〉
〈td width=\〉
〈input type=\〉〈/td〉 〈/tr〉 〈tr〉
〈td width=\〉图片上传〈/td〉
〈td width=\〉 〈
input
type=\
name=\
size=\
readonly
LANGUAGE=javascript onblur=\〉
〈span style=\〉〈/span〉 〈INPUT type=\name=\〉 〈input type=\〉 〈/td〉
〈/tr〉 〈/table〉 〈/div〉 〈p〉
〈input type=\value=\递交\name=\class=\〉 〈input type=\全部重写\〉
28
相关推荐: