當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Reg::tplGet方法代碼示例

本文整理匯總了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";
開發者ID:Trideon,項目名稱:gigolo,代碼行數:31,代碼來源:serverInformation.tpl.php

示例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;
開發者ID:Trideon,項目名稱:gigolo,代碼行數:31,代碼來源:processQueue.tpl.php


注:本文中的Reg::tplGet方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。