本文整理汇总了PHP中DataGrid::skipHeader方法的典型用法代码示例。如果您正苦于以下问题:PHP DataGrid::skipHeader方法的具体用法?PHP DataGrid::skipHeader怎么用?PHP DataGrid::skipHeader使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataGrid
的用法示例。
在下文中一共展示了DataGrid::skipHeader方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
}
if (!isset($cgi->sort) || $cgi->sort != 'asc' && $cgi->sort != 'desc') {
$cgi->sort = 'desc';
}
if ($cgi->category == 'Sent') {
$list = $msg->getSent(false, false, $limit, $cgi->offset, $cgi->orderBy, $cgi->sort);
} elseif ($cgi->category == 'Inbox') {
$list = $msg->getFolder('', false, $limit, $cgi->offset, $cgi->orderBy, $cgi->sort);
} elseif ($cgi->category == 'Trash') {
$list = $msg->getTrash($limit, $cgi->offset, $cgi->orderBy, $cgi->sort);
} else {
$list = $msg->getFolder($cgi->category, false, $limit, $cgi->offset, $cgi->orderBy, $cgi->sort);
}
if ($cgi->category == 'Sent') {
$dg = new DataGrid('sitellite_message', array('subject' => intl_get('Subject'), 'msg_date' => intl_get('Date'), 'recipients' => intl_get('To')), $limit);
$dg->skipHeader('recipients');
} else {
$dg = new DataGrid('sitellite_message', array('subject' => intl_get('Subject'), 'msg_date' => intl_get('Date'), 'from_user' => intl_get('From')), $limit);
if ($cgi->category != 'Trash') {
$dg->setDeleteUrl(site_prefix() . '/index/cms-messages-delete-action');
$categories = $msg->categories();
$dg->footer = template_simple('messages/footer.spt', array('list' => $categories, 'current' => $cgi->category));
}
}
$dg->primaryKey('id');
$dg->setEditUrl(site_prefix() . '/index/cms-messages-view-action');
if ($cgi->category == 'Sent') {
$dg->filter(array('subject' => 'filter_cms_messages_subject', 'msg_date' => 'filter_cms_messages_date', 'recipients' => 'filter_cms_messages_to'));
} else {
$dg->filter(array('subject' => 'filter_cms_messages_subject', 'msg_date' => 'filter_cms_messages_date', 'from_user' => 'filter_cms_messages_from'));
}