Open-AudIT https://www.open-audit.org/phpBB3/ |
|
formating error in system report PDF https://www.open-audit.org/phpBB3/viewtopic.php?f=8&t=4258 |
Page 1 of 1 |
Author: | montebond [ Sun Feb 13, 2011 12:57 pm ] |
Post subject: | formating error in system report PDF |
I am getting a formating error when I select PDF report output shows this with the extra html formating error Date First Audited 2011-02-12 14:49 Date Last Audited 2011-02-12 14:50 I can not seem to find which file is causing this, however if I right click and view source I see the formating error in the source as well. <td align="left" class="system_tablebody_left" >Date First Audited:</td> <td align="left" class="system_tablebody_right">2007-10-25 17:09</td> </tr> <tr style="background-color:#F1F1F1;" > <td align="left" class="system_tablebody_left" >Date Last Audited:</td> <td align="left" class="system_tablebody_right">2011-02-11 06:59</td> </tr> I have current Trunk from the svn running on wamp stack, I am viewing this with IE8 Thanks for any help Montebond |
Author: | montebond [ Mon Feb 14, 2011 12:35 pm ] |
Post subject: | Fixed : formating error in system report PDF |
It seems i have found the error in include_functions.php At line 79 Change this function return_date_time($timestamp) { $timestamp = substr($timestamp, 0, 4) . "-" . substr($timestamp, 4, 2) . "-" . substr($timestamp, 6, 2) . " " . substr($timestamp, 8, 2) . ":" . substr($timestamp, 10, 2); return $timestamp; to this..... function return_date_time($timestamp) { $timestamp = substr($timestamp, 0, 4) . "-" . substr($timestamp, 4, 2) . "-" . substr($timestamp, 6, 2) . " " . substr($timestamp, 8, 2) . ":" . substr($timestamp, 10, 2); return $timestamp; some one talking about changing the formating of date pushed me in the correct direction. Montebond |
Author: | jpa [ Tue Feb 15, 2011 3:46 am ] |
Post subject: | Re: formating error in system report PDF |
Patch system_export.php. It looks like this was handled in the past. Don't know why it was removed other than the PHP 4.3 requirement. There might be other repercussions but I doubt it. [code] Index: system_export.php =================================================================== --- system_export.php (revision 1251) +++ system_export.php (working copy) @@ -245,7 +245,7 @@ if( (!isset($field["show"]) OR $field["show"]!="n") AND (!isset($field["print"]) OR $field["print"]="n") ){ $col_count++; $show_value_2 = ConvertSpecialField($myrow, $field, $db, "system"); - //$show_value_2 = html_entity_decode ($show_value_2); /* >PHP 4.3 */ + $show_value_2 = html_entity_decode ($show_value_2); /* >PHP 4.3 */ $show_value_1 = $field["head"]; //IF Horizontal Table-Layout [/code] |
Page 1 of 1 | All times are UTC + 10 hours |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |