Plus.Asp
上传用户:btntkt
上传日期:2021-04-16
资源大小:5296k
文件大小:18k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

DOS

  1. <!--#include file="check.asp"-->
  2. <%dim action,id,temp,i,str,skinconn
  3. id=request.querystring("id")
  4. if id="" then id=0
  5. str="页面属性|菜单属性|页面头部|你的位置|快速登陆|用户信息|分区表格|版块列表|版块最后回复|分区底部表格|内容表格|在线统计|版块在线|在线显示|主题列表顶部|主题列表|主题列表底部|帖子顶部|显示投票|帖子信息|帖子底部|用户登陆|各项列表顶部|各项列表底部|页面底部|版块类型图片|用户类型图片|发帖图片|帖子状态图片"
  6. response.write("<body>")
  7. action=lcase(request.querystring("action"))
  8. select case action
  9. case "editplus"
  10. editplus
  11. case "saveplus"
  12. saveplus
  13. case "delplus"
  14. delplus
  15. case "bank"
  16. bank
  17. case "savebank"
  18. savebank
  19. case  "skin"
  20. skinhead
  21. skin
  22. case "skindel"
  23. skindel
  24. case "auto"
  25. auto
  26. case "ismode"
  27. ismode
  28. case "addskin"
  29.     skinhead
  30. addskin
  31. case "saveaddskin"
  32. saveaddskin
  33. case "editskin"
  34.     skinhead
  35. editskin
  36. case "saveeditskin"
  37. saveeditskin
  38. case "updateskinname"
  39. updateskinname
  40. case "skindata"
  41. skinhead
  42. skindata
  43. case "load"
  44. skinhead
  45. load
  46. case "datapost"
  47. datapost
  48. case else
  49.       plus
  50. end select
  51. adminfooter()
  52. %>
  53. <script language="javascript">
  54. <!--
  55. var isopen=1;
  56. function Edit(obj,Node){
  57. document.all.form1.NodeType.value = Node;
  58. document.all.form1.SkinName.value = Node;
  59. document.all.form1.Content.value = obj.innerText;
  60. }
  61. //-->
  62. </script>
  63. <% sub plus
  64. dim i
  65. %>
  66. <form method=post name=form style='margin:0' action=plus.asp?action=saveplus>
  67. <div class="ta">
  68.         <div class="th jz">添加论坛插件</div>
  69.         <div class="td1 h20">插件名称:</div>
  70.         <div class="td2 h20"><input type="text" name="plusname" size="20"></div>
  71. <div class="td1 h20">连接文件:</div>
  72. <div class="td2 h20"><input type="text" name="plusurl" size="38">(请填写相对路径)</div>
  73. <div style="clear: both;"></div><div class="tf jz"><input type="submit" value=" 提 交 ">&nbsp;&nbsp;<input type="reset" value=" 重 置 "></div>
  74. </div></form><br />
  75. <div class="ta">
  76. <div class="td3 w231">插件名称</div>
  77. <div class="td3 w231">连接文件</div>
  78. <div class="td3 w291">操作</div>
  79. <%
  80. set rs=yxbbs.execute("select id,name,url,flag from [yx_plus] order by flag desc")
  81. do while not rs.eof
  82. %>
  83. <div class="td3 h20 w231"><%=rs(1)%></div><div class="td3 h20 w231">&nbsp;<a href="<%=rs(2)%>" target="_blank"><%=rs(2)%></a></div>
  84. <div class="td3 h20 w291"><a href="?action=editplus&id=<%=rs(0)%>"><img src="../images/edit.gif" border="0" align="absmiddle"> 编辑</a> <a onclick=checkclick('删除后将不能恢复!您确定要删除吗?') href="plus.asp?action=delplus&id=<%=rs(0)%>"><img src="../images/del.gif" width="18" height="18" border="0" align="absmiddle"> 删除</a></div>
  85. <%rs.movenext
  86. loop
  87. rs.close
  88. %>
  89. <div style="clear: both;"></div></div>
  90. </form>
  91. <%
  92. end sub
  93. sub editplus
  94. set rs=yxbbs.execute("select name,url,flag from [yx_plus] where id="&id&"")
  95. %>
  96. <form method=post name=form style='margin:0' action=plus.asp?action=saveplus>
  97.         <div class="ta">
  98.         <div class="th jz">修改论坛插件</div>
  99.         <div class="td1 h20">插件名称:</div>
  100.         <div class="td2 h20"><input name="id" type="hidden" value="<%=id%>"><input type="text" name="plusname" size="20" value="<%=rs(0)%>"></div>
  101. <div class="td1 h20">连接文件:</div>
  102. <div class="td2 h20"><input type="text" name="plusurl" size="38" value="<%=rs(1)%>">(请填写相对路径)</div>
  103. <div style="clear: both;"></div><div class="tf jz"><input type="submit" value=" 提 交 ">&nbsp;&nbsp;<input type="reset" value=" 重 置 "></div>
  104. </div></form>
  105. <%rs.close
  106. end sub
  107. sub saveplus
  108. dim plusname,plusurl,flag,id
  109. plusname=yxbbs.fun.getstr("plusname")
  110. plusurl=yxbbs.fun.getstr("plusurl")
  111. id=yxbbs.fun.getstr("id")
  112. if plusname="" or plusurl="" then
  113. call goback("",""):exit sub
  114. end if
  115. if id<>"" then
  116. yxbbs.execute("update [yx_plus] set name='"&plusname&"',url='"&plusurl&"' where id="&id)
  117. cache.name="plusmenu":cache.clean()
  118. call suc("","成功的修改了插件:"&plusname&"","plus.asp?action=plus")
  119. else
  120. yxbbs.execute("insert into [yx_plus](name,url) values('"&plusname&"','"&plusurl&"')")
  121. cache.name="plusmenu":cache.clean()
  122. call suc("","成功的添加了插件:"&plusname&"","plus.asp?action=plus")
  123. end if
  124. end sub
  125. sub delplus
  126. dim id
  127. id=request.querystring("id")
  128. yxbbs.execute("delete from[yx_plus] where id="&id)
  129. cache.name="plusmenu":cache.clean()
  130. call suc("","成功删除了插件","plus.asp?action=plus")
  131. end sub
  132. sub bank
  133. %>
  134. <form method=post  style='margin:0' action=plus.asp?action=savebank  onsubmit="ok.disabled=true;ok.value='银行正在处理-请稍等。。。'">
  135. <div class="ta">
  136. <div class="th jz">后台银行</div>
  137. <div class="td1 h20">对象:</div>
  138. <div class="td2 h20"><select name='user' style='font-size: 9pt'>
  139. <option value=0>所有在线用户</option>
  140. <option value=1 selected>所有版主</option>
  141. <option value=2>所有总版主</option>
  142. <option value=3>所有管理员</option>
  143. <option value=4>管理团队(板主+管理员)</option>
  144. <option value=5>所有注册用户</option>
  145. </select></div>
  146. <div class="td1 h20">操作:</div>
  147. <div class="td2 h20"><input name="flag" type="radio" value="1"  checked="true"> 送钱 <input name="flag"  type="radio"value="0"> 扣钱</div>
  148. <div class="td1 h20">金额:</div>
  149. <div class="td2 h20"><input name="coin" type="text" value="1000" size="10" maxlength="5"></div>
  150. <div style="clear: both;"></div><div class="tf jz"><input  type='submit' value='确定' name="ok">&nbsp;<input type='reset' value='重写'></div>
  151. </div>
  152. </form>
  153. <%
  154. end sub
  155. sub savebank
  156. dim usertype,sql,coin,flag,i,mrs
  157. usertype=yxbbs.fun.getstr("user")
  158. coin=yxbbs.fun.getstr("coin")
  159. flag=yxbbs.fun.getstr("flag")
  160. if coin="" then call goback("",""):exit sub
  161. if not isnumeric(coin) then call goback("","金额请用数字填写!"):exit sub
  162. select case usertype
  163. case"0"
  164. sql="select name from [yx_online] where classid<>6"
  165. case"1"
  166. sql="select name from [yx_user] where classid=3"
  167. case"2"
  168. sql="select name from [yx_user] where classid=2"
  169. case"3"
  170. sql="select name from [yx_user] where classid=1"
  171. case"4"
  172. sql="select name from [yx_user] where classid<=3"
  173. case"5"
  174. sql="select name from [yx_user] where classid=5"
  175. case else
  176. call goback("","非法操作"):exit sub
  177. end select
  178. set rs=yxbbs.execute(sql)
  179. if not rs.eof then
  180. mrs=rs.getrows(-1)
  181. rs.close
  182. for i=0 to ubound(mrs,2)
  183. if flag="1" then
  184. yxbbs.execute("update [yx_user] set coin=coin+"&coin&" where name='"&mrs(0,i)&"'")
  185. else
  186. set rs=yxbbs.execute("select coin,banksave from[yx_user] where name='"&mrs(0,i)&"'")
  187. if not rs.eof then
  188. if ccur(rs(0)) < ccur(coin) then
  189. if ccur(coin)-ccur(rs(0))>ccur(rs(1)) then
  190. yxbbs.execute("update [yx_user] set coin=0,banksave=0 where name='"&mrs(0,i)&"'")
  191. else
  192. yxbbs.execute("update [yx_user] set coin=0,banksave=banksave-"&ccur(coin)-ccur(rs(0))&" where name='"&mrs(0,i)&"'")
  193. end if
  194. else
  195. yxbbs.execute("update [yx_user] set coin=coin-"&coin&" where name='"&mrs(0,i)&"'")
  196. end if
  197. end if
  198. rs.close
  199. end if
  200. next
  201. end if
  202. call suc("","银行处理成功!","plus.asp?action=bank")
  203. end sub
  204. sub skinhead
  205. call showtable("论坛风格设置","<center><a href=?action=skin>【风格管理】</a> &nbsp; <a href=?action=addskin>【添加风格】</a>&nbsp;&nbsp;<a href=?action=load>【风格数据导入】</a>&nbsp;&nbsp;<a href=?action=skindata>【风格数据导出】</a></center>")
  206. end sub
  207. function savereplace(str)
  208. str = replace(str,"[","{lfg}")
  209. str = replace(str,"]","{rfg}")
  210. savereplace = str
  211. end function
  212. sub skin
  213. dim  rs,rst,mainid
  214. set rst=yxbbs.execute("select skinid,skinname,flag,ismode from [yx_skinstyle] order by skinid asc")
  215. rs=rst.getrows()
  216. rst.close
  217. %>
  218. <div class="ta">
  219. <div class="th1 jz w231">风格id</div>
  220. <div class="th1 jz w258">风格名称</div>
  221. <div class="th1 jz w291">风格管理</div>
  222.   <%
  223. dim i
  224.     for i=0 to ubound(rs,2)
  225. %>
  226.  <div class="td3 h20 w231"><%=rs(0,i)%></div><div class="td3 h20 w231"><%=rs(1,i)%></div><div class="td3 h20 w291">
  227.  <% if rs(2,i) then 
  228.  response.write "<font  color=#ff0033><b>√</b> 论坛默认</font>"
  229.  else
  230.  response.write "<b>×</b> <a href=""?action=auto&id="&rs(0,i)&""">论坛默认</a>"
  231.  end if
  232.  response.write " &nbsp; "
  233.  if rs(3,i) then
  234.  response.write "<font  color=#ff0033><b>√</b> 做为模版</font>"
  235.  else
  236.  response.write "<b>×</b> <a href=""?action=ismode&id="&rs(0,i)&""">做为模版</a>"
  237.  end if  
  238.  %> &nbsp; <a href="?action=editskin&id=<%=rs(0,i)%>"><img src="../images/edit.gif" border="0" align="absmiddle"> 修改</a> &nbsp; <a href="?action=skindel&id=<%=rs(0,i)%>" onclick="<%if rs(2,i) then%>alert('此风格论坛正在使用中,论坛默认风格不能删除!');return false;<%else%>checkclick('删除后将不能恢复!您确定要删除吗?')<%end if%>"><img src="../images/del.gif" border="0" align="absmiddle"> 删除</a></div>
  239.     <%next%>
  240. <div style="clear: both;"></div></div>
  241. <%
  242. end sub
  243. sub auto
  244.    yxbbs.execute("update [yx_config] set skinid="&id)
  245.    yxbbs.execute("update [yx_skinstyle] set flag=true where skinid="&id )
  246.    yxbbs.execute("update [yx_skinstyle] set flag=false where skinid<"&id&" or skinid>"&id)
  247.    call suc("","风格设为论坛默认使用成功!","?action=skin")
  248. end sub
  249. sub ismode
  250.    yxbbs.execute("update [yx_skinstyle] set ismode=true where skinid="&id )
  251.    yxbbs.execute("update [yx_skinstyle] set ismode=false where skinid<"&id&" or skinid>"&id)
  252.    call suc("","此风格被设置为添加论坛风格的引用模版!","?action=skin")
  253. end sub
  254. sub skindel
  255. yxbbs.execute("delete from [yx_skinstyle] where skinid="&id)
  256. call suc("","风格已被成功删除!","?action=skin")
  257. end sub
  258. sub addskin
  259. dim temp,skinname,txt,ismode
  260. set rs=yxbbs.execute("select top 1 skinname,skinid,skincontent from [yx_skinstyle] where ismode")
  261. if not rs.eof then
  262. ismode=true
  263. skinname=rs("skinname")
  264. yxbbs.template.templatecontent=rs("skincontent")
  265. temp=yxbbs.template.readtemplatename
  266. txt="当前的元素引用 风格模版 <font color=red>" & SkinName &"</font>"
  267. else
  268. ismode=false
  269. temp=split(str,"|")
  270. txt="当前没有引用 风格模版 "
  271. end if
  272. rs.close
  273. %>
  274. <script>
  275. var isopen=1;
  276. </script>
  277. <form method=post style="margin:0 " action="?action=saveaddskin">
  278. <div class="ta">
  279. <div class="th jz">添加新风格</div>
  280. <div class="tf">风格名称:<input type="text" name="skinname" >&nbsp;&nbsp;&nbsp;<%=txt%></div>
  281. <%
  282. for i = 0 to ubound(temp)
  283.  response.write "<div class=""td3 w771""><li>" & temp(i) & "</div><div class=""tf w771""><TEXTAREA NAME='TmpName_"&i&"' ROWS=10>"
  284.  If IsMode Then
  285.  Response.Write YxBBs.Fun.HtmlCode(YxBBs.Template.ReadTemplate(Temp(i)))
  286.  End If
  287.  response.write"</textarea></div>"
  288. next
  289. %>
  290. <div style="clear: both;"></div><div class="tf"><input name="submit" type="submit" value=" 添 加 "></div>
  291. </div></form>
  292. <%
  293. end sub
  294. sub saveaddskin
  295. dim temp,content,resulterr,ts
  296.   if request("skinname")="" then
  297.      call goback("","请填写风格名称!")
  298.  exit sub
  299.   end if
  300.   temp=split(str,"|")
  301.   for i = 0 to ubound(temp)
  302.       content=content&vbcrlf&vbcrlf&"["&temp(i)&"]"&vbcrlf&vbcrlf&savereplace(request("tmpname_"&i))&vbcrlf&vbcrlf&"[/"&temp(i)&"]"
  303.       if request("tmpname_"&i)="" then
  304.         resulterr=resulterr&"<font color=#ff0033>"&temp(i)&"</font>,"
  305.   end if
  306.   next
  307.   yxbbs.execute("insert into yx_skinstyle(skinname,skincontent) values('"&replace(request("skinname"),"'","''")&"','"&replace(content,"'","''")&"')")
  308.   if resulterr<>"" then
  309.   call suc("","此风格模版以下的元素"&resulterr&" 没有内容!<li>请到风格管理里面编辑!","?action=skin")
  310.   else
  311.   call suc("","成功添加<b>"&request("skinname")&"</b>风格","?action=skin")
  312.   end if
  313. end sub
  314. sub editskin
  315. dim temp,skinname
  316. set rs=yxbbs.execute("select skinname,skincontent from [yx_skinstyle] where skinid="&id)
  317. skinname=rs(0)
  318. yxbbs.template.templatecontent=rs(1)
  319. rs.close
  320. temp=yxbbs.template.readtemplatename
  321. %>
  322. <div class="ta">
  323. <div class="th jz">修改风格</div>
  324. <div class="tf h20"><form method=post style="margin:0" action="?action=updateskinname">风格名称:<input type="text" name="skinname" value="<%=skinname%>"> <input type="hidden" name="id" value="<%=id%>"><input type="submit" value="更改风格名称">
  325. </form></div>
  326. <%
  327. if isarray(temp) then
  328. for i = 0 to ubound(temp)
  329.  response.write "<div class=""td3 h20 w100""><li>" & temp(i) & " </div><div class=""td3 h20 w680""><a href=#edit onclick=""Edit(viewcode" & i & ",'" & Temp(i) & "')"">修改</a></div><div class=""tf w770"" id='viewcode"& i &"' bordercolor=#999999 style='color:#888888;display:none'>" &HtmlenCode(YxBBs.Template.ReadTemplate(Temp(i)))&  "</div>"
  330. next
  331. else
  332. response.write "<div class=""td3 w771"">暂时还没有风格模板元素</div>"
  333. end if
  334. %>
  335. <br />
  336. <form name=form1 style="margin:0 " method=post action="?action=saveeditskin">
  337. <div class="td1 w770"><INPUT TYPE="hidden" Name="SkinName" value="no"><INPUT TYPE="hidden" name="ID" value="<%=ID%>">
  338.        <font color=red>修改风格元素</font><a name=Edit></a>:&nbsp;<INPUT TYPE="text" NAME="NodeType" ReadOnly>
  339.        <br> &nbsp;&nbsp;元素值 <br><textarea name=Content cols="100" rows="15" style="font-size:12px"></textarea><input type=submit value=" 修改风格 "></div>
  340. <div style="clear: both;"></div>
  341. </form>
  342. </div>
  343. <%
  344. end sub
  345. sub saveeditskin
  346. dim temp
  347. id=yxbbs.fun.getstr("id")
  348. set rs=yxbbs.execute("select skincontent from[yx_skinstyle] where skinid="&id)
  349. yxbbs.template.templatecontent=rs(0)
  350. rs.close
  351. if request.form("skinname")<>"no" and request.form("skinname")<>"" then
  352. temp=yxbbs.template.edittemplate(request.form("skinname"),request.form("content"))
  353. yxbbs.execute("update [yx_skinstyle] set skincontent='"&replace(temp,"'","''")&"' where skinid="&id)
  354. call suc("","风格的元素 ["&request.form("skinname")&"] 风格修改成功。",request.servervariables("http_referer"))
  355. cache.name="skin_"& id
  356. cache.clean()
  357. else
  358.      call goback("","请先选取相应的风格元素。")
  359. end if
  360. end sub
  361. function HtmlenCode(fstring)
  362. if not isnull(fstring) then
  363. fstring = replace(fstring, ">", "&gt;")
  364. fstring = replace(fstring, "<", "&lt;")
  365. fstring = replace(fstring, chr(32), "&nbsp;")
  366. fstring = replace(fstring, chr(9), "&nbsp;")
  367. fstring = replace(fstring, chr(34), "&quot;")
  368. fstring = replace(fstring, chr(39), "&#39;")
  369. fstring = replace(fstring, chr(13), "")
  370. fstring = replace(fstring, chr(10) & chr(10), "</p><p> ")
  371. fstring = replace(fstring, chr(10), "<br /> ")
  372. htmlencode = fstring
  373. end if
  374. end function
  375. sub updateskinname
  376. ID=Request("ID")
  377. YxBBs.Execute("Update [YX_SkinStyle] Set SkinName='"&Replace(Request("SkinName"),"'","''")&"' Where SkinID="&ID)
  378. Call Suc("","风格名称修改成功。","?action=skin")
  379. 'Cache.name="Skin_"& ID
  380. 'Cache.clean()
  381. 'Cache.Name="SkinList"
  382. 'Cache.clean()
  383. Application.Contents.RemoveAll
  384. End Sub
  385. sub datapost
  386. dim msg,mdbname,sid
  387. sID=Request("sID")
  388. if sid="" then call goback("","您还没有选定一个项目!"):exit sub
  389. mdbname=request("skinmdb")
  390.         if request("to")="inputskin" then
  391.     skinconnection(mdbname)
  392.     if request("submit")="删除" then
  393.        skinconn.execute("delete from [yx_skinstyle] where skinid in ("&sid&")")
  394.    call suc("","风格模版成功删除!","?action=skin"):exit sub
  395. else
  396.   set rs=skinconn.execute(" select skinname,skincontent from [yx_skinstyle] where skinid in ("&sid&")  order by skinid ")
  397.           while not rs.eof
  398.               yxbbs.execute("insert into [yx_skinstyle](skinname,skincontent) values('"&replace(rs(0),"'","''")&"','"&replace(rs(1),"'","''")&"')")  
  399. rs.movenext
  400.           wend
  401.    rs.close
  402.   call suc("","风格模版数据导入成功!","?action=skin")
  403.   cache.name="skinlist"
  404.   cache.clean()
  405.   exit sub
  406. end if
  407.     else
  408.       skinconnection(mdbname)
  409.       set rs=yxbbs.execute(" select skinname,skincontent from [yx_skinstyle] where skinid in ("&sid&")  order by skinid ")
  410.           while not rs.eof
  411.               skinconn.execute("insert into [yx_skinstyle](skinname,skincontent) values('"&replace(rs(0),"'","''")&"','"&replace(rs(1),"'","''")&"')")  
  412.   rs.movenext
  413.           wend 
  414.   rs.close
  415.   call suc("","风格模版数据导出成功!","?action=skin")
  416.    end if
  417. end sub
  418. sub skindata
  419. dim flagname,mdbname,act
  420. if request("flag")="loadthis" then
  421.     flagname="导入"
  422.     act="inputskin"
  423.     mdbname=trim(request.form("skinmdb"))
  424.     if mdbname="" then
  425. call goback("","请填写导出风格模版保存的表名")
  426. exit sub
  427. end if
  428. else
  429. flagname="导出"
  430. act="outskin"
  431. end if
  432. %>
  433.  <%
  434.    if act="inputskin" then
  435.   skinconnection(mdbname)
  436.   set rs=skinconn.execute("select skinid,skinname from [yx_skinstyle] order by skinid")
  437.    else
  438.  set  rs=yxbbs.execute("select skinid,skinname from [yx_skinstyle] order by skinid")
  439.  mdbname="../skins/yx_skinstyle.mdb"
  440.    end if
  441.    dim temp,i
  442.    if rs.eof then call goback("","该数据库中没有风格模版的数据!"):exit sub%>
  443. <form action="?action=datapost&to=<%=act%>" method=post name=even>
  444. <div class="ta">
  445. <div class="th jz"><%=flagname%>风格模版数据</div>
  446. <div class="td3 jz w87">序号</div>
  447. <div class="td3 jz w600">风格名称</div>
  448. <div class="td3 jz w87">选择</div>
  449. <%
  450.    temp=rs.getrows()
  451.    for i=0 to ubound(temp,2)
  452.    %><div class="td3 jz w87"><%=temp(0,i)%></div><div class="td3 jz w600"><%=temp(1,i)%></div><div class="td3 jz w87"><input type="checkbox" name="sid" value="<%=temp(0,i)%>"></div>
  453.     <%next%>
  454.     <div class="tf w987"> <%=flagname%>的数据库:
  455.           <input type="text" name="skinmdb" size="30" value="<%=mdbname%>"> <input type="submit" name="submit" value="<%=flagname%>">
  456.           <%if act="inputskin" then%>
  457.           <input type="submit" name="submit" value=删除  onclick="checkclick('删除后将不能恢复!您确定要删除吗?');">
  458.           <%end if%>
  459. <input type=checkbox name=chkall value=on onclick="checkall(this.form)"> 全选</div></div></form><%
  460. end sub
  461. sub load()
  462. %>
  463. <form action="?action=skindata&flag=loadthis" method=post>
  464. <div class="ta">
  465. <div class="th jz">导入风格模版数据库名:</div>
  466. <div class="td w770">导入风格模版数据库名:<input name="skinmdb"  size="30" value="../skins/yx_skinstyle.mdb"></div>
  467. <div style="clear: both;"></div><div class="tf jz"> <input type="submit" value="下一步" name="b1"></div>
  468. </div>
  469. </form>
  470. <%end sub
  471. sub skinconnection(mdbname)
  472. on error resume next 
  473. set skinconn = server.createobject("adodb.connection")
  474. skinconn.open "provider=microsoft.jet.oledb.4.0;data source=" & server.mappath(mdbname)
  475. if err then 
  476. call goback("",mdbname&" 数据库不存在!")
  477. adminfooter()
  478. response.end
  479. end if
  480. end sub
  481. %>
  482. <script language="javascript">
  483. <!--
  484. function checkall(form) {
  485.  for (var i=0;i<form.elements.length;i++) {
  486. var e = form.elements[i];
  487. if (e.name != 'chkall')
  488. e.checked = form.chkall.checked; 
  489. }
  490.  }
  491. //-->
  492. </script>