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>";
$value=trim($value);
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
libraries\grocery_crud.php
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.
@rteranm


Callback_column
Started by rteranm, Dec 09 2012 11:04 PM
grocery crud PHP Codeigniter Callback_column
No replies to this topic
Also tagged with one or more of these keywords: grocery crud, PHP, Codeigniter, Callback_column
Support →
I have a question →
Grocery Crud Enterprise is working well with automatic routing, but not with defined routing in codeigniter 4Started by somsankarnaskar, 17 Dec 2020 ![]() |
|
![]() |
||
Support →
I have a question →
Database Syntax error Codeigniter Grocery Crud with SQLiteStarted by spsuresh54, 27 Jun 2020 ![]() |
|
![]() |
||
Support →
Grocery CRUD Enterprise →
Trying to migrate to Enteprise versionStarted by matiasnabarro@gmail.com, 19 Mar 2020 ![]() |
|
![]() |
||
Support →
I have a question →
How to create a pdf from read viewStarted by Luiz_Techboard_BR, 17 Mar 2020 ![]() |
|
![]() |
||
Support →
I have a question →
Change date format in relation_n_n Name StringStarted by Timti, 02 Dec 2019 ![]() |
|
![]() |
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users