phpwebapp-commits Mailing List for phpWebApp (Page 30)
Brought to you by:
dashohoxha
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(15) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(2) |
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2003 |
Jan
|
Feb
(43) |
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(194) |
Sep
(60) |
Oct
(6) |
Nov
|
Dec
(16) |
2004 |
Jan
(73) |
Feb
(13) |
Mar
(5) |
Apr
|
May
(5) |
Jun
|
Jul
(183) |
Aug
|
Sep
(5) |
Oct
(30) |
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
(9) |
May
(1) |
Jun
(35) |
Jul
(17) |
Aug
(2) |
Sep
(6) |
Oct
(19) |
Nov
(108) |
Dec
|
2006 |
Jan
(10) |
Feb
(1) |
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
Update of /cvsroot/phpwebapp/app2/templates In directory sc8-pr-cvs1:/tmp/cvs-serv6504/templates Modified Files: styles.css page2.html page2.css page1_content.html page1.html header.html footer.js footer.html Log Message: improvments in the styles and templates Index: styles.css =================================================================== RCS file: /cvsroot/phpwebapp/app2/templates/styles.css,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** styles.css 21 Feb 2003 08:24:14 -0000 1.1.1.1 --- styles.css 15 Aug 2003 09:09:26 -0000 1.2 *************** *** 1,43 **** body { ! background-color:#EFE7D6; ! margin-top:20px; ! margin-left:20px; ! margin-right:20px; ! margin-bottom:20px; ! } ! ! .font ! { ! font-family: Arial, Helvetica, Sans-Se; ! font-size: 10pt; ! color:#000000; } ! .checkbox, .radio { } ! .text, .button { ! font-family: Arial, Helvetica, Sans-Se; ! font-size: 10pt; ! background-color: #EAEAEA; ! color: #006666; } ! .title { ! COLOR: #FFFFFF; ! FONT-FAMILY: Arial, Helvetica, Sans-Se; ! FONT-SIZE: 12px; ! FONT-WEIGHT: bold } ! .strong { ! COLOR: #000066; ! FONT-FAMILY: Arial, Helvetica, Sans-Se; ! FONT-SIZE: 16px; ! FONT-WEIGHT: bold } --- 1,35 ---- body { ! background-color: #efe7d6; ! margin-top: 20px; ! margin-left: 20px; ! margin-right: 20px; ! margin-bottom: 20px; ! font-family: arial, helvetica, sans-se; ! font-size: 12pt; ! color: #000000; } ! h1, h2 { + text-align: center; } ! h1, h2, h3, h4 { ! color: #660000; } ! pre { ! background-color: #eeeeee; ! border: 1px solid #0000aa; ! color: #00aa00; } ! strong { ! color: #000066; ! font-size: 14px; ! font-weight: bold } Index: page2.html =================================================================== RCS file: /cvsroot/phpwebapp/app2/templates/page2.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** page2.html 21 Feb 2003 08:24:13 -0000 1.1.1.1 --- page2.html 15 Aug 2003 09:09:26 -0000 1.2 *************** *** 1,66 **** <html> ! <head> ! <title> Page 2 </title> ! <link rel="stylesheet" type="text/css" href="{{./}}styles.css"> ! <link rel="stylesheet" type="text/css" href="{{./}}page2.css" /> ! </head> ! <body> ! <Include SRC="{{./}}header.html"/> ! <h3> A Page Constructed without Subtemplates </h3> ! <table width="95%" align="center" border="0" cellspacing="0" cellpadding="0"> ! <tr><td class="box_title">tpl.html</td></tr> ! <tr><td class="box_content"> ! <table width="100%" border="0" cellspacing="20" cellpadding="0"> ! <tr> ! <td width="60%" valign="top"> ! <table width="100%" border="0" cellspacing="0" cellpadding="0"> ! <tr><td class="box_title_1">tpl_1.html</td> ! </tr> ! <tr><td class="box_content_1" valign="top"> ! <p class="content_1"> ! <i>page2.html</i> is the same as <i>page3.html</i>, however it ! is implemented in the usual way, without templates. After ! studying how both of them are implemented, try to make a small ! modification in both of them and see which one is easier to be modified. ! </p> ! </td></tr> ! </table> ! </td> ! <td valign="top"> ! <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0"> ! <tr><td class="box_title_2">tpl_2.html</td></tr> ! <tr><td class="box_content_2"> ! <table width="100%" border="0" cellspacing="10" cellpadding="0"> ! <tr><td> ! <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0"> ! <tr><td class="box_title_2_1">tpl_2_1.html</td></tr> ! <tr><td class="box_content_2_1"> ! tpl_2_1 <br> ! content ! </td></tr> ! </table> ! </td></tr> ! <tr><td> ! <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0"> ! <tr><td class="box_title_2_2">tpl_2_2.html</td></tr> ! <tr><td class="box_content_2_2"> ! tpl_2_2 <br> ! content ! </td></tr> ! </table> ! </td></tr> ! </table> ! </td></tr> ! </table> ! </td> ! </tr> ! </table> ! </td></tr> ! </table> ! <p> ! <Include SRC="{{./}}footer.html"/> ! </body> </html> --- 1,95 ---- <html> ! <head> ! <title>Page 2</title> ! <link rel="stylesheet" type="text/css" href="{{./}}styles.css"> ! <link rel="stylesheet" type="text/css" href="{{./}}page2.css"> ! </head> ! <body> ! <Include SRC="{{./}}header.html" /> ! <h3>A Page Constructed without Subtemplates</h3> + <table width="95%" align="center" border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="box_title">tpl.html</td> + </tr> + + <tr> + <td class="box_content"> + <table width="100%" border="0" cellspacing="20" cellpadding="0"> + <tr> + <td width="60%" valign="top"> + <table width="100%" border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="box_title_1">tpl_1.html</td> + </tr> + + <tr> + <td class="box_content_1" valign="top"> + <p class="content_1"><em>page2.html</em> is the + same as <em>page3.html</em>, however it is + implemented in the usual way, without + templates. After studying how both of them are + implemented, try to make a small modification + in both of them and see which one is easier to + be modified.</p> + </td> + </tr> + </table> + </td> + + <td valign="top"> + <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="box_title_2">tpl_2.html</td> + </tr> + + <tr> + <td class="box_content_2"> + <table width="100%" border="0" cellspacing="10" cellpadding="0"> + <tr> + <td> + <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="box_title_2_1">tpl_2_1.html</td> + </tr> + + <tr> + <td class="box_content_2_1"> + tpl_2_1 <br> content + </td> + </tr> + </table> + </td> + </tr> + + <tr> + <td> + <table width="100%" align="center" border="0" cellspacing="0" cellpadding= "0"> + <tr> + <td class="box_title_2_2">tpl_2_2.html</td> + </tr> + + <tr> + <td class="box_content_2_2"> + tpl_2_2 <br> content + </td> + </tr> + </table> + </td> + </tr> + </table> + </td> + </tr> + </table> + </td> + </tr> + </table> + </td> + </tr> + </table> + + <Include SRC="{{./}}footer.html" /> + </body> </html> Index: page2.css =================================================================== RCS file: /cvsroot/phpwebapp/app2/templates/page2.css,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** page2.css 21 Feb 2003 08:24:12 -0000 1.1.1.1 --- page2.css 15 Aug 2003 09:09:26 -0000 1.2 *************** *** 2,78 **** .box_title { ! text-align: center; ! background-color: #003366; ! color: white } .box_content { ! height: 250; ! background-color: white; ! border: thin solid #003366 } .box_title_1 { ! text-align: center; ! background-color: #006633; ! color: white } .box_content_1 { ! height: 250; ! background-color: #eeeeee; ! border: thin solid #006633 } .content_1 { ! padding: 10; ! font-family: arial } .box_title_2 { ! text-align: center; ! background-color: #336600; ! color: white } .box_content_2 { ! background-color: #eeeeee; ! border: thin solid #336600 } .box_title_2_1 { ! text-align: center; ! background-color: #660033; ! color: white } .box_content_2_1 { ! height: 100; ! border: thin solid #660033; ! background-color: white; ! text-align: center } .box_title_2_2 { ! text-align: center; ! background-color: #663300; ! color: white } .box_content_2_2 { ! height: 100; ! border: thin solid #663300; ! background-color: white; ! text-align: center } - --- 2,77 ---- .box_title { ! text-align: center; ! background-color: #003366; ! color: white } .box_content { ! height: 250; ! background-color: white; ! border: thin solid #003366 } .box_title_1 { ! text-align: center; ! background-color: #006633; ! color: white } .box_content_1 { ! height: 250; ! background-color: #eeeeee; ! border: thin solid #006633 } .content_1 { ! padding: 10; ! font-family: arial } .box_title_2 { ! text-align: center; ! background-color: #336600; ! color: white } .box_content_2 { ! background-color: #eeeeee; ! border: thin solid #336600 } .box_title_2_1 { ! text-align: center; ! background-color: #660033; ! color: white } .box_content_2_1 { ! height: 100; ! border: thin solid #660033; ! background-color: white; ! text-align: center } .box_title_2_2 { ! text-align: center; ! background-color: #663300; ! color: white } .box_content_2_2 { ! height: 100; ! border: thin solid #663300; ! background-color: white; ! text-align: center } Index: page1_content.html =================================================================== RCS file: /cvsroot/phpwebapp/app2/templates/page1_content.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** page1_content.html 21 Feb 2003 08:24:12 -0000 1.1.1.1 --- page1_content.html 15 Aug 2003 09:09:26 -0000 1.2 *************** *** 1,72 **** ! ! <!--# This file is the content that is displayed in the page1 #--> <h4>Templates</h4> ! <p> ! Templates are pieces of HTML code, that are used or combined ! by the framework to generate the HTML pages that are sent to ! the browser. ! </p> <h4>Template variables</h4> ! <p> ! The templates may contain variables inside them (called ! "template variables"), which are replaced by the framework ! with their string values. The variables inside a template ! are denoted by double curly braces: { {tpl_var} }. ! </p> <h4>The <Include> tag</h4> ! <p> ! The templates may also contain some extra tags, which are ! not HTML tags. These tags are reckognised and processed ! by the framework. One of them is the <Include> tag, ! which is used to include another template inside the ! current template: ! </p> <pre> ! <Include SRC="file_to_be_included" /></pre> ! <p> ! It is a very useful tag, because it allows to separate ! pages into subtemplates, which results in a better structured ! application, provides modularity (the graphical designer ! can work with smaller pieces of code), and reusability ! (templates are easier to be reused in other pages or other ! applications). ! </p> <h4>Comments</h4> ! <p> ! The templates may contain some special comments as well: ! </p> <pre> ! <!--# Framework comments #--></pre> ! <p> ! These comments are like HTML comments by they have a diesis ! (#) at the opening and closing marks. These comments are not ! processed by the framework and are not displayed in the ! HTML page that is generated. ! </p> <h4>JavaScript code and stylesheet of a template</h4> ! <p> ! If a certain template has some javascript code or some special ! styles of its own, then it is better to include them at the ! begining of the template (instead of including them globally, ! at the header of the page). This makes the template more ! independant from the other parts of the page and thus easier ! to use it again into another page. They are included like ! this: ! </p> <pre> ! <script language="javascript" src="file.js"></script> ! <link rel="stylesheet" type="text/css" href="file.css"></pre> ! <p> ! The inclusion is much better than writting the JS and CSS ! code in the template because it separates the HTML code ! from the JS and CSS codes. It also is more efficient ! (has a better performance) because the next time that ! this template is loaded in browser again, most probably the ! browser will get "file.js" and "file.css" from the cache, ! instead of retrieving them again from the server. ! </p> --- 1,63 ---- ! <!--# This file is included inside page1.html #--> <h4>Templates</h4> ! ! <p>Templates are pieces of HTML code, that are used or combined by ! the framework to generate the HTML pages that are sent to the ! browser.</p> <h4>Template variables</h4> ! ! <p>The templates may contain variables inside them (called ! "template variables"), which are replaced by the framework with ! their string values. The variables inside a template are denoted by ! double curly braces: {{#tpl_var} }.</p> <h4>The <Include> tag</h4> ! ! <p>The templates may also contain some extra tags, which are not ! HTML tags. These tags are reckognised and processed by the ! framework. One of them is the <Include> tag, which is used to ! include another template inside the current template:</p> <pre> ! <Include SRC="file_to_be_included" /> ! </pre> ! ! <p>It is a very useful tag, because it allows to separate pages ! into subtemplates, which results in a better structured ! application, provides modularity (the graphical designer can work ! with smaller pieces of code), and reusability (templates are easier ! to be reused in other pages or other applications).</p> <h4>Comments</h4> ! ! <p>The templates may contain some special comments as well:</p> <pre> ! <!--# Framework comments #--> ! </pre> ! ! <p>These comments are like HTML comments by they have a diesis (#) ! at the opening and closing marks. These comments are not processed ! by the framework and are not displayed in the HTML page that is ! generated.</p> <h4>JavaScript code and stylesheet of a template</h4> ! ! <p>If a certain template has some javascript code or some special ! styles of its own, then it is better to include them at the ! begining of the template (instead of including them globally, at ! the header of the page). This makes the template more independant ! from the other parts of the page and thus easier to use it again ! into another page. They are included like this:</p> <pre> ! <script language="javascript" src="file.js"></script> ! <link rel="stylesheet" type="text/css" href="file.css"> ! </pre> ! ! <p>The inclusion is much better than writting the JS and CSS code ! in the template because it separates the HTML code from the JS and ! CSS codes. It also is more efficient (has a better performance) ! because the next time that this template is loaded in browser ! again, most probably the browser will get "file.js" and "file.css" ! from the cache, instead of retrieving them again from the ! server.</p> Index: page1.html =================================================================== RCS file: /cvsroot/phpwebapp/app2/templates/page1.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** page1.html 21 Feb 2003 08:24:12 -0000 1.1.1.1 --- page1.html 15 Aug 2003 09:09:26 -0000 1.2 *************** *** 1,14 **** <html> <head> ! <title> Page 1 </title> ! <link rel="stylesheet" type="text/css" href="{{./}}styles.css"> </head> - <body> ! <Include SRC="{{./}}header.html"/> ! <Include SRC="{{./}}page1_content.html"/> ! <Include SRC="{{./}}footer.html"/> ! <br> </body> - </html> --- 1,12 ---- <html> <head> ! <title>Page 1</title> ! <link rel="stylesheet" type="text/css" href="{{./}}styles.css"> </head> <body> ! <Include SRC="{{./}}header.html"/> ! <Include SRC="{{./}}page1_content.html"/> ! <Include SRC="{{./}}footer.html"/> ! <br> </body> </html> Index: header.html =================================================================== RCS file: /cvsroot/phpwebapp/app2/templates/header.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** header.html 21 Feb 2003 08:24:12 -0000 1.1.1.1 --- header.html 15 Aug 2003 09:09:26 -0000 1.2 *************** *** 4,8 **** <!-- This is a usual HTML comment and it will be part of the generated page --> ! <center> ! <h1> Sample Application 2: Templates </h1> ! </center> --- 4,6 ---- <!-- This is a usual HTML comment and it will be part of the generated page --> ! <h1>Sample Application 2: Templates</h1> Index: footer.js =================================================================== RCS file: /cvsroot/phpwebapp/app2/templates/footer.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** footer.js 21 Feb 2003 08:24:12 -0000 1.1.1.1 --- footer.js 15 Aug 2003 09:09:26 -0000 1.2 *************** *** 5,23 **** function goto_page1() { ! GoTo("page1.html"); } function goto_page2() { ! GoTo("page2.html"); } function goto_page3() { ! GoTo("page3/page3.html"); } function go_back() { ! history.back(); } --- 5,23 ---- function goto_page1() { ! GoTo("page1.html"); } function goto_page2() { ! GoTo("page2.html"); } function goto_page3() { ! GoTo("page3/page3.html"); } function go_back() { ! history.back(); } Index: footer.html =================================================================== RCS file: /cvsroot/phpwebapp/app2/templates/footer.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** footer.html 11 Aug 2003 16:46:43 -0000 1.2 --- footer.html 15 Aug 2003 09:09:26 -0000 1.3 *************** *** 2,10 **** <hr> <br> ! Go To [ ! <a href="javascript: goto_page1()"> Page 1 </a> | ! <a href="javascript: goto_page2()"> Page 2 </a> | ! <a href="javascript: goto_page3()"> Page 3 </a> ] ! <p> ! <a href="javascript: go_back()"><img src="{{IMG_URL}}back.png" border="0"></a> <a href="{{APP_URL}}"><img src="{{IMG_URL}}home.png" border="0"></a> --- 2,10 ---- <hr> <br> ! Go To ! [ <a href="javascript: goto_page1()"> Page 1 </a> ! | <a href="javascript: goto_page2()"> Page 2 </a> ! | <a href="javascript: goto_page3()"> Page 3 </a> ] ! <br><br> ! <a href="javascript:go_back()"><img src="{{IMG_URL}}back.png" border="0"></a> <a href="{{APP_URL}}"><img src="{{IMG_URL}}home.png" border="0"></a> |
From: Dashamir H. <das...@us...> - 2003-08-15 09:02:26
|
Update of /cvsroot/phpwebapp/web_app In directory sc8-pr-cvs1:/tmp/cvs-serv5325 Modified Files: class.WebApp.php Log Message: WebApp::to_url() fix Index: class.WebApp.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/class.WebApp.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** class.WebApp.php 15 Aug 2003 07:01:19 -0000 1.8 --- class.WebApp.php 15 Aug 2003 09:00:15 -0000 1.9 *************** *** 446,451 **** function to_url($path) { ! $doc_root = $_SERVER["DOCUMENT_ROOT"]; ! $url = str_replace($doc_root, '', $path); return $url; } --- 446,451 ---- function to_url($path) { ! $DocumentRoot = ereg_replace(APP_URL."\$", '', APP_PATH); ! $url = str_replace($DocumentRoot, '', $path); return $url; } |
From: Dashamir H. <das...@us...> - 2003-08-15 08:41:23
|
Update of /cvsroot/phpwebapp/web_app/append In directory sc8-pr-cvs1:/tmp/cvs-serv19635/append Modified Files: wbDebug.php wbDebug.html append.html Log Message: - improved styles - removed some extra spaces Index: wbDebug.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/append/wbDebug.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** wbDebug.php 11 Aug 2003 16:17:53 -0000 1.2 --- wbDebug.php 15 Aug 2003 07:05:06 -0000 1.3 *************** *** 9,23 **** global $webPage; ! $debug_goto = (DEBUG_GOTO ? " <script language='javascript'> debug_GoTo = true; </script>" : ""); ! WebApp::addVar("DEBUG_GOTO", $debug_goto); $webPage->print_dbg_messages(); $debug_recordsets = (DEBUG_RECORDSETS ? $webPage->recordsets_to_html() : ""); ! WebApp::addVar("DEBUG_RECORDSETS", $debug_recordsets); $webPage->timer->Stop("WebApp"); $timer_results = (EXECUTION_TIME_INFO ? $webPage->timer->toHtmlTable() : ""); ! WebApp::addVar("TIMER_RESULTS", $timer_results); } } --- 9,23 ---- global $webPage; ! $debug_goto = "<script language='javascript'> debug_GoTo = true; </script>"; ! WebApp::addVar("debug_goto", $debug_goto); $webPage->print_dbg_messages(); $debug_recordsets = (DEBUG_RECORDSETS ? $webPage->recordsets_to_html() : ""); ! WebApp::addVar("debug_recordsets", $debug_recordsets); $webPage->timer->Stop("WebApp"); $timer_results = (EXECUTION_TIME_INFO ? $webPage->timer->toHtmlTable() : ""); ! WebApp::addVar("timer_results", $timer_results); } } Index: wbDebug.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/append/wbDebug.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** wbDebug.html 16 Jul 2003 09:28:00 -0000 1.2 --- wbDebug.html 15 Aug 2003 07:05:07 -0000 1.3 *************** *** 15,35 **** <br> </If> - <WebBox ID="wbDbgStatevars"> <!--# debug state vars #--> </WebBox> - <WebBox ID="wbDbgTemplates"> <!--# debug template structure #--> </WebBox> - <WebBox ID="wbDebug"> <!--# debug GoTo() transitions #--> ! {{DEBUG_GOTO}} ! <!--# debug recordsets #--> ! {{DEBUG_RECORDSETS}} ! <!--# show timer results #--> ! {{TIMER_RESULTS}} </WebBox> --- 15,36 ---- <br> </If> <WebBox ID="wbDbgStatevars"> <!--# debug state vars #--> </WebBox> <WebBox ID="wbDbgTemplates"> <!--# debug template structure #--> </WebBox> <WebBox ID="wbDebug"> <!--# debug GoTo() transitions #--> ! <If condition="'{{DEBUG_GOTO}}'!=''"> ! {{debug_goto}} ! </If> <!--# debug recordsets #--> ! <If condition="'{{DEBUG_RECORDSETS}}'!=''"> ! {{debug_recordsets}} ! </If> <!--# show timer results #--> ! <If condition="'{{EXECUTION_TIME_INFO}}'!=''"> ! {{timer_results}} ! </If> </WebBox> Index: append.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/append/append.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** append.html 16 Jul 2003 09:28:00 -0000 1.2 --- append.html 15 Aug 2003 07:05:07 -0000 1.3 *************** *** 1,24 **** ! <!--# This file is appended automatically by the framework after each template in order to include session variables, debug info, etc. ! #--> ! ! <!--# insert phpWebApp logo #--> ! <p> ! <small> ! [Powered by ! <a href="http://phpwebapp.sourceforge.net/" target="_blank">phpWebApp</a>] ! </small> ! </p> ! <!--# include session variables #--> ! <Include SRC="{{SESSION_PATH}}wbSession.html" /> ! <!--# display any messages from server-side code #--> ! <WebBox ID="wbMessages"> ! {{MESSAGES}} ! </WebBox> ! <!--# include debug info #--> ! <Include SRC="{{./}}wbDebug.html" /> --- 1,22 ---- ! <!--# This file is appended automatically by the framework after each template in order to include session variables, debug info, etc. ! #--> ! <!--# insert phpWebApp logo #--> ! <div class="webapp_logo"> ! <a href="http://phpwebapp.sourceforge.net/" target="_blank"> ! Powered by phpWebApp ! </a> ! </div> ! <!--# include session variables #--> ! <Include SRC="{{SESSION_PATH}}wbSession.html" /> ! <!--# display any messages from server-side code #--> ! <WebBox ID="wbMessages"> ! {{MESSAGES}} ! </WebBox> ! <!--# include debug info #--> ! <Include SRC="{{./}}wbDebug.html" /> |
From: Dashamir H. <das...@us...> - 2003-08-15 08:36:51
|
Update of /cvsroot/phpwebapp/web_app/doc In directory sc8-pr-cvs1:/tmp/cvs-serv19896/doc Added Files: changes_2.txt Log Message: changes done recently --- NEW FILE: changes_2.txt --- * APP_URL is found automatically in the 'webapp.php' of the application, so there is no need to modify it in 'config/const.Paths.php'. This means that from now on we don't need to change the config of an application when we change its location or rename its folder. * UP_PATH and UP_URL have been defined as well, so that instaed of APP_PATH."../web_app/" now we can use UP_PATH."web_app/". * .gif images are replaced by .png images * Added some comments that help phpDocumentor to divide the classes and files into packages and subpackages. * The folder 'eventhandler/' was removed. The file: 'eventhandler/on.firstTime.php' was replaced by 'init.php' 'eventhandler/on.beforePage.php' was replaced by 'before_page.php' 'eventhandler/on.afterPage.php' was replaced by 'after_page.php' The file 'global.php' is added, which is included for each page. * Fixed webapp_styles. |
From: Dashamir H. <das...@us...> - 2003-08-15 08:23:56
|
Update of /cvsroot/phpwebapp/documentation/templates In directory sc8-pr-cvs1:/tmp/cvs-serv31270/templates Modified Files: developer_docs.html Log Message: Index: developer_docs.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/developer_docs.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** developer_docs.html 21 Feb 2003 08:18:24 -0000 1.1.1.1 --- developer_docs.html 15 Aug 2003 08:13:25 -0000 1.2 *************** *** 1,8 **** - <br> - <li> <a href="{{APP_URL}}uml_model/phpWebApp.html" target="new"> - Logical View (UML Model)</a> </li> - <li> Documents generated by phpDocumentor or doxygen </li> - <li> Known Bugs </li> - <li> ToDo list </li> - <li> . . . </li> --- 1,58 ---- + <h3>Documents</h3> + <ul> + <li> + UML Model (Logical View) + + [ Petal + | XMI + | <a href="{{APP_URL}}uml_model/phpWebApp.html" target="new">HTML Online</a> + | HTML Download ] + </li> + <li> + Code Documentation (generated by phpDocumentor) + + [ PDF + | HTML Online + | HTML Download ] + </li> + <li> + Code Documentation (generated by doxygen) + + [ PDF + | HTML Online + | HTML Download ] + </li> + </ul> + + <h3>Discussion Lists</h3> + <ul> + <li> + <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-developers" target="_blank">phpwebapp-developers</a> + -- For communication between the developers of the framework. + </li> + <li> + <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-improvments" target="_blank">phpwebapp-improvments</a> + -- For discussing improvments that can be made to the framework. + </li> + <li> + <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-discussion" target="_blank">phpwebapp-discussion</a> + -- Discussing problems of web applications in general and how they can be solved. + </li> + <li> + <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-commits" target="_blank">phpwebapp-commits</a> + -- Automatic announcement of each commit made to phpwebapp project. + </li> + </ul> + + <h3>ToDo list</h3> + <ul> + <li> + <a href="http://sourceforge.net/pm/?group_id=41147" target="_blank"> + Tasks + </a> + </li> + <li> + </li> + </ul> + <br> |
From: Dashamir H. <das...@us...> - 2003-08-15 08:22:23
|
Update of /cvsroot/phpwebapp/documentation/external In directory sc8-pr-cvs1:/tmp/cvs-serv25344/external Log Message: Directory /cvsroot/phpwebapp/documentation/external added to the repository |
From: Dashamir H. <das...@us...> - 2003-08-15 08:22:13
|
Update of /cvsroot/phpwebapp/documentation/config In directory sc8-pr-cvs1:/tmp/cvs-serv24718/config Modified Files: const.Paths.php Log Message: Index: const.Paths.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/config/const.Paths.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** const.Paths.php 7 Aug 2003 15:54:14 -0000 1.3 --- const.Paths.php 15 Aug 2003 07:39:32 -0000 1.4 *************** *** 2,6 **** //constants of the paths in the application define("WEBAPP_PATH", UP_PATH."web_app/"); - define("EVENTHANDLER_PATH", APP_PATH."event_handlers/"); define("GRAPHICS", APP_URL."graphics/"); --- 2,5 ---- |
From: Dashamir H. <das...@us...> - 2003-08-15 08:20:42
|
Update of /cvsroot/phpwebapp/documentation/external In directory sc8-pr-cvs1:/tmp/cvs-serv31176/external Added Files: README.txt Log Message: --- NEW FILE: README.txt --- The folder external contains some files and folders that are used to generate documentation about phpWebApp and its code, using some external tools. The files and folders that it contains are: doxygen.cfg -- the configuration for doxygen phpdoc.sh -- the configuration for phpDocumentor doxydoc/ -- the folder where doxygen outputs the documentation phpdoc/ -- the folder where phpDocumentor outputs the documentation uml_model/ -- documentations generated by the UML model download/ -- this folder contains the downloadables of the above documentatations (.tar.gz) phpDocumentor-1.2.1/ -- this folder contains the phpDocumentor, which can be downloaded from phpdocu.sourceforge.net To generate the doxygen documentation, type: "$ doxygen doxygen.cfg". 'doxygen' usually comes with GNU/Linux distributions, but the latest copy can be downloaded from www.doxygen.org . To generate the phpDocumentor documentation, type: "$ ./phpdoc.sh". |
From: Dashamir H. <das...@us...> - 2003-08-15 08:09:17
|
Update of /cvsroot/phpwebapp/documentation/external In directory sc8-pr-cvs1:/tmp/cvs-serv30664/external Added Files: phpdoc.sh doxygen.cfg Log Message: config files for code documentation generators: doxygen and phpDocumentation --- NEW FILE: phpdoc.sh --- #!/bin/bash # $Id: phpdoc.sh,v 1.1 2003/08/15 08:09:15 dashohoxha Exp $ #/** # * makedoc - PHPDocumentor script to save your settings # * # * Put this file inside your PHP project homedir, edit its variables and run whenever you wants to # * re/make your project documentation. # * # * The version of this file is the version of PHPDocumentor it is compatible. # * # * It simples run phpdoc with the parameters you set in this file. # * NOTE: Do not add spaces after bash variables. # * # * @copyright makedoc.sh is part of PHPDocumentor project {@link http://freshmeat.net/projects/phpdocu/} and its LGPL # * @author Roberto Berto <darkelder (inside) users (dot) sourceforge (dot) net> # * @version Release-1.1.0 # */ ############################## # should be edited ############################## #/** # * title of generated documentation, default is 'Generated Documentation' # * # * @var string TITLE # */ TITLE="PHP Web Application Framework" #/** # * name to use for the default package. If not specified, uses 'default' # * # * @var string PACKAGES # */ PACKAGES="phpWebApp" #/** # * name of a directory(s) to parse directory1,directory2 # * $PWD is the directory where makedoc.sh # * # * @var string PATH_PROJECT # */ PATH_PROJECT=$PWD/../../web_app #/** # * path of PHPDoc executable # * # * @var string PATH_PHPDOC # */ PATH_PHPDOC=$PWD/phpDocumentor-1.2.1/phpdoc #/** # * where documentation will be put # * # * @var string PATH_DOCS # */ PATH_DOCS=$PWD/phpdoc #/** # * what outputformat to use (html/pdf) # * # * @var string OUTPUTFORMAT # */ OUTPUTFORMAT=HTML #/** # * converter to be used # * # * @var string CONVERTER # */ CONVERTER=frames #/** # * template to use # * # * @var string TEMPLATE # */ TEMPLATE=earthli #/** # * parse elements marked as private # * # * @var bool (on/off) PRIVATE # */ PRIVATE=off # make documentation $PATH_PHPDOC -d $PATH_PROJECT -t $PATH_DOCS -ti "$TITLE" -dn $PACKAGES \ -o $OUTPUTFORMAT:$CONVERTER:$TEMPLATE -pp $PRIVATE # vim: set expandtab : --- NEW FILE: doxygen.cfg --- # Doxyfile 1.3.3 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project # # All text after a hash (#) is considered a comment and will be ignored # The format is: # TAG = value [value, ...] # For lists items can also be appended using: # TAG += value [value, ...] # Values that contain spaces should be placed between quotes (" ") #--------------------------------------------------------------------------- # General configuration options #--------------------------------------------------------------------------- # The PROJECT_NAME tag is a single word (or a sequence of words surrounded # by quotes) that should identify the project. [...1070 lines suppressed...] # documentation, with file:// prepended to it, will be used. DOC_URL = # The DOC_ABSPATH tag should be the absolute path to the directory where the # documentation is located. If left blank the directory on the local machine # will be used. DOC_ABSPATH = # The BIN_ABSPATH tag must point to the directory where the doxysearch binary # is installed. BIN_ABSPATH = /usr/local/bin/ # The EXT_DOC_PATHS tag can be used to specify one or more paths to # documentation generated for other projects. This allows doxysearch to search # the documentation for these projects as well. EXT_DOC_PATHS = |
From: Dashamir H. <das...@us...> - 2003-08-15 08:01:34
|
Update of /cvsroot/phpwebapp/web_app/parser In directory sc8-pr-cvs1:/tmp/cvs-serv19522/parser Modified Files: class.WebPage.php Log Message: Index: class.WebPage.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.WebPage.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.WebPage.php 11 Aug 2003 16:17:51 -0000 1.4 --- class.WebPage.php 15 Aug 2003 07:03:42 -0000 1.5 *************** *** 171,175 **** function messages_to_js() { ! if (sizeof($this->messages)==0) return " "; $js = "<script language='javascript'>\n"; --- 171,175 ---- function messages_to_js() { ! if (sizeof($this->messages)==0) return ""; $js = "<script language='javascript'>\n"; |
From: Dashamir H. <das...@us...> - 2003-08-15 07:57:24
|
Update of /cvsroot/phpwebapp/documentation/templates/tutorial In directory sc8-pr-cvs1:/tmp/cvs-serv24926/templates/tutorial Modified Files: transitions.html Log Message: improvments in the content and the look of the tutorial Index: transitions.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/transitions.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** transitions.html 11 Aug 2003 16:31:05 -0000 1.3 --- transitions.html 15 Aug 2003 07:40:51 -0000 1.4 *************** *** 1,349 **** ! <script language="JavaScript" src="{{./}}codeReview.js"></script> <h3>1 - Transitions</h3> ! A very simple application that has 2 or 3 HTML files ! which have transitions to each-other and have some ! links to external pages. ! Explains the folder structure of a simple application, ! explains what are the transitions and the difference ! between the transitions and the links. Explains how to ! debug transitions. ! <br><br> ! [<a href="{{APP1_URL}}" target="_blank">Test</a>] ! [<a href="{{APP1_URL}}browse.php" target="_blank">Browse</a>] ! [<a href="http://phpwebapp.sourceforge.net/download/app1.tar.gz">Download</a>] ! <br><br> <hr> ! <a name="toc"> ! <h4>Table of Contents</h4> <ul> ! <li><a href="#goto">Transitions by GoTo()</a> ! <li><a href="#external">External Pages</a> ! <li><a href="#structure">The Structure of the Application</a> ! <li><a href="#exercises">Exercises</a> ! <ol> ! <li><a href="#exercise_1">Create a new application</a> ! <li><a href="#exercise_2">Move an application to another location</a> ! <li><a href="#exercise_3">Debugging Transitions</a> ! <li><a href="#exercise_4">Change the Name of the Folder 'event_handlers'</a> ! <li><a href="#exercise_5">Add a New Page to the Application</a> ! <li><a href="#exercise_6">Set the initial page of the application</a> ! <li><a href="#exercise_7">Before and after each page</a> ! <li><a href="#exercise_8">Put the pages in another folder</a> ! </ol> ! <li><a href="#experiments">Experiments, questions and food for thought</a> </ul> <hr> ! <a name="goto"></a> <h4>Transitions by Goto</h4> ! <p> ! Transitions from one page of the application to another ! are done by using the javascript function <b>GoTo('page.html')</b>. ! This function is declared by the framework itself and is included ! automatically at the end of each page of the application. ! The parameter given to <b>GoTo()</b> is the target page, i.e. the page ! that will be displayed by the framework after doing the transition. ! </p> ! <p> ! Think of a web application as a collection of states, where each ! state is a web page. The user of the application goes from the ! current page (source state) to another page (target state) by clicking ! a <b>GoTo()</b> link (transition). ! </p> ! <p> ! In real applications, usually the link calls a <b>JavaScript</b> function, ! and this function makes the transition by calling <b>GoTo()</b>. So, the ! application has a chance to make any error checkings, input data validations ! etc. before making the transition to the other page. ! </p> ! <p> ! <a href="javascript: codeReview('{{APP1_PATH}}page1.html','14,36,37','')">See the code</a> ! of the first page and notice how the <b>GoTo()</b> is used. <br> ! If you have not tested the application yet, please ! <a href="{{APP1_URL}}" target="_blank">test it</a> ! now and pay attention to how the <b>GoTo()</b> is used. ! </p> ! [<a href="#toc">TOC</a>] <hr> <a name="external"></a> <h4>External Pages</h4> ! <p> ! The external pages are HTML pages that are outside the application. They are linked as usually in HTML, without using ! transitions and the function <b>GoTo()</b>. These pages are ! not part of the application, they are either plain HTML pages ! or pages of other applications. ! </p> ! <p> ! While in an external page, you cannot go back to a page ! of the application by using the function <b>GoTo()</b> because it is undefined. You can only go back to the same page of the ! application from which you got out by pressing the button <b>back</b> ! in the browser (or calling the JS function <i>history.back()</i>). ! </p> ! <p> ! If you open a page of the application by linking (as an external page), ! not by a <b>GoTo()</b> transition, then it will not behave as a page of the ! application. ! </p> ! <p> ! See an <a href="javascript: codeReview('{{APP1_PATH}}page2.html','14,15','9-16')">example</a> of linking to external pages. ! </p> ! [<a href="#toc">TOC</a>] <hr> <a name="structure"></a> <h4>The Structure of the Application</h4> - <p> - The application is composed of some <i>standart (or framework)</i> - files and folders and some application files and folders. The standart - ones are files and folders required by the framework and are almost - the same for every application built with phpWebApp. The <i>application</i> - files and folders are created by the application developer and they - are different for each application. - </p> - <p> - If you have not yet browsed the application, then - <a href="{{APP1_URL}}browse.php" target="_blank">browse it</a> now. - </p> - <p> - The standart files and folders are: - <pre> - config/ -- configuration files for the application - const.Paths.php -- constants of paths used in the application - const.Settings.php -- constants that change the behaviour of the app. ! event_handlers/ -- event handler files ! on.firstTime.php -- called first time that the application is opened ! on.beforePage.php -- called before each page is generated ! on.afterPage.php -- called after each page ! application.php -- standart framework file ! index.php -- standart framework file </pre> ! </p> ! <p> ! The application files and folders are: <pre> img/ back.png home.png page1.html page2.html page3.html styles.css - </pre> ! </p> ! <p> ! The file <i>browse.php</i> is almost the same for each application, ! but it is not required by the framework. It is usually used during the ! development of the application to preview how the templates and weboxes ! look like. </p> ! [<a href="#toc">TOC</a>] <hr> <a name="exercises"></a> <h4>Exerxises</h4> ! <p> ! To be able to try the exercises you have to have installed the framework ! and the sample applications in your computer or somewhere where you can ! make changes. ! </p> ! <br> <a name="exercise_1"></a> <h5>1 - Create a new application</h5> ! <p> ! In this exercise you will create another application which is identic ! with <b>app1</b> but has a different name, <b>app1_test</b>. ! Follow these steps: <ol> ! <li> Copy the folder 'app1' to the folder 'app1_test' ($ cp -R app1 app1_test) ! <li> Edit the file ! app1_test/config/<a href="javascript: codeReview('{{APP1_PATH}}config/const.Paths.php','3','')">const.Paths.php</a> ! so that the constant 'APP_URL' is set to '/app1_test/'. ! <li> Open the application '/app1_test/' in browser to test it. It should work. </ol> - 'APP_URL' is the URL of the application starting from the DocumentRoot. - </p> ! [<a href="#toc">TOC</a>] <br> - <a name="exercise_2"></a> <h5>2 - Move an application to another location</h5> ! <p> ! In this exercise you will move the application 'app1_test' to 'test/app1_test'. <ol> ! <li> Create the folder 'test' and move 'app1_test' to it ! ($ mkdir test $ mv app1_test test) ! <li> Edit the file ! test/app1_test/config/<a href="javascript: codeReview('{{APP1_PATH}}config/const.Paths.php','3,4','')">const.Paths.php</a> ! so that the constant 'APP_URL' is set to '/test/app1_test/', ! and the constant 'WEBAPP_PATH' is set to '../../web_app'. ! <li> Open the application '/test/app1_test/' in browser to test it. ! It should work. </ol> - 'WEBAPP_PATH' is the path of the phpWebApp framework and tells the application - where to find the framework. This constant is used by the file 'application.php' - to include the framework classes and modules. The developer doesn't have to - wory about using this constant, just give it the right path. - </p> - <p> - In this example it is set as a relative path, but it can be set as an - absolute path as well, e.g. '/var/www/html/web_app' - (or 'c:/www/html/web_app' for Windows). In this case you don't - have to wory about changing it when moving an application to another - location. - </p> ! [<a href="#toc">TOC</a>] ! <br> <a name="exercise_3"></a> <h5>3 - Debugging Transitions</h5> ! <p> <ol> ! <li> Open in editor the file ! <a href="javascript: codeReview('{{APP1_PATH}}config/const.Settings.php','12-14','')"><i>config/const.Settings.php</i></a> ! and set the constant <b>DEBUG_GOTO</b> to <b>true</b>. ! <li> Test the application and notice that each time that you make ! a transition you get an alert about it. </ol> - </p> ! [<a href="#toc">TOC</a>] <br> - <a name="exercise_4"></a> - <h5>4 - Change the Name of the Folder 'event_handlers'</h5> - <p> - <ol> - <li> Change the name of the folder 'event_handlers' to 'events' - ($ cd test/app1_test/ $ mv event_handlers events) - <li> Edit the file - <a href="javascript: codeReview('{{APP1_PATH}}config/const.Paths.php','5','')"><i>config/const.Paths.php</i></a> - and set the constant EVENTHANDLER_PATH to APP_PATH."events/". - <li> Try the application. It should work. - </ol> - </p> ! [<a href="#toc">TOC</a>] ! <br> ! <a name="exercise_5"></a> ! <h5>5 - Add a New Page to the Application</h5> ! <p> ! <ol> ! <li> Copy 'page1.html' to 'page4.html' and change its title and content ! to 'Page 4'. <br> ! ($ cd test/app1_test $ cp page1.html page4.html) ! <li> Change the links at the bottom of the pages to link to 'page4.html' ! as well. You should link to it using the GoTo() function. ! <li> Test it. ! </ol> ! </p> ! [<a href="#toc">TOC</a>] ! <br> ! <a name="exercise_6"></a> ! <h5>6 - Set the initial page of the application</h5> ! <p> ! <ol> ! <li> Open the file ! <a href="javascript: codeReview('{{APP1_PATH}}event_handlers/on.firstTime.php','8','')"><i>on.firstTime.php</i></a> and set the $targetPage variable ! to 'page2.html'. ! <li> Just for fun, add this line at the end of the function 'on_firstTime():<br> ! print "First Time\n"; ! <li> Test the application and press the button 'Home'. ! Notice that "First Time" is printed only when you enter the application. </ol> - </p> ! [<a href="#toc">TOC</a>] <br> - <a name="exercise_7"></a> - <h5>7 - Before and after each page</h5> - <p> <ol> ! <li> Open the file ! <a href="javascript: codeReview('{{APP1_PATH}}event_handlers/on.beforePage.php','','')"><i>on.beforePage.php</i></a> and add this instruction at the ! end of the function "on_beforePage()": <br> ! print "This function is called before each page.\n"; ! <li> Open the file ! <a href="javascript: codeReview('{{APP1_PATH}}event_handlers/on.afterPage.php','','')"><i>on.afterPage.php</i></a> and add this instruction at the ! end of the function "on_afterPage()": <br> ! print "This function is called after each page.\n"; ! <li> Test the application and see what happens. </ol> - </p> ! [<a href="#toc">TOC</a>] <br> - <a name="exercise_8"></a> - <h5>8 - Put the pages in another folder</h5> - <p> - In this exercise you will put all the pages of the application in another - folder. <ol> ! <li> Create a new folder named 'pages' ($ mkdir pages) ! <li> Move all the pages to this folder ($ mv page*.html pages) ! <li> Open the file ! <a href="javascript: codeReview('{{APP1_PATH}}config/const.Paths.php','6','')"><i>config/const.Paths.php</i></a> and set the constant TPL_PATH to ! APP_PATH."pages/". ! <li> Test the application. It should work. </ol> ! </p> ! <p> ! The constant TPL_PATH tells to framework where to look for the pages (in the ! phpWebApp jargon pages are called templates because they may contain ! variables and other extra tags that are reckognized by the framework). ! When you write GoTo('page1.html'), the framework looks for 'page1.html' ! in the TPL_PATH. The constant APP_PATH is a predefined constat and it ! contains the path of the application itself. ! </p> ! <p> ! By convention, the names of the path constants have a "_PATH" extension ! at the end, e.g. MENU_PATH, TUTORIAL_PATH, etc. They ! represent paths in the server, e.g. TPL_PATH may have the value: ! "/var/www/html/test/app1_test/pages/". Their value always has a slash "/" ! at the end (by convention). ! </p> ! <p> ! Another kind of constants used in the framework, the URL constants, represent paths in the application starting from the DocumentRoot (the ! part of the URL comming after the server name and before the file name). ! By convention, they end with an "_URL" and their value ends with a ! slash "/". E.g. IMG_URL, JS_URL, etc. ! </p> ! [<a href="#toc">TOC</a>] <hr> <a name="experiments"></a> ! <h4>Experiments, questions and food for thought</h4> ! <p> ! Try to do these experiments and to answer these questions. ! Don't worry if you are not able to find the answers, you will ! learn them later. <ol> ! <li> Move the 'external_page.html' to the folder 'pages' and see whether ! the link to it works. How you should change this link to make it work? ! <li> Move the stylesheet 'styles.css' to the folder 'pages' and see whether it ! works. What changes you can do to make the application work? ! <li> Rename the folder 'img' to 'images'. What changes you can do to make ! the application work? </ol> - </p> ! [<a href="#toc">TOC</a>] <hr> --- 1,352 ---- ! <h3>1 - Transitions</h3> ! ! <p>A very simple application that has 2 or 3 HTML files which have ! transitions to each-other and have some links to external pages. ! Explains what are the transitions and the difference between the ! transitions and the links. Explains how to debug transitions.</p> ! <br> ! <span class="button"> ! <a href="{{APP1_URL}}" target="_blank">Test</a> ! </span> ! <span class="button"> ! <a href= "{{APP1_URL}}browse.php" target="_blank">Browse</a> ! </span> ! <span class="button"> ! <a href= "http://phpwebapp.sourceforge.net/download/app1.tar.gz">Download</a> ! </span> ! <br> <hr> ! ! <h4><a name="toc">Table of Contents</a></h4> ! <ul> ! <li><a href="#goto">Transitions by GoTo()</a></li> ! ! <li><a href="#external">External Pages</a></li> ! ! <li><a href="#structure">The Structure of the Application</a></li> ! ! <li> ! <a href="#exercises">Exercises</a> ! ! <ol> ! <li><a href="#exercise_1">Create a new application</a></li> ! ! <li><a href="#exercise_2">Move an application to another location</a></li> ! ! <li><a href="#exercise_3">Debugging Transitions</a></li> ! ! <li><a href="#exercise_4">Add a New Page to the Application</a></li> ! ! <li><a href="#exercise_5">Set the initial page of the application</a></li> ! ! <li><a href="#exercise_6">Put the pages in another folder</a></li> ! </ol> ! </li> ! ! <li><a href="#experiments">Experiments and questions</a></li> </ul> <hr> ! ! <p><a name="goto"></a></p> ! <h4>Transitions by Goto</h4> ! ! <p>The <strong>phpWebApp</strong> thinks of a web application as ! a state machine, where each state is a web page. Each time the browser ! loads something new in its window, you see a snapshot of the application ! in a certain state. Transitions from one state (page) of the application ! to another are done by using the javascript function ! <strong>GoTo('page.html')</strong>. This function is declared by ! the framework itself and is included automatically at the head of ! each page of the application. The parameter given to ! <strong>GoTo()</strong> is the target page, i.e. the next page that ! will be displayed by the framework.</p> ! ! <p>In real applications, usually the link calls a ! <em>JavaScript</em> function, and this function makes the ! transition by calling <strong>GoTo()</strong>. So, the application ! has a chance to make any error checkings, input data validations ! etc. before making the transition to the other page.</p> ! ! <p><a href="javascript:codeReview('{{APP1_PATH}}page1.html','14,40,41')"> ! See the code</a> of the first page and notice how the ! <strong>GoTo()</strong> is used. <br> ! If you have not tested the application yet, please <a href="{{APP1_URL}}" ! target="_blank">test it</a> now and pay attention to ! how the <strong>GoTo()</strong> is used.</p> ! ! <span class="button"><a href="#toc">TOC</a></span> <hr> <a name="external"></a> + <h4>External Pages</h4> ! ! <p>The external pages are HTML pages that are outside the application. They are linked as usually in HTML, without using ! transitions and the function <strong>GoTo()</strong>. These pages ! are not part of the application, they are either plain HTML pages ! or pages of other applications.</p> ! ! <p>While in an external page, you cannot go back to a page of the ! application by using the function <strong>GoTo()</strong> because it is undefined. You can only go back to the same page of the ! application from which you got out by pressing the button ! <strong>back</strong> in the browser (or calling the JS function ! <em>history.back()</em>).</p> ! <p>If you open a page of the application by linking (as an external ! page), not by a <strong>GoTo()</strong> transition, then it will ! not behave as a page of the application (because the ! <strong>GoTo()</strong> function and other framework related things ! are not included in it).</p> ! ! <p>See an ! <a href="javascript:codeReview('{{APP1_PATH}}page2.html','14,15','9-16')"> ! example</a> of linking to external pages.</p> ! ! <span class="button"><a href="#toc">TOC</a></span> <hr> <a name="structure"></a> + <h4>The Structure of the Application</h4> ! <p>Each application build with <strong>phpWebApp</strong> framework ! must have some files that are required by the framework. Besides ! them it should also have its own files. The required files are almost ! the same for every application. The <em>application</em> files and ! folders are created by the application developer and they are different ! for each application.</p> ! <p>If you have not yet browsed the application, then ! <a href="{{APP1_URL}}browse.php" target="_blank">browse it</a> now.</p> ! <p>The files required by the framework are:</p> ! <pre> ! config/ -- configuration files for the application ! const.Paths.php -- constants of paths used in the application ! const.Options.php -- constants that change the behaviour of the app ! const.Debug.php -- constants that are used for debugging the app + index.php -- standart framework file + webapp.php -- standart framework file </pre> ! <br> ! ! <p>The application files and folders are:</p> <pre> img/ back.png home.png + state_diagram.png page1.html page2.html page3.html styles.css </pre> ! <br> ! ! <p>The file <em>browse.php</em> is not required by the framework ! and is almost the same for each application. It is usually ! used during the development of the application to preview how the ! templates and weboxes look like. The file <em>external_page.html</em> ! does not belong neither to the framework nor to the application; it ! just happens to be in the folder of the application.</p> ! ! <p>The files <em>index.php</em> and <em>webapp.php</em> are the same ! for each application, you don't need to modify them and usually they ! should not be touched. In the <em>config</em> files, there are three ! constants that must be set for each new application, and the rest of ! them are optional. These constants are: <strong>WEBAPP_PATH</strong> ! and <strong>TPL_PATH</strong> in ! <a href="javascript:codeReview('{{APP1_PATH}}config/const.Paths.php','3,4')">const.Paths.php</a>, ! and <strong>FIRSTPAGE</strong> in ! <a href="javascript:codeReview('{{APP1_PATH}}config/const.Options.php', '9-13', '1-21')">const.Options.php</a> </p> ! <span class="button"><a href="#toc">TOC</a></span> <hr> <a name="exercises"></a> + <h4>Exerxises</h4> ! ! <p>To be able to try the exercises you have to instal the ! framework and the sample applications in your computer or somewhere ! where you can make changes.</p> ! <a name="exercise_1"></a> + <h5>1 - Create a new application</h5> ! ! <p>In this exercise you will create another application which is ! identic with <strong>app1</strong> but has a different name, ! <strong>app1_test</strong>. Follow these steps:</p> ! <ol> ! <li>Copy the folder <em>app1</em> to the folder <em>app1_test</em>:<br> ! <kbd>$ cp -R app1 app1_test</kbd></li> ! ! <li>That was all, open the application <em>/app1_test/</em> in browser ! to test it. It should work.</li> </ol> ! <span class="button"><a href="#toc">TOC</a></span> <br> <a name="exercise_2"></a> + <h5>2 - Move an application to another location</h5> ! ! <p>In this exercise you will move the application <em>app1_test</em> to ! <em>test/app1_test</em>.</p> ! <ol> ! <li>Create the folder <em>test</em> and move <em>app1_test</em> to it: <br> ! <kbd>$ mkdir test <br> $ mv app1_test test</kbd></li> ! ! <li>Edit the file <em>test/app1_test/config/<a href="javascript:codeReview('{{APP1_PATH}}config/const.Paths.php','3')">const.Paths.php</a></em> ! so that the constant <strong>WEBAPP_PATH</strong> is set to ! <strong>UP_PATH."../web_app/"</strong>.</li> ! ! <li>Open the application <em>/test/app1_test/</em> in browser to test ! it; it should work.</li> </ol> ! <p><strong>WEBAPP_PATH</strong> is the path of the phpWebApp framework ! and tells the application where to find the framework. This constant ! is used by the file <strong>webapp.php</strong> to include the ! framework classes and modules. The constant <strong>UP_PATH</strong> ! which is defined in <strong>webapp.php</strong>, contains the parent ! folder of the application (app1_test) folder</p>. + <p>In this example it is set as a relative path, but it can be set + as an absolute path as well, e.g. <em>/var/www/html/web_app/</em> (or + <em>c:/www/html/web_app/</em> for Windows). In this case you don't have to + wory about changing it when moving an application to another + location.</p> + + <span class="button"><a href="#toc">TOC</a></span> + <br> <a name="exercise_3"></a> + <h5>3 - Debugging Transitions</h5> ! <ol> ! <li>Edit the file ! <a href="javascript:codeReview('{{APP1_PATH}}config/const.Debug.php','6-10')"> ! <em>config/const.Debug.php</em></a> and set the constant ! <strong>DEBUG_GOTO</strong> to <strong>true</strong>.</li> ! ! <li>Test the application and notice that each time that you make ! a transition you get an alert about it.</li> </ol> ! <span class="button"><a href="#toc">TOC</a></span> <br> <a name="exercise_4"></a> ! <h5>4 - Add a New Page to the Application</h5> ! <ol> ! <li>Copy <em>page1.html</em> to <em>page4.html</em> and change its ! title and content to <em>Page 4</em>. <br> ! <kbd>$ cd test/app1_test <br> $ cp page1.html page4.html</kbd></li> ! <li>Change the links at the bottom of the pages to link to ! <em>page4.html</em> as well. You should link to it using the ! <strong>GoTo()</strong> function.</li> ! <li>Test it.</li> </ol> ! <span class="button"><a href="#toc">TOC</a></span> <br> + <a name="exercise_5"></a> + + <h5>5 - Set the initial page of the application</h5> <ol> ! <li>Open the file <em>config/<a href= ! "javascript:codeReview('{{APP1_PATH}}config/const.Options.php','9-13')">const.Options.php</a></em> ! and set the <strong>FIRSTPAGE</strong> variable to ! <strong>page2.html</strong>.</li> ! ! <li>Test the application and press the <em>Home</em> button.</li> </ol> ! <span class="button"><a href="#toc">TOC</a></span> <br> + <a name="exercise_6"></a> + + <h5>6 - Put the pages in another folder</h5> + + <p>In this exercise you will put all the pages of the application + in another folder.</p> <ol> ! <li>Create a new folder named <em>pages</em>: <br> ! <kbd>$ mkdir pages</kbd></li> ! ! <li>Move all the pages to this folder: <br> ! <kbd>$ mv page*.html pages</kbd></li> ! ! <li>Open the file <em>config/<a href= ! "javascript:codeReview('{{APP1_PATH}}config/const.Paths.php','4')">const.Paths.php</a></em> ! and set the constant <strong>TPL_PATH</strong> ! to <strong>APP_PATH."pages/"</strong>.</li> ! ! <li>Test the application. It should work.</li> </ol> ! ! <p>The constant <strong>TPL_PATH</strong> tells to framework where to ! look for the pages (in the phpWebApp jargon pages are called ! <em>templates</em> because they may contain <em>variables</em> and ! other <em>extra tags</em> that are reckognized by the framework). When ! you write <strong>GoTo('page1.html')</strong>, the framework looks for ! <em>page1.html</em> in the <strong>TPL_PATH</strong>. The constant ! <strong>APP_PATH</strong> is a predefined constat and it contains the ! path of the application itself.</p> ! ! <p>By convention, the names of the path constants have a ! <strong>_PATH</strong> extension at the end, e.g. MENU_PATH, ! TUTORIAL_PATH, etc. They represent paths in the server, e.g. TPL_PATH ! may have the value: <em>/var/www/html/test/app1_test/pages/</em>. Their ! value always has a slash <strong>/</strong> at the end (by convention).</p> ! ! <p>Another kind of constants used in the framework, the URL constants, represent paths in the application starting from the DocumentRoot (the ! part of the URL comming after the server name and before the file ! name). By convention, they end with an <strong>_URL</strong> and their ! value ends with a slash <strong>/</strong>. E.g. IMG_URL, JS_URL, etc.</p> ! <span class="button"><a href="#toc">TOC</a></span> <hr> <a name="experiments"></a> ! ! <h4>Experiments and questions</h4> ! ! <p>Try to do these experiments and to answer these questions.</p> ! <ol> ! <li>Move the <em>external_page.html</em> to the folder ! <em>pages</em> and see whether the link to it works. How you should ! change this link to make it work?</li> ! ! <li>Move the stylesheet <em>styles.css</em> to the folder ! <em>pages</em> and see whether it works. What changes you can do to ! make the application find the stylesheet?</li> ! ! <li>Rename the folder <em>img</em> to <em>images</em>. What changes ! you can do to make the application work?</li> </ol> ! <p><br> ! <br> ! <span class="button"><a href="#toc">TOC</a></span> ! </p> <hr> |
From: Dashamir H. <das...@us...> - 2003-08-15 07:51:55
|
Update of /cvsroot/phpwebapp/documentation/templates/tutorial In directory sc8-pr-cvs1:/tmp/cvs-serv22904/templates/tutorial Removed Files: codeReview.js Log Message: renamed to tutorial.js --- codeReview.js DELETED --- |
From: Dashamir H. <das...@us...> - 2003-08-15 07:37:33
|
Update of /cvsroot/phpwebapp/documentation/templates/tutorial In directory sc8-pr-cvs1:/tmp/cvs-serv24308/templates/tutorial Modified Files: weboxes.html tutorial.html templates.html sess_var.html intro.html events.html documentation.html database.html advanced.html Log Message: improvments in the templates and styles of the documentation (using better css) Index: weboxes.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/weboxes.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** weboxes.html 21 Feb 2003 08:18:32 -0000 1.1.1.1 --- weboxes.html 15 Aug 2003 07:37:30 -0000 1.2 *************** *** 8,13 **** are used in the corresponding template. <br><br> ! [<a href="javascript: alert('Sorry! Not implemented yet.')">Test</a>] ! [<a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a>] <br><br> <hr> --- 8,17 ---- are used in the corresponding template. <br><br> ! <span class="button"> ! <a href="javascript: alert('Sorry! Not implemented yet.')">Test</a> ! </span> ! <span class="button"> ! <a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a> ! </span> <br><br> <hr> *************** *** 17,19 **** <li> <li> ! </ul> \ No newline at end of file --- 21,23 ---- <li> <li> ! </ul> Index: tutorial.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/tutorial.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** tutorial.html 23 Feb 2003 14:53:26 -0000 1.2 --- tutorial.html 15 Aug 2003 07:37:30 -0000 1.3 *************** *** 1,19 **** <WebBox ID="tutorial"> ! <table border="0" cellpadding="5" cellspacing="0" width="100%" align="center"> ! <tr><td> ! <table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" bgcolor="#999999"> ! <tr><td> ! <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="white"> ! <tr> ! <td> ! <Include SRC="{{WEBOBJ_PATH}}tabs/tabs3.html" /> ! <WebObject Class="tabs3" Name="tutorial" /> ! <Include SRC="{{./}}{{tabs3::tutorial->selected_item}}.html" /> ! </td> ! </tr> ! </table> ! </td></tr> ! </table> ! </td></tr> ! </table> </WebBox> --- 1,7 ---- <WebBox ID="tutorial"> ! <div class="white_box"> ! <Include SRC="{{WEBOBJ_PATH}}tabs/tabs3.html" /> ! <WebObject Class="tabs3" Name="tutorial" /> ! <Include SRC="{{./}}{{tabs3::tutorial->selected_item}}.html" /> ! </div> </WebBox> Index: templates.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/templates.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** templates.html 11 Aug 2003 16:31:05 -0000 1.3 --- templates.html 15 Aug 2003 07:37:30 -0000 1.4 *************** *** 10,16 **** Explains how to debug the template structure. <br><br> ! [<a href="{{APP2_URL}}" target="_blank">Test</a>] ! [<a href="{{APP2_URL}}browse.php" target="_blank">Browse</a>] ! [<a href="http://phpwebapp.sourceforge.net/download/app2.tar.gz">Download</a>] <br><br> <hr> --- 10,22 ---- Explains how to debug the template structure. <br><br> ! <span class="button"> ! <a href="{{APP2_URL}}" target="_blank">Test</a> ! </span> ! <span class="button"> ! <a href="{{APP2_URL}}browse.php" target="_blank">Browse</a> ! </span> ! <span class="button"> ! <a href="http://phpwebapp.sourceforge.net/download/app2.tar.gz">Download</a> ! </span> <br><br> <hr> *************** *** 47,51 **** </p> ! [<a href="#toc">TOC</a>] <hr> --- 53,57 ---- </p> ! <span class="button"><a href="#toc">TOC</a></span> <hr> *************** *** 70,74 **** </p> ! [<a href="#toc">TOC</a>] <hr> --- 76,80 ---- </p> ! <span class="button"><a href="#toc">TOC</a></span> <hr> *************** *** 93,97 **** </p> ! [<a href="#toc">TOC</a>] <hr> --- 99,103 ---- </p> ! <span class="button"><a href="#toc">TOC</a></span> <hr> *************** *** 111,115 **** </p> ! [<a href="#toc">TOC</a>] <hr> --- 117,121 ---- </p> ! <span class="button"><a href="#toc">TOC</a></span> <hr> *************** *** 140,144 **** </p> ! [<a href="#toc">TOC</a>] <hr> --- 146,150 ---- </p> ! <span class="button"><a href="#toc">TOC</a></span> <hr> *************** *** 202,206 **** </ul> ! [<a href="#toc">TOC</a>] <hr> --- 208,212 ---- </ul> ! <span class="button"><a href="#toc">TOC</a></span> <hr> *************** *** 213,217 **** </p> ! [<a href="#toc">TOC</a>] <hr> --- 219,223 ---- </p> ! <span class="button"><a href="#toc">TOC</a></span> <hr> *************** *** 247,251 **** </p> ! [<a href="#toc">TOC</a>] <hr> --- 253,257 ---- </p> ! <span class="button"><a href="#toc">TOC</a></span> <hr> *************** *** 271,275 **** </p> ! [<a href="#toc">TOC</a>] <hr> --- 277,281 ---- </p> ! <span class="button"><a href="#toc">TOC</a></span> <hr> *************** *** 315,319 **** </p> ! [<a href="#toc">TOC</a>] <hr> --- 321,325 ---- </p> ! <span class="button"><a href="#toc">TOC</a></span> <hr> *************** *** 342,346 **** </p> ! [<a href="#toc">TOC</a>] <hr> --- 348,352 ---- </p> ! <span class="button"><a href="#toc">TOC</a></span> <hr> *************** *** 363,367 **** </p> ! [<a href="#toc">TOC</a>] <hr> --- 369,373 ---- </p> ! <span class="button"><a href="#toc">TOC</a></span> <hr> *************** *** 394,398 **** </p> ! [<a href="#toc">TOC</a>] <hr> --- 400,404 ---- </p> ! <span class="button"><a href="#toc">TOC</a></span> <hr> *************** *** 405,409 **** </p> ! [<a href="#toc">TOC</a>] <hr> --- 411,415 ---- </p> ! <span class="button"><a href="#toc">TOC</a></span> <hr> Index: sess_var.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/sess_var.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** sess_var.html 21 Feb 2003 08:18:36 -0000 1.1.1.1 --- sess_var.html 15 Aug 2003 07:37:30 -0000 1.2 *************** *** 9,14 **** Explains how to debug the session variables. <br><br> ! [<a href="javascript: alert('Sorry! Not implemented yet.')">Test</a>] ! [<a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a>] <br><br> <hr> --- 9,18 ---- Explains how to debug the session variables. <br><br> ! <span class="button"> ! <a href="javascript: alert('Sorry! Not implemented yet.')">Test</a> ! </span> ! <span class="button"> ! <a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a> ! </span> <br><br> <hr> *************** *** 18,20 **** <li> <li> ! </ul> \ No newline at end of file --- 22,24 ---- <li> <li> ! </ul> Index: intro.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/intro.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** intro.html 23 Feb 2003 14:29:07 -0000 1.2 --- intro.html 15 Aug 2003 07:37:30 -0000 1.3 *************** *** 18,23 **** <table width="100%" align="center" cellspacing="0" cellpadding="20" border="0"> <tr> ! <td width="50%" valign="top"> ! <b><a href="javascript: tutorialTab('transitions')">1 - Transitions</a></b> <br> A very simple application that has 2 or 3 HTML files --- 18,25 ---- <table width="100%" align="center" cellspacing="0" cellpadding="20" border="0"> <tr> ! <td width="50%" valign="top" bgcolor="#eeeeee"> ! <a href="javascript: tabs3_select('tabs3::tutorial', 'transitions')"> ! <b>1 - Transitions</b> ! </a> <br> A very simple application that has 2 or 3 HTML files *************** *** 29,34 **** debug transitions. </td> ! <td width="50%" valign="top"> ! <b><a href="javascript: tutorialTab('templates')">2 - Templates</a></b> <br> The HTML files now become templates. This application --- 31,36 ---- debug transitions. </td> ! <td width="50%" valign="top" bgcolor="#f8f8f8"> ! <b><a href="javascript: tabs3_select('tabs3::tutorial', 'templates')">2 - Templates</a></b> <br> The HTML files now become templates. This application *************** *** 43,48 **** </tr> <tr> ! <td width="50%" valign="top"> ! <b><a href="javascript: tutorialTab('weboxes')">3 - Introducing WebBox-es</a></b> <br> Some of the templates are turned into weboxes. --- 45,50 ---- </tr> <tr> ! <td width="50%" valign="top" bgcolor="#f8f8f8"> ! <b><a href="javascript: tabs3_select('tabs3::tutorial', 'weboxes')">3 - Introducing WebBox-es</a></b> <br> Some of the templates are turned into weboxes. *************** *** 54,59 **** </td> ! <td width="50%" valign="top"> ! <b><a href="javascript: tutorialTab('events')">4 - Sending and Handelling Events</a></b> <br> Some of the transitions send --- 56,61 ---- </td> ! <td width="50%" valign="top" bgcolor="#eeeeee"> ! <b><a href="javascript: tabs3_select('tabs3::tutorial', 'events')">4 - Sending and Handelling Events</a></b> <br> Some of the transitions send *************** *** 65,70 **** </tr> <tr> ! <td width="50%" valign="top"> ! <b><a href="javascript: tutorialTab('sess_var')">5 - Session and Variables</a></b> <br> Explains what are the session variables and how to use them. --- 67,72 ---- </tr> <tr> ! <td width="50%" valign="top" bgcolor="#eeeeee"> ! <b><a href="javascript: tabs3_select('tabs3::tutorial', 'sess_var')">5 - Session and Variables</a></b> <br> Explains what are the session variables and how to use them. *************** *** 76,81 **** Explains how to debug the session variables. </td> ! <td width="50%" valign="top"> ! <b><a href="javascript: tutorialTab('database')">6 - Interacting with a Database</a></b> <br> Explains how to set a default connection with a database. --- 78,83 ---- Explains how to debug the session variables. </td> ! <td width="50%" valign="top" bgcolor="#f8f8f8"> ! <b><a href="javascript: tabs3_select('tabs3::tutorial', 'database')">6 - Interacting with a Database</a></b> <br> Explains how to set a default connection with a database. *************** *** 91,96 **** </tr> <tr> ! <td width="50%" valign="top"> ! <b><a href="javascript: tutorialTab('advanced')">7 - All the rest of the advanced features</a></b> <br> A complicated, real and almost finished web application (which --- 93,98 ---- </tr> <tr> ! <td width="50%" valign="top" bgcolor="#f8f8f8"> ! <b><a href="javascript: tabs3_select('tabs3::tutorial', 'advanced')">7 - All the rest of the advanced features</a></b> <br> A complicated, real and almost finished web application (which *************** *** 108,113 **** </ul> </td> ! <td width="50%" valign="top"> ! <b><a href="javascript: tutorialTab('documentation')">8 - The documentation application</a></b> <br> This web application (the 'phpWebApp documentation') is built --- 110,115 ---- </ul> </td> ! <td width="50%" valign="top" bgcolor="#eeeeee"> ! <b><a href="javascript: tabs3_select('tabs3::tutorial', 'documentation')">8 - The documentation application</a></b> <br> This web application (the 'phpWebApp documentation') is built Index: events.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/events.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** events.html 21 Feb 2003 08:18:36 -0000 1.1.1.1 --- events.html 15 Aug 2003 07:37:30 -0000 1.2 *************** *** 7,12 **** and sending events to 'none' of the weboxes (independent events). <br><br> ! [<a href="javascript: alert('Sorry! Not implemented yet.')">Test</a>] ! [<a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a>] <br><br> <hr> --- 7,16 ---- and sending events to 'none' of the weboxes (independent events). <br><br> ! <span class="button"> ! <a href="javascript: alert('Sorry! Not implemented yet.')">Test</a> ! </span> ! <span class="button"> ! <a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a> ! </span> <br><br> <hr> *************** *** 16,18 **** <li> <li> ! </ul> \ No newline at end of file --- 20,22 ---- <li> <li> ! </ul> Index: documentation.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/documentation.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** documentation.html 23 Feb 2003 14:42:39 -0000 1.1 --- documentation.html 15 Aug 2003 07:37:30 -0000 1.2 *************** *** 5,10 **** web application is constructed. <br><br> ! [<a href="javascript: alert('Sorry! Not implemented yet.')">Test</a>] ! [<a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a>] <br><br> <hr> --- 5,14 ---- web application is constructed. <br><br> ! <span class="button"> ! <a href="javascript: alert('Sorry! Not implemented yet.')">Test</a> ! </span> ! <span class="button"> ! <a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a> ! </span> <br><br> <hr> Index: database.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/database.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** database.html 21 Feb 2003 08:18:36 -0000 1.1.1.1 --- database.html 15 Aug 2003 07:37:30 -0000 1.2 *************** *** 10,15 **** times of the queries (and other processes). <br><br> ! [<a href="javascript: alert('Sorry! Not implemented yet.')">Test</a>] ! [<a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a>] <br><br> <hr> --- 10,19 ---- times of the queries (and other processes). <br><br> ! <span class="button"> ! <a href="javascript: alert('Sorry! Not implemented yet.')">Test</a> ! </span> ! <span class="button"> ! <a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a> ! </span> <br><br> <hr> *************** *** 19,21 **** <li> <li> ! </ul> \ No newline at end of file --- 23,25 ---- <li> <li> ! </ul> Index: advanced.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/advanced.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** advanced.html 21 Feb 2003 08:18:36 -0000 1.1.1.1 --- advanced.html 15 Aug 2003 07:37:30 -0000 1.2 *************** *** 14,19 **** </ul> <br><br> ! [<a href="javascript: alert('Sorry! Not implemented yet.')">Test</a>] ! [<a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a>] <br><br> <hr> --- 14,23 ---- </ul> <br><br> ! <span class="button"> ! <a href="javascript: alert('Sorry! Not implemented yet.')">Test</a> ! </span> ! <span class="button"> ! <a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a> ! </span> <br><br> <hr> *************** *** 23,25 **** <li> <li> ! </ul> \ No newline at end of file --- 27,29 ---- <li> <li> ! </ul> |
From: Dashamir H. <das...@us...> - 2003-08-15 07:37:33
|
Update of /cvsroot/phpwebapp/documentation/templates/user_manual In directory sc8-pr-cvs1:/tmp/cvs-serv24308/templates/user_manual Modified Files: user_manual.html Log Message: improvments in the templates and styles of the documentation (using better css) Index: user_manual.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/user_manual/user_manual.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** user_manual.html 23 Feb 2003 14:29:07 -0000 1.2 --- user_manual.html 15 Aug 2003 07:37:29 -0000 1.3 *************** *** 1,22 **** ! <WebBox ID="user_manual"> ! <table border="0" cellpadding="5" cellspacing="0" width="100%" align="center"> ! <tr><td> ! <table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" bgcolor="#999999"> ! <tr><td> ! <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="white"> ! <tr> ! <td> ! <Include SRC="{{WEBOBJ_PATH}}tabs/tabs3.html" /> ! <WebObject Class="tabs3" Name="manual" ! items="{{./}}manual_items.php" /> ! <WebBox ID="manual_page"> ! <Include SRC="{{WOBJ_PATH}}displaytxt/displaytxt.html" /> ! </WebBox> ! </td> ! </tr> ! </table> ! </td></tr> ! </table> ! </td></tr> ! </table> ! </WebBox> --- 1,8 ---- ! <div class="white_box"> ! <Include SRC="{{WEBOBJ_PATH}}tabs/tabs3.html" /> ! <WebObject Class="tabs3" Name="manual" ! items="{{./}}manual_items.php" /> ! <WebBox ID="manual_page"> ! <Include SRC="{{WOBJ_PATH}}displaytxt/displaytxt.html" /> ! </WebBox> ! </div> |
From: Dashamir H. <das...@us...> - 2003-08-15 07:37:33
|
Update of /cvsroot/phpwebapp/documentation/templates In directory sc8-pr-cvs1:/tmp/cvs-serv24308/templates Modified Files: styles.css main.html bismilah.html Log Message: improvments in the templates and styles of the documentation (using better css) Index: styles.css =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/styles.css,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** styles.css 23 Feb 2003 14:29:07 -0000 1.2 --- styles.css 15 Aug 2003 07:37:30 -0000 1.3 *************** *** 1,43 **** body { ! background-color:#FFFFFF; ! margin-top:5px; ! margin-left:5px; ! margin-right:5px; ! margin-bottom:5px; } ! .font { ! font-family: Arial, Helvetica, Sans-Se; ! font-size: 10pt; ! color:#000000; } ! .checkbox, .radio { } ! .text, .button { ! font-family: Arial, Helvetica, Sans-Se; ! font-size: 10pt; ! background-color: #EAEAEA; ! color: #006666; } ! .title { ! COLOR: #FFFFFF; ! FONT-FAMILY: Arial, Helvetica, Sans-Se; ! FONT-SIZE: 12px; ! FONT-WEIGHT: bold } ! .strong { ! COLOR: #000066; ! FONT-FAMILY: Arial, Helvetica, Sans-Se; ! FONT-SIZE: 16px; ! FONT-WEIGHT: bold } --- 1,43 ---- body { ! margin: 5px; ! background-color: #ffffff; ! font-family: arial, helvetica, sans-se; ! font-size: 12pt; ! color: #000044; } ! a { ! text-decoration: none; } ! .small_font { + font-family: arial, helvetica, sans-se; + font-size: 8pt; + color: #000000; + text-align: right; + white-space: nowrap; } ! .content_box { ! padding: 10px; ! background-color: #ffaaaa; } ! .white_box { ! border: 1px solid #999999; ! padding: 10px; ! background-color: #ffffff; } ! .white_box_1 { ! border: 1px solid #999999; ! padding: 0px; ! background-color: #ffffff; } + Index: main.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/main.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** main.html 23 Feb 2003 14:29:07 -0000 1.2 --- main.html 15 Aug 2003 07:37:30 -0000 1.3 *************** *** 1,10 **** <html> <head> ! <title> phpWebApp </title> ! <link rel="stylesheet" type="text/css" href="{{./}}styles.css"> </head> ! <body bgcolor="white"> <table width="100%" align="center" cellspacing="0" cellpadding="0" border="0"> <tr> --- 1,11 ---- <html> <head> ! <title>phpWebApp</title> ! <link rel="stylesheet" type="text/css" href="{{./}}styles.css"> </head> ! <body> + <!--# Header #--> <table width="100%" align="center" cellspacing="0" cellpadding="0" border="0"> <tr> *************** *** 12,16 **** <img src="http://sourceforge.net/sflogo.php?group_id=41147" width="88" height="31" border="0" alt="SourceForge Logo"> </td> ! <td align="center"><h3>phpWebApp Documentation</h3></td> <td width="1%" align="left" valign="top" nowrap> <Include SRC="{{./}}bismilah.html" /> --- 13,19 ---- <img src="http://sourceforge.net/sflogo.php?group_id=41147" width="88" height="31" border="0" alt="SourceForge Logo"> </td> ! <td align="center"> ! <h3>phpWebApp Documentation</h3> ! </td> <td width="1%" align="left" valign="top" nowrap> <Include SRC="{{./}}bismilah.html" /> *************** *** 20,38 **** <table width="100%" align="center" cellspacing="0" cellpadding="0" border="0"> ! <tr><td> ! <Include SRC="{{WEBOBJ_PATH}}tabs/tabs1.html"> ! <WebObject Class="tabs1" Name="mainMenu" ! items="{{./}}mainMenu_items.php" /> ! </td></tr> ! <tr><td> ! <WebBox ID="content"> ! <table width="100%" height="400" align="center" ! cellspacing="0" cellpadding="1" border="0" bgcolor="#FFAAAA"> ! <tr><td valign="top"> <Include SRC="{{./}}{{content_file}}"/> ! </td></tr> ! </table> ! </WebBox> ! </td></tr> </table> --- 23,42 ---- <table width="100%" align="center" cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td> ! <!--# Menu #--> ! <Include SRC="{{WEBOBJ_PATH}}tabs/tabs1.html"> ! <WebObject Class="tabs1" Name="mainMenu" ! items="{{./}}mainMenu_items.php" /> ! </td> ! </tr> ! <tr> ! <td class="content_box"> ! <!--# Content #--> ! <WebBox ID="content"> <Include SRC="{{./}}{{content_file}}"/> ! </WebBox> ! </td> ! </tr> </table> Index: bismilah.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/bismilah.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** bismilah.html 11 Aug 2003 16:31:05 -0000 1.3 --- bismilah.html 15 Aug 2003 07:37:30 -0000 1.4 *************** *** 1,13 **** <table cellspacing="0" cellpadding="0"> ! <tr><td align="right"> ! <a href="http://www.harunyahya.com/A_tr.php" target="_blank"> ! <img src="{{GRAPHICS}}bismilah.png" border="0" alt="Bismillahir-Rahmanir-Rahim"> ! </a> ! </td></tr> ! <tr><td align="right"> ! <font size="1">Bismillahir-Rahmanir-Rahim</font> ! </td></tr> ! <tr><td align="right" nowrap="true"> ! <font size="1">In the name of God, the Compassionate, the Merciful</font> ! </td></tr> </table> --- 1,15 ---- <table cellspacing="0" cellpadding="0"> ! <tr> ! <td align="right"> ! <a href="http://www.harunyahya.com/A_tr.php" target="_blank"> ! <img src="{{GRAPHICS}}bismilah.png" border="0" alt="Bismillahir-Rahmanir-Rahim"> ! </a> ! </td> ! </tr> ! <tr> ! <td class="small_font">Bismil'lahir-Rahmanir-Rahim</td> ! </tr> ! <tr> ! <td class="small_font">In the name of God, the Compassionate, the Merciful</td> ! </tr> </table> |
From: Dashamir H. <das...@us...> - 2003-08-15 07:37:32
|
Update of /cvsroot/phpwebapp/documentation/templates/webobjects In directory sc8-pr-cvs1:/tmp/cvs-serv24308/templates/webobjects Modified Files: webobjects.html Log Message: improvments in the templates and styles of the documentation (using better css) Index: webobjects.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/webobjects/webobjects.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** webobjects.html 23 Feb 2003 14:29:07 -0000 1.2 --- webobjects.html 15 Aug 2003 07:37:29 -0000 1.3 *************** *** 1,20 **** ! <table border="0" cellpadding="5" cellspacing="0" width="100%" align="center"> ! <tr><td> ! <table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" bgcolor="#999999"> ! <tr><td> ! <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="white"> ! <tr> ! <td> ! <Include SRC="{{WEBOBJ_PATH}}tabs/tabs2.html" /> ! <WebObject Class="tabs2" Name="webobj" ! items="{{./}}webobj_items.php" /> ! <WebBox ID="wobj_page"> ! <Include SRC="{{WOBJ_PATH}}displaytxt/displaytxt.html" /> ! </WebBox> ! </td> ! </tr> ! </table> ! </td></tr> ! </table> ! </td></tr> ! </table> --- 1,8 ---- ! <div class="white_box_1"> ! <Include SRC="{{WEBOBJ_PATH}}tabs/tabs2.html" /> ! <WebObject Class="tabs2" Name="webobj" ! items="{{./}}webobj_items.php" /> ! <WebBox ID="wobj_page"> ! <Include SRC="{{WOBJ_PATH}}displaytxt/displaytxt.html" /> ! </WebBox> ! </div> |
From: Dashamir H. <das...@us...> - 2003-08-15 07:37:14
|
Update of /cvsroot/phpwebapp/documentation/templates/tutorial In directory sc8-pr-cvs1:/tmp/cvs-serv23469/templates/tutorial Added Files: tutorial.js tutorial.css Log Message: stylesheet and javascript files for the tutorial module --- NEW FILE: tutorial.js --- //this function opens a new window for displaying a code file function codeReview(file_path, highlights, lines) { if (highlights==null) highlights = ''; if (lines==null) lines = ''; var url = "codeReview.php?file="+file_path +"&highlights="+highlights +"&lines="+lines; var features = "menubar=no,toolbar=no,status=no," +"location=no,resizable=yes,scrollbars=yes"; window.open(url, "codeReview", features); } --- NEW FILE: tutorial.css --- h1, h2 { text-align: center; } h1, h2, h3, h4, h5 { color: #660000; } pre { background-color: #eeeeee; border: 1px solid #0000aa; color: #00aa00; } strong { color: #000066; font-size: 14px; font-weight: bold } .button { margin: 0 0; padding: 0px; } .button a { margin: 0; padding: 1px; font-family: arial, helvetica, sans-se; font-size: 10pt; font-weight: bold; text-align: center; text-decoration: none; color: #665544; background-color: #ccddee; white-space: nowrap; border: 1px solid #667788; } .button a:hover { background-color: #ddeeff; } |
From: Dashamir H. <das...@us...> - 2003-08-15 07:30:04
|
Update of /cvsroot/phpwebapp/web_app In directory sc8-pr-cvs1:/tmp/cvs-serv19302 Modified Files: class.WebApp.php Log Message: 'eventhandler/on.firstTime.php' was replaced by 'init.php' 'eventhandler/on.beforePage.php' was replaced by 'before_page.php' Fixed webapp_styles. Index: class.WebApp.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/class.WebApp.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** class.WebApp.php 7 Aug 2003 16:12:22 -0000 1.7 --- class.WebApp.php 15 Aug 2003 07:01:19 -0000 1.8 *************** *** 57,67 **** $webPage->timer->Start("WebApp", $comment); ! //call the handler 'on_beforePage' if it exists ! $fname = EVENTHANDLER_PATH."on.beforePage.php"; ! if (file_exists($fname)) ! { ! include_once $fname; ! on_beforePage($event); ! } //construct the structure of the web page --- 57,63 ---- $webPage->timer->Start("WebApp", $comment); ! //include 'before_page.php' if it exists ! $fname = APP_PATH."before_page.php"; ! if (file_exists($fname)) include_once $fname; //construct the structure of the web page *************** *** 70,73 **** --- 66,77 ---- $parser->parse_main($tpl_file); + //append to <head> the JS code that initiates the JS timer + $webPage->append_to_head($webPage->timer->JSTimer()); + + //add also the stylesheet of the framework + $webapp_styles = ' <link rel="stylesheet" type="text/css" ' + . 'href="'.WEBAPP_URL.'styles.css">'."\n"; + $webPage->append_to_head($webapp_styles); + //parse and add the append.html after the MainTpl $tpl = $parser->parse_file(APPEND_PATH."append.html"); *************** *** 75,81 **** $webPage->append_to_body($tpl->id."\n"); - //append to <head> the JS code that initiates the JS timer - $webPage->append_to_head($webPage->timer->JSTimer()); - //render the html page global $render; --- 79,82 ---- *************** *** 84,94 **** $render->render_MainTpl($webPage->rootTpl); ! //call the handler 'on_afterPage' if it exists ! $fname = EVENTHANDLER_PATH."on.afterPage.php"; ! if (file_exists($fname)) ! { ! include_once $fname; ! on_afterPage($event); ! } if ($collect) return $render->html_page; --- 85,91 ---- $render->render_MainTpl($webPage->rootTpl); ! //include 'after_page.php' if it exists ! $fname = APP_PATH."after_page.php"; ! if (file_exists($fname)) include_once $fname; if ($collect) return $render->html_page; |
From: Dashamir H. <das...@us...> - 2003-08-15 07:21:15
|
Update of /cvsroot/phpwebapp/web_app In directory sc8-pr-cvs1:/tmp/cvs-serv18606 Removed Files: makedoc.sh Log Message: moved to documentation --- makedoc.sh DELETED --- |
From: Dashamir H. <das...@us...> - 2003-08-11 17:18:10
|
Update of /cvsroot/phpwebapp/documentation/graphics In directory sc8-pr-cvs1:/tmp/cvs-serv31509/graphics Removed Files: white.gif darkgrey.gif bismilah.gif Log Message: .gif files replaced by .png files --- white.gif DELETED --- --- darkgrey.gif DELETED --- --- bismilah.gif DELETED --- |
From: Dashamir H. <das...@us...> - 2003-08-11 17:16:40
|
Update of /cvsroot/phpwebapp/documentation/templates/tutorial In directory sc8-pr-cvs1:/tmp/cvs-serv31712/templates/tutorial Modified Files: transitions.html templates.html Log Message: .gif images replaced by .png images Index: transitions.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/transitions.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** transitions.html 23 Feb 2003 14:29:07 -0000 1.2 --- transitions.html 11 Aug 2003 16:31:05 -0000 1.3 *************** *** 131,136 **** <pre> img/ ! Back.gif ! home.gif page1.html page2.html --- 131,136 ---- <pre> img/ ! back.png ! home.png page1.html page2.html Index: templates.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/templates.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** templates.html 23 Feb 2003 14:29:07 -0000 1.2 --- templates.html 11 Aug 2003 16:31:05 -0000 1.3 *************** *** 262,270 **** If all the images in the application are linked like this: <pre> ! <img src="{{#IMG_URL}}image_name.gif"/> </pre> there will be no problem. However, if any image is hard linked like this: <pre> ! <img src="/img/image_name.gif"/> </pre> it will not be displayed. --- 262,270 ---- If all the images in the application are linked like this: <pre> ! <img src="{{#IMG_URL}}image_name.png"/> </pre> there will be no problem. However, if any image is hard linked like this: <pre> ! <img src="/img/image_name.png"/> </pre> it will not be displayed. |
From: Dashamir H. <das...@us...> - 2003-08-11 17:12:17
|
Update of /cvsroot/phpwebapp/documentation/templates In directory sc8-pr-cvs1:/tmp/cvs-serv31712/templates Modified Files: bismilah.html Log Message: .gif images replaced by .png images Index: bismilah.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/bismilah.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** bismilah.html 23 Feb 2003 14:29:07 -0000 1.2 --- bismilah.html 11 Aug 2003 16:31:05 -0000 1.3 *************** *** 2,6 **** <tr><td align="right"> <a href="http://www.harunyahya.com/A_tr.php" target="_blank"> ! <img src="{{GRAPHICS}}bismilah.gif" border="0" alt="Bismillahir-Rahmanir-Rahim"> </a> </td></tr> --- 2,6 ---- <tr><td align="right"> <a href="http://www.harunyahya.com/A_tr.php" target="_blank"> ! <img src="{{GRAPHICS}}bismilah.png" border="0" alt="Bismillahir-Rahmanir-Rahim"> </a> </td></tr> |
From: Dashamir H. <das...@us...> - 2003-08-11 17:08:49
|
Update of /cvsroot/phpwebapp/web_app/append In directory sc8-pr-cvs1:/tmp/cvs-serv29261/append Modified Files: wbMessages.php wbDebug.php wbDbgTemplates.php wbDbgStatevars.php Log Message: * added some comments (that are handled by phpDocumentor) for dividing the code into packages and subpackages * replaced .gif images by .png images Index: wbMessages.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/append/wbMessages.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** wbMessages.php 21 Feb 2003 08:15:05 -0000 1.1.1.1 --- wbMessages.php 11 Aug 2003 16:17:53 -0000 1.2 *************** *** 1,3 **** --- 1,6 ---- <?php + /** + * @package append + */ class wbMessages extends WebObject { Index: wbDebug.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/append/wbDebug.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** wbDebug.php 21 Feb 2003 08:15:05 -0000 1.1.1.1 --- wbDebug.php 11 Aug 2003 16:17:53 -0000 1.2 *************** *** 1,3 **** --- 1,6 ---- <?php + /** + * @package append + */ class wbDebug extends WebObject { Index: wbDbgTemplates.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/append/wbDbgTemplates.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** wbDbgTemplates.php 21 Feb 2003 08:15:05 -0000 1.1.1.1 --- wbDbgTemplates.php 11 Aug 2003 16:17:53 -0000 1.2 *************** *** 1,3 **** --- 1,6 ---- <?php + /** + * @package append + */ class wbDbgTemplates extends WebObject { Index: wbDbgStatevars.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/append/wbDbgStatevars.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** wbDbgStatevars.php 16 Jul 2003 12:05:23 -0000 1.3 --- wbDbgStatevars.php 11 Aug 2003 16:17:53 -0000 1.4 *************** *** 1,3 **** --- 1,6 ---- <?php + /** + * @package append + */ class wbDbgStatevars extends WebObject { |
From: Dashamir H. <das...@us...> - 2003-08-11 17:08:49
|
Update of /cvsroot/phpwebapp/web_app/boxes/editMenus/sample_menu In directory sc8-pr-cvs1:/tmp/cvs-serv29261/boxes/editMenus/sample_menu Modified Files: sample_menu.php include_menus.js Log Message: * added some comments (that are handled by phpDocumentor) for dividing the code into packages and subpackages * replaced .gif images by .png images Index: sample_menu.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/editMenus/sample_menu/sample_menu.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** sample_menu.php 16 Jul 2003 09:28:00 -0000 1.2 --- sample_menu.php 11 Aug 2003 16:17:52 -0000 1.3 *************** *** 1,3 **** --- 1,7 ---- <?php + /** + * @package boxes + * @subpackage editMenus + */ class sample_menu extends IWebApp { Index: include_menus.js =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/editMenus/sample_menu/include_menus.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** include_menus.js 16 Jul 2003 09:28:00 -0000 1.2 --- include_menus.js 11 Aug 2003 16:17:52 -0000 1.3 *************** *** 45,49 **** itemPad = 3; ! imgSrc = "{{./}}tri.gif"; imgSiz = 12; --- 45,49 ---- itemPad = 3; ! imgSrc = "{{./}}tri.png"; imgSiz = 12; |
From: Dashamir H. <das...@us...> - 2003-08-11 17:08:48
|
Update of /cvsroot/phpwebapp/web_app/database In directory sc8-pr-cvs1:/tmp/cvs-serv29261/database Modified Files: package.DB.php class.TableRS.php class.StaticRS.php class.Recordset.php class.PagedRS.php class.MySQLCnn.php class.EditableRS.php class.Connection.php Log Message: * added some comments (that are handled by phpDocumentor) for dividing the code into packages and subpackages * replaced .gif images by .png images Index: package.DB.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/package.DB.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** package.DB.php 16 Jul 2003 09:27:59 -0000 1.2 --- package.DB.php 11 Aug 2003 16:17:52 -0000 1.3 *************** *** 1,3 **** --- 1,7 ---- <?php + /** + * @package database + */ + if (USES_DB) { Index: class.TableRS.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.TableRS.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** class.TableRS.php 16 Jul 2003 09:27:59 -0000 1.2 --- class.TableRS.php 11 Aug 2003 16:17:52 -0000 1.3 *************** *** 1,13 **** <?php - /***************************************************************** - /* CLASS TableRecordset - /* Same as class EditableRS but it can be used to open only - /* a table of the DB. Also, the changes that are done programatically - /* to this recordset can be committed to the database or can be - /* aborded at any time. - /*****************************************************************/ - include_once DB_PATH."class.Recordset.php"; class TableRecordset extends Recordset { --- 1,13 ---- <?php include_once DB_PATH."class.Recordset.php"; + /** + * Same as class EditableRS but it can be used to open only + * a table of the DB. Also, the changes that are done programatically + * to this recordset can be committed to the database or can be + * aborded at any time. + * + * @package database + */ class TableRecordset extends Recordset { Index: class.StaticRS.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.StaticRS.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** class.StaticRS.php 16 Jul 2003 09:27:59 -0000 1.2 --- class.StaticRS.php 11 Aug 2003 16:17:52 -0000 1.3 *************** *** 1,3 **** --- 1,5 ---- <?php + include_once DB_PATH."class.Recordset.php"; + /** * Same as class Recordset, but it is opened only once in a page. *************** *** 6,12 **** * page without changing, e.g. when a recordset fills a listbox * and this listbox is used many times in the page. */ - include_once DB_PATH."class.Recordset.php"; - class StaticRS extends Recordset { --- 8,14 ---- * page without changing, e.g. when a recordset fills a listbox * and this listbox is used many times in the page. + * + * @package database */ class StaticRS extends Recordset { Index: class.Recordset.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.Recordset.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.Recordset.php 5 Aug 2003 06:54:09 -0000 1.4 --- class.Recordset.php 11 Aug 2003 16:17:52 -0000 1.5 *************** *** 7,10 **** --- 7,12 ---- * In case of modifying the class for a DB other than MySQL, only * the function result2table() needs to be changed. + * + * @package database */ class Recordset Index: class.PagedRS.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.PagedRS.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** class.PagedRS.php 16 Jul 2003 12:05:23 -0000 1.3 --- class.PagedRS.php 11 Aug 2003 16:17:52 -0000 1.4 *************** *** 7,10 **** --- 7,12 ---- * is a group of consecutive records, all the pages have the same * number of records and they form a partition of the results. + * + * @package database */ class PagedRS extends Recordset Index: class.MySQLCnn.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.MySQLCnn.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** class.MySQLCnn.php 16 Jul 2003 12:05:23 -0000 1.3 --- class.MySQLCnn.php 11 Aug 2003 16:17:52 -0000 1.4 *************** *** 1,14 **** <?php - /***************************************************************** - /* CLASS MySQLCnn - /* This is the MySQL implementation of the interface Connection. - /*****************************************************************/ - include_once DB_PATH."class.Connection.php"; class MySQLCnn extends Connection { /** ! * assw =DBPASS, $db_name =DBNAME) * Opens a connection using the given parameters. * If no parameters are given, then uses as default values --- 1,13 ---- <?php include_once DB_PATH."class.Connection.php"; + /** + * This is the MySQL implementation of the interface Connection. + * @package database + */ class MySQLCnn extends Connection { /** ! * passw =DBPASS, $db_name =DBNAME) * Opens a connection using the given parameters. * If no parameters are given, then uses as default values Index: class.EditableRS.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.EditableRS.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** class.EditableRS.php 16 Jul 2003 12:05:23 -0000 1.3 --- class.EditableRS.php 11 Aug 2003 16:17:52 -0000 1.4 *************** *** 5,8 **** --- 5,10 ---- * Same as class StaticRS, but editable: the programer can add, * insert, remove or change its records. + * + * @package database */ class EditableRS extends StaticRS Index: class.Connection.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.Connection.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** class.Connection.php 16 Jul 2003 12:05:23 -0000 1.3 --- class.Connection.php 11 Aug 2003 16:17:52 -0000 1.4 *************** *** 4,7 **** --- 4,9 ---- * and for executing a query. This is like an interface, which * is implemented by DB specific classes. + * + * @package database */ class Connection |