本文整理汇总了PHP中Number_Format函数的典型用法代码示例。如果您正苦于以下问题:PHP Number_Format函数的具体用法?PHP Number_Format怎么用?PHP Number_Format使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Number_Format函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Date
<?IF($VA_setup['reglist_nick']){?><TD class="bg_light"><?Print $row['nick'];?></TD><?}?>
<?IF($VA_setup['reglist_class']){?><TD align="right" class="bg_light"><?Print $row['class'];?></TD><?}?>
<?IF($VA_setup['reglist_class_protect']){?><TD align="right" class="bg_light"><?Print $row['class_protect'];?></TD><?}?>
<?IF($VA_setup['reglist_class_hidekick']){?><TD align="right" class="bg_light"><?Print $row['class_hidekick'];?></TD><?}?>
<?IF($VA_setup['reglist_hide_kick']){?><TD align="right" class="bg_light"><?Print $row['hide_kick'];?></TD><?}?>
<?IF($VA_setup['reglist_reg_date']){?><TD class="bg_light"><?Print Date($VA_setup['timedate_format'], $row['reg_date']);?></TD><?}?>
<?IF($VA_setup['reglist_reg_op']){?><TD class="bg_light 12px"><?Print $row['reg_op'];?></TD><?}?>
<?IF($VA_setup['reglist_pwd_change']){?><TD align="right" class="bg_light"><?Print $row['pwd_change'];?></TD><?}?>
<?IF($VA_setup['reglist_pwd_crypt']){?><TD align="right" class="bg_light"><?Print $row['pwd_crypt'];?></TD><?}?>
<?IF($VA_setup['reglist_login_pwd']){?><TD class="bg_light"><?Print $row['login_pwd'];?></TD><?}?>
<?IF($VA_setup['reglist_login_last']){?><TD class="bg_light"><?IF($row['login_last'] > 0){Print Date($VA_setup['timedate_format'], $row['login_last']);}ELSE{Print $text_never;}?></TD><?}?>
<?IF($VA_setup['reglist_logout_last']){?><TD class="bg_light"><?IF($row['logout_last'] > 0){Print Date($VA_setup['timedate_format'], $row['logout_last']);}ELSE{Print $text_never;}?></TD><?}?>
<?IF($VA_setup['reglist_login_cnt']){?><TD align="right" class="bg_light"><?Print Number_Format($row['login_cnt']);?></TD><?}?>
<?IF($VA_setup['reglist_login_ip']){?><TD class="bg_light"><?Print $row['login_ip'];?></TD><?}?>
<?IF($VA_setup['reglist_error_last']){?><TD class="bg_light"><?IF($row['error_last'] > 0){Print Date($VA_setup['timedate_format'], $row['error_last']);}ELSE{Print $text_never;}?></TD><?}?>
<?IF($VA_setup['reglist_error_cnt']){?><TD align="right" class="bg_light"><?Print Number_Format($row['error_cnt']);?></TD><?}?>
<?IF($VA_setup['reglist_error_ip']){?><TD align="right" class="bg_light"><?Print $row['error_ip'];?></TD><?}?>
<?IF($VA_setup['reglist_enabled']){?><TD align="right" class="bg_light"><?Print $row['enabled'];?></TD><?}?>
<?IF($VA_setup['reglist_email']){?><TD class="bg_light"><?Print $row['email'];?></TD><?}?>
<?IF($VA_setup['reglist_note_op'] && USR_CLASS >= 3){?><TD class="bg_light"><?Print nl2br($row['note_op']);?></TD><?}?>
<?IF($VA_setup['reglist_note_usr']){?><TD class="bg_light"><?Print nl2br($row['note_usr']);?></TD><?}?>
<?IF($VA_setup['reglist_show_keys']){?><TD class="bg_light"><?Print nl2br($row['show_keys']);?></TD><?}?>
</TR>
<? }
$result->Free_Result();
}
ELSE {?>
<TR>
<TD class="b bg_light center" colspan=<?Print $colums;?>>
<BR>
<<< <?Print $text_no_results;?> >>>
示例2: array
$Columns = array('SUM(`Summ`) AS `Summ`');
$Where = "`StatusID` = 'Payed' AND `PaymentSystemID` = '" . $PaymentSystem['PaymentSystemID'] . "' AND `StatusDate` BETWEEN {$TimeBegin} AND {$TimeEnd}";
$Summ = DB_Select('Invoices', $Columns, array('UNIQ', 'Where' => $Where));
switch (ValueOf($Total)) {
case 'error':
return ERROR | @Trigger_Error(500);
case 'exception':
return ERROR | @Trigger_Error(400);
case 'array':
Debug("[comp/www/Administrator/PaymentsSystemsStatistics]: сумма для " . $PaymentSystem['PaymentSystemID'] . " за {$Year} = " . $Summ['Summ']);
break;
default:
return ERROR | @Trigger_Error(101);
}
#-------------------------------------------------------------------------------
$Tr->AddChild(new Tag('TD', array('align' => 'right', 'class' => 'Standard'), new Tag('NOBR', Number_Format($Summ['Summ'], 2, '.', ' '))));
}
#-------------------------------------------------------------------------------
# добавляем строку в таблицу
$Table[] = $Tr;
#Debug(print_r($Table, true));
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Tables/Extended', $Table);
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
CacheManager::add($CacheID, $Comp, 24 * 3600);
# cache it to 1 day
#-------------------------------------------------------------------------------
$DOM->AddChild('Into', $Comp);
示例3: LoadSteam
public function LoadSteam($apiKey)
{
$this->Timers['Steam'] = MicroTime(true);
$steamSearchPlayers = array_chunk($this->Players, 100);
$builder = '';
$chunks = array();
$c = 0;
foreach ($steamSearchPlayers as $key => $value) {
foreach ($value as $k => $v) {
$builder .= $v->SteamId;
if (end($value) != $v) {
$builder .= ',';
} elseif (end($value) == $v) {
$chunks[] = $builder;
$builder = '';
}
}
}
$presponses = array();
$bresponses = array();
foreach ($chunks as $key => $value) {
if (empty($value)) {
continue;
}
// $curl = curl_init();
$baseUrl = 'https://api.steampowered.com/';
// var_dump($baseUrl."ISteamUser/GetPlayerSummaries/v0002/?key=$apiKey&steamids=$builder");
// exit;
// curl_setopt_array($curl, array(
// CURLOPT_RETURNTRANSFER => 1,
// CURLOPT_URL => $baseUrl."ISteamUser/GetPlayerSummaries/v0002/?key=$apiKey&steamids=$value",
// CURLOPT_SSL_VERIFYPEER => false,
// ));
// $profiles = curl_exec($curl);
$profiles = Async::call('file_get_contents', array($baseUrl . "ISteamUser/GetPlayerSummaries/v0002/?key={$apiKey}&steamids={$value}"));
$presponses = array_merge($presponses, json_decode((string) $profiles)->response->players);
// if (!$profiles) {
// die('Error: "'.curl_error($curl).'" - Code: '.curl_errno($curl));
// }
// curl_close($curl);
// $curl = curl_init();
// curl_setopt_array($curl, array(
// CURLOPT_URL => $baseUrl."ISteamUser/GetPlayerBans/v1/?key=$apiKey&steamids=$value",
// CURLOPT_RETURNTRANSFER => 1,
// CURLOPT_SSL_VERIFYPEER => false,
// ));
// $bans = curl_exec($curl);
$bans = Async::call('file_get_contents', array($baseUrl . "ISteamUser/GetPlayerBans/v1/?key={$apiKey}&steamids={$value}"));
$bresponses = array_merge($bresponses, json_decode((string) $bans)->players);
// if (!$bans) {
// die('Error: "'.curl_error($curl).'" - Code: '.curl_errno($curl));
// }
// curl_close($curl);
}
$this->LinkSteamProfiles($presponses);
$this->LinkSteamBans($bresponses);
$this->SteamLoaded = true;
$this->Timers['Steam'] = Number_Format(MicroTime(true) - $this->Timers['Steam'], 4, '.', '');
}
示例4: HTMLSpecialChars
ELSEIF($row['ip'] == $ban['ip']) {
$ban_type = 1;
Print $text_ip_ban;
}
ELSE {
$ban_type = 2;
Print $text_nick_ban;
}
?> </TD>
</TR><TR>
<TD class="bg_light b right"> <?Print $text_nick;?> : </TD>
<TD class="bg_light<?IF($ban_type != 1){Print " red";}?>"> <?Print HTMLSpecialChars($ban['nick']);?> </TD>
<TD class="bg_light b right"> <?Print $text_date_start;?> : </TD>
<TD class="bg_light"> <?Print Date($VA_setup['timedate_format'], $ban['date_start']);?> </TD>
<TD class="bg_light b right"> <?Print $text_share_size;?> : </TD>
<TD class="bg_light"> <?Print RoundShare($ban['share_size'])." (".Number_Format($ban['share_size']);?> B) </TD>
</TR><TR>
<TD class="bg_light b right<?IF($ban_type != 2){Print " red";}?>"> <?Print $text_ip;?> : </TD>
<TD class="bg_light"> <?Print HTMLSpecialChars($ban['ip']);?> </TD>
<TD class="bg_light b right"> <?Print $text_date_limit;?> : </TD>
<TD class="bg_light"> <?Print Date($VA_setup['timedate_format'], $ban['date_limit']);?> </TD>
<TD class="bg_light" colspan=2>
</TR><TR>
<TD class="bg_light b top right"> <?Print $text_reason;?> : </TD>
<TD class="bg_light top" colspan=5> <?Print nl2br(HTMLSpecialChars($ban['reason']));?> </TD>
</TR>
<? }?>
</TABLE>
<BR>
<? }
$result->Free_Result();
示例5: GetMicroTime
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
VerliAdmin is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with VerliAdmin; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
$script_start = GetMicroTime($script_start);
$script_end = GetMicroTime();
$scrpt_time = Round($script_end - $script_start, 4);
StoreQueries($DB_hub);
?>
<BR>
<TABLE class="footer">
<TR>
<TD class="left" nowrap><?PrintF("<FONT class=\"b\">".$text_page_time."</FONT>", $scrpt_time);?></TD>
<?IF(MySQL == "MySQL"){?><TD class="left" nowrap><?Print "<FONT class=\"b\">".$text_queries."</FONT> : ".($DB_hub->mysql_queries * 1)." / ".Number_Format($_COOKIE['queries']);?></TD><?}?>
<TD class="right b" nowrap><A href="http://bohyn.czechweb.cz/" title="bohyn.czechweb.cz">VerliAdmin v<?Print VA_VERSION;?></A>, © by <A href="mailto:support@verliadmin.wz.cz">bohyn</A> </TD>
</TR>
</TABLE>
<BR><BR>
示例6: checkQuery
public static function checkQuery($sid, $ip, $port, $day, $month, $year, $timeout = 2)
{
$timer = MicroTime(true);
$query = new MinecraftQuery();
try {
$query->Connect($ip, $port, $timeout);
} catch (MinecraftQueryException $e) {
$Exception = $e;
}
$timer = Number_Format(MicroTime(true) - $timer, 2, '.', '');
return $query;
$info = $query->GetInfo();
if ($info === false) {
DB::table('mcserverschecks')->insert(array('mcsc_sid' => $sid, 'mcsc_online' => 0, 'mcsc_players' => 0, 'mcsc_ping' => 0, 'mcsc_day' => $day, 'mcsc_month' => $month, 'mcsc_year' => $year));
DB::table('mcservers')->where('mcs_id', $sid)->update(array('mcs_players' => 0, 'mcs_status' => 0));
} else {
DB::table('mcserverschecks')->insert(array('mcsc_sid' => $sid, 'mcsc_online' => 1, 'mcsc_players' => $info["Players"], 'mcsc_ping' => $timer, 'mcsc_day' => $day, 'mcsc_month' => $month, 'mcsc_year' => $year));
DB::table('mcservers')->where('mcs_id', $sid)->update(array('mcs_maxplayers' => $info["MaxPlayers"], 'mcs_players' => $info["Players"], 'mcs_status' => 1, 'mcs_map' => substr($info["Map"], 0, 50), 'mcs_plugins' => substr($info["Plugins"], 0, 255), 'mcs_motd' => mcservers::motd(substr($info["HostName"], 0, 255))));
}
}
示例7: PrintOrderBy
<?IF($VA_setup['kicklist_is_drop']){?><TD class="b bg_light" nowrap><?Print $text_is_drop; PrintOrderBy("is_drop");?></TD><?}?>
</TR>
<?
IF($total > 0) {
$result = $DB_hub->Query($query);
WHILE($row = $result->Fetch_Assoc())
{
$row['nick'] = HTMLSpecialChars($row['nick']);
$row['op'] = HTMLSpecialChars($row['op']);
$row['reason'] = HTMLSpecialChars($row['reason']);
$info = $text_nick." : ".$row['nick']."<BR>";
$info .= $text_time." : ".Date($VA_setup['timedate_format'], $row['time'])."<BR>";
$info .= $text_ip." : ".$row['ip']."<BR>";
$info .= $text_host." : ".$row['host']."<BR>";
$info .= $text_share_size." : ".Number_Format($row['share_size'])." (".RoundShare($row['share_size']).")<BR>";
$info .= $text_email." : ".$row['email']."<BR>";
$info .= $text_op." : ".$row['op']."<BR>";
IF($row['is_drop'])
$info .= $text_is_drop." : ".$text_yes."<BR>";
ELSE
$info .= $text_is_drop." : ".$text_no."<BR>";
$info .= $text_reason." :<BR>".$row['reason'];
?>
<TR onmouseover="JavaScript: return escape('<?Print AddSlashes($info);?>');">
<FORM action="index.php?<?Print $_SERVER['QUERY_STRING'];?>" method="post">
<INPUT name="nick" type="hidden" value="<?Print $row['nick'];?>">
<INPUT name="time" type="hidden" value="<?Print $row['time'];?>">
</FORM>
<?IF($VA_setup['kicklist_nick']){?><TD class="bg_light"><?Print $row['nick'];?></TD><?}?>
<?IF($VA_setup['kicklist_time']){?><TD align="right" class="bg_light"><?Print Date($VA_setup['timedate_format'], $row['time']);?></TD><?}?>
示例8: foreach
$KnownLanguages = ['en' => 'en', 'de' => 'de', 'sr' => 'sr', 'tr' => 'tr', 'fr' => 'fr', 'sv' => 'sv', 'da' => 'da', 'pl' => 'pl', 'nl' => 'nl', 'es' => 'es', 'bp' => 'bp', 'cz' => 'cz', 'fi' => 'fi', 'bg' => 'bg', 'ro' => 'ro', 'hu' => 'hu', 'lt' => 'lt', 'sk' => 'sk', 'mk' => 'mk', 'hr' => 'hr', 'bs' => 'bs', 'ru' => 'ru', 'cn' => 'cn'];
foreach ($KnownLanguages as $Language) {
if (!array_key_exists($Language, $FoundLanguages)) {
AddError(0, "info", $Language, "Missing language <b>{$Language}</b>.");
}
}
foreach ($FoundLanguages as $Language => $Derp) {
if ($Language === 'ls') {
AddError(0, "info", $Language, "Please remove leet speak language.");
}
if (!array_key_exists($Language, $KnownLanguages)) {
AddError(0, "info", $Language, "Unknown language <b>{$Language}</b>.");
}
}
unset($KnownLanguages);
$Time = Number_Format(microtime(true) - $Timer_Start, 4, '.', '');
if (empty($Errors)) {
echo '<div class="alert alert-success">Congratulations! No errors were found.';
echo ' Analyzed <span class="text-primary">' . $Number . '</span> lines ';
echo '(<span class="text-primary">' . Count($FoundLanguages) . '</span> languages) in <span class="text-primary">' . $Time . '</span> seconds.</div>';
} else {
echo '<div class="alert alert-danger">Found ' . Count($Errors) . ' errors.';
echo ' Analyzed <span class="text-primary">' . $Number . '</span> lines ';
echo '(<span class="text-primary">' . Count($FoundLanguages) . '</span> languages) in <span class="text-primary">' . $Time . '</span> seconds.</div>';
echo "<ol id=\"error_loop\">";
foreach ($Errors as $Section => $Derp) {
echo "<li class=\"msg_loop\"><h3>Section <b>[" . HtmlEntities($Section) . "]</b></h3><ol>";
foreach ($Derp as $Error) {
$Line = $Error[0];
$Type = $Error[1];
$Name = $Error[3];
示例9: GetApexStatus
<li><a href="#" onclick="javascript:window.location='?page=carpark'"><i class="icon-fire"></i> Vozový park hráèe</a></li>
<li><a href="#"><i class="icon-play-circle"></i> <b>Apex</b> : <?php
echo GetApexStatus();
?>
</a></li>
<li><a href="#"><i class="icon-play-circle"></i> <b>Chicane</b> : <?php
echo GetChicaneStatus();
?>
</a></li>
</ul>
</div>
</div>
<?php
PageSystem();
?>
<div class="span10 tabulka"></div>
<div id="bottom" class="span10 " style="font-size:small;background-color:white;" >
<table class="table table-striped">
<tbody>
<tr>
<td style="text-align:left;"><span class="badge badge-important">Ewolutions.cz © 2012</span></td>
<td style="text-align:right;"><span class="badge badge-success" >Vygenerováno za <?php
echo Number_Format(MicroTime(true) - $Timer, 4, '.', '') * 1000;
?>
ms</span></td>
</tr>
</tbody>
<table>
</div>
</body>
</html>
示例10: array
/** @author Alex Keda (for www.host-food.ru) */
/******************************************************************************/
/******************************************************************************/
$__args_list = array('PaymentSystemID', 'InvoiceID', 'Summ');
/******************************************************************************/
eval(COMP_INIT);
/******************************************************************************/
/******************************************************************************/
$Config = Config();
#-------------------------------------------------------------------------------
$Settings = $Config['Invoices']['PaymentSystems']['W1'];
#-------------------------------------------------------------------------------
$Send = $Settings['Send'];
#-------------------------------------------------------------------------------
# нули после точки - обязательны
$Send['WMI_PAYMENT_AMOUNT'] = Number_Format($Summ / $Settings['Course'], 2, '.', '');
#$Send['WMI_PAYMENT_AMOUNT'] = Round($Summ/$Settings['Course'],2);
#-------------------------------------------------------------------------------
$Send['WMI_PAYMENT_NO'] = $InvoiceID;
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Formats/Invoice/Number', $InvoiceID);
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$__USER = $GLOBALS['__USER'];
#-------------------------------------------------------------------------------
$Send['WMI_DESCRIPTION'] .= SPrintF('%s, %s (%s)', $Comp, Translit($__USER['Name']), $__USER['Email']);
#-------------------------------------------------------------------------------
$Protocol = @$_SERVER['SERVER_PORT'] != 80 ? 'https' : 'http';
#-------------------------------------------------------------------------------
示例11: SPrintF
if ($PriceFinal) {
$Send['price_final'] = 'true';
}
#-------------------------------------------------------------------------------
$Protocol = @$_SERVER['SERVER_PORT'] != 80 ? 'https' : 'http';
#-------------------------------------------------------------------------------
$Send['url_success'] = SPrintF('%s://%s/Invoices', $Protocol, HOST_ID);
#-------------------------------------------------------------------------------
$Send['url_fail'] = SPrintF('%s://%s/Invoices?Error=yes', $Protocol, HOST_ID);
#-------------------------------------------------------------------------------
$Send['price'] = Round($Summ / $Settings['Course'], 2);
#-------------------------------------------------------------------------------
$Send['price_md5'] = Number_Format($Send['price'], 2, '.', '');
#-------------------------------------------------------------------------------
if (SubStr($Send['price_md5'], -1) == "0") {
$Send['price_md5'] = Number_Format($Send['price'], 1, '.', '');
}
#-------------------------------------------------------------------------------
$Send['ticker'] = 'RUR';
#-------------------------------------------------------------------------------
$Send['convert'] = 'yes';
#-------------------------------------------------------------------------------
$Hash = array($Send['pay_mode'], $Send['price_md5'], $Send['ticker'], $Send['pay_for'], $Send['convert'], $Settings['MerchantPass']);
#-------------------------------------------------------------------------------
$Send['md5'] = Md5(Implode(';', $Hash));
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Formats/Invoice/Number', $InvoiceID);
if (Is_Error($Comp)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
示例12: Count
$kick = $DB_hub->Query("SELECT nick, Count(nick) AS `count` FROM kicklist GROUP BY nick ORDER BY `count` DESC, time DESC LIMIT 0,".$VA_setup['stats_results']);
WHILE($row = $kick->Fetch_Assoc())
{?>
<TR>
<TD class="right bg_light"> <?Print $i++;?> </TD>
<TD class="b bg_light"> <?IF(USR_CLASS >= $VA_setup['kicklist_min_class']){Print "<A href=\"index.php?q=kicklist&filter_colum=nick&filter_type=equal&filter=".$row['nick']."\">".$row['nick']."</A>";}ELSE{Print $row['nick'];}?> </TD>
<TD width=150 class="b1 fs0px"><IMG src="img/bar.gif" height=10 width=<?Print CountStatBar($tables['kicklist']['rows'], $row['count']);?>></TD>
<TD class="bg_light"> <?Print $row['count']?> (<?Print Round(($row['count'] / $tables['kicklist']['rows']) * 100, 2)."%";?>) </TD>
</TR>
<? }
$kick->Free_Result();?>
</TABLE>
</TD><TD class="left top">
<TABLE class="fs9px b1">
<TR>
<TD colspan=4 class="b bg_light center"><?Print $text_banlist." ( ".Number_Format($tables['banlist']['rows'])." )";?></TD>
</TR>
<?
$i = 1;
$ban = $DB_hub->Query("SELECT nick, Count(nick) AS `count` FROM banlist WHERE nick != '_ipban_' GROUP BY nick ORDER BY `count` DESC, date_start DESC LIMIT 0,".$VA_setup['stats_results']);
WHILE($row = $ban->Fetch_Assoc())
{?>
<TR>
<TD class="right bg_light"> <?Print $i++;?> </TD>
<TD class="b bg_light"> <?IF(USR_CLASS >= $VA_setup['banlist_min_class']){Print "<A href=\"index.php?q=banlist&filter_colum=nick&filter_type=equal&filter=".$row['nick']."\">".$row['nick']."</A>";}ELSE{Print $row['nick'];}?> </TD>
<TD width=150 class="b1 fs0px"><IMG src="img/bar.gif" height=10 width=<?Print CountStatBar($tables['banlist']['rows'], $row['count']);?>></TD>
<TD class="bg_light"> <?Print $row['count']?> (<?Print Round(($row['count'] / $tables['banlist']['rows']) * 100, 2)."%";?>) </TD>
</TR>
<? }
$ban->Free_Result();?>
</TABLE>
示例13: RoundShare
</TR><TR>
<TD class="bg_light b"> <?Print $text_received;?> </TD>
<TD class="bg_light right"> <?Print RoundShare($mysql_stat['Bytes_received']);?> </TD>
<TD class="bg_light right"> <?Print RoundShare($mysql_stat['Bytes_received'] / $mysql_stat['Uptime']);?>/s </TD>
<TD class="bg_light right" colspan=2> <?Print RoundShare($mysql_stat['Bytes_received'] / Array_Sum($queries))."/".$text_query;?> </TD>
<TD class="bg_light" colspan=2> </TD>
</TR><TR>
<TD class="bg_light b"> <?Print $text_sent;?> </TD>
<TD class="bg_light right"> <?Print RoundShare($mysql_stat['Bytes_sent']);?> </TD>
<TD class="bg_light right"> <?Print RoundShare($mysql_stat['Bytes_sent'] / $mysql_stat['Uptime']);?>/s </TD>
<TD class="bg_light right" colspan=2> <?Print RoundShare($mysql_stat['Bytes_sent'] / Array_Sum($queries))."/".$text_query;?> </TD>
<TD class="bg_light" colspan=2> </TD>
</TR><TR>
<TD class="bg_light b"> <?Print $text_queries;?> </TD>
<TD class="bg_light right"> <?Print Number_Format(Array_Sum($queries));?> </TD>
<TD class="bg_light right"> <?Print Number_Format(Array_Sum($queries) / $mysql_stat['Uptime'], 2);?>/s </TD>
<TD class="bg_light" colspan=4> </TD>
</TR><TR>
<TD class="bg_light b"> <?Print $text_uptime;?> </TD>
<TD class="bg_light" colspan=6>
<?
Print Date("z", $mysql_stat['Uptime'])." ".$text_days.", ";
Print (Date("G", $mysql_stat['Uptime']) - 1)." ".$text_hours.", ";
Print Date("i", $mysql_stat['Uptime'])." ".$text_minutes.", ";
Print Date("s", $mysql_stat['Uptime'])." ".$text_seconds;
?>
</TD>
</TR>
</TABLE>
示例14: Print_Contribution_Message
//.........这里部分代码省略.........
echo $this->t('Make a gift of the Amazon Wish List');
?>
: <ul> <li>» <a href="http://amzn.com/w/1A45MS7KY75CY" title="<?php
echo $this->t('Amazon USA');
?>
" target="_blank"><?php
echo $this->t('Amazon USA');
?>
</a></li> <li>» <a href="http://www.amazon.de/wishlist/2AG0R8BHEOJOL" title="<?php
echo $this->t('Amazon Germany');
?>
" target="_blank"><?php
echo $this->t('Amazon Germany');
?>
</a></li> </ul> </li> <li class="hide_if_js"><?php
echo $this->t('Make a contribution via PayPal');
?>
: <ul> <li>» <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=1220480" target="_blank">United States dollar ($)</a></li> <li>» <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=U49F54BMWKNHU" target="_blank">Pound sterling (£)</a></li> <li>» <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HECSPGLPTQL24" target="_blank">Euro (€)</a></li> </ul> </li> <li class="show_if_js" style="display:none"><?php
echo $this->t('Make a contribution via PayPal');
?>
: <ul> <li>» <a href="#" title="<?php
echo $this->t('Make a contribution in US Dollars');
?>
" class="dennis_hoppe_contribution_show_ui">United States Dollar ($)</a> <div class="dennis_hoppe_contribution_ui"> <?php
echo $this->t('Amount');
?>
: <input type="hidden" class="dennis_hoppe_contribution_currency" value="USD" /> <select class="dennis_hoppe_contribution_amount"> <option value="" disabled="disabled" selected="selected"><?php
echo $this->t('Amount in USD');
?>
</option> <?php
for ($amount = 6.95; $amount < 100; $amount *= 1.3) {
?>
<option value="<?php
echo Number_Format($amount, 2, '.', '');
?>
">US$<?php
echo Number_Format($amount, 2);
?>
</option> <?php
}
?>
</select> <input type="button" class="dennis_hoppe_contribution_button button-primary" value="<?php
echo $this->t('Proceed to PayPal');
?>
→" title="<?php
echo $this->t('Proceed to PayPal');
?>
" disabled="disabled" /> </div> </li> <li>» <a href="#" title="<?php
echo $this->t('Make a contribution in Pound sterling');
?>
" class="dennis_hoppe_contribution_show_ui">Pound Sterling (£)</a> <div class="dennis_hoppe_contribution_ui hide_if_js"> <?php
echo $this->t('Amount');
?>
: <input type="hidden" class="dennis_hoppe_contribution_currency" value="GBP" /> <select class="dennis_hoppe_contribution_amount"> <option value="" disabled="disabled" selected="selected"><?php
echo $this->t('Amount in GBP');
?>
</option> <?php
for ($amount = 5.95; $amount < 100; $amount *= 1.3) {
?>
<option value="<?php
echo Number_Format($amount, 2, '.', '');
?>
">£<?php
echo Number_Format($amount, 2);
?>
</option> <?php
示例15: Log
private function Log($String)
{
$Log = '[';
$Log .= Number_Format(MicroTime(true) - $this->AppStart, 2);
$Log .= 's] ';
$Log .= $String;
$Log .= '{normal}';
$Log .= PHP_EOL;
$Log = Str_Replace($this->APIKey, '{lightred}*APIKEY*{normal}', $Log);
$Log = Str_Replace(array('{normal}', '{green}', '{yellow}', '{lightred}', '{lightblue}'), array("[0m", "[0;32m", "[1;33m", "[1;31m", "[1;34m"), $Log);
echo $Log;
}