本文整理汇总了PHP中DataGrid::primaryKey方法的典型用法代码示例。如果您正苦于以下问题:PHP DataGrid::primaryKey方法的具体用法?PHP DataGrid::primaryKey怎么用?PHP DataGrid::primaryKey使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataGrid
的用法示例。
在下文中一共展示了DataGrid::primaryKey方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: template_simple
$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'));
}
$dg->rememberValue('category', $cgi->category);
$dg->list =& $list;
$dg->total =& $msg->total;
page_title(intl_get('Folder') . ': ' . $cgi->category);
echo template_simple(CMS_JS_ALERT_MESSAGE, $GLOBALS['cgi']);
echo template_simple('
<p>
<a href="{site/prefix}/index/cms-cpanel-action">{intl Home}</a>
<a href="{site/prefix}/index/cms-messages-compose-action">{intl Compose Message}</a>