⚠ In case you've missed it we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


grocery crud PHP Codeigniter Callback_column

  • Please log in to reply
No replies to this topic

#1 rteranm



  • Members
  • PipPip
  • 10 posts

Posted 09 December 2012 - 11:04 PM

If Callback_column used to call such a function and change color fields to export when you leave the tags in HTML

$value="<b><font color='#666600'>".$value."</font></b>";

Fco. Orellana Maquinaria No 1 (Babor) <b><font color='orange'>23731</font></b>
Fco. Orellana Maquinaria No 3 (Estribor) <b><font color='orange'>23735</font></b>

Is solved by going to the grocery crud Liberia, and adding


foreach($data->list as $num_row => $row){
foreach($data->columns as $column){
//$string_to_export .= $this->_trim_export_string($row->{$column->field_name})."\t";
$string_to_export .= strip_tags($this->_trim_export_string($row->{$column->field_name})."\t");
$string_to_export .= "\n";

Fco. Orellana Maquinaria No 1 (Babor) 23731
Fco. Orellana Maquinaria No 3 (Estribor) 23735

I hope it helps, Greetings

Roberto T.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users