public function renderCheckAllOffer(&$output, Am_Grid_ReadOnly $grid) { $start = (int) strpos($output, '<table'); $div = '<!-- check all offer block -->' . PHP_EOL; $div .= '<div class="check-all-offer" style="display:none">' . PHP_EOL; $div .= '<div class="check-all-offer-offer">'; $div .= ___('All %s records on this page are selected', '<b>' . $this->countRecords . '</b>') . '.' . PHP_EOL; $div .= '<a href="javascript:" class="check-all-offer-offer">'; $div .= ___("Select all %s records matching your search", '<b>' . $grid->getDataSource()->getFoundRows() . '</b>'); $div .= '.</a>' . PHP_EOL; $div .= '</div>' . PHP_EOL; $div .= '<div class="check-all-offer-selected" style="display:none">'; $div .= ___('%s records on this page are selected. You can choose group operation in select box below or %scancel%s', '<b>' . $grid->getDataSource()->getFoundRows() . '</b>', '<a href="javascript:" class="check-all-offer-cancel">', '</a>') . PHP_EOL; $div .= '</div>' . PHP_EOL; $div .= '</div>' . PHP_EOL; $div .= '<!-- end of check all offer block -->' . PHP_EOL; $output = substr_replace($output, $div, $start, 0); }