{combine_script id='jquery.dataTables' load='footer' path='themes/default/js/plugins/jquery.dataTables.js'} {html_style} .sorting { background: url({$ROOT_URL}themes/default/js/plugins/datatables/images/sort_both.png) no-repeat center right; cursor:pointer; } .sorting_asc { background: url({$ROOT_URL}themes/default/js/plugins/datatables/images/sort_asc.png) no-repeat center right; } .sorting_desc { background: url({$ROOT_URL}themes/default/js/plugins/datatables/images/sort_desc.png) no-repeat center right; } .sorting, .sorting_asc, .sorting_desc { padding: 3px 18px 3px 10px; } .sorting_asc_disabled { background: url({$ROOT_URL}themes/default/js/plugins/datatables/images/sort_asc_disabled.png) no-repeat center right; } .sorting_desc_disabled { background: url({$ROOT_URL}themes/default/js/plugins/datatables/images/sort_desc_disabled.png) no-repeat center right; } .dtBar { text-align:left; padding-left: 20px; } {/html_style}

{$ratings|@count} {'Users'|@translate}

{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} {footer_script} var oTable = jQuery('#rateTable').dataTable({ sDom : '<"dtBar"f>rt', bPaginate: false, aaSorting: [[5,'desc']], aoColumnDefs: [ /*{ aTargets: ["dtc_user"] },*/ { aTargets: ["dtc_date"], asSorting: ["desc","asc"] }, { aTargets: ["dtc_stat"], asSorting: ["desc","asc"], bSearchable: false }, { aTargets: ["dtc_rate"], asSorting: ["desc","asc"], bSearchable: false }, { aTargets: ["dtc_del"], bSortable: false, bSearchable: false } ] }); function del(elt,uid,aid){ if (!confirm('{'Are you sure?'|@translate|@escape:'javascript'}')) return false; var tr = elt; while ( tr.nodeName != "TR") tr = tr.parentNode; tr = jQuery(tr).fadeTo(1000, 0.4); (new PwgWS('{$ROOT_URL|@escape:javascript}')).callService( 'pwg.rates.delete', { user_id:uid, anonymous_id:aid}, { method: 'POST', onFailure: function(num, text) { tr.stop(); tr.fadeTo(0,1); alert(num + " " + text); }, onSuccess: function(result){ if (result) oTable.fnDeleteRow(tr[0]); else alert(result); } } ); return false; } {/footer_script} {foreach from=$available_rates item=rate} {/foreach} {foreach from=$ratings item=rating key=user} {foreach from=$rating.rates item=rates key=rate} {/foreach} {/foreach}
{'Username'|@translate} {'Last'|@translate} {'Number of rates'|@translate} {'Average rate'|@translate} {'Variation'|@translate} {'Consensus deviation'|@translate|@replace:' ':'
'}
{'Consensus deviation'|@translate|@replace:' ':'
'} {$CONSENSUS_TOP_NUMBER}
{$rate}
{$user} {$rating.last_date} {$rating.count} {$rating.avg|@number_format:2} {$rating.cv|@number_format:3} {$rating.cd|@number_format:3} {if !empty($rating.cdtop)}{$rating.cdtop|@number_format:3}{/if}{if !empty($rates)} {capture assign=rate_over}{foreach from=$rates item=rate_arr}thumb-{$rate_arr.id} {/foreach}{/capture} {$rates|@count} {/if}
{combine_script id='jquery.cluetip' load='footer' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'} {footer_script require='jquery.cluetip'} jQuery(document).ready(function(){ldelim} jQuery('.cluetip').cluetip({ldelim} width: {$TN_WIDTH}, showTitle:false, splitTitle: '|' }); }) {/footer_script}