| | |
| | | // convert charset using iconv module |
| | | if (function_exists('iconv') && $from != 'UTF-7' && $to != 'UTF-7') { |
| | | if ($iconv_options === null) { |
| | | // transliterate characters not available in output charset |
| | | $iconv_options = '//TRANSLIT'; |
| | | // ignore characters not available in output charset |
| | | $iconv_options = '//IGNORE'; |
| | | if (iconv('', $iconv_options, '') === false) { |
| | | // iconv implementation does not support options |
| | | $iconv_options = ''; |
| | | } |
| | | } |
| | | |
| | | // throw an exception if iconv reports an illegal character in input |
| | | // it means that input string has been truncated |
| | | set_error_handler('rcube_error_handler', E_NOTICE); |
| | |
| | | foreach ($table_data as $row_data) |
| | | { |
| | | $zebra_class = $c % 2 ? 'even' : 'odd'; |
| | | if (!empty($row_data['class'])) |
| | | $zebra_class .= ' '.$row_data['class']; |
| | | |
| | | $table->add_row(array('id' => 'rcmrow' . $row_data[$id_col], 'class' => $zebra_class)); |
| | | |
| | | // format each col |