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.

210 lines
5.7 KiB

  1. <%@ LANGUAGE = VBScript %>
  2. <% Option Explicit %>
  3. <!-- #include file="directives.inc" -->
  4. <!--#include file="iierr.str"-->
  5. <!--#include file="iierrls.str"-->
  6. <!--#include file="iiset.inc"-->
  7. <!--#include file="iisetfnt.inc"-->
  8. <% if Request.Querystring("text") <> "" then %>
  9. <HTML>
  10. <BODY BGCOLOR="#FFFFFF" LEFTMARGIN=0 TOPMARGIN=0>
  11. <%= sFont("","","",True) %>
  12. <%= Request.Querystring("text") %>
  13. </FONT>
  14. </BODY>
  15. </HTML>
  16. <% else %>
  17. <HTML>
  18. <HEAD>
  19. <TITLE></TITLE>
  20. <SCRIPT LANGUAGE="JavaScript">
  21. <!--#include file="iijsfuncs.inc"-->
  22. headframe = parent.head;
  23. function chgStatus(indexnum){
  24. headframe.listFunc.sel=indexnum
  25. self.location.href="iierrls.asp"
  26. }
  27. function SetUpdated(){
  28. reload=false;
  29. top.title.Global.updated="true";
  30. i=headframe.listFunc.sel;
  31. if (document.listform.editMe.selectedIndex==0){
  32. reload=true;
  33. headframe.cachedList[i].outType="";
  34. headframe.cachedList[i].msgPath=headframe.cachedList[i].msgDefault;
  35. }
  36. else{
  37. if (headframe.cachedList[i].outType==""){
  38. reload=true;
  39. }
  40. else{
  41. document.listform.msgPath.value="";
  42. }
  43. headframe.cachedList[i].msgPath="";
  44. if(document.listform.editMe.selectedIndex==1){
  45. headframe.cachedList[i].outType="FILE";
  46. }
  47. else{
  48. headframe.cachedList[i].outType="URL";
  49. }
  50. }
  51. headframe.cachedList[i].updated=true;
  52. if (reload){
  53. chgStatus(i);
  54. }
  55. }
  56. function SetPath(){
  57. top.title.Global.updated="true";
  58. i=headframe.listFunc.sel;
  59. headframe.cachedList[i].msgPath=document.listform.msgPath.value;
  60. if (headframe.cachedList[i].outType=="FILE"){
  61. chkPath(document.listform.msgPath);
  62. }
  63. }
  64. function chkPath(pathCntrl){
  65. if (pathCntrl.value != ""){
  66. top.connect.location.href = "iichkpath.asp?path=" + escape(pathCntrl.value) + "&ptype=1";
  67. }
  68. }
  69. function pathBrowser(){
  70. JSBrowser=new BrowserObj(document.listform.msgPath,POP,TFILE,<%= Session("FONTSIZE") %>);
  71. }
  72. </SCRIPT>
  73. <SCRIPT SRC="JSBrowser/jsbrwsrc.asp">
  74. </SCRIPT>
  75. <SCRIPT LANGUAGE="JavaScript">
  76. JSBrowser = new BrowserObj(null,false,TFILE,<%= Session("FONTSIZE") %>);
  77. </SCRIPT>
  78. </HEAD>
  79. <BODY BGCOLOR="#FFFFFF" LEFTMARGIN=0 TOPMARGIN=0>
  80. <FORM NAME="listform">
  81. <SCRIPT LANGUAGE="JavaScript">
  82. editOK=false;
  83. sel=eval(headframe.listFunc.sel);
  84. writestr = "<TABLE WIDTH = <%= L_ERRTABLEWIDTH_NUM%> BORDER=0 CELLPADDING=2 CELLSPACING=0>";
  85. for (var i=0;i < headframe.cachedList.length; i++) {
  86. iconstr = "<IMG border=0 SRC='"
  87. if (headframe.cachedList[i].outType=="FILE"){
  88. iconstr += "images/file.gif' ";
  89. }
  90. else{
  91. if (headframe.cachedList[i].outType=="URL"){
  92. iconstr += "images/url.gif' ";
  93. }
  94. else{
  95. iconstr += "images/space.gif' ";
  96. }
  97. }
  98. iconstr += "WIDTH=13 HSPACE = 3 ALIGN=top>";
  99. if (headframe.listFunc.sel !=i) {
  100. writestr += "<TR>"
  101. writestr += headframe.listFunc.writeCol(1,<%= L_ERRORCOLWIDTH_NUM %>,"<A HREF='javascript:chgStatus("+i+");'>" + iconstr + headframe.cachedList[i].errcode + "</A>","");
  102. if (headframe.cachedList[i].outType=="FILE"){
  103. etype = "<%= L_FILE_TEXT %>";
  104. }
  105. else{
  106. if (headframe.cachedList[i].outType=="URL"){
  107. etype = "<%= L_URL_TEXT %>";
  108. }
  109. else{
  110. etype = "<%= L_DEFAULT_TEXT %>";
  111. }
  112. }
  113. writestr += headframe.listFunc.writeCol(1,<%= L_OUTPUTTYPECOLWIDTH_NUM %>,etype,"");
  114. writestr += headframe.listFunc.writeCol(1,<%= L_TEXTORFILECOLWIDTH_NUM %>,headframe.cachedList[i].msgPath,"");
  115. writestr += "</TR>";
  116. }
  117. else{
  118. writestr += "<TR BGCOLOR=#DDDDDD>"
  119. writestr += headframe.listFunc.writeCol(1,<%=L_ERRORCOLWIDTH_NUM %>,"<A HREF='javascript:chgStatus("+i+");'>" + iconstr + headframe.cachedList[i].errcode + "</A>","");
  120. sel = "<%= writeSelect("editMe", "", "SetUpdated();", false) %>";
  121. editOK=true;
  122. if (headframe.cachedList[i].outType=="FILE"){
  123. options = "<OPTION><%= L_DEFAULT_TEXT %>"
  124. options += "<OPTION SELECTED><%= L_FILE_TEXT %>"
  125. if (headframe.cachedList[i].types !=1){
  126. options += "<OPTION><%= L_URL_TEXT %>"
  127. }
  128. }
  129. else{
  130. if (headframe.cachedList[i].outType=="URL"){
  131. options = "<OPTION><%= L_DEFAULT_TEXT %>"
  132. options += "<OPTION><%= L_FILE_TEXT %>"
  133. options += "<OPTION SELECTED><%= L_URL_TEXT %>"
  134. }
  135. else{
  136. options = "<OPTION SELECTED><%= L_DEFAULT_TEXT %>"
  137. options += "<OPTION><%= L_FILE_TEXT %>"
  138. if (headframe.cachedList[i].types !=1){
  139. options += "<OPTION><%= L_URL_TEXT %>"
  140. }
  141. }
  142. }
  143. writestr += headframe.listFunc.writeCol(1,<%=L_OUTPUTTYPECOLWIDTH_NUM %>,sel + options + "</SELECT>","");
  144. if (headframe.cachedList[i].outType != ""){
  145. if (headframe.cachedList[i].outType=="FILE"){
  146. writestr += headframe.listFunc.writeCol(1,<%= L_TEXTORFILECOLWIDTH_NUM %>,"<INPUT NAME='msgPath' VALUE='"+headframe.cachedList[i].msgPath +"' SIZE=35 <%= Session("DEFINPUTSTYLE") %> onBlur='SetPath();'>&nbsp;&nbsp;<% if Session("canBrowse") then %><A HREF='javascript:pathBrowser();'><IMG SRC='images/browse.gif' BORDER=0></A><% end if %>","");
  147. }
  148. else{
  149. writestr += headframe.listFunc.writeCol(1,<%= L_TEXTORFILECOLWIDTH_NUM %>,"<INPUT NAME='msgPath' VALUE='"+headframe.cachedList[i].msgPath +"' SIZE=35 <%= Session("DEFINPUTSTYLE") %> onBlur='SetPath();'>","");
  150. }
  151. }
  152. else{
  153. writestr += headframe.listFunc.writeCol(1,<%= L_TEXTORFILECOLWIDTH_NUM %>,headframe.cachedList[i].msgPath,"");
  154. }
  155. writestr += "</TR>"
  156. }
  157. }
  158. writestr += "</TABLE>";
  159. document.write(writestr);
  160. </SCRIPT>
  161. <P>&nbsp;
  162. <P>&nbsp;
  163. </FORM>
  164. <SCRIPT LANGUAGE="JavaScript">
  165. if (editOK){
  166. document.listform.editMe.focus();
  167. }
  168. </SCRIPT>
  169. </BODY>
  170. </HTML>
  171. <% end if %>