|
| 1 | +<cfsetting enablecfoutputonly="true"> |
| 2 | +<!----------------------------------------------------------------------- |
| 3 | +******************************************************************************** |
| 4 | +Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp |
| 5 | +www.coldbox.org | www.luismajano.com | www.ortussolutions.com |
| 6 | +******************************************************************************** |
| 7 | +
|
| 8 | +Template : debug.cfm |
| 9 | +Author : Luis Majano |
| 10 | +Date : September 25, 2005 |
| 11 | +Description : |
| 12 | + Debugging template for the application |
| 13 | +-----------------------------------------------------------------------> |
| 14 | +<cfoutput> |
| 15 | + <div class="fw_titles" onClick="fw_toggle('fw_qbPanel')" > |
| 16 | + qb |
| 17 | + </div> |
| 18 | + <div class="fw_debugContent<cfif instance.debuggerConfig.expandedQBPanel>View</cfif>" id="fw_qbPanel"> |
| 19 | + <cfif NOT getController().getModuleService().isModuleRegistered( "qb" )> |
| 20 | + qb is not installed or registered. |
| 21 | + <cfelse> |
| 22 | + <cfif NOT request.cbdebugger.keyExists( "qbQueries" ) OR request.cbdebugger.qbQueries.isEmpty()> |
| 23 | + No queries executed |
| 24 | + <cfelse> |
| 25 | + <table border="0" align="center" cellpadding="0" cellspacing="1" class="fw_debugTables"> |
| 26 | + <thead> |
| 27 | + <tr> |
| 28 | + <th width="5%">Count</th> |
| 29 | + <th>Query</th> |
| 30 | + </tr> |
| 31 | + </thead> |
| 32 | + <tbody> |
| 33 | + <cfloop array="#request.cbdebugger.qbQueries.keyArray()#" index="sql"> |
| 34 | + <tr> |
| 35 | + <td align="center">#request.cbdebugger.qbQueries[ sql ].len()#</td> |
| 36 | + <td>#sql#</td> |
| 37 | + </tr> |
| 38 | + <tr style="margin-right: 2em;"> |
| 39 | + <td></td> |
| 40 | + <td style="width: 100%;"> |
| 41 | + <table border="0" align="center" cellpadding="0" cellspacing="1" class="fw_debugTables"> |
| 42 | + <thead> |
| 43 | + <tr> |
| 44 | + <th>Timestamp</th> |
| 45 | + <th>Execution Time</th> |
| 46 | + <th>Bindings</th> |
| 47 | + </tr> |
| 48 | + </thead> |
| 49 | + <tbody> |
| 50 | + <cfloop array="#request.cbdebugger.qbQueries[ sql ]#" index="q"> |
| 51 | + <tr> |
| 52 | + <td>#TimeFormat(q.timestamp,"hh:MM:SS.l tt")#</td> |
| 53 | + <td>#q.executionTime# ms</td> |
| 54 | + <td><cfdump var="#q.bindings#" expand="false" /></td> |
| 55 | + </tr> |
| 56 | + </cfloop> |
| 57 | + </tbody> |
| 58 | + </table> |
| 59 | + </td> |
| 60 | + </tr> |
| 61 | + </cfloop> |
| 62 | + </tbody> |
| 63 | + </table> |
| 64 | + <!--- <table border="0" align="center" cellpadding="0" cellspacing="1" class="fw_debugTables"> |
| 65 | + <thead> |
| 66 | + <tr> |
| 67 | + <th>Timestamp</th> |
| 68 | + <th width="80%">Query</th> |
| 69 | + <th align="center">Execution Time</th> |
| 70 | + <th>Bindings</th> |
| 71 | + </tr> |
| 72 | + </thead> |
| 73 | + <tbody> |
| 74 | + <cfloop array="#request.cbdebugger.qbQueries#" index="q"> |
| 75 | + <tr <cfif debugTimers.currentrow mod 2 eq 0>class="even"</cfif>> |
| 76 | + <td>#TimeFormat(q.timestamp,"hh:MM:SS.l tt")#</td> |
| 77 | + <td>#q.sql#</td> |
| 78 | + <td>#q.executionTime# ms</td> |
| 79 | + <td><cfdump var="#q.bindings#" expand="false" /></td> |
| 80 | + </tr> |
| 81 | + </cfloop> |
| 82 | + </tbody> |
| 83 | + </table> ---> |
| 84 | + </cfif> |
| 85 | + </cfif> |
| 86 | + </div> |
| 87 | +</cfoutput> |
| 88 | +<cfsetting enablecfoutputonly="false"> |
0 commit comments