Page 1 of 1

Webpage made with mod harbour + DBF files

Posted: Sun Nov 08, 2020 2:19 pm
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

    //----------------------------------------------------------------------------//