Changeset 12650 for trunk/admin/themes
- Timestamp:
- Nov 21, 2011, 9:46:05 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/rating_user.tpl
r12625 r12650 1 <h2>{$ratings|@count} {'Users'|@translate}</h2> 2 1 3 <form action="{$F_ACTION}" method="GET"> 2 4 <fieldset> … … 19 21 function del(elt,uid,aid) 20 22 { 21 if (!confirm( '{'Are you sure?'|@translate|@escape:'javascript'}'))23 if (!confirm({/literal}'{'Are you sure?'|@translate|@escape:'javascript'}'{literal})) 22 24 return false; 23 25 var tr = elt; 24 26 while ( tr.nodeName != "TR") tr = tr.parentNode; 25 27 tr = jQuery(tr).fadeTo(1000, 0.4); 26 var ws = new PwgWS({/literal}'{$ROOT_URL|@escape:javascript}'{literal}); 27 ws.callService( 28 (new PwgWS({/literal}'{$ROOT_URL|@escape:javascript}'{literal})).callService( 28 29 'pwg.rates.delete', {user_id:uid, anonymous_id:aid}, 29 30 { … … 41 42 <td>{'Number of rates'|@translate}</td> 42 43 <td>{'Average rate'|@translate}</td> 43 <td> StDev</td>44 <td> CV</td>44 <td>{'Variation'|@translate}</td> 45 <td>{'Consensus deviation'|@translate|@replace:' ':'<br>'}</td> 45 46 {foreach from=$available_rates item=rate} 46 47 <td>{$rate}</td> … … 53 54 <td>{$rating.count}</td> 54 55 <td>{$rating.avg|@number_format:2}</td> 55 <td>{$rating.std|@number_format:3}</td>56 56 <td>{$rating.cv|@number_format:3}</td> 57 <td>{$rating.cd|@number_format:3}</td> 57 58 {foreach from=$rating.rates item=rates key=rate} 58 59 <td>{if !empty($rates)} … … 69 70 {combine_script id='jquery.cluetip' load='footer' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'} 70 71 {footer_script require='jquery.cluetip'} 71 {literal}72 jQuery('.cluetip').cluetip({ 73 width: 350,splitTitle: '|'72 jQuery(document).ready(function(){ldelim} 73 jQuery('.cluetip').cluetip({ldelim} 74 width: {$TN_WIDTH}, splitTitle: '|' 74 75 }); 75 {/literal} 76 }) 76 77 {/footer_script}
Note: See TracChangeset
for help on using the changeset viewer.