Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | function gestion_auteurs_header_prive($flux) { |
---|
4 | if(_request('exec')=='auteurs') |
---|
5 | $flux .= "<script src='"._DIR_PLUGIN_GESTION_AUTEURS."treemap.js'></script> |
---|
6 | <script type='text/javascript'> |
---|
7 | jQuery(function(){ |
---|
8 | jQuery('#auteurs_nav').treemap(500,250,{getData:getDataAuteurs,sort:false}); |
---|
9 | }); |
---|
10 | function getDataAuteurs(el) { |
---|
11 | var data = []; |
---|
12 | jQuery('li',el).each(function(){ |
---|
13 | var mon_li = jQuery(this); |
---|
14 | data.push([mon_li.html(),mon_li.find('span').text()]); |
---|
15 | }) |
---|
16 | return data; |
---|
17 | } |
---|
18 | </script> |
---|
19 | "; |
---|
20 | return $flux; |
---|
21 | } |
---|
22 | |
---|
23 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.