当前位置: 首页>>代码示例>>PHP>>正文


PHP DataGrid::rememberValue方法代码示例

本文整理汇总了PHP中DataGrid::rememberValue方法的典型用法代码示例。如果您正苦于以下问题:PHP DataGrid::rememberValue方法的具体用法?PHP DataGrid::rememberValue怎么用?PHP DataGrid::rememberValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DataGrid的用法示例。


在下文中一共展示了DataGrid::rememberValue方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: template_simple

    $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> &nbsp; &nbsp; &nbsp;
		<a href="{site/prefix}/index/cms-messages-compose-action">{intl Compose Message}</a> &nbsp; &nbsp; &nbsp;
		<a href="{site/prefix}/index/cms-messages-action">{intl Folders}</a><!-- &nbsp; &nbsp;
		<a href="{site/prefix}/index/cms-messages-settings-action">{intl Preferences}</a> &nbsp; &nbsp;
		<a href="{site/prefix}/index/help-app?appname=cms">{intl Help}</a -->
	</p>
');
echo $dg->draw();
开发者ID:vojtajina,项目名称:sitellite,代码行数:31,代码来源:index.php


注:本文中的DataGrid::rememberValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。