Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

820 lines
20 KiB

  1. <%@ LANGUAGE="VBSCRIPT" %>
  2. <% Option Explicit %>
  3. <% Response.buffer = True %>
  4. <%
  5. On Error Resume Next
  6. Dim cm, f, strFull1, strDisplay1, isFiles, choice, _
  7. webDirList1, pubMdbList1, refreshRec, FileSystem, _
  8. defasp, action, dropStr, choice1, sync, runWiz, _
  9. wizWarning, wizButton, wizPic, wizFormPic, noCache
  10. %>
  11. <!-- #include file="localize.inc" -->
  12. <%
  13. '----------Query strings-------------------------
  14. dropStr=request.querystring("dropStr")
  15. dropStr = Replace(dropStr,chr(34),"")
  16. choice=request.form("Action")
  17. choice1=request.querystring("Action")
  18. If choice = "" Then
  19. choice = choice1
  20. End If
  21. If choice = "" Then
  22. choice = "Welcome"
  23. action = "Add"
  24. End If
  25. sync = request.form("sync")
  26. If sync <> "" Then
  27. Myinfo.sync = sync
  28. End If
  29. If Myinfo.sync = 1 Then
  30. updateVar
  31. End If
  32. runWiz = Myinfo.ranWizard
  33. 'runWiz = "0"
  34. Sub updateVar
  35. isFiles = 0
  36. defasp = 0
  37. action = ""
  38. Myinfo.insRec = 0
  39. Myinfo.updRec = 0
  40. Myinfo.sync = 1
  41. Myinfo.publish = 0
  42. Myinfo.descrip = ""
  43. Myinfo.Showtext = 0
  44. Myinfo.numRecords = 0
  45. Myinfo.addDisplay = 0
  46. Myinfo.Width = 0
  47. Myinfo.strFull = ""
  48. Myinfo.strDisplay = ""
  49. End Sub
  50. '----------Opening Syncronization of Files--------
  51. setSystemObj
  52. setConnObj
  53. ChkRunWiz
  54. If Myinfo.sync = 1 Then
  55. readPublish
  56. readWebPub
  57. addNewFiles
  58. removeFiles
  59. updateStrings
  60. sendUser
  61. End If
  62. If dropStr <> "" Then
  63. choice="Add"
  64. Myinfo.publish = -1
  65. Myinfo.dropStr = dropStr
  66. End If
  67. %>
  68. <!-- #include file="welcome.inc" -->
  69. <% Select Case choice%>
  70. <% Case "Welcome" %>
  71. <HTML>
  72. <HEAD>
  73. <%=noCache%>
  74. <TITLE><%=locPubWiz%></TITLE>
  75. </HEAD>
  76. <SCRIPT LANGUAGE="VBScript">
  77. Sub chkRunWizard
  78. runWiz = "<%=runWiz%>"
  79. If runWiz = "-1" Then
  80. frmWiz2.StartBTN.disabled = "False"
  81. Else
  82. frmWiz2.StartBTN.disabled = "True"
  83. End If
  84. End Sub
  85. </SCRIPT>
  86. <BODY BGCOLOR="#FFFFFF" TEXT="#000000" TOPMARGIN="0" LEFTMARGIN="0" onLoad="chkRunWizard">
  87. <TABLE BORDER=0 WIDTH="100%" CELLPADDING=1 CELLSPACING=1>
  88. <TR>
  89. <TD BACKGROUND="pubbannr.gif" COLSPAN="3" ALIGN="CENTER" HEIGHT="50">
  90. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=5><STRONG>
  91. <%=locPubWiz%>
  92. </STRONG></FONT>
  93. </TD>
  94. </TR>
  95. <TR>
  96. <TD WIDTH="20%">
  97. &nbsp;
  98. </TD>
  99. <TD valign="top" Width="150" Height="175">
  100. <FORM NAME=frmWiz1 METHOD=POST ACTION="welcome.asp">
  101. <INPUT TYPE=HIDDEN NAME="Action" VALUE="<%=action%>">
  102. <INPUT TYPE=HIDDEN NAME="sync" VALUE=1>
  103. <%=wizFormPic%>
  104. </FORM>
  105. <%=wizPic%>
  106. </TD>
  107. <TD>
  108. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE="-1">
  109. <STRONG><%=locWelcomeInstr1%><%=locWelcomeInstr2%></STRONG></FONT>
  110. <P>
  111. <CENTER>
  112. <FORM NAME=frmWiz2 METHOD=POST ACTION="welcome.asp">
  113. <INPUT TYPE=HIDDEN NAME="Action" VALUE="<%=action%>">
  114. <INPUT TYPE=HIDDEN NAME="sync" VALUE=1>
  115. <INPUT TYPE=SUBMIT VALUE=" >> " ID="StartBTN">
  116. </FORM>
  117. </CENTER>
  118. </TD>
  119. </TR>
  120. <TR>
  121. <TD COLSPAN = 3 ALIGN="Center">
  122. <%=wizWarning%><BR>
  123. <%=wizButton%>
  124. </TD>
  125. </TR>
  126. </TABLE>
  127. </BODY>
  128. </HTML>
  129. <% response.flush %>
  130. <% Case "Choose" %>
  131. <HTML>
  132. <HEAD>
  133. <TITLE><%=locPubWiz%></TITLE>
  134. </HEAD>
  135. <SCRIPT LANGUAGE="VBScript">
  136. Dim RadChoice
  137. RadChoice = "Add"
  138. Sub Add_OnClick
  139. RadChoice = "Add"
  140. testBTN()
  141. End Sub
  142. Sub Remove_OnClick
  143. RadChoice = "Remove"
  144. testBTN()
  145. End Sub
  146. Sub Refresh_OnClick
  147. RadChoice = "Refresh"
  148. testBTN()
  149. End Sub
  150. Sub Change_OnClick
  151. RadChoice = "Change"
  152. testBTN()
  153. End Sub
  154. Sub testBTN()
  155. isFiles = <%=isFiles%>
  156. If isFiles = 0 and RadChoice <> "Add" Then
  157. frmBACK.goNextBTN.disabled = "True"
  158. Else
  159. frmBACK.goNextBTN.disabled = "False"
  160. End If
  161. End Sub
  162. </SCRIPT>
  163. <BODY BGCOLOR="#FFFFFF" TEXT="#000000" TOPMARGIN="0" LEFTMARGIN="0" onLoad="VBScript:testBTN()">
  164. <TABLE BORDER=0 WIDTH="100%" CELLPADDING=1 CELLSPACING=1>
  165. <TR>
  166. <TD BACKGROUND="pubbannr.gif" COLSPAN="3" ALIGN="CENTER" HEIGHT="50">
  167. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=5><STRONG>
  168. <%=locPubWiz%>
  169. </STRONG></Font>
  170. </TD>
  171. </TR>
  172. <TR>
  173. <TD ALIGN=LEFT>
  174. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=3><STRONG><EM><%=locChooseWhatDo%></EM></STRONG></FONT>
  175. </TD>
  176. </TR>
  177. <TR>
  178. <TD ALIGN=LEFT>
  179. <BLOCKQUOTE>
  180. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE="-1"><STRONG>
  181. <FORM NAME=frmCHOOSE METHOD=POST ACTION=WELCOME.ASP>
  182. <BR><INPUT TYPE="RADIO" CHECKED NAME="ACTION" VALUE="Add" ID="Add"><%=locChooseAddrad%>
  183. <BR><INPUT TYPE="RADIO" NAME="ACTION" VALUE="Remove" ID="Remove"><%=locChooseRemoverad%>
  184. <BR><INPUT TYPE="RADIO" NAME="ACTION" VALUE="Refresh" ID="Refresh"><%=locChooseRefreshrad%>
  185. <BR><INPUT TYPE="RADIO" NAME="ACTION" VALUE="Change" ID="Change"><%=locChooseUpdaterad%><p>
  186. </FORM>
  187. </STRONG>
  188. </FONT>
  189. </BLOCKQUOTE>
  190. </TD>
  191. </TR>
  192. <TR>
  193. <TD ALIGN=RIGHT>
  194. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE="-1"><STRONG>
  195. <FORM NAME=frmBACK METHOD=POST ACTION=WELCOME.ASP>
  196. <INPUT TYPE=BUTTON VALUE="<<" onClick="JavaScript:frmBACK.submit();">
  197. <INPUT ID=goNextBTN TYPE=BUTTON VALUE=">>" onClick="VBScript:frmChoose.Submit">
  198. </FORM>
  199. </STRONG>
  200. </FONT>
  201. </TD>
  202. </TR>
  203. </TABLE>
  204. </BODY>
  205. </HTML>
  206. <% response.flush %>
  207. <%Case "Add"
  208. Dim Publish, add, apage, addStr, delStr
  209. '----------Query strings-------------------------
  210. addStr = request.querystring("addStr")
  211. If addStr <> "" Then 'add new files
  212. Choice = "ADD"
  213. dropStr = dropStr + addStr
  214. End If
  215. Myinfo.ShowText = 0
  216. Myinfo.addDisplay = 0
  217. publish = Myinfo.Publish
  218. Myinfo.addDisplay = 1
  219. Myinfo.strDisplay = ""
  220. Myinfo.NumRecords = 0
  221. %>
  222. <HTML>
  223. <HEAD>
  224. <TITLE><%=locPubWiz%></TITLE>
  225. <SCRIPT LANGUAGE="JavaScript">
  226. <!--#include file="JSBrowser/JSBrowser.js"-->
  227. JSBrowser = new BrowserObj("",false,TFILE,LARGE);
  228. function callBrowser()
  229. {
  230. JSBrowser = new BrowserObj(document.frmFILENAME.FILENAME,POP,TFILE,LARGE);
  231. }
  232. </SCRIPT>
  233. </HEAD>
  234. <SCRIPT LANGUAGE="VBScript">
  235. Dim add, semiColon
  236. semiColon = chr(59)
  237. Sub cmdAdd_Click()
  238. Filepath=Trim(document.frmFILENAME.FILENAME.value)
  239. If instr(Filepath, bckSlash) = 0 Then
  240. Alert "<%=locInvalidPath%>"
  241. document.frmFILENAME.FILENAME.value = ""
  242. Exit Sub
  243. End If
  244. If instr(Filepath, period) = 0 Then
  245. Alert "<%=locInvalidPath%>"
  246. document.frmFILENAME.FILENAME.value = ""
  247. Exit Sub
  248. End If
  249. If add < 1 Then
  250. If Filepath="" Then
  251. Alert "<%=locPathRequired%>"
  252. End If
  253. End If
  254. If len(Filepath) <> 0 Then
  255. Description=Trim(document.frmDESCRIPTION.DESCRIPTION.value) & semiColon
  256. Filepath = Filepath + semiColon
  257. add = add + 1
  258. ifrFILENAME.location.href ="filelist.asp?newDescription=" + Description + "&newFilepath=" + Filepath
  259. document.frmFILENAME.FILENAME.value = ""
  260. document.frmDESCRIPTION.DESCRIPTION.value = ""
  261. frmRemove.btnRemove.disabled ="False"
  262. goNext.goNextBTN.disabled = "False"
  263. End If
  264. end sub
  265. Sub cmdRemove_Click()
  266. items = IFRFILENAME.frmFILENAME.selFILENAME.length
  267. If items <= 2 Then
  268. goNext.goNextBTN.disabled = "True"
  269. frmRemove.btnRemove.disabled ="True"
  270. frmAdd.btnAdd.disabled ="True"
  271. Else
  272. goNext.goNextBTN.disabled = "False"
  273. End If
  274. ifrFILENAME.removeItem()
  275. end sub
  276. Sub Browser()
  277. callBrowser()
  278. frmAdd.btnAdd.disabled ="False"
  279. End Sub
  280. Sub Start()
  281. dropStr = "<%=dropStr%>"
  282. aFile = "<%=isFiles%>"
  283. If dropStr <> "" Then
  284. frmAdd.btnAdd.disabled ="False"
  285. Else
  286. frmAdd.btnAdd.disabled ="True"
  287. End If
  288. goNext.goNextBTN.disabled = "True"
  289. frmRemove.btnRemove.disabled ="True"
  290. If aFile = "" Or aFile = "0" Then
  291. goBack.goBackBTN.disabled = "True"
  292. Else
  293. goBack.goBackBTN.disabled = "False"
  294. End If
  295. End Sub
  296. </SCRIPT>
  297. <BODY BGCOLOR="#FFFFFF" TEXT="#000000" TOPMARGIN="0" LEFTMARGIN="0" onLoad="VBScript:Start()">
  298. <TABLE BORDER="0" CELLPADDING="1" CELLSPACING="1" WIDTH="100%">
  299. <TR>
  300. <TD BACKGROUND="pubbannr.gif" COLSPAN="5" ALIGN="CENTER" HEIGHT="50">
  301. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=5><STRONG>
  302. <%=locPubWiz%>
  303. </STRONG></FONT>
  304. </TD>
  305. </TR>
  306. <TR>
  307. <TD COLSPAN=5>
  308. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG><%=locAddInstr1%></STRONG></FONT>
  309. </TD>
  310. </TR>
  311. <TR>
  312. <TD WIDTH="12%">
  313. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  314. <FORM NAME="frmFILENAME">
  315. <%=locPath%>
  316. </TD>
  317. <TD WIDTH="50%">
  318. <INPUT TYPE=TEXT SIZE=32 NAME="FILENAME" VALUE="<%=Myinfo.dropStr%>" onClick="VBScript:frmAdd.btnAdd.disabled ='False'">
  319. </TD>
  320. <% dropStr = ""
  321. Myinfo.dropStr = ""
  322. %>
  323. <TD COLSPAN=2>
  324. <INPUT TYPE=BUTTON VALUE=" <%=locAddBrowsebtn%> " onClick="callBrowser();" NAME="hdnBrowser">
  325. </FORM>
  326. </STRONG></FONT>
  327. </TD>
  328. </TR>
  329. <TR>
  330. <TD>
  331. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  332. <FORM NAME="frmDESCRIPTION">
  333. <%=locDescription%>
  334. </TD>
  335. <TD COLSPAN=4>
  336. <INPUT TYPE=TEXT SIZE=38 NAME="DESCRIPTION" VALUE="">
  337. </FORM>
  338. </STRONG></FONT>
  339. </TD>
  340. </TR>
  341. <TR>
  342. <TD COLSPAN=5>
  343. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  344. <%=locAddInstr2%>
  345. </STRONG></FONT>
  346. </TD>
  347. </TR>
  348. <TR>
  349. <TD COLSPAN=4>
  350. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG><%=locAddInstr3%></STRONG></FONT>
  351. </TD>
  352. </TR>
  353. <TR>
  354. <TD COLSPAN=2 VALIGN=TOP ALIGN=LEFT HEIGHT=105>
  355. <IFRAME NAME=IFRFILENAME FRAMEBORDER=0 HEIGHT=105 WIDTH=349 MARGINHEIGHT=0 MARGINWIDTH=0 NORESIZE SCROLLING=AUTO SRC="filelist.asp"></IFRAME>
  356. </TD>
  357. <TD COLSPAN=2>
  358. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  359. <FORM NAME="frmAdd">
  360. <INPUT ID="btnAdd" TYPE=BUTTON VALUE=" <%=locAddAddbtn%> " ONCLICK="cmdAdd_Click()"><P>
  361. </FORM>
  362. <FORM NAME="frmRemove">
  363. <INPUT ID="btnRemove" TYPE=BUTTON VALUE="<%=locAddRemovebtn%>" ONCLICK="cmdRemove_Click()"><P>
  364. </FORM>
  365. </STRONG></FONT>
  366. </TD>
  367. </TR>
  368. <TR HEIGHT=15>
  369. <TD COLSPAN=2>
  370. &nbsp;
  371. </TD>
  372. <TD ALIGN=RIGHT>
  373. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  374. <FORM NAME="goBack" METHOD=POST ACTION="welcome.asp">
  375. <INPUT ID="goBackBTN" TYPE="SUBMIT" VALUE="<<" >
  376. <INPUT TYPE="HIDDEN" VALUE="Choose" NAME="Action">
  377. <INPUT TYPE="HIDDEN" VALUE="1" NAME="sync">
  378. </FORM>
  379. </STRONG></FONT>
  380. </TD>
  381. <TD HEIGHT=15>
  382. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  383. <FORM NAME="goNext" METHOD=POST ACTION="welcome.asp">
  384. <INPUT TYPE=SUBMIT VALUE=">>" ID="goNextBTN">
  385. <INPUT TYPE=HIDDEN VALUE="Finish" NAME="Action">
  386. </FORM>
  387. </STRONG></FONT>
  388. </TD>
  389. <TR/>
  390. </TABLE>
  391. <% response.flush %>
  392. <%Case "Remove"%>
  393. <% Myinfo.ShowText = 1 %>
  394. <HTML>
  395. <HEAD>
  396. <META NAME="GENERATOR" CONTENT="Microsoft Visual InterDev 1.0">
  397. <TITLE><%=locPubWiz%></TITLE>
  398. </HEAD>
  399. <SCRIPT LANGUAGE="VBScript"><!--
  400. Sub cmdNext_Click()
  401. If document.frmFILENAME.FILENAME.value <> "" Then
  402. IFRFILENAME.updItem("rem")
  403. ELSE
  404. frmNext.goNextBTN.disabled = "True"
  405. End If
  406. End sub
  407. Sub Start()
  408. frmNext.goNextBTN.disabled = "True"
  409. IFRFILENAME.frmFILENAME.selFILENAME.multiple = "multiple"
  410. End Sub
  411. -->
  412. </SCRIPT>
  413. <BODY BGCOLOR="#FFFFFF" TEXT="#000000" TOPMARGIN="0" LEFTMARGIN="0" onLoad="VBScript:Start()">
  414. <TABLE BORDER="0" CELLPADDING="1" CELLSPACING="1" WIDTH="100%">
  415. <TR>
  416. <TD BACKGROUND="pubbannr.gif" COLSPAN="4" ALIGN="CENTER" HEIGHT="50">
  417. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=5><STRONG>
  418. <%=locPubWiz%>
  419. </STRONG></FONT>
  420. </TD>
  421. </TR>
  422. <TR>
  423. <TD COLSPAN=4>
  424. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG><%=locRemoveInstr1%></STRONG></FONT>
  425. </TD>
  426. </TR>
  427. <TR>
  428. <TD WIDTH="15%">
  429. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  430. <FORM NAME="frmFILENAME">
  431. <%=locFile%>
  432. </TD>
  433. <TD COLSPAN=3 >
  434. <INPUT TYPE=TEXT SIZE=32 NAME="FILENAME" VALUE="<%=delStr%>">
  435. </FORM>
  436. </STRONG></FONT>
  437. </TD>
  438. </TR>
  439. <TR>
  440. <TD>
  441. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  442. <FORM NAME="frmDESCRIPTION">
  443. <%=locDescription%>
  444. </TD>
  445. <TD COLSPAN=4>
  446. <INPUT TYPE=TEXT SIZE=43 NAME="DESCRIPTION" VALUE="">
  447. </FORM>
  448. </STRONG></FONT>
  449. </TD>
  450. </TR>
  451. <TR>
  452. <TD COLSPAN=4>
  453. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG><%=locPubFiles%></STRONG> </FONT>
  454. </TD>
  455. </TR>
  456. <TR>
  457. <TD COLSPAN=3 ALIGN=LEFT HEIGHT=105>
  458. <IFRAME NAME=IFRFILENAME FRAMEBORDER=0 HEIGHT=105 WIDTH=400 MARGINHEIGHT=0 MARGINWIDTH=0 NORESIZE SCROLLING=AUTO SRC="filelist.asp"></IFRAME>
  459. </TD>
  460. <TD WIDTH="5%">
  461. &nbsp;
  462. </TD>
  463. </TR>
  464. <TR HEIGHT=10>
  465. <TD ALIGN=RIGHT COLSPAN=3>
  466. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  467. <FORM METHOD=POST ACTION="welcome.asp">
  468. <INPUT TYPE=SUBMIT VALUE="<<" NAME="btnBACK">
  469. <INPUT TYPE="HIDDEN" VALUE="Choose" NAME="Action">
  470. <INPUT TYPE="HIDDEN" VALUE="1" NAME="sync">
  471. </FORM>
  472. </STRONG></FONT>
  473. </TD>
  474. <TD>
  475. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  476. <FORM NAME="frmNext">
  477. <INPUT ID="goNextBTN" TYPE=BUTTON VALUE=">>" onClick="VBScript:cmdNext_Click()">
  478. </FORM>
  479. </STRONG></FONT>
  480. </TD>
  481. <TR/>
  482. </TABLE>
  483. <% response.flush %>
  484. <%Case "Refresh"%>
  485. <% Myinfo.ShowText = 1
  486. %>
  487. <HTML>
  488. <HEAD>
  489. <META NAME="GENERATOR" CONTENT="Microsoft Visual InterDev 1.0">
  490. <TITLE><%=locPubWiz%></TITLE>
  491. </HEAD>
  492. <SCRIPT LANGUAGE="VBScript"><!--
  493. Sub cmdNext_Click()
  494. If document.frmFILENAME.FILENAME.value <> "" Then
  495. IFRFILENAME.updItem("refresh")
  496. ELSE
  497. frmNext.goNextBTN.disabled = "True"
  498. End If
  499. end sub
  500. Sub Start()
  501. frmNext.goNextBTN.disabled = "True"
  502. IFRFILENAME.frmFILENAME.selFILENAME.multiple = "multiple"
  503. End Sub
  504. -->
  505. </SCRIPT>
  506. <BODY BGCOLOR="#FFFFFF" TEXT="#000000" TOPMARGIN="0" LEFTMARGIN="0" onLoad="VBScript:Start()">
  507. <TABLE BORDER="0" CELLPADDING="1" CELLSPACING="1" WIDTH="100%">
  508. <TR>
  509. <TD BACKGROUND="pubbannr.gif" COLSPAN="4" ALIGN="CENTER" HEIGHT="50">
  510. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=5><STRONG>
  511. <%=locPubWiz%>
  512. </STRONG></FONT>
  513. </TD>
  514. </TR>
  515. <TR>
  516. <TD COLSPAN=4>
  517. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG><%=locRefreshInstr1%></STRONG></FONT>
  518. </TD>
  519. </TR>
  520. <TD WIDTH="15%">
  521. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  522. <FORM NAME="frmFILENAME">
  523. <%=locFile%>
  524. </TD>
  525. <TD COLSPAN=3 >
  526. <INPUT TYPE=TEXT SIZE=32 NAME="FILENAME" VALUE="">
  527. </FORM>
  528. </STRONG></FONT>
  529. </TD>
  530. </TR>
  531. <TR>
  532. <TD>
  533. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  534. <FORM NAME="frmDESCRIPTION">
  535. <%=locDescription%>
  536. </TD>
  537. <TD COLSPAN=4>
  538. <INPUT TYPE=TEXT SIZE=43 NAME="DESCRIPTION" VALUE="">
  539. </FORM>
  540. </STRONG></FONT>
  541. </TD>
  542. </TR>
  543. <TR>
  544. <TD COLSPAN=4>
  545. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG><%=locPubFiles%></STRONG> </FONT>
  546. </TD>
  547. </TR>
  548. <TR>
  549. <TD COLSPAN=3 ALIGN=LEFT HEIGHT=105>
  550. <IFRAME NAME=IFRFILENAME FRAMEBORDER=0 HEIGHT=105 WIDTH=400 MARGINHEIGHT=0 MARGINWIDTH=0 NORESIZE SCROLLING=AUTO SRC="filelist.asp"></IFRAME>
  551. </TD>
  552. <TD WIDTH="5%">
  553. &nbsp;
  554. </TD>
  555. </TR>
  556. <TR HEIGHT=10>
  557. <TD ALIGN=RIGHT COLSPAN=3>
  558. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  559. <FORM METHOD=POST ACTION="welcome.asp">
  560. <INPUT TYPE=SUBMIT VALUE="<<" NAME="btnBACK">
  561. <INPUT TYPE="HIDDEN" VALUE="Choose" NAME="Action">
  562. <INPUT TYPE="HIDDEN" VALUE="1" NAME="sync">
  563. </FORM>
  564. </STRONG></FONT>
  565. </TD>
  566. <TD>
  567. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  568. <FORM NAME="frmNext">
  569. <INPUT ID="goNextBTN" TYPE=BUTTON VALUE=">>" ONCLICK="cmdNext_Click()" NAME="btnNEXT">
  570. </FORM>
  571. </STRONG></FONT>
  572. </TD>
  573. <TR/>
  574. </TABLE>
  575. <% response.flush %>
  576. <%Case "Change"%>
  577. <%
  578. Myinfo.ShowText = 1
  579. Myinfo.Width=1
  580. %>
  581. <HTML>
  582. <HEAD>
  583. <TITLE><%=locPubWiz%></TITLE>
  584. </HEAD>
  585. <SCRIPT LANGUAGE="VBScript"><!--
  586. Sub cmdUpdate_Click()
  587. If document.frmFILENAME.FILENAME.value <> "" Then
  588. newDescription = document.frmDESCRIPTION.DESCRIPTION.value
  589. ifrFILENAME.updateItem(newDescription)
  590. document.frmDESCRIPTION.DESCRIPTION.value = ""
  591. document.frmFILENAME.FILENAME.value = ""
  592. frmNext.goNextBTN.disabled = "False"
  593. frmUpdate.btnUpdate.disabled = "True"
  594. Else
  595. frmNext.goNextBTN.disabled = "True"
  596. End If
  597. End sub
  598. Sub Start()
  599. frmNext.goNextBTN.disabled = "True"
  600. frmUpdate.btnUpdate.disabled = "True"
  601. ifrFILENAME.changeValue()
  602. End Sub
  603. -->
  604. </SCRIPT>
  605. <BODY BGCOLOR="#FFFFFF" TEXT="#000000" TOPMARGIN="0" LEFTMARGIN="0" onLoad="VBScript:Start()">
  606. <TABLE BORDER="0" CELLPADDING="1" CELLSPACING="1" WIDTH="100%">
  607. <TR>
  608. <TD BACKGROUND="pubbannr.gif" COLSPAN="5" ALIGN="CENTER" HEIGHT="50">
  609. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=5><STRONG>
  610. <%=locPubWiz%>
  611. </STRONG></FONT>
  612. </TD>
  613. </TR>
  614. <TR>
  615. <TD COLSPAN=5>
  616. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG><%=locChangeInstr1%></STRONG></FONT>
  617. </TD>
  618. </TR>
  619. <TD WIDTH="12%">
  620. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  621. <FORM NAME="frmFILENAME">
  622. <%=locFile%>
  623. </TD>
  624. <TD WIDTH="50%">
  625. <INPUT TYPE=TEXT SIZE=32 NAME="FILENAME" VALUE="">
  626. </FORM>
  627. </STRONG></FONT>
  628. </TD>
  629. </TR>
  630. <TR>
  631. <TD>
  632. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  633. <FORM NAME="frmDESCRIPTION">
  634. <%=locDescription%>
  635. </TD>
  636. <TD COLSPAN=4>
  637. <INPUT TYPE=TEXT SIZE=38 NAME="DESCRIPTION" VALUE="" OnFocus="VBScript:frmUpdate.btnUpdate.disabled = 'False'">
  638. </FORM>
  639. </STRONG></FONT>
  640. </TD>
  641. </TR>
  642. <TR>
  643. <TD COLSPAN=4>
  644. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG><%=locPubFiles%></STRONG></FONT>
  645. </TD>
  646. </TR>
  647. <TR>
  648. <TD COLSPAN=2 ALIGN=LEFT VALIGN=TOP HEIGHT=105>
  649. <IFRAME NAME=IFRFILENAME FRAMEBORDER=0 HEIGHT=105 WIDTH=349 MARGINHEIGHT=0 MARGINWIDTH=0 NORESIZE SCROLLING=AUTO SRC="filelist.asp"></IFRAME>
  650. </TD>
  651. <TD COLSPAN=2 VALIGN=TOP>
  652. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  653. <FORM NAME="frmUpdate">
  654. <INPUT ID="btnUpdate" TYPE=BUTTON VALUE=" <%=locChangeUpdatebtn%> " ONCLICK="cmdUpdate_Click()" >
  655. </FORM>
  656. </STRONG></FONT>
  657. </TD>
  658. </TR>
  659. <TR HEIGHT=15>
  660. <TD COLSPAN=2>
  661. </TD>
  662. <TD ALIGN=RIGHT>
  663. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  664. <FORM METHOD=POST ACTION="welcome.asp">
  665. <INPUT TYPE=SUBMIT VALUE="<<" NAME="btnBACK">
  666. <INPUT TYPE="HIDDEN" VALUE="Choose" NAME="Action">
  667. <INPUT TYPE="HIDDEN" VALUE="1" NAME="sync">
  668. </FORM>
  669. </STRONG></FONT>
  670. </TD>
  671. <TD HEIGHT=15>
  672. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  673. <FORM NAME="frmNext" METHOD=POST ACTION="welcome.asp">
  674. <INPUT ID="goNextBTN" TYPE=SUBMIT VALUE=">>" "VBScript:document.frmNext.submit" >
  675. <INPUT TYPE=HIDDEN VALUE="Finish" NAME="Action">
  676. </FORM>
  677. </STRONG></FONT>
  678. </TD>
  679. <TR/>
  680. </TABLE>
  681. </BODY>
  682. </HTML>
  683. <% response.flush %>
  684. <% Case "Finish"
  685. Dim insRec, delRec, updRec, operation, newFileDescription, remRecord,refreshRecord, _
  686. neg, negComment, negComment1, negComment2, plurality, nRecords, showNames
  687. '----------Query strings-------------------------
  688. refreshRecord=request.querystring("refreshRecord")
  689. remRecord = request.querystring("remRecord")
  690. '----------Update Page Variables------------------
  691. insRec = Myinfo.insRec
  692. updRec = Myinfo.updRec
  693. operation = ""
  694. neg = ""
  695. negComment = ""
  696. plurality = ""
  697. '------------Call Subs-----------------
  698. If remRecord <> "" Then 'Remove records
  699. remFiles remRecord
  700. End If
  701. If insRec = 1 Then 'Add records
  702. insertFiles
  703. End If
  704. If updRec = 1 Then 'Update records
  705. updFiles
  706. End If
  707. If refreshRecord <> "" Then 'Refresh records
  708. refreshFiles refreshRecord
  709. End If
  710. %>
  711. <!-- #include file="finish.inc" -->
  712. <%
  713. Sub resetVar
  714. Myinfo.insRec = 0
  715. Myinfo.updRec = 0
  716. Myinfo.publish = 0
  717. Myinfo.dropStr = ""
  718. Myinfo.descrip = ""
  719. Myinfo.Showtext = 0
  720. Myinfo.numRecords = 0
  721. Myinfo.addDisplay = 0
  722. Myinfo.Width = 0
  723. Myinfo.sync = 1
  724. Myinfo.strFull = ""
  725. Myinfo.strDisplay = ""
  726. End Sub
  727. %>
  728. <HTML>
  729. <HEAD>
  730. <TITLE><%=locPubWiz%></TITLE>
  731. </HEAD>
  732. <BODY BGCOLOR="#FFFFFF" TEXT="#000000" TOPMARGIN="0" LEFTMARGIN="0">
  733. <TABLE BORDER=0 WIDTH=100% CELLPADDING=1 CELLSPACING=1 HEIGHT=300>
  734. <TR>
  735. <TD BACKGROUND="pubbannr.gif" COLSPAN="3" ALIGN="CENTER" HEIGHT="50">
  736. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=5><STRONG>
  737. <%=locPubWiz%>
  738. </STRONG></Font>
  739. </TD>
  740. </TR>
  741. <TR HEIGHT=50>
  742. <TD ALIGN=LEFT>
  743. <IMG SRC='../website/streamer.gif'HEIGHT=175 WIDTH=148>
  744. </TD>
  745. <TD ALIGN=TOP>
  746. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=2><STRONG>
  747. <%=showNames%> <%=plurality%> <%=operation%>
  748. <P>
  749. <%=negComment1%><P>
  750. <%=negComment2%><P>
  751. </STRONG></FONT>
  752. </TD>
  753. </TR>
  754. <TR HEIGHT=30>
  755. <TD>
  756. </TD>
  757. <TD ALIGN=RIGHT>
  758. <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=-2><STRONG>
  759. <FORM METHOD=POST ACTION="welcome.asp">
  760. <INPUT TYPE=SUBMIT VALUE="<<" NAME="btnReturn">
  761. <INPUT TYPE="HIDDEN" VALUE="Choose" NAME="Action">
  762. <INPUT TYPE="HIDDEN" VALUE="1" NAME="sync">
  763. </FORM>
  764. </STRONG></FONT>
  765. </TD>
  766. </TR>
  767. </TABLE>
  768. </BODY>
  769. </HTML>
  770. <% response.flush %>
  771. <% End Select %>