Commit | Line | Data |
---|---|---|
5d3e8144 TD |
1 | {include file='header' pageTitle='wcf.acp.exceptionLog'} |
2 | <script type="text/javascript"> | |
3 | //<![CDATA[ | |
4 | $(function() { | |
5 | {if $exceptionID}window.location.hash = '{$exceptionID|encodeJS}';{/if} | |
6 | WCF.Collapsible.Simple.init(); | |
7 | ||
8 | $('#exceptionID').on('keyup keydown keypress', function () { | |
9 | if ($.trim($(this).val()) == '') { | |
10 | $('#logFile').enable().parents('dl').removeClass('disabled'); | |
11 | } | |
12 | else { | |
13 | $('#logFile').disable().parents('dl').addClass('disabled'); | |
14 | } | |
15 | }).trigger('keypress'); | |
16 | ||
17 | $('.jsCopyException').click(function () { | |
18 | $(this).select(); | |
19 | }); | |
20 | }); | |
21 | //]]> | |
22 | </script> | |
23 | ||
24 | <header class="boxHeadline"> | |
25 | <hgroup> | |
26 | <h1>{lang}wcf.acp.exceptionLog{/lang}</h1> | |
27 | </hgroup> | |
28 | </header> | |
29 | ||
30 | <form action="{link controller='ExceptionLogView'}{/link}"> | |
31 | <div class="container containerPadding marginTop"> | |
32 | <fieldset><legend>{lang}wcf.acp.exceptionLog.search{/lang}</legend> | |
33 | <dl> | |
34 | <dt><label for="exceptionID">{lang}wcf.acp.exceptionLog.search.exceptionID{/lang}</label></dt> | |
35 | <dd> | |
36 | <input type="search" id="exceptionID" name="exceptionID" value="{$exceptionID}" autofocus="autofocus" class="medium" /> | |
37 | </dd> | |
38 | </dl> | |
39 | <dl> | |
40 | <dt><label for="logFile">{lang}wcf.acp.exceptionLog.search.logFile{/lang}</label></dt> | |
41 | <dd> | |
42 | <select id="logFile" name="logFile"> | |
43 | {htmlOptions options=$logFiles selected=$logFile} | |
44 | </select> | |
45 | </dd> | |
46 | </dl> | |
47 | </fieldset> | |
48 | ||
49 | <div class="formSubmit"> | |
50 | <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" /> | |
51 | {@SID_INPUT_TAG} | |
52 | </div> | |
53 | </div> | |
54 | </form> | |
55 | ||
56 | <div class="contentNavigation"> | |
57 | {pages print=true controller="ExceptionLogView" link="pageNo=%d&logFile=$logFile"} | |
58 | ||
59 | {hascontent} | |
60 | <nav> | |
61 | <ul> | |
62 | {content} | |
63 | {event name='contentNavigationButtonsTop'} | |
64 | {/content} | |
65 | </ul> | |
66 | </nav> | |
67 | {/hascontent} | |
68 | </div> | |
69 | ||
70 | {if $logFile} | |
71 | {foreach from=$exceptions item='exception' key='exceptionKey'} | |
72 | <div class="tabularBox tabularBoxTitle marginTop" id="{$exceptionKey}"> | |
73 | <hgroup> | |
74 | <h1><a class="jsCollapsible jsTooltip" data-is-open="{if $exceptionKey == $exceptionID}1{else}0{/if}" data-collapsible-container="exception_{$exceptionKey}" title="{lang}wcf.global.button.collapsible{/lang}" class="jsTooltip"><span class="icon icon16 icon-chevron-{if $exceptionKey == $exceptionID}down{else}right{/if}"></span></a> {$exception[message]}</h1> | |
75 | <h2>{$exception[date]|strtotime|plainTime}</h2> | |
76 | </hgroup> | |
77 | ||
78 | <div id="exception_{$exceptionKey}" class="container containerPadding" {if $exceptionKey != $exceptionID} style="display: none;"{/if}> | |
79 | <dl> | |
80 | <dt>{lang}wcf.acp.exceptionLog.exception.file{/lang}</dt> | |
81 | <dd>{$exception[file]} ({$exception[line]})</dd> | |
82 | </dl> | |
83 | <dl> | |
84 | <dt>{lang}wcf.acp.exceptionLog.exception.phpVersion{/lang}</dt> | |
85 | <dd>{$exception[phpVersion]}</dd> | |
86 | </dl> | |
87 | <dl> | |
88 | <dt>{lang}wcf.acp.exceptionLog.exception.wcfVersion{/lang}</dt> | |
89 | <dd>{$exception[wcfVersion]}</dd> | |
90 | </dl> | |
91 | <dl> | |
92 | <dt>{lang}wcf.acp.exceptionLog.exception.requestURI{/lang}</dt> | |
93 | <dd>{$exception[requestURI]}</dd> | |
94 | </dl> | |
95 | <dl> | |
96 | <dt>{lang}wcf.acp.exceptionLog.exception.referrer{/lang}</dt> | |
97 | <dd>{$exception[referrer]}</dd> | |
98 | </dl> | |
99 | <dl> | |
100 | <dt>{lang}wcf.acp.exceptionLog.exception.stacktrace{/lang}</dt> | |
101 | <dd style="font-family: monospace; word-wrap: wrap-all; word-break: break-all;"> | |
102 | <ul> | |
103 | <li>{@"</li><li>"|implode:$exception[stacktrace]}</li> | |
104 | </ul> | |
105 | </dd> | |
106 | </dl> | |
107 | <dl> | |
108 | <dt>{lang}wcf.acp.exceptionLog.exception.copy{/lang}</dt> | |
109 | <dd><textarea rows="5" cols="40" class="jsCopyException" readonly="readonly">{$exception[0]}</textarea></dd> | |
110 | </dl> | |
111 | </div> | |
112 | </div> | |
113 | {/foreach} | |
114 | {elseif $exceptionID} | |
115 | <p class="error">{lang}wcf.acp.exceptionLog.exceptionNotFound{/lang}</p> | |
116 | {/if} | |
117 | {include file='footer'} |