<div class="postbox"> <div class="handlediv" title="<?php _e('Click to toggle', 'wp_statistics'); ?> "><br /></div> <h3 class="hndle"><span><?php _e('Platform', 'wp_statistics'); ?> </span></h3> <div class="inside"> <script type="text/javascript"> jQuery(function () { var platform_chart; jQuery(document).ready(function() { <?php $Platforms = wp_statistics_platform_list(null, $rangestartdate, $rangeenddate); if (!is_array($Platforms)) { $Platforms = array(); } natcasesort($Platforms); echo "var platform_data = ["; foreach ($Platforms as $Platform) { $count = wp_statistics_platform($Platform); echo "['" . substr($Platform, 0, 15) . " (" . number_format_i18n($count) . ")'," . $count . "], "; } echo "];\n"; ?> platform_chart = jQuery.jqplot('platform-log', [platform_data], { title: { text: '<b>' + <?php
<tr valign="top"> <th scope="row"> <label for="delete-platform"><?php _e('Delete Platforms', 'wp_statistics'); ?> :</label> </th> <td> <select id="delete-platform" name="delete-platform"> <option value="0"><?php _e('Please select', 'wp_statistics'); ?> </option> <?php $platforms = wp_statistics_platform_list(); foreach ($platforms as $platform) { $pid = preg_replace("/[^a-zA-Z]/", "", $platform); echo "<option value='{$platform}' id='platform-" . $pid . "-id'>" . $platform . "</option>"; } ?> </select> <p class="description"><?php _e('All visitor data will be lost for this platform type.', 'wp_statistics'); ?> </p> <input id="delete-platforms-submit" class="button button-primary" type="submit" value="<?php _e('Delete now!', 'wp_statistics'); ?> " name="delete-platforms-submit" Onclick="return false;"> <span id="delete-platforms-status"></span>