home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / FAQ / cgi-bin / discus4_00 / source / validate.tmpl < prev    next >
Text File  |  2009-11-06  |  5KB  |  197 lines

  1. # FILE: validate.tmpl
  2. # DESCRIPTION: Skin and template validator results
  3. # Copyright (c) 2002, DiscusWare, LLC, all rights reserved
  4. # -------------------------------------------------------------------------------------------
  5.  
  6. <!--BEGIN-->
  7. <html>
  8. <head>
  9. <title>Skin Validator: "$general->{filename}"</title>
  10. <#dtl off#>
  11. <style type="text/css">
  12. <!--
  13. body {
  14.     margin:0px;
  15.     padding:0px;
  16.     font-family:verdana, arial, helvetica, sans-serif;
  17.     color:#000000;
  18.     background-color:#ffffff;
  19. }
  20.  
  21. #Header {
  22.     margin:20px 0px 10px 0px;
  23.     padding:10px 0px 0px 20px;
  24.     height:33px;
  25.     border-style:solid;
  26.     border-color:black;
  27.     border-width:1px 0px;
  28.     line-height:11px;
  29.     background-color:#eee;
  30.     voice-family: "\"}\"";
  31.     voice-family:inherit;
  32.     height:20px;
  33.     font-size: 8pt;
  34. }
  35.  
  36. .filename {
  37.     font-size: 8pt;
  38.     letter-spacing: 2px;
  39.     padding-left: 10px;
  40.     color: #333366;
  41.     margin-top: 5px;
  42.     font-weight: bold;
  43. }
  44.  
  45. .container {
  46.     font-family: courier new, courier;
  47.     font-size: 9pt;
  48.     padding-left: 5px;
  49.     line-height: 14px;
  50. }
  51.  
  52. .errorhead {
  53.     font-family: arial, helvetica, sans-serif;
  54.     font-size: 10pt;
  55.     font-weight: bold;
  56. }
  57.  
  58. .errordescr {
  59.     font-family: courier new, courier;
  60.     font-size: 10pt;
  61.     color: #0000aa;
  62. }
  63.  
  64. .linenum {
  65.     color: #0000ff;
  66. }
  67.  
  68. .comment {
  69.     color: #119911;
  70.     font-style: italic;
  71. }
  72.  
  73. .notconsidered {
  74.     color: #c0c0c0;
  75. }
  76.  
  77. .beginend {
  78.     color: #0000aa;
  79.     font-weight: bold;
  80. }
  81.  
  82. .highlight {
  83.     background-color: #ff0000;
  84. }
  85.  
  86. .none {color: #000000;}
  87.  
  88. .command {color: #aa00aa;}
  89.  
  90. .control {color: #aa0000;}
  91.  
  92. .define {color: #999900;}
  93.  
  94. -->
  95. </style>
  96. <#dtl on#>
  97. </head>
  98. <body>
  99.  
  100. <form>
  101. <div id="Header">
  102. <span style="font-size: 8pt; font-weight: bold">Skin/Template Validator:</span>
  103. <span class="filename">$general->{filename}</span>
  104. <input type="button" onClick="self.close()" style="float:right; font-size: 8pt; margin-top: -12pt; margin-right: 10pt" value="Close">
  105. </div>
  106. <div>
  107. <pre class="container">
  108. <#foreach $line (@lines)#>
  109.     <#if $line->{class} eq "highlight"#>
  110.         <span class="linenum"><a name="a$line->{linea}">$line->{linenum}</a></span>   \
  111.     <#else#>
  112.         <span class="linenum">$line->{linenum}</span>   \
  113.     <#endif#>
  114.     <span class="$line->{class}">$line->{line}</span>
  115. <#endloop#>
  116. </pre>
  117. </div>
  118.  
  119. <div id="Header">
  120. <span style="font-size: 8pt; font-weight: bold">$#errors error{#if $#errors != 1#}s{#endif#} in this skin/template</span>
  121. <input type="button" onClick="self.close()" style="float:right; font-size: 8pt; margin-top: -12pt; margin-right: 10pt" value="Close">
  122. </div>
  123.  
  124. <#if $#errors > 0#>
  125.     <ol>
  126.     <#foreach $error (@errors)#>
  127.         <li>
  128.         <p>
  129.             <span class="errordescr">Line $error->{line}
  130.                 (<a href="#a$error->{line}">jump</a>)</span><br />
  131.             <#if $error->{code} == 1#>
  132.                 <span class="errorhead">
  133.                     You cannot open the new part "$error->{newpart}"
  134.                     within already open part "$error->{openpart}"
  135.                     (which was opened on line $error->{openline}).  Perhaps you
  136.                     did not close part "$error->{openpart}" yet?
  137.                 </span>
  138.             <#endif#>
  139.             <#if $error->{code} == 2#>
  140.                 <span class="errorhead">
  141.                     You cannot open the new part "$error->{newpart}"
  142.                     within a block IF-THEN-ELSE statement.  Be sure that you have
  143.                     closed the previous IF-THEN-ELSE block beginning with the
  144.                     condition "$error->{lastif}" on line $error->{lastifline}.
  145.                 </span>
  146.             <#endif#>
  147.             <#if $error->{code} == 3#>
  148.                 <span class="errorhead">
  149.                     You cannot close a part when there is not first a part open.
  150.                 </span>
  151.             <#endif#>
  152.             <#if $error->{code} == 4#>
  153.                 <span class="errorhead">
  154.                     You cannot close a part within a block IF-THEN-ELSE statement.
  155.                     Be sure that you have closed the previous IF-THEN-ELSE block
  156.                     beginning with the condition "$error->{lastif}" on
  157.                     line $error->{lastifline}.
  158.                 </span>
  159.             <#endif#>
  160.             <#if $error->{code} == 5#>
  161.                 <span class="errorhead">
  162.                     You cannot use a block <#else#> statement when you have not
  163.                     opened the block with a corresponding <#if ...#> statement.
  164.                 </span>
  165.             <#endif#>
  166.             <#if $error->{code} == 6#>
  167.                 <span class="errorhead">
  168.                     You cannot use a block <#endif#> statement when you have not
  169.                     opened the block with a corresponding <#if ...#> statement.
  170.                 </span>
  171.             <#endif#>
  172.             <#if $error->{code} == 7#>
  173.                 <span class="errorhead">
  174.                     You have already used a block <#else#> statement within this
  175.                     block (on line $error->{blockelseline}).  This error corresponds to
  176.                     the IF-THEN-ELSE block begun on line $error->{lastifline} with the
  177.                     condition "$error->{lastif}".
  178.                 </span>
  179.             <#endif#>
  180.             <#if $error->{code} == 8#>
  181.                 <span class="errorhead">
  182.                     This line contains at least one unrecognized variable or command
  183.                     code.
  184.                 </span>
  185.             <#endif#>
  186.         </p>
  187.         </li>
  188.     
  189.     <#endloop#>
  190.     </ol>
  191. <#endif#>    
  192. </form>
  193. <p> </p>
  194. </body>
  195. </html>
  196. <!--END-->
  197.