本文整理汇总了PHP中SendPress_Data::get_clicks_unique_total方法的典型用法代码示例。如果您正苦于以下问题:PHP SendPress_Data::get_clicks_unique_total方法的具体用法?PHP SendPress_Data::get_clicks_unique_total怎么用?PHP SendPress_Data::get_clicks_unique_total使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SendPress_Data
的用法示例。
在下文中一共展示了SendPress_Data::get_clicks_unique_total方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: html
//.........这里部分代码省略.........
<div class="sp-row">
<div class="sp-50 sp-first">
<div style="float:left;">
<div id="myStat" class="chartid" data-dimension="150" data-text="<?php
echo floor($p);
?>
%" data-info="Total Opens" data-width="15" data-fontsize="30" data-percent="<?php
echo floor($p);
?>
" data-fgcolor="#61a9dc" data-bgcolor="#eee" data-fill="#ddd" data-total="<?php
echo $rec;
?>
" data-part="<?php
echo $click;
?>
" data-icon="long-arrow-up" data-icon-size="28" data-icon-color="#fff"></div>
</div>
<div style="text-align:center;">
<h5><?php
_e('Total', 'sendpress');
?>
</h5>
<?php
echo $click;
?>
</div>
</div>
<div class="sp-50">
<?php
$ou = 0;
if ($stat_type == 'new') {
$ou = SPNL()->db("Subscribers_Url")->clicks_total_email_id($report->ID);
} else {
$ou = SendPress_Data::get_clicks_unique_total($report->ID);
}
$px = $ou / $rec * 100;
?>
<div style="float:left;">
<div id="myStat" class="chartid" data-dimension="150" data-text="<?php
echo floor($px);
?>
%" data-info="Unique Opens" data-width="15" data-fontsize="30" data-percent="35" data-fgcolor="#85d002" data-bgcolor="#eee" data-fill="#ddd" data-total="<?php
echo $rec;
?>
" data-part="<?php
echo $ou;
?>
" data-icon="long-arrow-up" data-icon-size="28" data-icon-color="#fff"></div>
</div>
<div style="text-align:center;">
<h5><?php
_e('Unique', 'sendpress');
?>
</h5>
<?php
echo $ou;
?>
</div>
</div>
</div>
<?php
$this->panel_end();
?>
</div>
</div>
示例2: html
//.........这里部分代码省略.........
<div class="sp-row">
<div class="sp-50 sp-first">
<div style="float:left;">
<div id="myStat" class="chartid" data-dimension="150" data-text="<?php
echo floor($p);
?>
%" data-info="Total Opens" data-width="15" data-fontsize="30" data-percent="<?php
echo floor($p);
?>
" data-fgcolor="#61a9dc" data-bgcolor="#eee" data-fill="#ddd" data-total="<?php
echo $rec;
?>
" data-part="<?php
echo $click;
?>
" data-icon="long-arrow-up" data-icon-size="28" data-icon-color="#fff"></div>
</div>
<div style="text-align:center;">
<h5><?php
_e('Total', 'sendpress');
?>
</h5>
<?php
echo $click;
?>
</div>
</div>
<div class="sp-50">
<?php
$ou = 0;
if ($stat_type == 'new') {
$ou = SPNL()->db->subscribers_url->clicks_total_email_id($report->ID);
} else {
$ou = SendPress_Data::get_clicks_unique_total($report->ID);
}
$px = $ou / $rec * 100;
?>
<div style="float:left;">
<div id="myStat" class="chartid" data-dimension="150" data-text="<?php
echo floor($px);
?>
%" data-info="Unique Opens" data-width="15" data-fontsize="30" data-percent="35" data-fgcolor="#85d002" data-bgcolor="#eee" data-fill="#ddd" data-total="<?php
echo $rec;
?>
" data-part="<?php
echo $ou;
?>
" data-icon="long-arrow-up" data-icon-size="28" data-icon-color="#fff"></div>
</div>
<div style="text-align:center;">
<h5><?php
_e('Unique', 'sendpress');
?>
</h5>
<?php
echo $ou;
?>
</div>
</div>
</div>
<?php
$this->panel_end();
?>
</div>
</div>