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


PHP Results::display_col_headers方法代码示例

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


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

示例1: array

    }
    $title = $current_File->dget('title');
    if ($title !== '') {
        $r .= '<span class="filemeta"> - ' . $title . '</span>';
    }
    return $r;
}
$Results->cols[] = array('th' => T_('Destination'), 'td' => '%display_link()%', 'td_class' => 'fm_filename');
$Results->cols[] = array('th' => T_('Link ID'), 'td' => '$link_ID$', 'th_class' => 'shrinkwrap', 'td_class' => 'shrinkwrap');
if ($current_User->check_perm('files', 'view', false, $Blog->ID)) {
    $Results->cols[] = array('th' => T_('Actions'), 'td_class' => 'shrinkwrap', 'td' => '%link_actions( #link_ID#, {ROW_IDX_TYPE}, "' . $LinkOwner->type . '" )%');
}
$Results->cols[] = array('th' => T_('Position'), 'td_class' => 'shrinkwrap', 'td' => '%display_link_position( {row} )%');
// Add attr "id" to handle quick uploader
$compact_results_params = $AdminUI->get_template('compact_results');
$compact_results_params['body_start'] = str_replace('<tbody', '<tbody id="filelist_tbody"', $compact_results_params['body_start']);
$compact_results_params['no_results_start'] = str_replace('<tbody', '<tbody id="filelist_tbody"', $compact_results_params['no_results_start']);
$Results->display($compact_results_params);
// Print out JavaScript to change a link position
echo_link_position_js();
if ($Results->total_pages == 0) {
    // If no results we should get a template of headers in order to add it on first quick upload
    ob_start();
    $Results->display_col_headers();
    $table_headers = ob_get_clean();
} else {
    // Headers are already on the page
    $table_headers = '';
}
// Display a button to quick upload the files by drag&drop method
display_dragdrop_upload_button(array('before' => '<div id="fileuploader_form">', 'after' => '</div>', 'fileroot_ID' => FileRoot::gen_ID('collection', $Blog->ID), 'path' => '/quick-uploads/' . ($LinkOwner->type == 'item' ? 'p' : 'c') . $LinkOwner->link_Object->ID . '/', 'list_style' => 'table', 'template_filerow' => '<table><tr>' . '<td class="firstcol shrinkwrap qq-upload-image"><span class="qq-upload-spinner">&nbsp;</span></td>' . '<td class="qq-upload-file fm_filename">&nbsp;</td>' . '<td class="qq-upload-link-id shrinkwrap">&nbsp;</td>' . '<td class="qq-upload-link-actions shrinkwrap">' . '<div class="qq-upload-status">' . TS_('Uploading...') . '<span class="qq-upload-spinner"></span>' . '<span class="qq-upload-size"></span>' . '<a class="qq-upload-cancel" href="#">' . TS_('Cancel') . '</a>' . '</div>' . '</td>' . '<td class="qq-upload-link-position lastcol shrinkwrap"></td>' . '</tr></table>', 'display_support_msg' => false, 'additional_dropzone' => '#filelist_tbody', 'filename_before' => '', 'LinkOwner' => $LinkOwner, 'display_status_success' => false, 'status_conflict_place' => 'before_button', 'conflict_file_format' => 'full_path_link', 'resize_frame' => true, 'table_headers' => $table_headers));
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_link_list.view.php


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