I Love PHPMaker

... because it gets even more powerful and flexible!!

  • About
  • Terms and Conditions
  • Membership Options
  • Sitemap
  • Downloads
    • PHPMaker Extensions Download
    • PHPMaker Projects Download
    • PHP Report Maker Extensions Download
I Love PHPMaker » PHP Report Maker » Optimizing Main Table Width in PHP Report Maker 5.1 to Maximum Width of Your Site that Generated by PHPMaker 9.0.2
How to Add jQuery slideDown and slideUp Effects into the Filter Panel in Websites that Created with PHP Report Maker 5.1
How to Synchronize CSS in PHP Report Maker 5.1 in order to Compatible with PHPMaker 9.0.2

June 22, 2012

Optimizing Main Table Width in PHP Report Maker 5.1 to Maximum Width of Your Site that Generated by PHPMaker 9.0.2

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]

  1. 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 ?>
    
  2. Still in that \Script\rpt-summary.php file, find again this code:

    <p class="phpreportmaker ewTitle"><?php echo $<!--##=sTblVar##-->->TableCaption() ?>
    &nbsp;&nbsp;<?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() ?>
    &nbsp;&nbsp;<?php $<!--##=sPageObj##-->->ExportOptions->Render("body"); ?></span>
    <?php // End of modification Customize Page Title Style, by Masino Sinaga, May 1, 2012 ?>
    
  3. 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 ?>
    
  4. 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 ?>
    
  5. Still in that \Script\rpt-crosstab.php file, find again this code:

    <p class="phpreportmaker ewTitle"><?php echo $<!--##=sTblVar##-->->TableCaption() ?>
    &nbsp;&nbsp;<?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() ?>
    &nbsp;&nbsp;<?php $<!--##=sPageObj##-->->ExportOptions->Render("body"); ?></span>
    <?php // End of modification Customize Page Title Style, by Masino Sinaga, May 1, 2012 ?>
    
  6. 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 ?>
    
  7. Finally, re-generate your script files using PHP Report Maker.

[/hidepost]

Article by Masino Sinaga / PHP Report Maker / content width, main table, maximum width, PHP Report Maker 5.1.0, PHPMaker 9.0.2, PHPMaker 9.0.3, PHPMaker 9.0.4, table width Leave a Comment

How to Add jQuery slideDown and slideUp Effects into the Filter Panel in Websites that Created with PHP Report Maker 5.1
How to Synchronize CSS in PHP Report Maker 5.1 in order to Compatible with PHPMaker 9.0.2

Leave a Reply Cancel reply

You must be logged in to post a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • A New PHPMaker 2025 Project File Is Released
  • PHPMaker 2025 Demo Project File Is Released
  • Masino Extensions for PHPMaker 2025 Is Released!
  • A New PHPMaker 2024 Project File Is Released
  • PHPMaker 2024 Demo Project File Is Released
  • Masino Extensions for PHPMaker 2024 Is Released!
  • PHPMakerProjects.com, For Those Who Need PHPMaker Project Sample
  • A New PHPMaker 2023 Project File Is Released
  • PHPMaker 2023 Demo Project File Is Released
  • Masino Extensions for PHPMaker 2023 Is Released!

Search

Recent Comments

  • Masino Sinaga on Masino Extensions for PHPMaker 2024 Is Released!
  • Masino Sinaga on A New PHPMaker 2024 Project File Is Released
  • Masino Sinaga on PHPMaker 2023 Demo Project File Is Released
  • Edward Babatunde on PHPMaker 2023 Demo Project File Is Released
  • Edward Babatunde on Masino Extensions for PHPMaker 2024 Is Released!

Demo Website

  • Demo of I Love PHPMaker 2025 (MasinoExtensions).
  • Stock Inventory Management for PHPMaker 2025.

Another Demo

The following template are not available in this site (must be purchased separately)

  • PHPMaker v2018 Horizontal Vertical Template.
  • PHPMaker v2017 Horizontal Vertical Template.

Demo Explanation

Stock Inventory Management is the good project for your reference, since it uses the real example in the real world. Many useful features you can use from this project, such as how to add the Thousand and Decimal separator character, and also how to calculate multiple row in Grid-Add when End-Users are entering data into the Grid-Add mode.

Categories

  • Customize Template (103)
  • General (4)
  • PHP Report Maker (17)
  • PHP Report Maker Extensions (2)
  • PHPMaker Extensions (84)
  • PHPMaker Projects (7)
  • Tips and Trick (72)

Articles based on version

  • PHPMaker 2025
  • PHPMaker 2024
  • PHPMaker 2023
  • PHPMaker 2022
  • PHPMaker 2021
  • PHPMaker 2020
  • PHPMaker 2019
  • PHPMaker 2018
  • PHPMaker 2017.0.7
  • PHPMaker 12.0.7
  • PHPMaker 11.0.6
  • PHPMaker 10.0.5
  • PHPMaker 9.2.0
  • PHPMaker 8.0.3
  • PHP Report Maker 12

(c) I Love PHPMaker 2010 - 2025 by Masino Sinaga | WordPress | Log in | Back to top