本文整理匯總了PHP中SendPress_Data::get_opens_unique_total方法的典型用法代碼示例。如果您正苦於以下問題:PHP SendPress_Data::get_opens_unique_total方法的具體用法?PHP SendPress_Data::get_opens_unique_total怎麽用?PHP SendPress_Data::get_opens_unique_total使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SendPress_Data
的用法示例。
在下文中一共展示了SendPress_Data::get_opens_unique_total方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: html
//.........這裏部分代碼省略.........
$p = $open / $rec * 100;
}
?>
<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 $open;
?>
" data-icon="long-arrow-up" data-icon-size="28" data-icon-color="#fff"></div>
</div>
<div style="text-align:center;">
<h5>Total</h5>
<?php
echo $open;
?>
</div>
</div>
<div class="sp-50">
<?php
$ou = 0;
if ($stat_type == 'new') {
$ou = SPNL()->db("Subscribers_Tracker")->get_opens($report->ID);
} else {
$ou = SendPress_Data::get_opens_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>Unique</h5>
<?php
echo $ou;
?>
</div>
</div>
</div>
<?php
$this->panel_end();
?>
</div>
<div class="sp-50">
<h4 style="text-align:center;"><?php
_e('Clicks', 'sendpress');
?>
示例2: html
//.........這裏部分代碼省略.........
$p = $open / $rec * 100;
}
?>
<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 $open;
?>
" data-icon="long-arrow-up" data-icon-size="28" data-icon-color="#fff"></div>
</div>
<div style="text-align:center;">
<h5>Total</h5>
<?php
echo $open;
?>
</div>
</div>
<div class="sp-50">
<?php
$ou = 0;
if ($stat_type == 'new') {
$ou = SPNL()->db->subscribers_tracker->get_opens($report->ID);
} else {
$ou = SendPress_Data::get_opens_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>Unique</h5>
<?php
echo $ou;
?>
</div>
</div>
</div>
<?php
$this->panel_end();
?>
</div>
<div class="sp-50">
<h4 style="text-align:center;"><?php
_e('Clicks', 'sendpress');
?>