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 #MATLAB仿真#车辆换道路径规划
    • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
    • ¥15 数据可视化Python
    • ¥15 要给毕业设计添加扫码登录的功能!!有偿
    • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
    • ¥15 微信公众号自制会员卡没有收款渠道啊
    • ¥15 stable diffusion
    • ¥100 Jenkins自动化部署—悬赏100元
    • ¥15 关于#python#的问题:求帮写python代码
    • ¥20 MATLAB画图图形出现上下震荡的线条