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 » Making a Fixed Width Site Using PHP Report Maker 6.0.0
Switching Menu from Horizontal to Vertical and Vice Versa Easily Using PHP Report Maker 6.0.0
How to Customize Pagination Style in Websites that Generated by PHP Report Maker 5.1

December 2, 2012

Making a Fixed Width Site Using PHP Report Maker 6.0.0

This following customization will change the look of your web application that generated by PHP Report Maker become fixed-width layout. Just like PHPMaker, web applications that generated by PHP Report Maker have the layout which have a hundred percent approach of your screen width. If you want to change it become the fixed-width site, then this customization is definitely for you.

The main reason why I prefer the fixed-width site rather than the hundred percent width of screen is since I don't want to make the web application which has the header width is smaller than the maximum width of the report itself, especially when you resize the browser’s window become smaller than the report width. There will be a horizontal scroll shown up after you resize your browser window, and when you are scrolling it to the right, then you will see the header width become smaller than the report width. I think this is not a good condition for web application.

[hidepost]

  1. Open your \Script\rpt-config.php file, and find this code:

    // General
    

    before that line, please insert the following code:

    // Begin of modification Fixed Width Site, by Masino Sinaga, December 2, 2012
    define("MSR_SCROLL_TABLE_WIDTH", 1100, TRUE); // The width size of the scroll table
    define("MSR_VERTICAL_MENU_WIDTH", 150, TRUE); // Vertical menu width
    define("MSR_TOTAL_WIDTH", MSR_SCROLL_TABLE_WIDTH + MSR_VERTICAL_MENU_WIDTH + 20, TRUE);
    // End of modification Fixed Width Site, by Masino Sinaga, December 2, 2012
    
  2. Open your \Script\rpt-template.php file, and find this code:

    </head>
    

    before that line, please insert the following code:

    <?php // Begin of modification  Fixed Width Site, by Masino Sinaga, December 2, 2012 ?>
    <?php if (@$_GET&#91;"export"&#93; == "") { ?>
    <?php $bordercolor = ""; ?>
    <style>
    html {
      height: auto;
      border-left: 1px solid <?php echo $bordercolor; ?>;
      border-right: 1px solid <?php echo $bordercolor; ?>;
      border-top: 1px solid <?php echo $bordercolor; ?>;
      border-bottom: 1px solid <?php echo $bordercolor; ?>;
      width: <?php echo (MSR_TOTAL_WIDTH); ?>px;
      display: block;
      margin-left: auto;
      margin-right: auto;
      margin-top: 10px;
      margin-bottom: 10px;    
    }
    
    body {
      background-color: inherit; /* background color */
      color: inherit; /* text color */
      margin: 0; /* top right bottom left */
      width: <?php echo (MSR_TOTAL_WIDTH); ?>px;
      height: auto;
      display: block;
    }
    
    /* template layout */
    .ewLayout {
      width: <?php echo (MSR_TOTAL_WIDTH); ?>px;
      height: 100%;
    }
    
    .ewContentTable {
      width: <?php echo (MSR_TOTAL_WIDTH); ?>px;
      height: 100%;
      clear: left;
    }
    
    .ewMenuColumn {
      width: <?php echo MSR_VERTICAL_MENU_WIDTH; ?>px;
    }
    
    </style>
    <?php } ?>
    <?php // End of modification Fixed Width Site, by Masino Sinaga, December 2, 2012 ?>
    
  3. Finally, re-generate your script files using PHP Report Maker as always.

[/hidepost]

Article by Masino Sinaga / PHP Report Maker / fixed width, PHP Report Maker 6.0.0 1 Comment

Switching Menu from Horizontal to Vertical and Vice Versa Easily Using PHP Report Maker 6.0.0
How to Customize Pagination Style in Websites that Generated by PHP Report Maker 5.1

Trackbacks

  1. Optimizing Main Table Width in Websites that Generated by PHP Report Maker 6.0.0 — I Love PHPMaker says:
    December 3, 2012 at 11:09 am

    […] Making a Fixed Width Site Using PHP Report Maker 6.0.0. […]

    Log in to Reply

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 2020 Project File Is Released
  • PHPMaker 2020 Demo Project File Is Released
  • Masino Extensions for PHPMaker 2020 Is Released!
  • Inventory Stock Management Project, Why Should You Have It?
  • A New PHPMaker 2019 Project File Is Released!
  • PHPMaker 2019 Demo Project File Is Released!
  • Masino Extensions for PHPMaker 2019 Is Released!
  • A New PHPMaker 2018 Project File Is Released!
  • PHPMaker 2018 Demo Project File Is Released!
  • Masino Extensions for PHPMaker 2018 Is Released!

Search

Recent Comments

  • Masino Sinaga on Masino Extensions for PHPMaker 2019 Is Released!
  • Masino Sinaga on Masino Extensions for PHPMaker 2019 Is Released!
  • Brien Devine on Masino Extensions for PHPMaker 2019 Is Released!
  • Brien Devine on Masino Extensions for PHPMaker 2019 Is Released!
  • Masino Sinaga on Masino Extensions for PHPMaker 2019 Is Released!

Demo Website

  • Demo of I Love PHPMaker 2020 (MasinoExtensions).
  • Indonesia Post Offices.
  • Stock Inventory Management.
  • Demo of PHPMaker + PHP Report Maker

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 (3)
  • PHP Report Maker (17)
  • PHP Report Maker Extensions (2)
  • PHPMaker Extensions (76)
  • Tips and Trick (72)

Articles based on version

  • 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 - 2019 by Masino Sinaga | WordPress | Log in | Back to top