- qpscanner/views/results/html.cfm
- 2 KB
- 51
1<cfset Data = rc.ScanResults.Data />
2<cfset Info = rc.ScanResults.Info />
3
4<cfoutput>
5 <p>Found #Info.Totals.AlertCount# potential risks across #Info.Totals.RiskFileCount# files,
6 out of #Info.Totals.QueryCount# total queries in #Info.Totals.FileCount# scanned files,
7 taking approx #(Info.Totals.Time\100)/10# seconds<cfif Info.Timeout> (timed out)</cfif>.</p>
8</cfoutput>
9
10<cfif Data.RecordCount>
11 <script type="text/javascript" src="./resources/scripts/scan-results.js"></script>
12 <br/>
13 <fieldset class="controls" id="DisplayOptions">
14 Enable JavaScript to allow display options.
15 </fieldset>
16
17
18 <fieldset class="main" id="results">
19 <dl>
20 <cfoutput query="Data" group="FileId">
21 <dt class="file">
22 <!---
23 <input id="#FileId#" type="checkbox" name="Files" value="#FileName#"/>
24 --->
25 <label for="#FileId#">#FileName#</label>
26 <span class="summary">
27 - <strong class="alert">#QueryAlertCount#</strong> queries to check:
28 </span>
29 <small class="id">#FileId#</small>
30 </dt>
31 <dd class="file_info" id="#FileId#_queries">
32 <dl>
33 <cfoutput>
34 <dt class="query<cfif Len(ScopeList) AND ContainsClientScope> ContainsClientScope</cfif>">
35 <label class="name" for="#QueryId#">#QueryName#</label>
36 <cfif isNumeric(QueryStartLine)><small class="lines">(lines #QueryStartLine#..#QueryEndLine#)</small></cfif>
37 <cfif Len(ScopeList)>
38 <span class="scope_info">Scopes: #XmlFormat(ScopeList)# <cfif ContainsClientScope><em>!!!CLIENT SCOPE!!!</em></cfif></span>
39 </cfif>
40 <small class="id">#QueryId#</small>
41 </dt>
42 <cfset QCode = HtmlEditFormat(QueryCode).replaceAll( '(?<!\A)\r?\n' , '<br/>' )/>
43 <dd class="query_code" id="#QueryId#">#QCode#</dd>
44 </cfoutput>
45 </dl>
46 </dd>
47 </cfoutput>
48 </dl>
49 </fieldset>
50
51 </cfif>