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 js调用html页面需要隐藏某个按钮
    • ¥15 ads仿真结果在圆图上是怎么读数的
    • ¥20 Cotex M3的调试和程序执行方式是什么样的?
    • ¥15 一道python难题3
    • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
    • ¥15 牛顿斯科特系数表表示
    • ¥15 arduino 步进电机
    • ¥20 程序进入HardFault_Handler
    • ¥15 oracle集群安装出bug
    • ¥15 关于#python#的问题:自动化测试