function fs_get_os_tree($days_ago = NULL) { if (!$days_ago) { $days_ago = fs_os_tree_days_ago(); } return fs_get_stats_tree(fs_get_os_statistics($days_ago), 'os_tree_id'); }
<div id="browsers_tree_id">--</div> </div> </div> <!-- warp --> <div class="fwrap"> <h2><?php fs_e('Operating systems'); fs_create_anchor('OperatingSystems'); ?> <span> <?php fs_cfg_button('os_config'); ?> <span id="os_config" class="normal_font hidden"> <?php $days = fs_get_num_textfield('firestats_os_tree_days_ago', 'fs_os_tree', fs_os_tree_days_ago(), 4); $show_for_the_last_Y_days = sprintf(fs_r("Show items for the last %s days"), $days); ?> <span> <?php echo $show_for_the_last_Y_days; ?> <button class="button" onclick="saveOptions('firestats_os_tree_days_ago','fs_os_tree')"><?php fs_e('Apply'); ?> </button> </span> </span> </span> </h2> <div id="fs_os_tree" class="tree_container">