本文整理汇总了PHP中messages::view_all_archive_message方法的典型用法代码示例。如果您正苦于以下问题:PHP messages::view_all_archive_message方法的具体用法?PHP messages::view_all_archive_message怎么用?PHP messages::view_all_archive_message使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类messages
的用法示例。
在下文中一共展示了messages::view_all_archive_message方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: message
$message = ' Successfully unarchive the message(s)';
break;
case 'delete_some_msgs':
$message = ' Successfully delete the message(s).';
break;
case 'failed_delete':
$message = ' Failed to delete the message.';
break;
case 'sent':
$message = ' Successfully sent the message ' . $_SESSION['title'];
break;
}
unset($_SESSION['task']);
}
$msg = new messages();
$allmessages = $msg->view_all_archive_message($userID);
$totalrows = count($allmessages);
$limit = 10;
$paging = ceil($totalrows / $limit);
$scroll = 1;
$scrollnumber = 5;
if (isset($_GET['page'])) {
$page = $_GET['page'];
} else {
$page = 1;
}
$start = $page * $limit - $limit;
$pagelink = new paging($page, $totalrows, $limit, $paging, $scroll, $scrollnumber);
//$allmessages = $msg->view_all_messages_limit ( $userID, $start, $limit );
//print_r( $allmessages );
$j = $start + 1;