📄 efile.vbs
字号:
dim lcountmx_efile
lcountmx_efile = 0
function dodel_efile(l)
if MsgBox("您确定要删除吗?",1,"操作提示")=1 then
dim Str
execute("Str = document.editor.EfileN"&Cstr(l)&".value")
If Str<>"" Then
document.editor.attach.value=document.editor.attach.value &","& Str
End if
tab_efile.deleteRow document.getElementById("tr_efile" & l).rowindex
end if
end function
function add_efile()
lcountmx_efile = lcountmx_efile+1
dim oRow,oCell,ii
dim sss
set oRow=tab_efile.insertRow
orow.id="tr_efile" & lcountmx_efile
if lcountmx_efile mod(2)=0 then
orow.classname="listrow1"
else
orow.classname="listrow1_1"
end if
set ocell=orow.insertcell
ocell.classname="ListCellRow"
ocell.width="40"
sss = "<nobr>附件"&lcountmx_efile&":</nobr>"
ocell.innerhtml= sss
set ocell=orow.insertcell
ocell.classname="ListCellRow"
ocell.width="450"
sss="<input type=file name=Efile"&lcountmx_efile&" style='width:340px'>"
sss = sss & "<input type=hidden name=EfileN"&lcountmx_efile&" value="&AttachValue&">"
ocell.innerhtml= sss
set ocell=orow.insertcell
ocell.classname="ListCellRow"
ocell.innerhtml="<button onclick=vbscript:dodel_efile(" & lcountmx_efile &") style=cursor:hand>-</button>"
end function
function add_efilevalue(AttachUrlValue,AttachValue)
lcountmx_efile = lcountmx_efile+1
dim oRow,oCell,ii
dim sss
set oRow=tab_efile.insertRow
orow.id="tr_efile" & lcountmx_efile
if lcountmx_efile mod(2)=0 then
orow.classname="listrow1"
else
orow.classname="listrow1_1"
end if
set ocell=orow.insertcell
ocell.classname="ListCellRow"
ocell.width="40"
sss = "<nobr>附件"&lcountmx_efile&":</nobr>"
ocell.innerhtml= sss
set ocell=orow.insertcell
ocell.classname="ListCellRow"
ocell.width="450"
sss="<div align=left><input type=hidden name=Efile[] value="&AttachValue&">"&AttachUrlValue&"</div>"
sss = sss & "<input type=hidden name=EfileN"&lcountmx_efile&" value="&AttachValue&">"
ocell.innerhtml= sss
set ocell=orow.insertcell
ocell.classname="ListCellRow"
ocell.innerhtml="<button onclick=vbscript:dodel_efile(" & lcountmx_efile &") style=cursor:hand>-</button>"
end function
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -