本文整理汇总了PHP中Reg::tplGet方法的典型用法代码示例。如果您正苦于以下问题:PHP Reg::tplGet方法的具体用法?PHP Reg::tplGet怎么用?PHP Reg::tplGet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Reg
的用法示例。
在下文中一共展示了Reg::tplGet方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
<?php
/************************************************************
* InfiniteWP Admin panel *
* Copyright (c) 2012 Revmakx *
* www.revmakx.com *
* *
************************************************************/
$historyData = Reg::tplGet('historyData');
?>
<div class="dialog_cont view_backup server_info" style="width:960px">
<div class="th rep_sprite">
<div class="title droid700">Server Information </div>
<a class="cancel rep_sprite_backup">cancel</a></div>
<?php
if (!empty($d['historyData'])) {
?>
<div class="item_ind topBackup server_info_th">
<div class="backup_name stats config">Server Configuration</div>
<div class="backup_name stats suggestion">Suggestion</div>
<div class="backup_name stats value">Value</div>
<div class="backup_name stats status">Status</div>
<div class="clear-both"></div>
</div>
<?php
foreach ($d['historyData']['serverInfo'] as $infoKey => $infoValue) {
if ($infoValue['pass'] === "ok") {
$statusClass = "ok";
$statusString = "OK";
} elseif ($infoValue['pass'] === true) {
$statusClass = "good";
示例2: array
* *
************************************************************/
?>
<div class="site_bar_btn rep_sprite float-right" style="margin-right:10px;">
<div id="process_queue" class="<?php
if ($d['showInProgress']) {
?>
in_progress<?php
}
?>
historyToolbar">Process Queue</div>
<div class="queue_cont" id="historyQueue">
<?php
$statusMessages = array("writingRequest" => "Adding to queue", "pending" => "Pending", "initiated" => "Initiated", "running" => "Running", "scheduled" => "Waiting in queue", "processingResponse" => "Processing response", "multiCallWaiting" => "Running");
if (!empty($d['actionsHistoryData'])) {
$sitesData = Reg::tplGet('sitesData');
foreach ($d['actionsHistoryData'] as $actionID => $actionHistory) {
$showByDetailedActionGroup = $actionHistory['type'] == 'PTC' || ($actionHistory['action'] == 'manage' || $actionHistory['action'] == 'install') && ($actionHistory['type'] == 'plugins' || $actionHistory['type'] == 'themes');
$showByDetailedActionGroup2 = true;
if (empty($actionHistory)) {
continue;
}
$actionIDHTML = str_replace('.', '', $actionID);
if ($actionHistory['status'] == 'pending' || $actionHistory['status'] == 'multiCallWaiting') {
$actionOverallStatus = '';
} elseif ($actionHistory['statusSummary']['total'] == $actionHistory['statusSummary']['success']) {
$actionOverallStatus = 'success';
} else {
$actionOverallStatus = 'failure';
}
$percentageDone = ((int) $actionHistory['historyStatusSummary']['success'] + (int) $actionHistory['historyStatusSummary']['error']) / (double) $actionHistory['historyStatusSummary']['total'] * 100;