当前位置: 首页>>代码示例>>PHP>>正文


PHP wp_statistics_date_range_selector函数代码示例

本文整理汇总了PHP中wp_statistics_date_range_selector函数的典型用法代码示例。如果您正苦于以下问题:PHP wp_statistics_date_range_selector函数的具体用法?PHP wp_statistics_date_range_selector怎么用?PHP wp_statistics_date_range_selector使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了wp_statistics_date_range_selector函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: list

}
list($daysToDisplay, $rangestart_utime, $rangeend_utime) = wp_statistics_date_range_calculator($daysToDisplay, $rangestart, $rangeend);
$rangestartdate = $WP_Statistics->real_current_date('Y-m-d', '-0', $rangestart_utime);
$rangeenddate = $WP_Statistics->real_current_date('Y-m-d', '-0', $rangeend_utime);
?>
<div class="wrap">
	<?php 
screen_icon('options-general');
?>
	<h2><?php 
_e('Browser Statistics', 'wp_statistics');
?>
</h2>

	<div><?php 
wp_statistics_date_range_selector(WP_STATISTICS_BROWSERS_PAGE, $daysToDisplay);
?>
</div>
	
	<div class="postbox-container" style="width: 48%; float: left; margin-right:20px">
		<div class="metabox-holder">
			<div class="meta-box-sortables">
				<div class="postbox">
					<div class="handlediv" title="<?php 
_e('Click to toggle', 'wp_statistics');
?>
"><br /></div>
					<h3 class="hndle"><span><?php 
_e('Browsers', 'wp_statistics');
?>
</span></h3>
开发者ID:ltdat287,项目名称:id.nhomdichvu,代码行数:31,代码来源:all-browsers.php

示例2: list

} else {
    $rangeend = '';
}
list($daysToDisplay, $rangestart_utime, $rangeend_utime) = wp_statistics_date_range_calculator($daysToDisplay, $rangestart, $rangeend);
?>
<div class="wrap">
	<?php 
screen_icon('options-general');
?>
	<h2><?php 
_e('Search Engine Referral Statistics', 'wp_statistics');
?>
</h2>

	<?php 
wp_statistics_date_range_selector(WP_STATISTICS_SEARCHES_PAGE, $daysToDisplay);
?>

	<div class="postbox-container" style="width: 100%; float: left; margin-right:20px">
		<div class="metabox-holder">
			<div class="meta-box-sortables">
				<div class="postbox">
					<div class="handlediv" title="<?php 
_e('Click to toggle', 'wp_statistics');
?>
"><br /></div>
					<h3 class="hndle"><span><?php 
_e('Search Engine Referral Statistics', 'wp_statistics');
?>
</span></h3>
					<div class="inside">
开发者ID:wenhao87,项目名称:WPPlugins,代码行数:31,代码来源:search-statistics.php

示例3: list

} else {
    $rangeend = '';
}
list($daysToDisplay, $rangestart_utime, $rangeend_utime) = wp_statistics_date_range_calculator($daysToDisplay, $rangestart, $rangeend);
?>
<div class="wrap">
	<?php 
screen_icon('options-general');
?>
	<h2><?php 
_e('Top Countries', 'wp_statistics');
?>
</h2>

	<?php 
wp_statistics_date_range_selector('wps_countries_menu', $daysToDisplay);
?>

	<div class="postbox-container" id="last-log" style="width: 100%;">
		<div class="metabox-holder">
			<div class="meta-box-sortables">
				<div class="postbox">
					<div class="inside">
						<div class="inside">
							<table class="widefat table-stats" id="last-referrer" style="width: 100%;">
								<tr>
									<td><?php 
_e('Rank', 'wp_statistics');
?>
</td>
									<td><?php 
开发者ID:bqevin,项目名称:wp-shopeasy,代码行数:31,代码来源:top-countries.php

示例4: screen_icon

    $rangeend = $_GET['rangeend'];
} else {
    $rangeend = '';
}
?>
<div class="wrap">
	<?php 
screen_icon('options-general');
?>
	<h2><?php 
echo __('Page Trend for Post ID', 'wp_statistics') . ' ' . $pageid . ' - ' . $title;
?>
</h2>

	<?php 
wp_statistics_date_range_selector(WP_STATISTICS_PAGES_PAGE, $daysToDisplay, null, null, $urlfields);
?>

	<div class="postbox-container" id="last-log">
		<div class="metabox-holder">
			<div class="meta-box-sortables">
				<div class="postbox">
					<div class="handlediv" title="<?php 
_e('Click to toggle', 'wp_statistics');
?>
"><br /></div>
					<h3 class="hndle"><span><?php 
_e('Page Trend', 'wp_statistics');
?>
</span></h3>
					<div class="inside">
开发者ID:wenhao87,项目名称:WPPlugins,代码行数:31,代码来源:page-statistics.php

示例5: screen_icon

// If the chart totals is enabled, cheat a little and just add another reason category to the list so it get's generated later.
if ($total_stats == 1) {
    $excluded_reasons[] = 'Total';
}
?>
<div class="wrap">
	<?php 
screen_icon('options-general');
?>
	<h2><?php 
_e('Exclusions Statistics', 'wp_statistics');
?>
</h2>

	<?php 
wp_statistics_date_range_selector(WP_STATISTICS_EXCLUSIONS_PAGE, $daysToDisplay);
?>

	<div class="postbox-container" style="width: 100%; float: left; margin-right:20px">
		<div class="metabox-holder">
			<div class="meta-box-sortables">
				<div class="postbox">
					<div class="handlediv" title="<?php 
_e('Click to toggle', 'wp_statistics');
?>
"><br /></div>
					<h3 class="hndle"><span><?php 
_e('Exclusions Statistical Chart', 'wp_statistics');
?>
</span></h3>
					<div class="inside">
开发者ID:ltdat287,项目名称:id.nhomdichvu,代码行数:31,代码来源:exclusions.php

示例6: screen_icon

    $rangeend = $_GET['rangeend'];
} else {
    $rangeend = '';
}
?>
<div class="wrap">
	<?php 
screen_icon('options-general');
?>
	<h2><?php 
echo __('Page Trend for Post ID', 'wp_statistics') . ' ' . $pageid . ' - ' . $title;
?>
</h2>

	<?php 
wp_statistics_date_range_selector('wps_pages_menu', $daysToDisplay, null, null, $urlfields);
?>

	<div class="postbox-container" id="last-log">
		<div class="metabox-holder">
			<div class="meta-box-sortables">
				<div class="postbox">
					<div class="handlediv" title="<?php 
_e('Click to toggle', 'wp_statistics');
?>
"><br /></div>
					<h3 class="hndle"><span><?php 
_e('Page Trend', 'wp_statistics');
?>
</span></h3>
					<div class="inside">
开发者ID:bqevin,项目名称:wp-shopeasy,代码行数:31,代码来源:page-statistics.php

示例7: intval

$daysToDisplay = 20;
if (array_key_exists('hitdays', $_GET)) {
    $daysToDisplay = intval($_GET['hitdays']);
}
if (array_key_exists('rangestart', $_GET)) {
    $rangestart = $_GET['rangestart'];
} else {
    $rangestart = '';
}
if (array_key_exists('rangeend', $_GET)) {
    $rangeend = $_GET['rangeend'];
} else {
    $rangeend = '';
}
list($daysToDisplay, $rangestart_utime, $rangeend_utime) = wp_statistics_date_range_calculator($daysToDisplay, $rangestart, $rangeend);
wp_statistics_date_range_selector('wps_hits_menu', $daysToDisplay);
?>

	<div class="postbox-container" style="width: 100%; float: left; margin-right:20px">
		<div class="metabox-holder">
			<div class="meta-box-sortables">
				<div class="postbox">
					<div class="handlediv" title="<?php 
_e('Click to toggle', 'wp_statistics');
?>
"><br /></div>
					<h3 class="hndle"><span><?php 
_e('Hits Statistics Chart', 'wp_statistics');
?>
</span></h3>
					<div class="inside">
开发者ID:yszar,项目名称:linuxwp,代码行数:31,代码来源:hit-statistics.php

示例8: screen_icon

    $excluded_reasons[] = 'Total';
}
?>

<div class="wrap">
	<?php 
screen_icon('options-general');
?>

	<h2><?php 
_e('Exclusions Statistics', 'wp_statistics');
?>
</h2>

	<?php 
wp_statistics_date_range_selector('wps_exclusions_menu', $daysToDisplay);
?>


	<div class="postbox-container" style="width: 100%; float: left; margin-right:20px">
		<div class="metabox-holder">
			<div class="meta-box-sortables">
				<div class="postbox">
					<div class="handlediv" title="<?php 
_e('Click to toggle', 'wp_statistics');
?>
"><br /></div>
					<h3 class="hndle"><span><?php 
_e('Exclusions Statistical Chart', 'wp_statistics');
?>
</span></h3>
开发者ID:vanlong200880,项目名称:uni,代码行数:31,代码来源:exclusions.php

示例9: array_count_values

    }
    $get_urls = array_count_values($urls);
    $total = count($get_urls);
}
?>
<div class="wrap">
	<?php 
screen_icon('options-general');
?>
	<h2><?php 
_e('Top Referring Sites', 'wp_statistics');
?>
</h2>

	<div><?php 
wp_statistics_date_range_selector('wps_referrers_menu', $daysToDisplay);
?>
</div>
	
	<div class="clear"/>
	
	<ul class="subsubsub">
		<?php 
if ($referr) {
    ?>
		<li class="all"><a <?php 
    if (!$referr) {
        echo 'class="current"';
    }
    ?>
href="?page=wps_referrers_menu"><?php 
开发者ID:montreyw,项目名称:Theme-Redesign-and-SEO-Overhaul,代码行数:31,代码来源:top-referring.php


注:本文中的wp_statistics_date_range_selector函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。