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


PHP LogActions::GetLog方法代碼示例

本文整理匯總了PHP中LogActions::GetLog方法的典型用法代碼示例。如果您正苦於以下問題:PHP LogActions::GetLog方法的具體用法?PHP LogActions::GetLog怎麽用?PHP LogActions::GetLog使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在LogActions的用法示例。


在下文中一共展示了LogActions::GetLog方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __

    }
    print "</fieldset>\n";
}
?>
</div><!-- END div.right -->
<div class="table" id="pandn">
<div><div>
<div class="table style">
<?php 
// Operational log
// This is an optional block if logging is enabled
if (class_exists('LogActions') && $dev->DeviceID > 0) {
    print "\t<div>\n\t\t  <div><a>" . __("Operational Log") . "</a></div>\n\t\t  <div><div id=\"olog\" class=\"table border\">\n\t\t\t<div><div>" . __("Date") . "</div></div>\n";
    // Wrapping the actual log events with a table of their own and a div that we can style
    print "\t<div><div><div><div class=\"table\">\n";
    foreach (LogActions::GetLog($dev, false) as $logitem) {
        if ($logitem->Property == "OMessage") {
            print "\t\t\t<div><div>{$logitem->Time}</div><div>{$logitem->UserID}</div><div>{$logitem->NewVal}</div></div>\n";
        }
    }
    // Closing the row, table for the log events, and the stylable div
    print "\t</div></div></div></div>\n";
    // The input box and button
    print "\t\t\t<div><div><button type=\"button\">Add note</button><div><input /></div></div></div>\n";
    print "\t\t  </div></div>\n\t\t</div>\n";
    print "\t\t<!-- Spacer --><div><div>&nbsp;</div><div></div></div><!-- END Spacer -->\n";
    // spacer row
}
//HTML content condensed for PHP logic clarity.
// If $pwrCords is null then we're creating a device record. Skip power checking.
if (!is_null($pwrCords) && (isset($_POST['action']) && $_POST['action'] != 'Child' || !isset($_POST['action'])) && !in_array($dev->DeviceType, array('Physical Infrastructure', 'Patch Panel'))) {
開發者ID:spezialist1,項目名稱:openDCIM,代碼行數:31,代碼來源:devices.php


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