本文整理汇总了PHP中message::get_list方法的典型用法代码示例。如果您正苦于以下问题:PHP message::get_list方法的具体用法?PHP message::get_list怎么用?PHP message::get_list使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类message
的用法示例。
在下文中一共展示了message::get_list方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: message
--$_message;
if ($fback && $feedback) {
$do->feedback($message);
}
}
} else {
if ($status == 2 || $status == 1) {
if ($fromuser != $_username) {
message($L['message_msg_deny']);
}
}
}
$addtime = timetodate($addtime, 5);
$messages = array();
if ($_message) {
$messages = $do->get_list("touser='{$_username}' AND status=3 AND isread=0");
}
break;
case 'export':
if ($submit) {
$do->export($message) or message($do->errmsg);
} else {
$fromdate = timetodate(strtotime('-1 month'), 3);
$todate = timetodate($DT_TIME, 3);
}
break;
case 'empty':
if ($submit) {
$message['username'] = $_username;
if ($do->_clear($message)) {
dmsg($L['message_msg_empty'], $forward);
示例2: array
default:
$sfields = array('标题', '发件人', '收件人', 'IP', '内容');
$dfields = array('title', 'fromuser', 'touser', 'ip', 'content');
$S = array('状态', '草稿箱', '发件箱', '收件箱', '回收站');
isset($fields) && isset($dfields[$fields]) or $fields = 0;
$typeid = isset($typeid) ? intval($typeid) : -1;
$read = isset($read) ? intval($read) : -1;
$send = isset($send) ? intval($send) : -1;
$status = isset($status) ? intval($status) : 0;
$fields_select = dselect($sfields, 'fields', '', $fields);
$status_select = dselect($S, 'status', '', $status);
$condition = "groupids=''";
if ($keyword) {
$condition .= " AND {$dfields[$fields]} LIKE '%{$keyword}%'";
}
if ($status) {
$condition .= " AND status={$status}";
}
if ($typeid > -1) {
$condition .= " AND typeid={$typeid}";
}
if ($read > -1) {
$condition .= " AND isread={$read}";
}
if ($send > -1) {
$condition .= " AND issend={$send}";
}
$lists = $do->get_list($condition);
include tpl('message', $module);
break;
}