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


PHP Results::display_init方法代码示例

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


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

示例1: array

        $leave_text = get_icon('stop', 'imgtag', array('style' => 'margin-right:5px')) . T_('I want to end this conversation now!');
        $block_text = get_icon('ban', 'imgtag', array('style' => 'margin:0 7px 2px 1px;vertical-align:middle;')) . sprintf(T_('I want to block %s from sending me any more messages!'), $recipient_login);
        $confirm_leave_text = T_('Are you sure you want to close this conversation?');
        $confirm_block_text = sprintf(TS_('This action will close this conversion\\nand will block %s from starting any new\\nconversation with you.\\n(You can see blocked users in your contacts list)\\nAre you sure you want to close and block?'), $recipient_login);
        $leave_action = 'close';
    }
    if (is_admin_page()) {
        // backoffice
        $leave_url = '?ctrl=threads&thrd_ID=' . $edited_Thread->ID . '&action=' . $leave_action . '&' . url_crumb('messaging_threads');
        $close_and_block_url = '?ctrl=threads&thrd_ID=' . $edited_Thread->ID . '&action=close_and_block&block_ID=' . $recipient_ID . '&' . url_crumb('messaging_threads');
    } else {
        // frontoffice
        $leave_url = url_add_param($params['form_action'], 'disp=threads&thrd_ID=' . $edited_Thread->ID . '&action=' . $leave_action . '&redirect_to=' . rawurlencode(url_add_param($Blog->gen_blogurl(), 'disp=threads', '&')) . '&' . url_crumb('messaging_threads'));
        $close_and_block_url = url_add_param($params['form_action'], 'disp=threads&thrd_ID=' . $edited_Thread->ID . '&action=close_and_block&block_ID=' . $recipient_ID . '&redirect_to=' . rawurlencode(url_add_param($Blog->gen_blogurl(), 'disp=threads', '&')) . '&' . url_crumb('messaging_threads'));
    }
    echo '<p>';
    echo '<a href="' . $leave_url . '" onclick="return confirm( \'' . $confirm_leave_text . '\' );">' . $leave_text . '</a>';
    if ($leave_action == 'close') {
        // user want's to close this conversation ( there is only one recipient )
        echo '<br />';
        echo '<a href="' . $close_and_block_url . '" onclick="return confirm( \'' . $confirm_block_text . '\' );">' . $block_text . '</a>';
    }
    echo '</p>';
    echo '</div>';
}
// Disable rollover effect on table rows
$Results->display_init($display_params);
$display_params['list_start'] = str_replace('class="grouped', 'class="grouped nohover', $Results->params['list_start']);
// Dispaly message list
$Results->display($display_params);
echo $params['messages_list_end'];
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_message_list.view.php


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