duannian7116 2017-04-06 08:11
浏览 50

在新选项卡中打开批量操作,如果已经选择prestashop,则不要让select字段

I'm working on prsetashop 1.6 right now.

I have a module that displays a data listing and I'm using bulk actions to select those rows that I want to open in a new jane form, it's already working but open in the same window and I wanted to in a new tab.

Another part is that I wanted to not show up on the lines that I have previously selected.

I'll show you the code I have. I really need help.

(...)   
    $helper = new HelperList();
    $helper->module = $this;
    $helper->shopLinkType = '';
    $helper->simple_header = false;
    $helper->identifier = 'id_contabilidade_faturacao';
    $helper->actions = array('edit', 'envio');
    $helper->show_toolbar = true;
    $count = '<span class="badge">'.count($content).'</span>';
    $helper->title = $this->l('List Invoices Download').': '.$count;
    $helper->table = $table;
    $helper->bulk_actions = array(
        'enviar_email' => array(
            'text' => $this->l('Selecionar para envio email'),
            'icon' => 'icon-send',
            'confirm' => $this->l('Tem a certeza que selecionou corretamente?')
        )
    );
    $helper->{$helper->table.'_pagination'} = 50;
    $helper->token = Tools::getAdminTokenLite('AdminModules');
    $helper->currentIndex = AdminController::$currentIndex.'&configure='.$this->name;
     //var_dump($this->displayAddLink($token = null, $id, $name = null), $this->displayEnvioLink($token = null, $id, $name = null));exit;
    $this->_html .= $helper->generateList($content, $this->fields_list);
}
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
    • ¥15 Vue3地图和异步函数使用
    • ¥15 C++ yoloV5改写遇到的问题
    • ¥20 win11修改中文用户名路径
    • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
    • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
    • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
    • ¥15 帮我写一个c++工程
    • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
    • ¥15 关于smbclient 库的使用