Webpage made with mod harbour + DBF files

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!
Post Reply
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Webpage made with mod harbour + DBF files

Post by Otto »

https://www.modharbour.club/winhotelqr/index.prg

Hello friends,

I will explain step by step how to use an extra preprocessor to simplify sourcecode and make it better readable.
This is if one does not use a framework.

I wish you all a lovely Sunday.
best regards,
Otto

Code: Select all

 $-> #COPYRIGHT : autor= Mag. Otto Atzwanger; date="2020-11-05"

    REQUEST DBFCDX
    REQUEST DBFFPT

    static hSetup, hIconsGrid, aIdxIconsGrid, hShowcases, aShowcases
    static hTestimonials, aTestimonials
    static hPageData
    static hPortfolio, aPortfolio
    static hHash_DBF, aRelationship_DBF

    function Main()

    -> READ_DATABASE

    CheckTables()

    -> DBF2HASHTABLE

    TEMPLATE PARAMS hSetup, hIconsGrid, hShowcases, hTestimonials, hPageData, hPortfolio, hHash_DBF

    <!DOCTYPE html>
    <html lang="en">

    -> HEAD

    <body>

    -> HEADER

    -> STARTSECTION

    -> ICONS_GRID

    <main id="main">

    -> PORTFOLIO2

    -> VIDEOS

    -> SOFTWARE

    -> ACCORDION

    -> TEAM

    -> CONTACT


    </main><!-- End #main -->

    -> FOOTER

    <a href="#" class="back-to-top"><i class="fa fa-chevron-up"></i></a>

    -> SCRIPTS_JS

    </body>

    </html>

    ENDTEXT

    return nil
    //-------------------------------------------------------------------------//

    -> #CONVERTUMLAUTE

    -> HARBOUR_FUNCTIONS

    -> CHECKTABLES

    -> #INIT_PROCEDURE

    //----------------------------------------------------------------------------//
 
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
Post Reply