[4270] | 1 | |
---|
| 2 | {literal} |
---|
| 3 | <script type="text/javascript"> |
---|
| 4 | |
---|
| 5 | function loadUser(userId) |
---|
| 6 | { |
---|
| 7 | $.get("{/literal}{$datas.ajaxUrl}{literal}", |
---|
| 8 | { ajaxfct: "userStat", userId: userId }, |
---|
| 9 | function (data) |
---|
| 10 | { |
---|
| 11 | $("#userDetail").html(data); |
---|
| 12 | } |
---|
| 13 | ); |
---|
| 14 | } |
---|
| 15 | |
---|
| 16 | </script> |
---|
| 17 | |
---|
| 18 | {/literal} |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | <div id="userList" style="margin-bottom:20px;"> |
---|
| 22 | {if isset($datas.users) and count($datas.users)} |
---|
| 23 | <table class="table2 littlefont" > |
---|
| 24 | <tr class="throw"> |
---|
| 25 | <td rowspan="2">{'us_userName'|@translate}</td> |
---|
| 26 | <td colspan="7">{'us_userRating'|@translate}</td> |
---|
| 27 | <td colspan="3">{'us_userComments'|@translate}</td> |
---|
| 28 | </tr> |
---|
| 29 | <tr class="throw"> |
---|
| 30 | <td>{'us_userNbRates'|@translate}</td> |
---|
| 31 | <td>{'us_userMaxRate'|@translate}</td> |
---|
| 32 | <td>{'us_userMinRate'|@translate}</td> |
---|
| 33 | <td>{'us_userAvgRate'|@translate}</td> |
---|
| 34 | <td>{'us_userDevRate'|@translate}</td> |
---|
| 35 | <td>{'us_userLastDayR'|@translate}</td> |
---|
| 36 | <td>{'us_userDelayR'|@translate}</td> |
---|
| 37 | <td>{'us_userNbComments'|@translate}</td> |
---|
| 38 | <td>{'us_userLastDayC'|@translate}</td> |
---|
| 39 | <td>{'us_userDelayC'|@translate}</td> |
---|
| 40 | </tr> |
---|
| 41 | {foreach from=$datas.users key=name item=data} |
---|
| 42 | <tr class="StatTableRow" style="cursor:pointer;" onclick="loadUser({$data.id})"> |
---|
| 43 | <td class="toLeft">{$data.name}</td> |
---|
| 44 | <td>{$data.nbRates}</td> |
---|
| 45 | <td>{$data.maxRate}</td> |
---|
| 46 | <td>{$data.minRate}</td> |
---|
| 47 | <td>{$data.avgRate}</td> |
---|
| 48 | <td>{$data.devRate}</td> |
---|
| 49 | <td>{$data.lastDayR}</td> |
---|
| 50 | <td>{$data.delayR}</td> |
---|
| 51 | <td>{$data.nbComments}</td> |
---|
| 52 | <td>{$data.lastDayC}</td> |
---|
| 53 | <td>{$data.delayC}</td> |
---|
| 54 | </tr> |
---|
| 55 | {/foreach} |
---|
| 56 | </table> |
---|
| 57 | {/if} |
---|
| 58 | </div> |
---|
| 59 | |
---|
| 60 | <div id="userDetail"> |
---|
| 61 | </div> |
---|
| 62 | |
---|