Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/classes.php on line 1127

Strict Standards: Redefining already defined constructor for class bbdb in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/db-mysql.php on line 12
What language does the SynApp2 code-generation produce? « Support Forums

Support Forums » General Discussion

What language does the SynApp2 code-generation produce?

(1 post)
  • Started 10 years ago by richard

  1. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/kses.php on line 512
    richard

    Administrator

    SynApp2 generates static w3c compliant HTML 4.01 and a few lines of JavaScript into each page of an application. The application and report navigation tabs are dynamically generated HTML. Appearance is managed exclusively with CSS.

    In practice, SynApp2 and the generated applications will run on, and with, just about any combination of browser, web server, PHP and MySQL version produced over the last 5 or 6 years.

    The following excerpt is from the synapp2.txt document:

    W3C standards compliant browser (FF 1.5+, IE 6+, Safari ?+, others)
    JavaScript/DOM (as supported by browser)
    AJAX data exchange layer
    Apache, Microsoft IIS
    MySQL 4+, Oracle 10g (Express Edition)
    PHP 4+
    Windows/Vista/Linux/Unix/Mac/iPhone/iPod Touch/Sun/LAMP

    The following excerpt is from page 9 of the SynApp2 Concepts document:

    While the framework supports dynamic GUI generation, all of the GUI forms that SynApp2 generates are static HTML. This means that you can use readily available markup editing tools to stylize them. Do this as a final step, after the design of your database and application has been proven.

    Almost all of what SynApp2 generates is view related – GUI. Very little executable code is emitted. SynApp2 generated executable code is limited to a few, simple, name vs. value mapping statements. It is the generalized, application-independent executable code of the underlying SynApp2 MVC framework that is reused, or shared, by every SynApp2 powered application. There will be more on this later, but for those who are leery of code generators, take comfort. Amazing things can be done with the SynApp2 MVC framework, beyond just supporting automatically generated applications.

    Here is a sample of the city.htm page generated for the Census application, described in the SynApp2 Walk through No. 1 document:
    '
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <!--
    /*
    **
    +======================================================================+
    | SynApp2 - Web Application Generator |
    +======================================================================+
    **
    ** http://www.synapp2.org


    **
    */
    -->
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="Pragma" content="no-cache">
    <meta name="generator" content="SynApp2">

    <!--{version}-->
    <!-- 0.1.8 -->
    <!--{/version}-->

    <!--{title}-->
    <title>
    City
    </title>
    <!--{/title}-->

    <!--{layout_css}-->
    <link rel="stylesheet" type="text/css" href="../_shared_/standard.css">
    <!--{/layout_css}-->

    <link rel="stylesheet" type="text/css" href="../_shared_/3rdparty/date/datepickercontrol.css">

    <!-- //// -->

    <script type="text/javascript" src="../_shared_/synapp2.js"></script>
    <script type="text/javascript" src="../_shared_/3rdparty/webtoolkit.drag.js"></script>
    <script type="text/javascript" src="../_shared_/3rdparty/date/datepickercontrol.js"></script>

    <!-- //// -->

    <script type="text/javascript">

    //<!--{xch}-->
    set_appid('census');
    set_pid('city');
    //<!--{/xch}-->

    //<!--{map}-->
    //reg_lookup('id__iform__00__city', {qid:'country', basis_id:'id__iform__00__city__id_country'});
    //reg_lookup('id__iform__00__city', {qid:'timezones', basis_id:'id__iform__00__city__timezone'});
    reg_flow('id__tform__00__city', {_qid_:'city'});
    //<!--{/map}-->

    //<!--{ovl}-->
    reg_overlay("id__tform__00__city", "id__sform__00__city", "search");
    reg_overlay("id__tform__00__city", "id__iform__00__city", "input");
    reg_overlay("id__tform__00__city", "id__tform__00__city", "select", 5);
    reg_overlay("id__tform__00__city", "id__aform__00__city", "stat");
    //<!--{/ovl}-->

    function page_init()
    {
    do_init();
    do_app_nav('id_app_nav');
    }

    </script>

    <!-- //// -->

    <!--{css}-->
    <!--{/css}-->

    </head>
    <body id="id_body" onload="page_init();">

    <div id="id_app_nav" class="class_app_nav"></div>

    <div id="id_page_content" class="class_page_content">

    <div id="id__iform__screen"><!-- empty --></div>

    <div><!-- empty --></div>

    <!--{group}-->
    <div class="class_nav_col">

    <!-- //// -->

    <div id="id__sform__00__city" class="class_layout_group_std">
    <div id="id__sform__00__city__caption" class="class_layout_group_caption_std">Search Form - City</div>
    <div class="class_form_std">
    <label for="id__sform__00__city__id_country">Country:</label>
    <input id="id__sform__00__city__id_country" type="text" name="city_id_country" size="40">
    <label for="id__sform__00__city__city_name">City Name:</label>
    <input id="id__sform__00__city__city_name" type="text" name="city_name" size="40">
    <label for="id__sform__00__city__timezone">Timezone:</label>
    <input id="id__sform__00__city__timezone" type="text" name="city_timezone" size="40">
    </div><!-- class_form_std -->
    <div class="class_vsep_std"></div>
    <div class="class_control_bar">
    <div class="class_control_bar_caption">City<!--{caption_info}--></div>
    <div class="class_control_bar_controls">
    <button type="button" name="do_search" title="Search"><img src="../_shared_/img/action_search.gif" alt="Search"></button>
    <button type="button" name="do_reset" title="Reset"><img src="../_shared_/img/action_reset.gif" alt="Reset"></button>
    <button type="button" name="do_add" title="Add"><img src="../_shared_/img/action_add.gif" alt="Add"></button>
    </div><!-- class_control_bar_controls -->
    <div class="class_control_bar_prompt">Fill in values and then click Search</div>
    </div><!-- class_control_bar -->
    </div><!-- id__sform__00__city -->

    <div class="class_layout_vsep_std"></div>
    <div class="class_layout_hsep_std"></div>

    </div><!-- nav_col -->

    <!-- //// -->

    <div class="class_layout_vsep_std"></div>
    <div class="class_layout_hsep_std"></div>

    <div id="id_basis_div" class="class_nav_col">
    <div id="id__tform__00__city" class="class_layout_group_std">
    <div id="id__tform__00__city__caption" class="class_layout_group_caption_std">Select Form - City<span id="id__tform__00__city__found_rows"></span></div>
    <table id="id__tform__00__city__table" class="class_table_std" cellspacing="0">
    <thead>
    <tr>
    <th><input type="checkbox"></th>
    <th> </th>
    <th>Country</th>
    <th>City Name</th>
    <th>Timezone</th>
    <th>Population</th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td axis="_row_id_"><input type="checkbox"></td>
    <td axis="_row_no_"> </td>
    <td axis="city_id_country"> </td>
    <td axis="city_name"> </td>
    <td axis="city_timezone"> </td>
    <td axis="population"> </td>
    </tr>
    </tbody>
    </table>
    <div class="class_vsep_std"></div>
    <div class="class_control_bar">
    <div class="class_control_bar_caption">City<!--{caption_info}--></div>
    <div class="class_control_bar_controls">
    <button type="button" name="do_nav_first" title="First"><img src="../_shared_/img/action_nav_first.gif" alt="First"></button>
    <button type="button" name="do_nav_up" title="PgUp"><img src="../_shared_/img/action_nav_up.gif" alt="PgUp"></button>
    <button type="button" name="do_nav_dn" title="PgDn"><img src="../_shared_/img/action_nav_dn.gif" alt="PgDn"></button>
    <button type="button" name="do_nav_last" title="Last"><img src="../_shared_/img/action_nav_last.gif" alt="Last"></button>
    <button type="button" name="do_nav_close" title="Close"><img src="../_shared_/img/action_close.gif" alt="Close"></button>
    <button type="button" name="do_add" title="Add"><img src="../_shared_/img/action_add.gif" alt="Add"></button>
    <button type="button" name="do_edit" title="Edit"><img src="../_shared_/img/action_edit.gif" alt="Edit"></button>
    <button type="button" name="do_delete" title="Delete"><img src="../_shared_/img/action_remove.gif" alt="Delete"></button>
    </div><!-- class_control_bar_controls -->
    <div class="class_control_bar_prompt">Navigate records, select a record and then click Edit (or click Add to create a new record)</div>
    </div><!-- class_control_bar -->
    </div><!-- id__tform__00__city -->

    <div class="class_layout_vsep_std"></div>
    <div class="class_layout_hsep_std"></div>

    </div><!-- id_basis_div -->

    <!-- //// -->

    <!--{/group}-->

    <!--{iform}-->
    <div id="id__iform__00__city" class="class_layout_group_iform">
    <div id="id__iform__00__city__caption" class="class_layout_group_caption_std">Input Form - City</div>
    <div id="id__iform__00__city_feedback" class="class_form_std_feedback">
    <label for="id__iform__00__city__id_country"></label>
    <label for="id__iform__00__city__city_name"></label>
    <label for="id__iform__00__city__timezone"></label>
    <label for="id__iform__00__city__population"></label>
    </div><!-- class_form_std_feedback -->
    <div class="class_form_std">
    <label for="id__iform__00__city__id_country">Country:</label>
    <select id="id__iform__00__city__id_country" name="id_country" onchange="process_change(this);"><option value=""></select>
    <label for="id__iform__00__city__city_name">City Name:</label>
    <input id="id__iform__00__city__city_name" type="text" name="city_name" maxlength="40" size="40">
    <label for="id__iform__00__city__timezone">Timezone:</label>
    <select id="id__iform__00__city__timezone" name="timezone" onchange="process_change(this);"><option value=""></select>
    <label for="id__iform__00__city__population">Population:</label>
    <input id="id__iform__00__city__population" type="text" name="population" maxlength="10" size="10">
    </div><!-- class_form_std -->
    <div class="class_vsep_std"></div>
    <button type="button" name="do_exchange" title="Ok">Ok</button>
    <button type="button" name="do_cancel" title="Cancel">Cancel</button>
    </div><!-- id__iform__00__city -->

    <!--{/iform}-->

    <div id="id_page_msg" class="class_msg_std"></div>

    </div><!-- id_page_content -->

    <!-- //// -->

    </body>
    </html>
    '

    Posted 10 years ago #

RSS feed for this topic

RSS feed for this topic

Reply

You must log in to post.