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.

114 lines
3.7 KiB

  1. <%@ LANGUAGE = VBScript %>
  2. <% Option Explicit %>
  3. <!-- #include file="directives.inc" -->
  4. <!--#include file="iifiltls.str"-->
  5. <!--#include file="iifiltcm.str"-->
  6. <!--#include file="iisetfnt.inc"-->
  7. <HTML>
  8. <HEAD>
  9. <TITLE></TITLE>
  10. <SCRIPT LANGUAGE = "JavaScript">
  11. <!--#include file="iijsfuncs.inc"-->
  12. function SetUpdated(){
  13. if (parent.head.listFunc.noupdate)
  14. {
  15. parent.head.listFunc.noupdate = false;
  16. }
  17. else
  18. {
  19. i = parent.head.listFunc.sel;
  20. parent.head.cachedList[i].filter = document.listform.editMe.value;
  21. parent.head.cachedList[i].status = "<%= L_LOADED_TEXT %>";
  22. parent.head.cachedList[i].filterpath = document.listform.filterpath.value;
  23. parent.head.cachedList[i].displayexe = crop(document.listform.filterpath.value,35);
  24. parent.head.cachedList[i].updated = true;
  25. }
  26. }
  27. function chgStatus(indexnum){
  28. parent.head.listFunc.sel=indexnum
  29. self.location.href = "iifiltls.asp";
  30. }
  31. function chkPath(pathCntrl){
  32. if (pathCntrl.value != ""){
  33. top.connect.location.href = "iichkpath.asp?path=" + escape(pathCntrl.value) + "&ptype=1";
  34. }
  35. }
  36. function pathBrowser(){
  37. JSBrowser=new BrowserObj(document.listform.filterpath,POP,TFILE,<%= Session("FONTSIZE") %>);
  38. }
  39. </SCRIPT>
  40. <% if Session("canBrowse") then %>
  41. <SCRIPT SRC="JSBrowser/jsbrwsrc.asp">
  42. </SCRIPT>
  43. <SCRIPT LANGUAGE="JavaScript">
  44. JSBrowser = new BrowserObj(null,false,TFILE,<%= Session("FONTSIZE") %>);
  45. </SCRIPT>
  46. <% end if %>
  47. </HEAD>
  48. <BODY BGCOLOR="FFFFFF" LEFTMARGIN = 0 TOPMARGIN = 0>
  49. <FORM NAME="listform">
  50. <SCRIPT LANGUAGE="JavaScript">
  51. editOK = false;
  52. sel = parent.head.listFunc.sel;
  53. var writestr = "<TABLE WIDTH = <%= L_FILTTABLEWIDTH_NUM %> BORDER=0 CELLPADDING=2 CELLSPACING=0 COLS=4>"
  54. for (var i = 0; i < parent.head.cachedList.length; i++) {
  55. if (!parent.head.cachedList[i].deleted){
  56. <% if Session("IsAdmin") then %>
  57. if (sel != i) {
  58. <% else %>
  59. if (true){
  60. <% end if %>
  61. writestr += "<TR>"
  62. writestr += parent.head.listFunc.writeCol(1,<%= L_STATUSCOLWIDTH_NUM %>,parent.head.cachedList[i].displaystatus,"");
  63. writestr += parent.head.listFunc.writeCol(1,<%= L_PRIORITYCOLWIDTH_NUM %>,displayVal(parent.head.cachedList[i].priority,"&nbsp;"),"");
  64. writestr += parent.head.listFunc.writeCol(1,<%= L_FILTERCOLWIDTH_NUM %>,"<A HREF='javascript:chgStatus("+i+");'>"+parent.head.cachedList[i].filter +"</A>","");
  65. writestr += parent.head.listFunc.writeCol(1,<%= L_EXECOLWIDTH_NUM %>,parent.head.cachedList[i].displayexe,"LEFT");
  66. writestr += "</TR>";
  67. }
  68. else {
  69. editOK = true;
  70. writestr += "<TR BGCOLOR=#DDDDDD>"
  71. writestr += parent.head.listFunc.writeCol(1,<%= L_STATUSCOLWIDTH_NUM %>,parent.head.cachedList[i].displaystatus,"");
  72. writestr += parent.head.listFunc.writeCol(1,<%= L_PRIORITYCOLWIDTH_NUM %>,displayVal(parent.head.cachedList[i].priority,"&nbsp;"),"");
  73. writestr += parent.head.listFunc.writeCol(1,<%= L_FILTERCOLWIDTH_NUM %>,"<INPUT NAME='editMe' VALUE='"+parent.head.cachedList[i].filter +"' SIZE=10 <%= Session("DEFINPUTSTYLE") %> onBlur='SetUpdated();'>","");
  74. writestr += parent.head.listFunc.writeCol(1,<%= L_EXECOLWIDTH_NUM %>,"<INPUT TYPE='text' NAME='filterpath' VALUE='"+parent.head.cachedList[i].filterpath +"' SIZE = 25 <%= Session("DEFINPUTSTYLE") %> onBlur='chkPath(this);SetUpdated();'>&nbsp;&nbsp;<% if Session("canBrowse") then %><A HREF='javascript:pathBrowser();'><IMG ALIGN=middle SRC='images/browse.gif' BORDER=0></A><% end if %>","RIGHT");
  75. writestr += "</TR>";
  76. }
  77. }
  78. }
  79. writestr += "</TABLE>";
  80. document.write(writestr);
  81. </SCRIPT>
  82. </TABLE>
  83. </FORM>
  84. <% if Session("IsAdmin") then %>
  85. <SCRIPT LANGUAGE="JavaScript">
  86. if (editOK){
  87. document.listform.editMe.focus();
  88. document.listform.editMe.select();
  89. }
  90. </SCRIPT>
  91. <% end if %>
  92. </BODY>
  93. </HTML>