本文整理汇总了PHP中CUser::getLogList方法的典型用法代码示例。如果您正苦于以下问题:PHP CUser::getLogList方法的具体用法?PHP CUser::getLogList怎么用?PHP CUser::getLogList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CUser
的用法示例。
在下文中一共展示了CUser::getLogList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getLogs
/**
* @deprecated
*/
public static function getLogs($userId, $startDate, $endDate)
{
trigger_error("CUser::getLogs has been deprecated in v3.0 and will be removed by v4.0. Please use CUser->getLogList() instead.", E_USER_NOTICE);
$user = new CUser();
return $user->getLogList($userId, $startDate, $endDate);
}
示例2: checkDate
" onclick="return checkDate('start','end')" /></td>
</tr>
</table>
</form>
<?php
if (w2PgetParam($_REQUEST, 'showdetails', 0) == 1) {
$fieldList = array('user_username', 'contact_last_name', 'company_name', 'date_time_in', 'user_ip');
$fieldNames = array('First Name', 'Last Name', 'Internet Address', 'Date Time IN', 'Date Time OUT');
$start_date = date('Y-m-d', strtotime(w2PgetParam($_POST, 'log_start_date', date('Y-m-d'))));
$start_date = $AppUI->convertToSystemTZ($start_date);
$end_date = date('Y-m-d 23:59:59', strtotime(w2PgetParam($_POST, 'log_end_date', date('Y-m-d'))));
$end_date = $AppUI->convertToSystemTZ($end_date);
$user_id = isset($user_id) ? $user_id : 0;
$user = new CUser();
$rows = $user->getLogList($user_id, $start_date, $end_date);
?>
<table class="tbl list center" width="50%">
<tr>
<?php
foreach ($fieldNames as $index => $name) {
?>
<th><?php
echo $AppUI->_($fieldNames[$index]);
?>
</th>
<?php
}
?>
</tr>
<?php