本文整理汇总了PHP中notifications::retrieveListGeneralQuery方法的典型用法代码示例。如果您正苦于以下问题:PHP notifications::retrieveListGeneralQuery方法的具体用法?PHP notifications::retrieveListGeneralQuery怎么用?PHP notifications::retrieveListGeneralQuery使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类notifications
的用法示例。
在下文中一共展示了notifications::retrieveListGeneralQuery方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: list
list($notifications_id, $not_class) = split('-', $ids);
$notifications->closeOpenFeedback($notifications_id);
$result = array();
$result['ids'] = $ids;
$result['notifications_id'] = $notifications_id;
ajaxReturn($result);
exit;
} elseif ($_POST['me_action'] == 'REFRESHFILTERS') {
$sender = tep_db_prepare_input($_POST['sender']);
$filter = isset($_POST['sender']) && $_POST['sender'] != '' ? "AND posted_by = '{$sender}'" : "";
}
}
$date_oldest = date('Y-m-d', strtotime("-14 day"));
$date_today = date('j M Y');
$date_yesterday = date('j M Y', strtotime("-1 day"));
$n_lists = $notifications->retrieveListGeneralQuery("muhn.user_id={$session_userinfo['id']} AND (muhn.status=0 OR muhn.need_feedback=1 OR muhn.posted_date>='{$date_oldest}') {$filter}", 'muhn.posted_date DESC, muhn.posted_by');
$notifications_new = array();
$printed_date = '';
$previous_date = '';
//$dbposted = tep_db_query("SELECT DISTINCT posted_by FROM minierp_users_has_notifications WHERE user_id = '$session_userinfo[id]'");
//while($r=tep_db_fetch_array($dbposted))$postedusers[$r['posted_by']] = $r['posted_by'];
$postedusers = array();
foreach ($n_lists as $n) {
if (!isset($postedusers[$n['posted_by']])) {
$postedusers[$n['posted_by']] = $n['posted_by'] == '0' || $n['posted_by'] == 'auto-set' ? 'Manobo' : $n['posted_by'];
}
}
$content .= '<div style="float:right;"><form id="filters" action="" method="post"><input type="hidden" name="me_action" value="REFRESHFILTERS"/><strong style="margin-right:10px;">Show posted by</strong><select name="sender" onchange="$(\'#filters\').submit();"><option value="">All</option>' . loadComboListFromArray($postedusers, null, $sender) . '</select></form></div>';
$content .= '<br/><br/>';
if (count($n_lists) > 0) {
$content .= '<div id="my-notifications"><div id="notifications-list">';