| 1 | {capture append='specialStyles'} |
|---|
| 2 | <style type="text/css"> |
|---|
| 3 | /*<![CDATA[*/ |
|---|
| 4 | .statBar { |
|---|
| 5 | text-align: left; |
|---|
| 6 | padding: 1px; |
|---|
| 7 | background-color: #fff; |
|---|
| 8 | border: 1px solid #8da4b7; |
|---|
| 9 | float: left; |
|---|
| 10 | width: 400px; |
|---|
| 11 | } |
|---|
| 12 | |
|---|
| 13 | .statBar div { |
|---|
| 14 | font-size: 6px; /* needed for correct usage-bar display in IE-browsers */ |
|---|
| 15 | background-color: #0c0; |
|---|
| 16 | border-bottom: 6px solid #0a0; |
|---|
| 17 | height: 6px; |
|---|
| 18 | } |
|---|
| 19 | |
|---|
| 20 | .statBarLabel { |
|---|
| 21 | margin-left: 410px; |
|---|
| 22 | } |
|---|
| 23 | /*]]>*/ |
|---|
| 24 | </style> |
|---|
| 25 | {/capture} |
|---|
| 26 | {include file='header'} |
|---|
| 27 | |
|---|
| 28 | <div class="mainHeadline"> |
|---|
| 29 | <img src="{@RELATIVE_WCF_DIR}icon/statsL.png" alt="" /> |
|---|
| 30 | <div class="headlineContainer"> |
|---|
| 31 | <h2>{lang}wcf.acp.stats{/lang}</h2> |
|---|
| 32 | </div> |
|---|
| 33 | </div> |
|---|
| 34 | |
|---|
| 35 | {if $errorField} |
|---|
| 36 | <p class="error">{lang}wcf.global.form.error{/lang}</p> |
|---|
| 37 | {/if} |
|---|
| 38 | |
|---|
| 39 | {if $results|isset && !$results|count} |
|---|
| 40 | <p class="error">{lang}wcf.acp.stats.noResults{/lang}</p> |
|---|
| 41 | {/if} |
|---|
| 42 | {* |
|---|
| 43 | <form method="post" action="index.php?form=Stats"> |
|---|
| 44 | <div class="border content"> |
|---|
| 45 | <div class="container-1"> |
|---|
| 46 | <fieldset> |
|---|
| 47 | <legend>{lang}wcf.acp.stats.config{/lang}</legend> |
|---|
| 48 | |
|---|
| 49 | <div class="formElement{if $errorField == 'username'} formError{/if}"> |
|---|
| 50 | <div class="formFieldLabel"> |
|---|
| 51 | <label for="username">{lang}wcf.user.username{/lang}</label> |
|---|
| 52 | </div> |
|---|
| 53 | <div class="formField"> |
|---|
| 54 | <input type="text" class="inputText" id="username" name="username" value="" /> |
|---|
| 55 | {if $errorField == 'username'} |
|---|
| 56 | <p class="innerError"> |
|---|
| 57 | {if $errorType == 'notFound'}{lang}wcf.user.error.username.notFound{/lang}{/if} |
|---|
| 58 | </p> |
|---|
| 59 | {/if} |
|---|
| 60 | </div> |
|---|
| 61 | </div> |
|---|
| 62 | |
|---|
| 63 | {if $additionalFields|isset}{@$additionalFields}{/if} |
|---|
| 64 | </fieldset> |
|---|
| 65 | </div> |
|---|
| 66 | </div> |
|---|
| 67 | |
|---|
| 68 | <div class="formSubmit"> |
|---|
| 69 | <input type="submit" accesskey="s" value="{lang}wcf.global.button.submit{/lang}" /> |
|---|
| 70 | <input type="reset" accesskey="r" value="{lang}wcf.global.button.reset{/lang}" /> |
|---|
| 71 | <input type="hidden" name="packageID" value="{@PACKAGE_ID}" /> |
|---|
| 72 | {@SID_INPUT_TAG} |
|---|
| 73 | </div> |
|---|
| 74 | </form> |
|---|
| 75 | *} |
|---|
| 76 | {if $results|isset && $results|count} |
|---|
| 77 | <div class="border content"> |
|---|
| 78 | <div class="container-1"> |
|---|
| 79 | <fieldset> |
|---|
| 80 | <legend>{lang}wcf.acp.stats.results{/lang}</legend> |
|---|
| 81 | |
|---|
| 82 | {foreach from=$results item=result key=$type} |
|---|
| 83 | <div class="formElement"> |
|---|
| 84 | <p class="formFieldLabel">{$type}</p> |
|---|
| 85 | <div class="formField"><div class="statBar"><div style="width: {$result.percent|round}%;"></div></div><p class="statBarLabel">{#$result.current}/{#$result.total}</p></div> |
|---|
| 86 | </div> |
|---|
| 87 | |
|---|
| 88 | {/foreach} |
|---|
| 89 | </fieldset> |
|---|
| 90 | </div> |
|---|
| 91 | </div> |
|---|
| 92 | {/if} |
|---|
| 93 | |
|---|
| 94 | {include file='footer'} |
|---|