本文整理汇总了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> </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'))) {