Ignore:
Timestamp:
May 14, 2013, 9:30:26 PM (11 years ago)
Author:
rvelices
Message:

feature 2885: Add geoip info in the stats / history page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/history.tpl

    r14688 r22664  
    77{/literal}{/footer_script}
    88
    9 <div class="titrePage">
    10   <h2>{'History'|@translate} {$TABSHEET_TITLE}</h2>
    11 </div>
     9<h2>{'History'|@translate} {$TABSHEET_TITLE}</h2>
    1210
    1311<form class="filter" method="post" name="filter" action="{$F_ACTION}">
     
    8482  </label>
    8583
    86   <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}">
     84  <input type="submit" name="submit" value="{'Submit'|@translate}">
    8785</fieldset>
    8886</form>
     
    125123  <td class="hour">{$detail.TIME}</td>
    126124  <td>{$detail.USER}</td>
    127   <td>{$detail.IP}</td>
     125  <td class="IP">{$detail.IP}</td>
    128126  <td>{$detail.IMAGE}</td>
    129127  <td>{$detail.TYPE}</td>
     
    137135
    138136{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
     137
     138{combine_script id='jquery.geoip' load='async' path='admin/themes/default/js/jquery.geoip.js'}
     139{combine_script id='jquery.ui.tooltip' load='footer'}
     140
     141{footer_script}{literal}
     142jQuery(".IP").tooltip( {
     143        items: "*",
     144        /*show: {delay:0, effect:"show"},
     145        hide: {delay:50, effect:"hide"},*/
     146        content: function(response) {
     147                var that = $(this);
     148                GeoIp.get( that.text(), function(data) {
     149                        response( data.fullName );
     150                });
     151        }
     152});
     153{/literal}{/footer_script}
Note: See TracChangeset for help on using the changeset viewer.