- qpscanner/circuits/scanner/dsp_html.cfm
- v0.7.4
- 2 KB
- 60
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
9 from #Info.Totals.QueryCount# queries
10 across #Info.Totals.FileCount# files
11 in approx #(Info.Totals.Time\100)/10# seconds <cfif Info.Timeout>(timed out)</cfif>.</p>
12 </cfoutput>
13
14<cfif Data.RecordCount>
15 <script type="text/javascript" src="./resources/scripts/scan-results.js"></script>
16 <br/>
17 <form:controls id="DisplayOptions">Enable JavaScript to allow display options.</form:controls>
18
19
20 <form:group id="results">
21 <dl>
22 <cfoutput query="Data" group="FileId">
23 <dt class="file">
24 <!---
25 <input id="#FileId#" type="checkbox" name="Files" value="#FileName#"/>
26 --->
27 <label for="#FileId#">#FileName#</label>
28 <span class="summary">
29 - <strong class="alert">#QueryAlertCount#</strong> queries to check:
30 </span>
31 </dt>
32 <dd class="file_info" id="#FileId#_queries">
33 <dl>
34 <cfoutput>
35 <dt class="query<cfif Len(ScopeList) AND ContainsClientScope> ContainsClientScope</cfif>">
36 <label class="name" for="#QueryId#">#QueryName#</label>
37 <cfif isNumeric(QueryStartLine)><small class="lines">(lines #QueryStartLine#..#QueryEndLine#)</small></cfif>
38 <cfif Len(ScopeList)>
39 <span class="scope_info">Scopes: #XmlFormat(ScopeList)# <cfif ContainsClientScope><em>!!!CLIENT SCOPE!!!</em></cfif></span>
40 </cfif>
41 </dt>
42 <cfset QCode = jre.replace( HtmlEditFormat(QueryCode) , '(?<!\A)\n\r?' , '<br/>' , 'all' )/>
43 <dd class="query_code" id="#QueryId#">#QCode#</dd>
44 </cfoutput>
45 </dl>
46 </dd>
47 </cfoutput>
48 </dl>
49 </form:group>
50
51 <!--- TODO: MINOR: Implement auto-fixing... --->
52 <!---
53 <form:controls>
54 <form:submit value="Fix All"/>
55 <form:submit value="Fix Selection"/>
56 </form:controls>
57 --->
58
59 </cfif>
60
61</form:main>