home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
FAQ
/
discus_admin_1357211388
/
template
/
admin
/
validate.tmpl
< prev
next >
Wrap
Text File
|
2009-11-06
|
5KB
|
197 lines
# FILE: validate.tmpl
# DESCRIPTION: Skin and template validator results
# Copyright (c) 2002, DiscusWare, LLC, all rights reserved
# -------------------------------------------------------------------------------------------
<!--BEGIN-->
<html>
<head>
<title>Skin Validator: "$general->{filename}"</title>
<#dtl off#>
<style type="text/css">
<!--
body {
margin:0px;
padding:0px;
font-family:verdana, arial, helvetica, sans-serif;
color:#000000;
background-color:#ffffff;
}
#Header {
margin:20px 0px 10px 0px;
padding:10px 0px 0px 20px;
height:33px;
border-style:solid;
border-color:black;
border-width:1px 0px;
line-height:11px;
background-color:#eee;
voice-family: "\"}\"";
voice-family:inherit;
height:20px;
font-size: 8pt;
}
.filename {
font-size: 8pt;
letter-spacing: 2px;
padding-left: 10px;
color: #333366;
margin-top: 5px;
font-weight: bold;
}
.container {
font-family: courier new, courier;
font-size: 9pt;
padding-left: 5px;
line-height: 14px;
}
.errorhead {
font-family: arial, helvetica, sans-serif;
font-size: 10pt;
font-weight: bold;
}
.errordescr {
font-family: courier new, courier;
font-size: 10pt;
color: #0000aa;
}
.linenum {
color: #0000ff;
}
.comment {
color: #119911;
font-style: italic;
}
.notconsidered {
color: #c0c0c0;
}
.beginend {
color: #0000aa;
font-weight: bold;
}
.highlight {
background-color: #ff0000;
}
.none {color: #000000;}
.command {color: #aa00aa;}
.control {color: #aa0000;}
.define {color: #999900;}
-->
</style>
<#dtl on#>
</head>
<body>
<form>
<div id="Header">
<span style="font-size: 8pt; font-weight: bold">Skin/Template Validator:</span>
<span class="filename">$general->{filename}</span>
<input type="button" onClick="self.close()" style="float:right; font-size: 8pt; margin-top: -12pt; margin-right: 10pt" value="Close">
</div>
<div>
<pre class="container">
<#foreach $line (@lines)#>
<#if $line->{class} eq "highlight"#>
<span class="linenum"><a name="a$line->{linea}">$line->{linenum}</a></span> \
<#else#>
<span class="linenum">$line->{linenum}</span> \
<#endif#>
<span class="$line->{class}">$line->{line}</span>
<#endloop#>
</pre>
</div>
<div id="Header">
<span style="font-size: 8pt; font-weight: bold">$#errors error{#if $#errors != 1#}s{#endif#} in this skin/template</span>
<input type="button" onClick="self.close()" style="float:right; font-size: 8pt; margin-top: -12pt; margin-right: 10pt" value="Close">
</div>
<#if $#errors > 0#>
<ol>
<#foreach $error (@errors)#>
<li>
<p>
<span class="errordescr">Line $error->{line}
(<a href="#a$error->{line}">jump</a>)</span><br />
<#if $error->{code} == 1#>
<span class="errorhead">
You cannot open the new part "$error->{newpart}"
within already open part "$error->{openpart}"
(which was opened on line $error->{openline}). Perhaps you
did not close part "$error->{openpart}" yet?
</span>
<#endif#>
<#if $error->{code} == 2#>
<span class="errorhead">
You cannot open the new part "$error->{newpart}"
within a block IF-THEN-ELSE statement. Be sure that you have
closed the previous IF-THEN-ELSE block beginning with the
condition "$error->{lastif}" on line $error->{lastifline}.
</span>
<#endif#>
<#if $error->{code} == 3#>
<span class="errorhead">
You cannot close a part when there is not first a part open.
</span>
<#endif#>
<#if $error->{code} == 4#>
<span class="errorhead">
You cannot close a part within a block IF-THEN-ELSE statement.
Be sure that you have closed the previous IF-THEN-ELSE block
beginning with the condition "$error->{lastif}" on
line $error->{lastifline}.
</span>
<#endif#>
<#if $error->{code} == 5#>
<span class="errorhead">
You cannot use a block <#else#> statement when you have not
opened the block with a corresponding <#if ...#> statement.
</span>
<#endif#>
<#if $error->{code} == 6#>
<span class="errorhead">
You cannot use a block <#endif#> statement when you have not
opened the block with a corresponding <#if ...#> statement.
</span>
<#endif#>
<#if $error->{code} == 7#>
<span class="errorhead">
You have already used a block <#else#> statement within this
block (on line $error->{blockelseline}). This error corresponds to
the IF-THEN-ELSE block begun on line $error->{lastifline} with the
condition "$error->{lastif}".
</span>
<#endif#>
<#if $error->{code} == 8#>
<span class="errorhead">
This line contains at least one unrecognized variable or command
code.
</span>
<#endif#>
</p>
</li>
<#endloop#>
</ol>
<#endif#>
</form>
<p> </p>
</body>
</html>
<!--END-->