- qpscanner/circuits/scanner/dsp_html.cfm
- v0.7.5
- 2 KB
- 59
1<cfimport prefix="form" taglib="../../tags/form"/>
2
3<form:main><!---action="#link(xfa.FormAction)#"--->
4
5 <form:hidden id="instance" value="#Instance#"/>
6
7 <cfoutput>
8 <p>Found #Info.Totals.AlertCount# potential risks across #Info.Totals.RiskFileCount# files,
9 out of #Info.Totals.QueryCount# total queries in #Info.Totals.FileCount# scanned files,
10 taking approx #(Info.Totals.Time\100)/10# seconds<cfif Info.Timeout> (timed out)</cfif>.</p>
11 </cfoutput>
12
13<cfif Data.RecordCount>
14 <script type="text/javascript" src="./resources/scripts/scan-results.js"></script>
15 <br/>
16 <form:controls id="DisplayOptions">Enable JavaScript to allow display options.</form:controls>
17
18
19 <form:group id="results">
20 <dl>
21 <cfoutput query="Data" group="FileId">
22 <dt class="file">
23 <!---
24 <input id="#FileId#" type="checkbox" name="Files" value="#FileName#"/>
25 --->
26 <label for="#FileId#">#FileName#</label>
27 <span class="summary">
28 - <strong class="alert">#QueryAlertCount#</strong> queries to check:
29 </span>
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 </dt>
41 <cfset QCode = HtmlEditFormat(QueryCode).replaceAll( '(?<!\A)\r?\n' , '<br/>' )/>
42 <dd class="query_code" id="#QueryId#">#QCode#</dd>
43 </cfoutput>
44 </dl>
45 </dd>
46 </cfoutput>
47 </dl>
48 </form:group>
49
50 <!--- TODO: MINOR: Implement auto-fixing... --->
51 <!---
52 <form:controls>
53 <form:submit value="Fix All"/>
54 <form:submit value="Fix Selection"/>
55 </form:controls>
56 --->
57
58 </cfif>
59
60</form:main>