If you have implemented the customization that I wrote in article How to Optimize Main Table Width to Maximum Width of Your Site Created with PHPMaker 9.0.1 (which is also working in latest version PHPMaker 9.0.2), and then after you generate your report pages using PHP Report Maker 5.1, you will find that the main table width of the report does not adjust to the maximum width of your web application that generated by PHPMaker 9.0.2.
So here is the customization in order to optimize your main table width in the report pages that generated by PHP Report Maker 5.1 so that it will compatible with PHPMaker 9.0.2. In addition to optimize the main table width in report pages, this customization also will optimize the page title width.
[hidepost]
-
Open your \Script\rpt-summary.php file, and find this code:
<!-- Table Container (Begin) --> <table id="ewContainer" cellspacing="0" cellpadding="0" border="0">
then replace it with the following code:
<!-- Table Container (Begin) --> <?php // Begin of modification Optimize Report Width, by Masino Sinaga, June 21, 2012 ?> <table id="ewContainer" cellspacing="0" cellpadding="0" border="0" <?php if (MS_TABLE_WIDTH_STYLE==1) { echo "width=".MS_SCROLL_TABLE_WIDTH."px"; } elseif (MS_TABLE_WIDTH_STYLE==3) {echo "width=100%"; } ?>> <?php // End of modification Optimize Report Width, by Masino Sinaga, June 21, 2012 ?> -
Still in that \Script\rpt-summary.php file, find again this code:
<p class="phpreportmaker ewTitle"><?php echo $<!--##=sTblVar##-->->TableCaption() ?> <?php $<!--##=sPageObj##-->->ExportOptions->Render("body"); ?></p>then replace it with the following code:
<?php // Begin of modification Customize Page Title Style, by Masino Sinaga, May 1, 2012 ?> <span class="phpreportmaker ewTitle"><?php echo $<!--##=sTblVar##-->->TableCaption() ?> <?php $<!--##=sPageObj##-->->ExportOptions->Render("body"); ?></span> <?php // End of modification Customize Page Title Style, by Masino Sinaga, May 1, 2012 ?> -
Still in that \Script\rpt-summary.php file, find again this code:
<table class="ewGrid" cellspacing="0"><tr>
then replace it with the following code:
<?php // Begin of modification Optimize Report Width, by Masino Sinaga, June 21, 2012 ?> <table class="ewGrid" cellspacing="0" <?php if (MS_TABLE_WIDTH_STYLE==1) { echo "width=".MS_SCROLL_TABLE_WIDTH."px"; } elseif (MS_TABLE_WIDTH_STYLE==3) {echo "width=100%"; } ?>><tr> <?php // End of modification Optimize Report Width, by Masino Sinaga, June 21, 2012 ?> -
Open your \Script\rpt-crosstab.php file, and find this code:
<!-- Table container (begin) --> <table id="ewContainer" cellspacing="0" cellpadding="0" border="0">
then replace it with the following code:
<!-- Table Container (Begin) --> <?php // Begin of modification Optimize Report Width, by Masino Sinaga, June 21, 2012 ?> <table id="ewContainer" cellspacing="0" cellpadding="0" border="0" <?php if (MS_TABLE_WIDTH_STYLE==1) { echo "width=".MS_SCROLL_TABLE_WIDTH."px"; } elseif (MS_TABLE_WIDTH_STYLE==3) {echo "width=100%"; } ?>> <?php // End of modification Optimize Report Width, by Masino Sinaga, June 21, 2012 ?> -
Still in that \Script\rpt-crosstab.php file, find again this code:
<p class="phpreportmaker ewTitle"><?php echo $<!--##=sTblVar##-->->TableCaption() ?> <?php $<!--##=sPageObj##-->->ExportOptions->Render("body"); ?></p>then replace it with the following code:
<?php // Begin of modification Customize Page Title Style, by Masino Sinaga, May 1, 2012 ?> <span class="phpreportmaker ewTitle"><?php echo $<!--##=sTblVar##-->->TableCaption() ?> <?php $<!--##=sPageObj##-->->ExportOptions->Render("body"); ?></span> <?php // End of modification Customize Page Title Style, by Masino Sinaga, May 1, 2012 ?> -
Still in that \Script\rpt-crosstab.php file, find again this code:
<table class="ewGrid" cellspacing="0"><tr>
then replace it with the following code:
<?php // Begin of modification Optimize Report Width, by Masino Sinaga, June 21, 2012 ?> <table class="ewGrid" cellspacing="0" <?php if (MS_TABLE_WIDTH_STYLE==1) { echo "width=".MS_SCROLL_TABLE_WIDTH."px"; } elseif (MS_TABLE_WIDTH_STYLE==3) {echo "width=100%"; } ?>><tr> <?php // End of modification Optimize Report Width, by Masino Sinaga, June 21, 2012 ?> - Finally, re-generate your script files using PHP Report Maker.
[/hidepost]
Leave a Reply
You must be logged in to post a comment.