phpwebapp-commits Mailing List for phpWebApp (Page 14)
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
|
From: Dashamir H. <das...@us...> - 2004-07-22 09:38:32
|
Update of /cvsroot/phpwebapp/top10/templates/menu In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10079/templates/menu Modified Files: menu.html Log Message: Index: menu.html =================================================================== RCS file: /cvsroot/phpwebapp/top10/templates/menu/menu.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** menu.html 24 Sep 2003 14:01:37 -0000 1.2 --- menu.html 22 Jul 2004 09:38:24 -0000 1.3 *************** *** 1,3 **** ! <WebBox ID="menu"> <table border="0" cellspacing="0" cellpadding="0"> <tr> --- 1,3 ---- ! <webbox id="menu"> <table border="0" cellspacing="0" cellpadding="0"> <tr> *************** *** 11,13 **** </tr> </table> ! </WebBox> --- 11,13 ---- </tr> </table> ! </webbox> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:15:45
|
Update of /cvsroot/phpwebapp/documentation/webobjects/displaytxt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5212/webobjects/displaytxt Modified Files: displaytxt.html Log Message: Index: displaytxt.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/webobjects/displaytxt/displaytxt.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** displaytxt.html 20 Aug 2003 07:31:54 -0000 1.2 --- displaytxt.html 21 Jul 2004 17:15:30 -0000 1.3 *************** *** 1,7 **** ! <WebBox ID="displaytxt"> <div class="txtlines"> ! <Repeat rs="lines"> ! <span class="txtline"> {{line}}</span><br> ! </Repeat> </div> ! </WebBox> --- 1,7 ---- ! <webbox id="displaytxt"> <div class="txtlines"> ! <repeat rs="lines"> ! <span class="txtline"> {{line}}</span><br /> ! </repeat> </div> ! </webbox> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:15:45
|
Update of /cvsroot/phpwebapp/documentation/templates/user_manual In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5212/templates/user_manual Modified Files: user_manual.html notes.html Log Message: Index: user_manual.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/user_manual/user_manual.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** user_manual.html 22 Aug 2003 06:51:17 -0000 1.4 --- user_manual.html 21 Jul 2004 17:15:31 -0000 1.5 *************** *** 1,11 **** <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> ! <Include SRC="{{./}}notes.html" /> </div> --- 1,11 ---- <div class="white_box"> ! <include src="{{TABS_PATH}}tabs3.html" /> ! <webobject class="tabs3" name="manual" items="{{./}}manual_items.php" /> ! <webbox id="manual_page"> ! <include src="{{WOBJ_PATH}}displaytxt/displaytxt.html" /> ! </webbox> ! <include src="{{./}}notes.html" /> </div> Index: notes.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/user_manual/notes.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** notes.html 22 Aug 2003 06:51:17 -0000 1.1 --- notes.html 21 Jul 2004 17:15:31 -0000 1.2 *************** *** 1,8 **** ! <br> <div class="note"> <span class="title"> Would you like to help? Can you construct a webbox for displaying texinfo or DocBook docs? ! </span><br> <p>I want to write the user manuals of phpWebApp in texinfo format --- 1,8 ---- ! <br /> <div class="note"> <span class="title"> Would you like to help? Can you construct a webbox for displaying texinfo or DocBook docs? ! </span><br /> <p>I want to write the user manuals of phpWebApp in texinfo format *************** *** 19,23 **** <span class="title"> Would you like to help? Can you rewrite the user manuals? ! </span><br> <p>The user manuals are not clean and not updated. Can you --- 19,23 ---- <span class="title"> Would you like to help? Can you rewrite the user manuals? ! </span><br /> <p>The user manuals are not clean and not updated. Can you |
From: Dashamir H. <das...@us...> - 2004-07-21 17:15:45
|
Update of /cvsroot/phpwebapp/documentation/templates/webobjects In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5212/templates/webobjects Modified Files: webobjects.html Log Message: Index: webobjects.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/webobjects/webobjects.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** webobjects.html 24 Sep 2003 14:06:40 -0000 1.4 --- webobjects.html 21 Jul 2004 17:15:31 -0000 1.5 *************** *** 1,9 **** <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> ! <br> </div> --- 1,9 ---- <div class="white_box_1"> ! <include src="{{TABS_PATH}}tabs2.html" /> ! <webobject class="tabs2" name="webobj" items="{{./}}webobj_items.php" /> ! <webbox id="wobj_page"> ! <include src="{{WOBJ_PATH}}displaytxt/displaytxt.html" /> ! </webbox> ! <br /> </div> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:15:45
|
Update of /cvsroot/phpwebapp/documentation/templates/user_manual/manual_pages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5212/templates/user_manual/manual_pages Modified Files: transitions.txt events.txt Log Message: Index: transitions.txt =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/user_manual/manual_pages/transitions.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** transitions.txt 20 Aug 2003 07:31:55 -0000 1.2 --- transitions.txt 21 Jul 2004 17:15:31 -0000 1.3 *************** *** 51,57 **** ----------------------------------------- Like usual links which can send variables to the server, like this: ! <a href="page1.php?var1=val1&var2=val2"> Link </a> a transition can send variables as well: ! <a href="javascript: GoTo('page1.html?var1=val1&var2=val2')"> Link </a> These variables will be declared as PHP global variables by the framework and may be used in the PHP code of the application. However --- 51,57 ---- ----------------------------------------- Like usual links which can send variables to the server, like this: ! <a href="page1.php?var1=val1&var2=val2"> Link </a> a transition can send variables as well: ! <a href="javascript: GoTo('page1.html?var1=val1&var2=val2')"> Link </a> These variables will be declared as PHP global variables by the framework and may be used in the PHP code of the application. However Index: events.txt =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/user_manual/manual_pages/events.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** events.txt 20 Aug 2003 07:31:55 -0000 1.3 --- events.txt 21 Jul 2004 17:15:31 -0000 1.4 *************** *** 120,149 **** - Predefined (Framework) Events - ------------------------------ - Predefined events are events that are triggered by the framework - itself in certain cases. They are not related with a certain webox - or with a certain page. The files that contain the event handlers - should be placed in the EVENTHANDLER_PATH and they must be named - "on.eventName.php" and must contain a function named - "on_eventName()", which is called by the framework. - If an event handler for a predefined event is not defined, then - nothing happens (no error is generated). - - For the time being there are only three predefined events: - - 1 - firstTime ( on.firstTime.php, on_firstTime() ) - Triggered when the application is opened for the first time, i.e - when the user enters the application for the first time. This is - used to initialize the application, e.g. it tells the framework - which is the first page that will be displayed. - - 2 - beforePage (on.beforePage.php on_beforePage() ) - Triggered before any page i constructed. - - 3 - afterPage ( on.afterPage.php on_afterPage() ) - Triggered after any page is constructed. - - Handeling Free (Application) Events ------------------------------------ --- 120,123 ---- *************** *** 152,165 **** in general. So, it cannot be handled by a webox, as usually, but is handled in a special way. The event handler for this event is the ! function "on_eventName($event)", which is not associated with any ! webox, and is found in the file "on.eventName.php". ! ! The file "on.eventName.php" is found in the following way: ! - First the folder of the targetPage is searched for it ! - If it is not found, then the folder of the sourcePage is ! searched for it. ! - If it is not found, then the folder EVENTHANDLER_PATH is ! searched for it (defined in 'config/const.Paths.php'). ! - If it is not found, then an error message is generated. In the case of the free events, the 'targetPage' is just --- 126,131 ---- in general. So, it cannot be handled by a webox, as usually, but is handled in a special way. The event handler for this event is the ! file "on.eventName.php" which must be placed in the folder of the ! sourcePage. In the case of the free events, the 'targetPage' is just |
From: Dashamir H. <das...@us...> - 2004-07-21 17:15:45
|
Update of /cvsroot/phpwebapp/documentation/templates/tutorial In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5212/templates/tutorial Modified Files: weboxes.html tutorial.html transitions.html templates.html sess_var.html intro.html events.html documentation.html database.html advanced.html Log Message: Index: weboxes.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/weboxes.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** weboxes.html 22 Aug 2003 06:51:17 -0000 1.4 --- weboxes.html 21 Jul 2004 17:15:31 -0000 1.5 *************** *** 17,23 **** <a href="http://phpwebapp.sourceforge.net/download/app3.tar.gz">Download</a> </span> ! <br> ! <hr> <h3><a name="toc">Table of Contents</a></h3> --- 17,23 ---- <a href="http://phpwebapp.sourceforge.net/download/app3.tar.gz">Download</a> </span> ! <br /> ! <hr /> <h3><a name="toc">Table of Contents</a></h3> *************** *** 61,65 **** </li> </ul> ! <hr> <a name="webboxes"></a> --- 61,65 ---- </li> </ul> ! <hr /> <a name="webboxes"></a> *************** *** 73,82 **** queries etc., associated with it.</p> ! <p>It is denoted by the tag <strong><WebBox></strong> and it has an <strong>ID</strong> attribute:</p> <pre> ! <WebBox ID="box_id"> ! <!-- content of WebBox --> ! </WebBox> </pre> <p>The identifier must be different for each WebBox used in the --- 73,82 ---- queries etc., associated with it.</p> ! <p>It is denoted by the tag <strong>&lt;WebBox&gt;</strong> and it has an <strong>ID</strong> attribute:</p> <pre> ! &lt;WebBox id="box_id"&gt; ! &lt;!-- content of WebBox --&gt; ! &lt;/WebBox&gt; </pre> <p>The identifier must be different for each WebBox used in the *************** *** 90,94 **** styles etc.) are associated to the WebBox by means of <strong>box_id</strong>, the identifier of the WebBox. When the ! framework parses a <strong><WebBox></strong> tag, it looks for a file named <strong>box_id.php</strong> in the same folder where the WebBox template is. If it finds such a file, it includes it.</p> --- 90,94 ---- styles etc.) are associated to the WebBox by means of <strong>box_id</strong>, the identifier of the WebBox. When the ! framework parses a <strong>&lt;WebBox&gt;</strong> tag, it looks for a file named <strong>box_id.php</strong> in the same folder where the WebBox template is. If it finds such a file, it includes it.</p> *************** *** 98,102 **** like this:</p> <pre> ! <?php class <strong>box_id</strong> extends <strong>WebObject</strong> { --- 98,102 ---- like this:</p> <pre> ! &lt;?php class <strong>box_id</strong> extends <strong>WebObject</strong> { *************** *** 105,109 **** . } ! ?> </pre> --- 105,109 ---- . } ! ?&gt; </pre> *************** *** 162,166 **** <em>HTML</em> page. For example, it includes <strong>box_id.js</strong> and <strong>box_id.css</strong> in the ! <em><head></em> of the page. As an example, <a href="{{APP3_URL}}browse.php?templates/menu/" target="_blank"> see the files of the WebBox <em>menu</em></a>.</p> --- 162,166 ---- <em>HTML</em> page. For example, it includes <strong>box_id.js</strong> and <strong>box_id.css</strong> in the ! <em>&lt;head&gt;</em> of the page. As an example, <a href="{{APP3_URL}}browse.php?templates/menu/" target="_blank"> see the files of the WebBox <em>menu</em></a>.</p> *************** *** 175,180 **** <p>A WebBox is defined inside a template file and the <em>TPL</em> ! code of the WebBox is inside the <em><WebBox></em> tag (is the ! content of the <em><WebBox></em> element). However a WebBox is different from a template because it can also have its own <em>PHP</em> code. Another difference is that a template must include --- 175,180 ---- <p>A WebBox is defined inside a template file and the <em>TPL</em> ! code of the WebBox is inside the <em>&lt;WebBox&gt;</em> tag (is the ! content of the <em>&lt;WebBox&gt;</em> element). However a WebBox is different from a template because it can also have its own <em>PHP</em> code. Another difference is that a template must include *************** *** 184,191 **** <em>see this example</em></a>, however, for a WebBox the framework handles them automatically, by including them at the ! <em><head></em> of the page</p> <span class="button"><a href="#toc">TOC</a></span> ! <hr> <a name="tips"></a> --- 184,191 ---- <em>see this example</em></a>, however, for a WebBox the framework handles them automatically, by including them at the ! <em>&lt;head&gt;</em> of the page</p> <span class="button"><a href="#toc">TOC</a></span> ! <hr /> <a name="tips"></a> *************** *** 198,203 **** <li>The framework tags are case sensitive, e.g. the framework will ! reckognize the tag <strong><WebBox></strong>, however will not ! reckognize the tag <strong><webbox></strong>. (This is a limitation of the current implementation, it may be improved later.)</li> --- 198,203 ---- <li>The framework tags are case sensitive, e.g. the framework will ! reckognize the tag <strong>&lt;WebBox&gt;</strong>, however will not ! reckognize the tag <strong>&lt;webbox&gt;</strong>. (This is a limitation of the current implementation, it may be improved later.)</li> *************** *** 205,210 **** <li>The framework tag attributes are case sensitive, e.g. the framework will reckognize the attribute <strong>ID</strong> of the ! tag <WebBox>, however will not reckognize the attribute ! <strong>id</strong> of the tag <WebBox>.</li> <li>All the files of a WebBox (<strong>.js</strong>, --- 205,210 ---- <li>The framework tag attributes are case sensitive, e.g. the framework will reckognize the attribute <strong>ID</strong> of the ! tag &lt;WebBox&gt;, however will not reckognize the attribute ! <strong>id</strong> of the tag &lt;WebBox&gt;.</li> <li>All the files of a WebBox (<strong>.js</strong>, *************** *** 237,241 **** <span class="button"><a href="#toc">TOC</a></span> ! <hr> <a name="study"></a> --- 237,241 ---- <span class="button"><a href="#toc">TOC</a></span> ! <hr /> <a name="study"></a> *************** *** 254,258 **** of the <em>menu</em> (like templates) because it is done automatically by the framework. ! <br><br> </li> --- 254,258 ---- of the <em>menu</em> (like templates) because it is done automatically by the framework. ! <br /><br /> </li> *************** *** 261,265 **** <em>Page 2</em></a>. To include a webbox we simply include the template that contains the webbox (it is a template inclusion). ! <br><br> </li> --- 261,265 ---- <em>Page 2</em></a>. To include a webbox we simply include the template that contains the webbox (it is a template inclusion). ! <br /><br /> </li> *************** *** 268,272 **** and notice what is wrong with them (it is explained in the comments). (Make sure that you select <em>Code View</em> in the file browser.) ! <br><br> </li> --- 268,272 ---- and notice what is wrong with them (it is explained in the comments). (Make sure that you select <em>Code View</em> in the file browser.) ! <br /><br /> </li> *************** *** 282,286 **** or rename this folder, you have to change just the value of a constant and not every occurrence of the path. ! <br><br> </li> --- 282,286 ---- or rename this folder, you have to change just the value of a constant and not every occurrence of the path. ! <br /><br /> </li> *************** *** 290,294 **** <a href="javascript:codeReview('{{APP3_PATH}}init.php','7')"> <em>init.php</em></a>. ! <br><br> </li> --- 290,294 ---- <a href="javascript:codeReview('{{APP3_PATH}}init.php','7')"> <em>init.php</em></a>. ! <br /><br /> </li> *************** *** 342,346 **** <dd>This file is included after each page is constructed.</dd> </dl> ! <br> Browse also the <a href="{{SAMPLE_URL}}browse.php" target="_blank">empty-sample</a> --- 342,346 ---- <dd>This file is included after each page is constructed.</dd> </dl> ! <br /> Browse also the <a href="{{SAMPLE_URL}}browse.php" target="_blank">empty-sample</a> *************** *** 352,356 **** <span class="button"><a href="#toc">TOC</a></span> ! <hr> <a name="exercises"></a> --- 352,356 ---- <span class="button"><a href="#toc">TOC</a></span> ! <hr /> <a name="exercises"></a> *************** *** 374,379 **** <li>Open the file <a href="javascript:codeReview('{{APP2_PATH}}templates/header.html')"> ! header.html</a> and append the line: <br> ! <kbd><Include SRC="{{#UP_PATH}}app3/templates/menu/menu.html" /></kbd> </li> --- 374,379 ---- <li>Open the file <a href="javascript:codeReview('{{APP2_PATH}}templates/header.html')"> ! header.html</a> and append the line: <br /> ! <kbd>&lt;Include src="{{#UP_PATH}}app3/templates/menu/menu.html" /&gt;</kbd> </li> *************** *** 386,390 **** <p>If you view the HTML code of <em>app2</em> (in browser), you will notice that <em>menu.js</em> and <em>menu.css</em> have been included ! as well in the <em><head></em> of the page.</p> --- 386,390 ---- <p>If you view the HTML code of <em>app2</em> (in browser), you will notice that <em>menu.js</em> and <em>menu.css</em> have been included ! as well in the <em>&lt;head&gt;</em> of the page.</p> *************** *** 398,403 **** <li>Open the file <a href="javascript:codeReview('{{APP2_PATH}}templates/header.html')"> ! header.html</a> and append the line: <br> ! <kbd><Include SRC="{{#UP_PATH}}app3/templates/tip/tip.html" /></kbd> </li> --- 398,403 ---- <li>Open the file <a href="javascript:codeReview('{{APP2_PATH}}templates/header.html')"> ! header.html</a> and append the line: <br /> ! <kbd>&lt;Include src="{{#UP_PATH}}app3/templates/tip/tip.html" /&gt;</kbd> </li> *************** *** 408,414 **** <li>Open <a href="javascript:codeReview('{{APP3_PATH}}templates/tip/tip.php','2')"> ! tip.php</a> and replace the include statement with:<br> ! <kbd>$tip_path = dirname(__FILE__)."/";</kbd><br> ! <kbd>include_once $tip_path."fun.get_random_tip.php";</kbd><br> Do the same thing with <a href="javascript:codeReview('{{APP3_PATH}}templates/tip/fun.get_random_tip.php','9')"> --- 408,414 ---- <li>Open <a href="javascript:codeReview('{{APP3_PATH}}templates/tip/tip.php','2')"> ! tip.php</a> and replace the include statement with:<br /> ! <kbd>$tip_path = dirname(__FILE__)."/";</kbd><br /> ! <kbd>include_once $tip_path."fun.get_random_tip.php";</kbd><br /> Do the same thing with <a href="javascript:codeReview('{{APP3_PATH}}templates/tip/fun.get_random_tip.php','9')"> *************** *** 418,422 **** the tip is displayed, but it has no styles. This is because the framework does not reckognize <em>tip_styles.css</em> as being the stylesheet of ! webbox <em>tip</em>. Make a copy of it with the name <em>tip.css</em>:<br> <kbd>$ cp tip_styles.css tip.css</kbd></li> --- 418,422 ---- the tip is displayed, but it has no styles. This is because the framework does not reckognize <em>tip_styles.css</em> as being the stylesheet of ! webbox <em>tip</em>. Make a copy of it with the name <em>tip.css</em>:<br /> <kbd>$ cp tip_styles.css tip.css</kbd></li> *************** *** 470,481 **** state variables and the functions <strong>WebApp::addSVar()</strong>, <strong>WebApp::setSVar()</strong> and <strong>WebApp::getSVar()</strong>. ! <br><br> </li> <li>Now suppose that we want to control ourselves the rotation of the tips. That is, the tip will stay the same when we switch the pages, however it ! will have some buttons like this: '<strong><</strong>'(previous), ! '<strong>></strong>'(next), '<strong><<</strong>'(first), ! '<strong>>></strong>'(last). When we click the button <em>next</em> we should get the next tip, etc. How can we do this? Think about it.</li> </ol> --- 470,481 ---- state variables and the functions <strong>WebApp::addSVar()</strong>, <strong>WebApp::setSVar()</strong> and <strong>WebApp::getSVar()</strong>. ! <br /><br /> </li> <li>Now suppose that we want to control ourselves the rotation of the tips. That is, the tip will stay the same when we switch the pages, however it ! will have some buttons like this: '<strong>&lt;</strong>'(previous), ! '<strong>&gt;</strong>'(next), '<strong>&lt;&lt;</strong>'(first), ! '<strong>&gt;&gt;</strong>'(last). When we click the button <em>next</em> we should get the next tip, etc. How can we do this? Think about it.</li> </ol> Index: tutorial.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/tutorial.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tutorial.html 25 Aug 2003 14:34:23 -0000 1.4 --- tutorial.html 21 Jul 2004 17:15:31 -0000 1.5 *************** *** 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> --- 1,7 ---- ! <webbox id="tutorial"> <div class="white_box"> ! <include src="{{TABS_PATH}}tabs3.html" /> ! <webobject class="tabs3" name="tutorial" /> ! <include src="{{./}}{{tabs3::tutorial->selected_item}}.html" /> </div> ! </webbox> Index: transitions.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/transitions.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** transitions.html 20 Aug 2003 07:33:55 -0000 1.5 --- transitions.html 21 Jul 2004 17:15:31 -0000 1.6 *************** *** 5,9 **** 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> --- 5,9 ---- 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> *************** *** 15,20 **** <a href= "http://phpwebapp.sourceforge.net/download/app1.tar.gz">Download</a> </span> ! <br> ! <hr> <h3><a name="toc">Table of Contents</a></h3> --- 15,20 ---- <a href= "http://phpwebapp.sourceforge.net/download/app1.tar.gz">Download</a> </span> ! <br /> ! <hr /> <h3><a name="toc">Table of Contents</a></h3> *************** *** 47,51 **** <li><a href="#experiments">Experiments and questions</a></li> </ul> ! <hr> <p><a name="goto"></a></p> --- 47,51 ---- <li><a href="#experiments">Experiments and questions</a></li> </ul> ! <hr /> <p><a name="goto"></a></p> *************** *** 73,77 **** 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 --- 73,77 ---- 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 *************** *** 79,83 **** <span class="button"><a href="#toc">TOC</a></span> ! <hr> <a name="external"></a> --- 79,83 ---- <span class="button"><a href="#toc">TOC</a></span> ! <hr /> <a name="external"></a> *************** *** 109,113 **** <span class="button"><a href="#toc">TOC</a></span> ! <hr> <a name="structure"></a> --- 109,113 ---- <span class="button"><a href="#toc">TOC</a></span> ! <hr /> <a name="structure"></a> *************** *** 135,139 **** webapp.php -- standart framework file </pre> ! <br> <p>The application files and folders are:</p> --- 135,139 ---- webapp.php -- standart framework file </pre> ! <br /> <p>The application files and folders are:</p> *************** *** 148,152 **** styles.css </pre> ! <br> <p>The file <em>browse.php</em> is not required by the framework --- 148,152 ---- styles.css </pre> ! <br /> <p>The file <em>browse.php</em> is not required by the framework *************** *** 169,173 **** <span class="button"><a href="#toc">TOC</a></span> ! <hr> <a name="exercises"></a> --- 169,173 ---- <span class="button"><a href="#toc">TOC</a></span> ! <hr /> <a name="exercises"></a> *************** *** 188,192 **** <ol> ! <li>Copy the folder <em>app1</em> to the folder <em>app1_test</em>:<br> <kbd>$ cp -R app1 app1_test</kbd></li> --- 188,192 ---- <ol> ! <li>Copy the folder <em>app1</em> to the folder <em>app1_test</em>:<br /> <kbd>$ cp -R app1 app1_test</kbd></li> *************** *** 203,208 **** <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> --- 203,208 ---- <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> *************** *** 247,252 **** <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 --- 247,252 ---- <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 *************** *** 278,285 **** <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> --- 278,285 ---- <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> *************** *** 314,318 **** <span class="button"><a href="#toc">TOC</a></span> ! <hr> <a name="experiments"></a> --- 314,318 ---- <span class="button"><a href="#toc">TOC</a></span> ! <hr /> <a name="experiments"></a> *************** *** 335,341 **** </ol> ! <p><br> ! <br> <span class="button"><a href="#toc">TOC</a></span> </p> ! <hr> --- 335,341 ---- </ol> ! <p><br /> ! <br /> <span class="button"><a href="#toc">TOC</a></span> </p> ! <hr /> Index: templates.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/templates.html,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** templates.html 22 Aug 2003 06:51:17 -0000 1.6 --- templates.html 21 Jul 2004 17:15:31 -0000 1.7 *************** *** 1,5 **** <h2>2 - Templates</h2> ! <p>Explains templates. This application uses the <Include> tag to insert the same header file at the beginning of each template and to break the templates into sub templates. It shows --- 1,5 ---- <h2>2 - Templates</h2> ! <p>Explains templates. This application uses the &lt;Include&gt; tag to insert the same header file at the beginning of each template and to break the templates into sub templates. It shows *************** *** 17,23 **** <a href="http://phpwebapp.sourceforge.net/download/app2.tar.gz">Download</a> </span> ! <br> ! <hr> <h3><a name="toc">Table of Contents</a></h3> --- 17,23 ---- <a href="http://phpwebapp.sourceforge.net/download/app2.tar.gz">Download</a> </span> ! <br /> ! <hr /> <h3><a name="toc">Table of Contents</a></h3> *************** *** 30,34 **** <li><a href="#variables">Template Variables</a></li> ! <li><a href="#include">The <Include> tag</a></li> <li><a href="#comments">Comments</a></li> --- 30,34 ---- <li><a href="#variables">Template Variables</a></li> ! <li><a href="#include">The &lt;Include&gt; tag</a></li> <li><a href="#comments">Comments</a></li> *************** *** 68,72 **** </li> </ul> ! <hr> <a name="templates"></a> --- 68,72 ---- </li> </ul> ! <hr /> <a name="templates"></a> *************** *** 103,114 **** <a name="include"></a> ! <h4>2 - 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> --- 103,114 ---- <a name="include"></a> ! <h4>2 - The &lt;Include&gt; 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 &lt;Include&gt; tag, which is used to include another template inside the current template:</p> <pre> ! &lt;Include src="file_to_be_included" /&gt; </pre> *************** *** 127,131 **** <p>The templates may contain some special comments as well:</p> <pre> ! <!--# Framework comments #--> </pre> --- 127,131 ---- <p>The templates may contain some special comments as well:</p> <pre> ! &lt;!--# Framework comments #--&gt; </pre> *************** *** 144,153 **** styles of its own, then it is better to include them at the begining of the template (instead of including them globally, at ! the <Head> 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> --- 144,153 ---- styles of its own, then it is better to include them at the begining of the template (instead of including them globally, at ! the &lt;Head&gt; 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> ! &lt;script language="javascript" src="file.js"&gt;&lt;/script&gt; ! &lt;link rel="stylesheet" type="text/css" href="file.css"&gt; </pre> *************** *** 165,169 **** <span class="button"><a href="#toc">TOC</a></span> ! <hr> <h3><a name="study">Study the sample</a></h3> --- 165,169 ---- <span class="button"><a href="#toc">TOC</a></span> ! <hr /> <h3><a name="study">Study the sample</a></h3> *************** *** 180,185 **** <a href="javascript:codeReview('{{APP2_PATH}}config/const.Paths.php','4')"> <em>config/const.Paths.php</em></a>. ! <br> ! <br></li> <li>All the images of this application are placed in the folder --- 180,185 ---- <a href="javascript:codeReview('{{APP2_PATH}}config/const.Paths.php','4')"> <em>config/const.Paths.php</em></a>. ! <br /> ! <br /></li> <li>All the images of this application are placed in the folder *************** *** 192,197 **** <a href="javascript:codeReview('{{APP2_PATH}}config/const.Paths.php','6')"> <em>config/const.Paths.php</em></a>. ! <br> ! <br></li> <li>All the files and templates of the page3 are placed in the --- 192,197 ---- <a href="javascript:codeReview('{{APP2_PATH}}config/const.Paths.php','6')"> <em>config/const.Paths.php</em></a>. ! <br /> ! <br /></li> <li>All the files and templates of the page3 are placed in the *************** *** 201,206 **** <a href="javascript:codeReview('{{APP2_PATH}}templates/footer.js','17')"> Notice</a> how the transition to page3 is done. ! <br> ! <br></li> <li>All the pages include the same header and footer template, e.g. see --- 201,206 ---- <a href="javascript:codeReview('{{APP2_PATH}}templates/footer.js','17')"> Notice</a> how the transition to page3 is done. ! <br /> ! <br /></li> <li>All the pages include the same header and footer template, e.g. see *************** *** 209,214 **** the page, then you don't have to change every page, but you make the change only once in the footer. ! <br> ! <br></li> <li><a href="{{APP2_URL}}browse.php" target="_blank">Browse</a> --- 209,214 ---- the page, then you don't have to change every page, but you make the change only once in the footer. ! <br /> ! <br /></li> <li><a href="{{APP2_URL}}browse.php" target="_blank">Browse</a> *************** *** 217,222 **** See them both in preview mode and in code view mode (select the "Code View" mode in the panel at the top and then click "Refresh"). ! <br> ! <br></li> <li>Browse the files and see the template <em>page2.html</em> and all --- 217,222 ---- See them both in preview mode and in code view mode (select the "Code View" mode in the panel at the top and then click "Refresh"). ! <br /> ! <br /></li> <li>Browse the files and see the template <em>page2.html</em> and all *************** *** 228,237 **** several small subtemplates. Try to make the same modification in both of them and see which one is easier to be modified. ! <br> ! <br></li> </ul> <span class="button"><a href="#toc">TOC</a></span> ! <hr> <h3><a name="exercises">Exercises</a></h3> --- 228,237 ---- several small subtemplates. Try to make the same modification in both of them and see which one is easier to be modified. ! <br /> ! <br /></li> </ul> <span class="button"><a href="#toc">TOC</a></span> ! <hr /> <h3><a name="exercises">Exercises</a></h3> *************** *** 287,291 **** <ol> <li>Rename folder <em>img</em> to <em>images</em>: ! <kbd>$ mv img images</kbd> <br> Test the application; the images will be broken.</li> --- 287,291 ---- <ol> <li>Rename folder <em>img</em> to <em>images</em>: ! <kbd>$ mv img images</kbd> <br /> Test the application; the images will be broken.</li> *************** *** 297,303 **** <p>If all the images in the application are linked like this: ! <kbd><img src="{{#IMG_URL}}image_name.png"/></kbd> there will be no problem. However, if any image is hard linked ! like this: <kbd><img src="/img/image_name.png"/></kbd> it will not be displayed.</p> --- 297,303 ---- <p>If all the images in the application are linked like this: ! <kbd>&lt;img src="{{#IMG_URL}}image_name.png"/&gt;</kbd> there will be no problem. However, if any image is hard linked ! like this: <kbd>&lt;img src="/img/image_name.png"/&gt;</kbd> it will not be displayed.</p> *************** *** 311,334 **** <em>tpl_vars.html</em>.</li> ! <li>Replace the selected lines with this line: <br> ! <kbd><Include SRC="{{#./}}tpl_vars.html"/></kbd></li> <li>Copy the <a href="javascript:codeReview('{{APP2_PATH}}templates/page1_content.html','16-30','10-35')"> selected lines</a> of <em>page1_content.html</em> to file ! <em>include_tag.html</em>, and replace them with: <br> ! <kbd><Include SRC="{{#./}}include_tag.html"/></kbd></li> <li>Copy the <a href="javascript:codeReview('{{APP2_PATH}}templates/page1_content.html','32-42','27-47')"> selected lines</a> of <em>page1_content.html</em> to file ! <em>comments.html</em>, and replace them with: <br> ! <kbd><Include SRC="{{#./}}comments.html"/></kbd></li> <li>Copy the <a href="javascript:codeReview('{{APP2_PATH}}templates/page1_content.html','44-63','40-70')"> selected lines</a> of <em>page1_content.html</em> to file ! <em>js_code.html</em>, and replace them with: <br> ! <kbd><Include SRC="{{#./}}js_code.html"/></kbd></li> <li>Test that the application is OK.</li> --- 311,334 ---- <em>tpl_vars.html</em>.</li> ! <li>Replace the selected lines with this line: <br /> ! <kbd>&lt;Include src="{{#./}}tpl_vars.html"/&gt;</kbd></li> <li>Copy the <a href="javascript:codeReview('{{APP2_PATH}}templates/page1_content.html','16-30','10-35')"> selected lines</a> of <em>page1_content.html</em> to file ! <em>include_tag.html</em>, and replace them with: <br /> ! <kbd>&lt;Include src="{{#./}}include_tag.html"/&gt;</kbd></li> <li>Copy the <a href="javascript:codeReview('{{APP2_PATH}}templates/page1_content.html','32-42','27-47')"> selected lines</a> of <em>page1_content.html</em> to file ! <em>comments.html</em>, and replace them with: <br /> ! <kbd>&lt;Include src="{{#./}}comments.html"/&gt;</kbd></li> <li>Copy the <a href="javascript:codeReview('{{APP2_PATH}}templates/page1_content.html','44-63','40-70')"> selected lines</a> of <em>page1_content.html</em> to file ! <em>js_code.html</em>, and replace them with: <br /> ! <kbd>&lt;Include src="{{#./}}js_code.html"/&gt;</kbd></li> <li>Test that the application is OK.</li> *************** *** 345,354 **** <ol> ! <li>Create new folder <em>page1</em>: <br> <kbd>$ mkdir page1</kbd></li> <li>Move files <em>page1.html</em>, <em>page1_content.html</em>, <em>tpl_vars.html</em>, <em>include_tags.html</em>, <em>comments.html</em>, ! <em>js_code.html</em> to folder <em>page1</em><br> e.g. <kbd>$ mv page1.html page1/</kbd></li> --- 345,354 ---- <ol> ! <li>Create new folder <em>page1</em>: <br /> <kbd>$ mkdir page1</kbd></li> <li>Move files <em>page1.html</em>, <em>page1_content.html</em>, <em>tpl_vars.html</em>, <em>include_tags.html</em>, <em>comments.html</em>, ! <em>js_code.html</em> to folder <em>page1</em><br /> e.g. <kbd>$ mv page1.html page1/</kbd></li> *************** *** 392,396 **** <li>At the top of the file <em>page1_content.html</em> add this line: <pre> ! <link rel="stylesheet" type="text/css" href="{{#./}}page1_content.css"> </pre> </li> --- 392,396 ---- <li>At the top of the file <em>page1_content.html</em> add this line: <pre> ! &lt;link rel="stylesheet" type="text/css" href="{{#./}}page1_content.css"&gt; </pre> </li> *************** *** 405,414 **** <ol> ! <li>Create new folder <em>tpl_2</em>:<br> <kbd>$ cd templates/page3/ ; mkdir tpl_2</kbd></li> <li>Move the files <em>tpl_2.html</em>, <em>tpl_2.css</em>, <em>tpl_2_1.html</em>, <em>tpl_2_1.css</em>, <em>tpl_2_2.html</em>, ! <em>tpl_2_2.css</em> to the new folder: <br> <kbd>$ mv tpl_2*.* tpl_2</kbd></li> --- 405,414 ---- <ol> ! <li>Create new folder <em>tpl_2</em>:<br /> <kbd>$ cd templates/page3/ ; mkdir tpl_2</kbd></li> <li>Move the files <em>tpl_2.html</em>, <em>tpl_2.css</em>, <em>tpl_2_1.html</em>, <em>tpl_2_1.css</em>, <em>tpl_2_2.html</em>, ! <em>tpl_2_2.css</em> to the new folder: <br /> <kbd>$ mv tpl_2*.* tpl_2</kbd></li> *************** *** 457,459 **** <p><span class="button"><a href="#toc">TOC</a></span></p> ! <hr> --- 457,459 ---- <p><span class="button"><a href="#toc">TOC</a></span></p> ! <hr /> Index: sess_var.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/sess_var.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** sess_var.html 15 Aug 2003 07:37:30 -0000 1.2 --- sess_var.html 21 Jul 2004 17:15:32 -0000 1.3 *************** *** 5,12 **** Explains how the session variables are used to keep the state of the weboxes and the states of the application (introduces ! the function onLoad() of the weboxes). Explains how the <If> elements are used to display templates conditionally. Explains how to debug the session variables. ! <br><br> <span class="button"> <a href="javascript: alert('Sorry! Not implemented yet.')">Test</a> --- 5,12 ---- Explains how the session variables are used to keep the state of the weboxes and the states of the application (introduces ! the function onLoad() of the weboxes). Explains how the &lt;If&gt; elements are used to display templates conditionally. Explains how to debug the session variables. ! <br /><br /> <span class="button"> <a href="javascript: alert('Sorry! Not implemented yet.')">Test</a> *************** *** 15,24 **** <a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a> </span> ! <br><br> ! <hr> ! <br> <ul> ! <li> ! <li> ! <li> </ul> --- 15,24 ---- <a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a> </span> ! <br /><br /> ! <hr /> ! <br /> <ul> ! <li></li> ! <li></li> ! <li></li> </ul> Index: intro.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/intro.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** intro.html 25 Aug 2003 14:34:23 -0000 1.5 --- intro.html 21 Jul 2004 17:15:32 -0000 1.6 *************** *** 14,18 **** you can just copy one of the samples and modify it according to your needs.</p> ! <br> <table width="100%" align="center" cellspacing="0" cellpadding="20" border="0"> --- 14,18 ---- you can just copy one of the samples and modify it according to your needs.</p> ! <br /> <table width="100%" align="center" cellspacing="0" cellpadding="20" border="0"> *************** *** 22,26 **** <strong>1 - Transitions</strong> </a> ! <br> A very simple application that has 2 or 3 HTML files which have transitions to each-other and have some links to external --- 22,26 ---- <strong>1 - Transitions</strong> </a> ! <br /> A very simple application that has 2 or 3 HTML files which have transitions to each-other and have some links to external *************** *** 35,41 **** <strong>2 - Templates</strong> </a> ! <br> The HTML files now become templates. This application uses the ! <Include> tag to insert the same header file at the beginning of each template and to break the templates into sub templates. It shows how to include the javascript code and the --- 35,41 ---- <strong>2 - Templates</strong> </a> ! <br /> The HTML files now become templates. This application uses the ! &lt;Include&gt; tag to insert the same header file at the beginning of each template and to break the templates into sub templates. It shows how to include the javascript code and the *************** *** 51,55 **** <strong>3 - Introducing WebBox-es</strong> </a> ! <br> Some of the templates are turned into weboxes. Explains the fundamental difference between a template and a webox. The PHP --- 51,55 ---- <strong>3 - Introducing WebBox-es</strong> </a> ! <br /> Some of the templates are turned into weboxes. Explains the fundamental difference between a template and a webox. The PHP *************** *** 63,67 **** <strong>4 - Sending and Handelling Events</strong> </a> ! <br> Some of the transitions send events to some of the weboxes. The target weboxes handle these events in their eventHandler() --- 63,67 ---- <strong>4 - Sending and Handelling Events</strong> </a> ! <br /> Some of the transitions send events to some of the weboxes. The target weboxes handle these events in their eventHandler() *************** *** 77,81 **** <strong>5 - Session and Variables</strong> </a> ! <br> Explains what are the session variables and how to use them. Explains further how the {{template variables}} are evaluated. --- 77,81 ---- <strong>5 - Session and Variables</strong> </a> ! <br /> Explains what are the session variables and how to use them. Explains further how the {{template variables}} are evaluated. *************** *** 83,87 **** of the weboxes and the states of the application (introduces the function onLoad() of the weboxes). Explains how the ! <If> elements are used to display templates conditionally. Explains how to debug the session variables. --- 83,87 ---- of the weboxes and the states of the application (introduces the function onLoad() of the weboxes). Explains how the ! &lt;If&gt; elements are used to display templates conditionally. Explains how to debug the session variables. *************** *** 92,101 **** <strong>6 - Interacting with a Database</strong> </a> ! <br> Explains how to set a default connection with a database. Explains the configuration file of a template (*.tpc) and the ! <Recordset> element. Explains the <Repeat> elements and how to use them inside a template. Explains the '.db' file ! of a webox, the <Recordset> and <dbCommand> elements inside it, and how to use the functions WebApp::execDBCmd(), WebApp::openRS() and WebApp::execQuery() --- 92,101 ---- <strong>6 - Interacting with a Database</strong> </a> ! <br /> Explains how to set a default connection with a database. Explains the configuration file of a template (*.tpc) and the ! &lt;Recordset&gt; element. Explains the &lt;Repeat&gt; elements and how to use them inside a template. Explains the '.db' file ! of a webox, the &lt;Recordset&gt; and &lt;dbCommand&gt; elements inside it, and how to use the functions WebApp::execDBCmd(), WebApp::openRS() and WebApp::execQuery() *************** *** 111,115 **** <strong>7 - All the rest of the advanced features</strong> </a> ! <br> A complicated, real and almost finished web application (which may evolve from the previous samples or may be --- 111,115 ---- <strong>7 - All the rest of the advanced features</strong> </a> ! <br /> A complicated, real and almost finished web application (which may evolve from the previous samples or may be *************** *** 119,128 **** <ul> ! <li>Detailed explanation of the <Repeat> element and the page recordsets.</li> ! <li><Var> elements</li> ! <li>An <Include> element that uses a variable.</li> <li>Usage of an external webox.</li> --- 119,128 ---- <ul> ! <li>Detailed explanation of the &lt;Repeat&gt; element and the page recordsets.</li> ! <li>&lt;Var&gt; elements</li> ! <li>An &lt;Include&gt; element that uses a variable.</li> <li>Usage of an external webox.</li> *************** *** 136,140 **** <strong>8 - The documentation application</strong> </a> ! <br> This web application (the 'phpWebApp documentation') is built using phpWebApp itself. This tutorial explains how this web --- 136,140 ---- <strong>8 - The documentation application</strong> </a> ! <br /> This web application (the 'phpWebApp documentation') is built using phpWebApp itself. This tutorial explains how this web Index: events.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/events.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** events.html 15 Aug 2003 07:37:30 -0000 1.2 --- events.html 21 Jul 2004 17:15:32 -0000 1.3 *************** *** 6,10 **** the transitions to 'thisPage', sending an event to 'any' webox, 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> --- 6,10 ---- the transitions to 'thisPage', sending an event to 'any' webox, 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> *************** *** 13,22 **** <a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a> </span> ! <br><br> ! <hr> ! <br> <ul> ! <li> ! <li> ! <li> </ul> --- 13,22 ---- <a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a> </span> ! <br /><br /> ! <hr /> ! <br /> <ul> ! <li></li> ! <li></li> ! <li></li> </ul> Index: documentation.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/documentation.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** documentation.html 15 Aug 2003 07:37:30 -0000 1.2 --- documentation.html 21 Jul 2004 17:15:32 -0000 1.3 *************** *** 4,8 **** using phpWebApp itself. This tutorial explains how this web application is constructed. ! <br><br> <span class="button"> <a href="javascript: alert('Sorry! Not implemented yet.')">Test</a> --- 4,8 ---- using phpWebApp itself. This tutorial explains how this web application is constructed. ! <br /><br /> <span class="button"> <a href="javascript: alert('Sorry! Not implemented yet.')">Test</a> *************** *** 11,20 **** <a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a> </span> ! <br><br> ! <hr> ! <br> <ul> ! <li> ! <li> ! <li> </ul> --- 11,20 ---- <a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a> </span> ! <br /><br /> ! <hr /> ! <br /> <ul> ! <li></li> ! <li></li> ! <li></li> </ul> Index: database.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/database.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** database.html 15 Aug 2003 07:37:30 -0000 1.2 --- database.html 21 Jul 2004 17:15:32 -0000 1.3 *************** *** 2,13 **** Explains how to set a default connection with a database. Explains the configuration file of a template (*.tpc) and ! the <Recordset> element. Explains the <Repeat> elements and how to use them inside a template. Explains the '.db' file ! of a webox, the <Recordset> and <dbCommand> elements inside it, and how to use the functions WebApp::execDBCmd(), WebApp::openRS() and WebApp::execQuery() inside the PHP code of the webox. Explains how to debug the recordsets of the page and the execution times of the queries (and other processes). ! <br><br> <span class="button"> <a href="javascript: alert('Sorry! Not implemented yet.')">Test</a> --- 2,13 ---- Explains how to set a default connection with a database. Explains the configuration file of a template (*.tpc) and ! the &lt;Recordset&gt; element. Explains the &lt;Repeat&gt; elements and how to use them inside a template. Explains the '.db' file ! of a webox, the &lt;Recordset&gt; and &lt;dbCommand&gt; elements inside it, and how to use the functions WebApp::execDBCmd(), WebApp::openRS() and WebApp::execQuery() inside the PHP code of the webox. Explains how to debug the recordsets of the page and the execution times of the queries (and other processes). ! <br /><br /> <span class="button"> <a href="javascript: alert('Sorry! Not implemented yet.')">Test</a> *************** *** 16,25 **** <a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a> </span> ! <br><br> ! <hr> ! <br> <ul> ! <li> ! <li> ! <li> </ul> --- 16,25 ---- <a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a> </span> ! <br /><br /> ! <hr /> ! <br /> <ul> ! <li></li> ! <li></li> ! <li></li> </ul> Index: advanced.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/advanced.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** advanced.html 15 Aug 2003 07:37:30 -0000 1.2 --- advanced.html 21 Jul 2004 17:15:32 -0000 1.3 *************** *** 6,17 **** previous samples. Such features may be: <ul> ! <li> Detailed explanation of the <Repeat> element and the page ! recordsets. ! <li> <Var> elements ! <li> An <Include> element that uses a variable. ! <li> Usage of an external webox. ! <li> Etc. </ul> ! <br><br> <span class="button"> <a href="javascript: alert('Sorry! Not implemented yet.')">Test</a> --- 6,17 ---- previous samples. Such features may be: <ul> ! <li> Detailed explanation of the &lt;Repeat&gt; element and the page ! recordsets.</li> ! <li> &lt;Var&gt; elements</li> ! <li> An &lt;Include&gt; element that uses a variable.</li> ! <li> Usage of an external webox.</li> ! <li> Etc.</li> </ul> ! <br /><br /> <span class="button"> <a href="javascript: alert('Sorry! Not implemented yet.')">Test</a> *************** *** 20,29 **** <a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a> </span> ! <br><br> ! <hr> ! <br> <ul> ! <li> ! <li> ! <li> </ul> --- 20,29 ---- <a href="javascript: alert('Sorry! Not implemented yet.')">Browse</a> </span> ! <br /><br /> ! <hr /> ! <br /> <ul> ! <li></li> ! <li></li> ! <li></li> </ul> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:15:45
|
Update of /cvsroot/phpwebapp/documentation/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5212/templates Modified Files: main.html developer_docs.html bismilah.html about.html Log Message: Index: main.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/main.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** main.html 25 Aug 2003 14:34:23 -0000 1.5 --- main.html 21 Jul 2004 17:15:32 -0000 1.6 *************** *** 1,21 **** ! <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> <td width="1%" align="right" valign="top"> ! <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" /> </td> </tr> --- 1,23 ---- ! <?xml version="1.0" encoding="iso-8859-1"?> ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ! "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" lang="EN"> <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> <td width="1%" align="right" valign="top"> ! <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="nowrap"> ! <include src="{{./}}bismilah.html" /> </td> </tr> *************** *** 26,31 **** <td> <!--# Menu #--> ! <Include SRC="{{WEBOBJ_PATH}}tabs/tabs1.html"> ! <WebObject Class="tabs1" Name="mainMenu" items="{{./}}mainMenu_items.php" /> </td> --- 28,33 ---- <td> <!--# Menu #--> ! <include src="{{TABS_PATH}}tabs1.html" /> ! <webobject class="tabs1" name="mainMenu" items="{{./}}mainMenu_items.php" /> </td> *************** *** 34,40 **** <td class="content_box"> <!--# Content #--> ! <WebBox ID="content"> ! <Include SRC="{{./}}{{content_file}}"/> ! </WebBox> </td> </tr> --- 36,42 ---- <td class="content_box"> <!--# Content #--> ! <webbox id="content"> ! <include src="{{./}}{{content_file}}"/> ! </webbox> </td> </tr> Index: developer_docs.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/developer_docs.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** developer_docs.html 25 Aug 2003 16:12:35 -0000 1.5 --- developer_docs.html 21 Jul 2004 17:15:32 -0000 1.6 *************** *** 3,22 **** <ul> <li> ! UML Model (Logical View) <br> [ <a href="{{UP_URL}}web_app/doc/WebApp.mdl" target="_blank">Petal</a> (300 KB) | XMI | <a href="{{HOME_URL}}documentation/external/uml_model/index.html" target="_blank">HTML</a> | <a href="{{HOME_URL}}documentation/external/download/uml_model.tar.gz">HTML.tar.gz</a> (200 KB) ! ]<br><br> </li> <li> ! Code Documentation (generated by phpDocumentor) <br> [ PDF | <a href="{{HOME_URL}}documentation/external/phpdoc/" target="_blank">HTML</a> | <a href="{{HOME_URL}}documentation/external/download/phpdoc.tar.gz">HTML.tar.gz</a> (160 KB) ! ]<br><br> </li> <li> ! Code Documentation (generated by doxygen) <br> [ <a href="{{HOME_URL}}documentation/external/doxydoc/latex/refman.pdf" target="_blank">PDF</a> | <a href="{{HOME_URL}}documentation/external/download/doxydoc_latex.tar.gz">PDF.tar.gz</a> (1.3 MB) --- 3,22 ---- <ul> <li> ! UML Model (Logical View) <br /> [ <a href="{{UP_URL}}web_app/doc/WebApp.mdl" target="_blank">Petal</a> (300 KB) | XMI | <a href="{{HOME_URL}}documentation/external/uml_model/index.html" target="_blank">HTML</a> | <a href="{{HOME_URL}}documentation/external/download/uml_model.tar.gz">HTML.tar.gz</a> (200 KB) ! ]<br /><br /> </li> <li> ! Code Documentation (generated by phpDocumentor) <br /> [ PDF | <a href="{{HOME_URL}}documentation/external/phpdoc/" target="_blank">HTML</a> | <a href="{{HOME_URL}}documentation/external/download/phpdoc.tar.gz">HTML.tar.gz</a> (160 KB) ! ]<br /><br /> </li> <li> ! Code Documentation (generated by doxygen) <br /> [ <a href="{{HOME_URL}}documentation/external/doxydoc/latex/refman.pdf" target="_blank">PDF</a> | <a href="{{HOME_URL}}documentation/external/download/doxydoc_latex.tar.gz">PDF.tar.gz</a> (1.3 MB) *************** *** 24,28 **** | <a href="{{HOME_URL}}documentation/external/doxydoc/html/" target="_blank">HTML</a> | <a href="{{HOME_URL}}documentation/external/download/doxydoc_html.tar.gz">HTML.tar.gz</a> (3 MB) ! ]<br><br> </li> </ul> --- 24,28 ---- | <a href="{{HOME_URL}}documentation/external/doxydoc/html/" target="_blank">HTML</a> | <a href="{{HOME_URL}}documentation/external/download/doxydoc_html.tar.gz">HTML.tar.gz</a> (3 MB) ! ]<br /><br /> </li> </ul> *************** *** 32,56 **** <li> <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-developers" target="_blank">phpwebapp-developers</a> ! <br> For communication between the developers of the framework. ! <br><br> </li> <li> <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-improvments" target="_blank">phpwebapp-improvments</a> ! <br> For discussing improvments that can be made to the framework. ! <br><br> </li> <li> <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-discussion" target="_blank">phpwebapp-discussion</a> ! <br> Discussing problems of web applications in general and how they can be solved. ! <br><br> </li> <li> <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-commits" target="_blank">phpwebapp-commits</a> ! <br> Automatic announcement of each commit made to phpwebapp project. ! <br><br> </li> </ul> --- 32,56 ---- <li> <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-developers" target="_blank">phpwebapp-developers</a> ! <br /> For communication between the developers of the framework. ! <br /><br /> </li> <li> <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-improvments" target="_blank">phpwebapp-improvments</a> ! <br /> For discussing improvments that can be made to the framework. ! <br /><br /> </li> <li> <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-discussion" target="_blank">phpwebapp-discussion</a> ! <br /> Discussing problems of web applications in general and how they can be solved. ! <br /><br /> </li> <li> <a href="http://lists.sourceforge.net/mailman/listinfo/phpwebapp-commits" target="_blank">phpwebapp-commits</a> ! <br /> Automatic announcement of each commit made to phpwebapp project. ! <br /><br /> </li> </ul> *************** *** 66,68 **** </li> </ul> ! <br> --- 66,68 ---- </li> </ul> ! <br /> Index: bismilah.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/bismilah.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** bismilah.html 15 Aug 2003 07:37:30 -0000 1.4 --- bismilah.html 21 Jul 2004 17:15:32 -0000 1.5 *************** *** 3,7 **** <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> --- 3,7 ---- <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> Index: about.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/about.html,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** about.html 20 Aug 2003 07:31:55 -0000 1.6 --- about.html 21 Jul 2004 17:15:32 -0000 1.7 *************** *** 1,5 **** <h3>What is phpWebApp</h3> <p> ! <b>phpWebApp</b> is an application framework which makes easy and simple the task of building PHP web applications based on relational databases. It separates the task of designing and changing the --- 1,5 ---- <h3>What is phpWebApp</h3> <p> ! <strong>phpWebApp</strong> is an application framework which makes easy and simple the task of building PHP web applications based on relational databases. It separates the task of designing and changing the *************** *** 17,71 **** <ul> ! <li> The framework separates the layout from the logic of the ! application, so a graphical designer can easily improve the ! layout of the application without getting messed with the logic ! and without having to understand it. It makes easier the work ! of both the graphical designer and the programer. ! This also facilitates an iterative and incremental development ! approach for web application projects. <li> The framework gives the possibility to divide a page into several ! parts which can be used in other pages as well. This makes the ! user interface of the application (the layout, the graphical part) ! more structured and easier to understand and maintain and makes ! easier the work of the graphical designer. ! <li> The framework looks at web applications from a new point of ! view. From this point of view, a web application is a state machine, ! which can be represented and described by one or more statechart ! diagrams. Each page of the application that is displayed, represents ! the application in a certain state. Clicking to a link causes a ! transition to another state of the application. This simplifies ! the design and the implementation of web applications. Later, if this ! point of view is formalised and elaborated enough, it may provide ! the theoretical bases for automatic code generation of web applications ! from state chart diagrams (e.g. from UML state chart diagrams), and ! for reverse engineering. <li> The framework supports an event based programing model. When a ! transition from one state of the application to another happens, ! it may trigger an event as well, which is handled by a function ! (event handler). This makes the logic of the application easy to build, ! understand and maintain, and makes easy the work of the web programer. <li> The framework gives to the web programers the possibility to create ! independent web components (called WebBox-es) which have their own ! user interface (graphical design), client side behaviour, server ! side behaviour, states, events, event handlers, etc. These components ! can be very easily reused in other web applications and thus provide ! code reusability to web programers. This means that if you have ! constructed something once, you don't have to re-construct it again ! when you need it another time, but use it ready. ! <li> The framework brings closer the client-side and the server-side ! logic of a web application. E.g. the session variables (which are ! usually used to keep the state of various parts of the application), ! are available and can be accessed both on client side and on server side. ! <li> The framework makes the interaction with the database almost ! database independent. This means that in case that you decide ! to change the database on which your application is based (e.g. ! switching from MySQL to Oracle), then the application itself ! doesn't need to be changed at all, it will work all the same. </ul> </p> --- 17,72 ---- <ul> ! <li> The framework separates the layout from the logic of the application, ! so a graphical designer can easily improve the layout of the ! application without getting messed with the logic and without having to ! understand it. It makes easier the work of both the graphical designer ! and the programer. This also facilitates an iterative and incremental ! development approach for web application projects.</li> <li> The framework gives the possibility to divide a page into several ! parts which can be used in other pages as well. This makes the user ! interface of the application (the layout, the graphical part) more ! structured and easier to understand and maintain and makes easier the ! work of the graphical designer.</li> ! <li> The framework looks at web applications from a new point of view. From ! this point of view, a web application is a state machine, which can be ! represented and described by one or more statechart diagrams. Each page ! of the application that is displayed, represents the application in a ! certain state. Clicking to a link causes a transition to another state ! of the application. This simplifies the design and the implementation ! of web applications. Later, if this point of view is formalised and ! elaborated enough, it may provide the theoretical bases for automatic ! code generation of web applications from state chart diagrams ! (e.g. from UML state chart diagrams), and for reverse ! engineering. </li> <li> The framework supports an event based programing model. When a ! transition from one state of the application to another happens, it may ! trigger an event as well, which is handled by a function (event ! handler). This makes the logic of the application easy to build, ! understand and maintain, and makes easy the work of the web ! programer.</li> <li> The framework gives to the web programers the possibility to create ! independent web components (called WebBox-es) which have their own user ! interface (graphical design), client side behaviour, server side ! behaviour, states, events, event handlers, etc. These components can be ! very easily reused in other web applications and thus provide code ! reusability to web programers. This means that if you have constructed ! something once, you don't have to re-construct it again when you need ! it another time, but use it ready.</li> ! <li> The framework brings closer the client-side and the server-side logic ! of a web application. E.g. the session variables (which are usually ! used to keep the state of various parts of the application), are ! available and can be accessed both on client side and on server side. ! </li> ! <li> The framework makes the interaction with the database almost database ! independent. This means that in case that you decide to change the ! database on which your application is based (e.g. switching from MySQL ! to Oracle), then the application itself doesn't need to be changed at ! all, it will work all the same.</li> </ul> </p> *************** *** 101,105 **** Forums</a> of the project </li> ! <br> <li> <a href="http://sourceforge.net/projects/phpwebapp/" target="_blank"> --- 102,106 ---- Forums</a> of the project </li> ! <br /> <li> <a href="http://sourceforge.net/projects/phpwebapp/" target="_blank"> *************** *** 120,151 **** </a> </li> ! <br> <li> The <a href="http://phpwebapp.sourceforge.net/lgpl/documentation/">LGPL version</a> ! of phpWebApp is still available, <br>but it is old and unsupported. </li> ! <br> <li> ! Other <a href="http://sourceforge.net/search/?type=soft&exact=1&q=web+application+framework&offset=0" target="_blank"> web application framework</a>s at SourceForge. </li> <li> ! <a href="http://sourceforge.net/search/?type=soft&exact=1&q=content+management+system&offset=0" target="_blank"> content management system</a>s </li> <li> ! <a href="http://sourceforge.net/search/?type=soft&exact=1&q=document+management+system&offset=0" target="_blank"> document management system</a>s </li> <li> ! <a href="http://sourceforge.net/search/?type=soft&exact=1&q=template+system&offset=0" target="_blank"> template system</a>s </li> <li> ! <a href="http://sourceforge.net/search/?type=soft&exact=1&q=groupware&offset=0" target="_blank"> groupware</a>s </li> <li> ! <a href="http://sourceforge.net/search/?type=soft&exact=1&q=wiki&offset=0" target="_blank"> wiki</a>s </li> --- 121,152 ---- </a> </li> ! <br /> <li> The <a href="http://phpwebapp.sourceforge.net/lgpl/documentation/">LGPL version</a> ! of phpWebApp is still available, <br />but it is old and unsupported. </li> ! <br /> <li> ! Other <a href="http://sourceforge.net/search/?type=soft&exact=1&q=web+application+framework&offset=0" target="_blank"> web application framework</a>s at SourceForge. </li> <li> ! <a href="http://sourceforge.net/search/?type=soft&exact=1&q=content+management+system&offset=0" target="_blank"> content management system</a>s </li> <li> ! <a href="http://sourceforge.net/search/?type=soft&exact=1&q=document+management+system&offset=0" target="_blank"> document management system</a>s </li> <li> ! <a href="http://sourceforge.net/search/?type=soft&exact=1&q=template+system&offset=0" target="_blank"> template system</a>s </li> <li> ! <a href="http://sourceforge.net/search/?type=soft&exact=1&q=groupware&offset=0" target="_blank"> groupware</a>s </li> <li> ! <a href="http://sourceforge.net/search/?type=soft&exact=1&q=wiki&offset=0" target="_blank"> wiki</a>s </li> *************** *** 155,159 **** <p> Copyright 2001, 2002, 2003 Dashamir Hoxha, ! <a href="mailto:das...@us...">das...@us...</a> <p> phpWebApp is <a href="http://www.fsf.org/philosophy/" target="_blank">free software</a>; --- 156,160 ---- <p> Copyright 2001, 2002, 2003 Dashamir Hoxha, ! <a href="mailto:das...@us...">das...@us...</a></p> <p> phpWebApp is <a href="http://www.fsf.org/philosophy/" target="_blank">free software</a>; |
From: Dashamir H. <das...@us...> - 2004-07-21 17:15:45
|
Update of /cvsroot/phpwebapp/documentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5212 Modified Files: codeReview.php codeReview.html Log Message: Index: codeReview.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/codeReview.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** codeReview.php 25 Aug 2003 13:29:19 -0000 1.3 --- codeReview.php 21 Jul 2004 17:15:32 -0000 1.4 *************** *** 20,23 **** --- 20,26 ---- */ + $file = $_REQUEST['file']; + $lines = $_REQUEST['lines']; + $highlights = $_REQUEST['highlights']; include "webapp.php"; Index: codeReview.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/codeReview.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** codeReview.html 21 Feb 2003 08:18:22 -0000 1.1.1.1 --- codeReview.html 21 Jul 2004 17:15:32 -0000 1.2 *************** *** 1,7 **** ! <html> <head> <title>File: {{file}}</title> </head> <body> ! <Include SRC="{{CODEVIEWER_PATH}}codeViewer.html" /> </body> --- 1,11 ---- ! <?xml version="1.0" encoding="iso-8859-1"?> ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ! "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" lang="EN"> <head> <title>File: {{file}}</title> </head> <body> ! <include src="{{CODEVIEWER_PATH}}codeViewer.html" /> </body> + </html> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:14:16
|
Update of /cvsroot/phpwebapp/empty-sample/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4875/templates Modified Files: main.html Log Message: Index: main.html =================================================================== RCS file: /cvsroot/phpwebapp/empty-sample/templates/main.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** main.html 25 Aug 2003 14:42:35 -0000 1.2 --- main.html 21 Jul 2004 17:14:07 -0000 1.3 *************** *** 1,3 **** ! <html> <head> <title>Empty Sample</title> --- 1,6 ---- ! <?xml version="1.0" encoding="iso-8859-1"?> ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ! "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" lang="EN"> <head> <title>Empty Sample</title> *************** *** 9,17 **** <p>[<a href="{{APP_URL}}browse.php">Browse it</a>]</p> ! <hr> ! <WebBox ID="sample_webbox"> <!--# Empty Sample WebBox #--> ! </WebBox> </body> </html> --- 12,20 ---- <p>[<a href="{{APP_URL}}browse.php">Browse it</a>]</p> ! <hr /> ! <webbox id="sample_webbox"> <!--# Empty Sample WebBox #--> ! </webbox> </body> </html> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:13:29
|
Update of /cvsroot/phpwebapp/app3/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4608/templates Modified Files: styles.css page3.html page2.html page1_content.html page1.html header.html footer.html Log Message: Index: styles.css =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/styles.css,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** styles.css 25 Aug 2003 14:30:38 -0000 1.2 --- styles.css 21 Jul 2004 17:13:04 -0000 1.3 *************** *** 21,25 **** } ! pre { background-color: #eeeeee; --- 21,25 ---- } ! pre, xmp { background-color: #eeeeee; Index: page3.html =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/page3.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** page3.html 25 Aug 2003 14:30:38 -0000 1.2 --- page3.html 21 Jul 2004 17:13:04 -0000 1.3 *************** *** 2,10 **** <head> <title>Page 3</title> ! <link rel="stylesheet" type="text/css" href="{{./}}styles.css"> </head> <body> ! <Include SRC="{{./}}header.html" /> <h3>Optional framework files</h3> --- 2,10 ---- <head> <title>Page 3</title> ! <link rel="stylesheet" type="text/css" href="{{./}}styles.css" /> </head> <body> ! <include src="{{./}}header.html" /> <h3>Optional framework files</h3> *************** *** 32,36 **** </dl> ! <Include SRC="{{./}}footer.html" /> </body> </html> --- 32,36 ---- </dl> ! <include src="{{./}}footer.html" /> </body> </html> Index: page2.html =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/page2.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** page2.html 25 Aug 2003 14:30:38 -0000 1.2 --- page2.html 21 Jul 2004 17:13:04 -0000 1.3 *************** *** 2,11 **** <head> <title>Page 2</title> ! <link rel="stylesheet" type="text/css" href="{{./}}styles.css"> ! <link rel="stylesheet" type="text/css" href="{{TPL_URL}}tip/tip_styles.css"> </head> <body> ! <Include SRC="{{./}}header.html" /> <h3>Examples of WebBox-es</h3> --- 2,11 ---- <head> <title>Page 2</title> ! <link rel="stylesheet" type="text/css" href="{{./}}styles.css" /> ! <link rel="stylesheet" type="text/css" href="{{TPL_URL}}tip/tip_styles.css" /> </head> <body> ! <include src="{{./}}header.html" /> <h3>Examples of WebBox-es</h3> *************** *** 20,38 **** This is a bad example: ! <Include SRC="{{./}}tip/tip1.html" /> ! <br> This is another bad example: ! <Include SRC="{{./}}tip/tip2.html" /> ! <br> This is yet another bad example: ! <Include SRC="{{./}}tip/tip3.html" /> ! <br> This is a terribly bad example: ! <Include SRC="{{./}}tip/tip4.html" /> ! <br> This is a good example: ! <Include SRC="{{./}}tip/tip.html" /> ! <Include SRC="{{./}}footer.html" /> </body> </html> --- 20,38 ---- This is a bad example: ! <include src="{{./}}tip/tip1.html" /> ! <br /> This is another bad example: ! <include src="{{./}}tip/tip2.html" /> ! <br /> This is yet another bad example: ! <include src="{{./}}tip/tip3.html" /> ! <br /> This is a terribly bad example: ! <include src="{{./}}tip/tip4.html" /> ! <br /> This is a good example: ! <include src="{{./}}tip/tip.html" /> ! <include src="{{./}}footer.html" /> </body> </html> Index: page1_content.html =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/page1_content.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** page1_content.html 25 Aug 2003 14:30:38 -0000 1.2 --- page1_content.html 21 Jul 2004 17:13:04 -0000 1.3 *************** *** 9,19 **** queries etc., associated with it.</p> ! <p>It is denoted by the tag <strong><WebBox></strong> and it has an <strong>ID</strong> attribute:</p> ! <pre> ! <WebBox ID="box_id"> ! <!-- content of WebBox --> ! </WebBox> ! </pre> <p>The identifier must be different for each WebBox used in the application.</p> --- 9,18 ---- queries etc., associated with it.</p> ! <p>It is denoted by the tag <strong>&lt;WebBox&gt;</strong> and it has an <strong>ID</strong> attribute:</p> ! <example> <webbox id="box_id"> ! <!-- content of WebBox --> ! </webbox> ! </example> <p>The identifier must be different for each WebBox used in the application.</p> *************** *** 24,28 **** styles etc.) are associated to the WebBox by means of <strong>box_id</strong>, the identifier of the WebBox. When the ! framework parses a <strong><WebBox></strong> tag, it looks for a file named <strong>box_id.php</strong> in the same folder where the WebBox template is. If it finds such a file, it includes it.</p> --- 23,27 ---- styles etc.) are associated to the WebBox by means of <strong>box_id</strong>, the identifier of the WebBox. When the ! framework parses a <strong>&lt;WebBox&gt;</strong> tag, it looks for a file named <strong>box_id.php</strong> in the same folder where the WebBox template is. If it finds such a file, it includes it.</p> *************** *** 32,36 **** like this:</p> <pre> ! <?php class <strong>box_id</strong> extends <strong>WebObject</strong> { --- 31,35 ---- like this:</p> <pre> ! &lt;?php class <strong>box_id</strong> extends <strong>WebObject</strong> { *************** *** 39,43 **** . } ! ?> </pre> --- 38,42 ---- . } ! ?&gt; </pre> *************** *** 72,83 **** integrates them in the generated <em>HTML</em> page. For example, it includes <strong>box_id.js</strong> and <strong>box_id.css</strong> in ! the <em><head></em> of the page. If you view the HTML code of ! this page, you may notice in the <em><head></em> these lines that have been added automatically by the framework for the WebBox <em>menu</em>:</p> <pre> ! <script language='JavaScript' src='/app3/templates/menu/<strong>menu.js</strong>'></script> ! <link rel='stylesheet' href='/app3/templates/menu/<strong>menu.css</strong>' type='text/css'> </pre> --- 71,82 ---- integrates them in the generated <em>HTML</em> page. For example, it includes <strong>box_id.js</strong> and <strong>box_id.css</strong> in ! the <em>&lt;head&gt;</em> of the page. If you view the HTML code of ! this page, you may notice in the <em>&lt;head&gt;</em> these lines that have been added automatically by the framework for the WebBox <em>menu</em>:</p> <pre> ! &lt;script language='JavaScript' src='/app3/templates/menu/<strong>menu.js</strong>'&gt;&lt;/script&gt; ! &lt;link rel='stylesheet' href='/app3/templates/menu/<strong>menu.css</strong>' type='text/css'&gt; </pre> *************** *** 91,100 **** <p>A WebBox is defined inside a template file and the <em>TPL</em> ! code of the WebBox is inside the <em><WebBox></em> tag (is the ! content of the <em><WebBox></em> element). However a WebBox is different from a template because it can also have its own <em>PHP</em> code. Another difference is that a template must include explicitly the <em>JS</em> code and the <em>CSS</em> code (if it has its own), however, for a WebBox the framework handles them ! automatically, by including them at the <em><head></em> of the page</p> --- 90,99 ---- <p>A WebBox is defined inside a template file and the <em>TPL</em> ! code of the WebBox is inside the <em>&lt;WebBox&gt;</em> tag (is the ! content of the <em>&lt;WebBox&gt;</em> element). However a WebBox is different from a template because it can also have its own <em>PHP</em> code. Another difference is that a template must include explicitly the <em>JS</em> code and the <em>CSS</em> code (if it has its own), however, for a WebBox the framework handles them ! automatically, by including them at the <em>&lt;head&gt;</em> of the page</p> Index: page1.html =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/page1.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** page1.html 25 Aug 2003 14:30:38 -0000 1.2 --- page1.html 21 Jul 2004 17:13:04 -0000 1.3 *************** *** 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> --- 1,15 ---- ! <?xml version="1.0" encoding="iso-8859-1"?> ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ! "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" lang="EN"> <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/app3/templates/header.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** header.html 25 Aug 2003 14:30:38 -0000 1.2 --- header.html 21 Jul 2004 17:13:04 -0000 1.3 *************** *** 1,3 **** <!--# This template is included at the begining of each page #--> <h1>Sample Application 3: WebBox-es</h1> ! <Include SRC="{{./}}menu/menu.html" /> --- 1,3 ---- <!--# This template is included at the begining of each page #--> <h1>Sample Application 3: WebBox-es</h1> ! <include src="{{./}}menu/menu.html" /> Index: footer.html =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/footer.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** footer.html 25 Aug 2003 14:30:38 -0000 1.2 --- footer.html 21 Jul 2004 17:13:04 -0000 1.3 *************** *** 1,3 **** ! <hr> ! <a href="javascript:go_back()"><img src="{{GRAPHICS}}back.png" alt="Back" border="0"></a> ! <a href="{{APP_URL}}"><img src="{{GRAPHICS}}home.png" alt="Home" border="0"></a> --- 1,3 ---- ! <hr /> ! <a href="javascript:go_back()"><img src="{{GRAPHICS}}back.png" alt="Back" border="0" /></a> ! <a href="{{APP_URL}}"><img src="{{GRAPHICS}}home.png" alt="Home" border="0" /></a> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:13:15
|
Update of /cvsroot/phpwebapp/app3/templates/menu In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4608/templates/menu Modified Files: menu.html Log Message: Index: menu.html =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/menu/menu.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** menu.html 25 Aug 2003 14:30:38 -0000 1.2 --- menu.html 21 Jul 2004 17:13:03 -0000 1.3 *************** *** 1,3 **** ! <WebBox ID="menu"> <table width="100%" class="menu"> <tr> --- 1,3 ---- ! <webbox id="menu"> <table width="100%" class="menu"> <tr> *************** *** 13,15 **** </tr> </table> ! </WebBox> --- 13,15 ---- </tr> </table> ! </webbox> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:13:12
|
Update of /cvsroot/phpwebapp/app3/templates/tip In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4608/templates/tip Modified Files: tip4.html tip3.html tip2.html tip1.html tip.html Log Message: Index: tip4.html =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/tip/tip4.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** tip4.html 22 Aug 2003 16:14:27 -0000 1.1.1.1 --- tip4.html 21 Jul 2004 17:13:03 -0000 1.2 *************** *** 6,10 **** programers). You should never do such a thing. #--> ! <WebBox ID="tip4"> <table class="tip"> <tr> --- 6,10 ---- programers). You should never do such a thing. #--> ! <webbox id="tip4"> <table class="tip"> <tr> *************** *** 13,15 **** </tr> </table> ! </WebBox> --- 13,15 ---- </tr> </table> ! </webbox> Index: tip3.html =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/tip/tip3.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** tip3.html 22 Aug 2003 16:14:27 -0000 1.1.1.1 --- tip3.html 21 Jul 2004 17:13:03 -0000 1.2 *************** *** 1,5 **** <!--# This is yet another BAD EXAMPLE #--> <!--# There is still some HTML code constructed in PHP #--> ! <WebBox ID="tip3"> <table class="tip"> <tr> --- 1,5 ---- <!--# This is yet another BAD EXAMPLE #--> <!--# There is still some HTML code constructed in PHP #--> ! <webbox id="tip3"> <table class="tip"> <tr> *************** *** 8,10 **** </tr> </table> ! </WebBox> --- 8,10 ---- </tr> </table> ! </webbox> Index: tip2.html =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/tip/tip2.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** tip2.html 22 Aug 2003 16:14:25 -0000 1.1.1.1 --- tip2.html 21 Jul 2004 17:13:03 -0000 1.2 *************** *** 4,8 **** and is outputed here using a template variable. #--> ! <WebBox ID="tip2"> {{tip_html_content}} ! </WebBox> --- 4,8 ---- and is outputed here using a template variable. #--> ! <webbox id="tip2"> {{tip_html_content}} ! </webbox> Index: tip1.html =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/tip/tip1.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** tip1.html 22 Aug 2003 16:14:25 -0000 1.1.1.1 --- tip1.html 21 Jul 2004 17:13:03 -0000 1.2 *************** *** 4,7 **** of the 'tip1' class of PHP, using 'print' statements. #--> ! <WebBox ID="tip1"> ! </WebBox> --- 4,7 ---- of the 'tip1' class of PHP, using 'print' statements. #--> ! <webbox id="tip1"> ! </webbox> Index: tip.html =================================================================== RCS file: /cvsroot/phpwebapp/app3/templates/tip/tip.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** tip.html 22 Aug 2003 16:14:25 -0000 1.1.1.1 --- tip.html 21 Jul 2004 17:13:03 -0000 1.2 *************** *** 1,3 **** ! <WebBox ID="tip"> <table class="tip"> <tr> --- 1,3 ---- ! <webbox id="tip"> <table class="tip"> <tr> *************** *** 6,8 **** </tr> </table> ! </WebBox> --- 6,8 ---- </tr> </table> ! </webbox> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:11:43
|
Update of /cvsroot/phpwebapp/app2/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4165/templates Modified Files: page1_content.html Log Message: Index: page1_content.html =================================================================== RCS file: /cvsroot/phpwebapp/app2/templates/page1_content.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** page1_content.html 20 Jul 2004 17:28:48 -0000 1.5 --- page1_content.html 21 Jul 2004 17:11:34 -0000 1.6 *************** *** 14,25 **** double curly braces: <strong>{{#tpl_var}}</strong>.</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 <strong><Include></strong> tag, which is used to include another template inside the current template:</p> <pre> ! <Include src="file_to_be_included" /> </pre> --- 14,25 ---- double curly braces: <strong>{{#tpl_var}}</strong>.</p> ! <h4>The &lt;Include&gt; 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 <strong>&lt;Include&gt;</strong> tag, which is used to include another template inside the current template:</p> <pre> ! &lt;Include src="file_to_be_included" /&gt; </pre> *************** *** 34,38 **** <p>The templates may contain some special comments as well:</p> <pre> ! <!--# Framework comments #--> </pre> --- 34,38 ---- <p>The templates may contain some special comments as well:</p> <pre> ! &lt;!--# Framework comments #--&gt; </pre> *************** *** 51,56 **** 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> --- 51,56 ---- into another page. They are included like this:</p> <pre> ! &lt;script language="javascript" src="file.js"&gt;&lt;/script&gt; ! &lt;link rel="stylesheet" type="text/css" href="file.css"&gt; </pre> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:11:43
|
Update of /cvsroot/phpwebapp/app2/templates/page3 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4165/templates/page3 Modified Files: tpl_1.html Log Message: Index: tpl_1.html =================================================================== RCS file: /cvsroot/phpwebapp/app2/templates/page3/tpl_1.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tpl_1.html 20 Jul 2004 17:28:48 -0000 1.4 --- tpl_1.html 21 Jul 2004 17:11:34 -0000 1.5 *************** *** 7,11 **** <em>page3.html</em> is the same as <em>page2.html</em>, however it is implemented using the templates and the ! <strong><Include></strong> tag of the framework. Some of the benefits of separating pages into templates are: --- 7,11 ---- <em>page3.html</em> is the same as <em>page2.html</em>, however it is implemented using the templates and the ! <strong>&lt;Include&gt;</strong> tag of the framework. Some of the benefits of separating pages into templates are: |
From: Dashamir H. <das...@us...> - 2004-07-21 17:09:19
|
Update of /cvsroot/phpwebapp/web_app/parser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3709/parser Modified Files: class.Parser.php Log Message: Index: class.Parser.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.Parser.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** class.Parser.php 21 Jul 2004 17:04:31 -0000 1.14 --- class.Parser.php 21 Jul 2004 17:09:10 -0000 1.15 *************** *** 72,76 **** $tpl = new MainTpl($tpl_file); if ($this->debug) print "<xmp>\n"; ! $tpl = $this->parse_file($tpl_file, $tpl, true); if ($this->debug) print "</xmp>\n"; --- 72,76 ---- $tpl = new MainTpl($tpl_file); if ($this->debug) print "<xmp>\n"; ! $tpl = $this->parse_file($tpl_file, $tpl); if ($this->debug) print "</xmp>\n"; *************** *** 87,99 **** * @param $tpl (optional) the template or template reference * to be filled by parsing this file. - * @param $well_formed (optional) when it is true, then the contents - * of the file is assumed well-formed and is not - * added the doctype declaration and the root element; - * usually the main template is well-formed and - * the others are not * @return FileTpl an object that contains the parsed $filename, * return UNDEFINED if $filename is not found. */ ! function parse_file($filename, $tpl =UNDEFINED, $well_formed =false) { global $tplVars; --- 87,94 ---- * @param $tpl (optional) the template or template reference * to be filled by parsing this file. * @return FileTpl an object that contains the parsed $filename, * return UNDEFINED if $filename is not found. */ ! function parse_file($filename, $tpl =UNDEFINED) { global $tplVars; *************** *** 118,122 **** //parse the contents of the file $file_contents = file_get_contents($filename); ! $tpl = $this->parse_string($file_contents, $tpl, $well_formed); $tplVars->popScope(); --- 113,117 ---- //parse the contents of the file $file_contents = file_get_contents($filename); ! $tpl = $this->parse_string($file_contents, $tpl); $tplVars->popScope(); *************** *** 127,143 **** /** Parse an xml string into the template given as parameter. */ ! function parse_string($xml_string, $tpl =UNDEFINED, $well_formed =false) { if ($tpl===UNDEFINED) $tpl = new Template; ! //if (!$well_formed) if (substr($xml_string, 0, 5) != '<?xml') { - //The contents of the string usually is not well-formed xml - //(does not have <?xml version="1.0" ? > declaration, does not - //have DOCTYPE declaration, and may not have a single root). - //In this case the xml parser may not parse it correctly. - //We make it well-formed by adding additional things taken from - //the main template. Then the parser discards these things. $xml_string = $this->xml_prolog . $xml_string . '</html>'; } --- 122,137 ---- /** Parse an xml string into the template given as parameter. */ ! function parse_string($xml_string, $tpl =UNDEFINED) { if ($tpl===UNDEFINED) $tpl = new Template; ! //The contents of the string usually is not well-formed xml ! //(does not have <?xml version="1.0" ? > declaration, does not ! //have DOCTYPE declaration, and may not have a single root). ! //In this case the xml parser may not parse it correctly. ! //We make it well-formed by adding additional things taken from ! //the main template. Then the parser discards these things. if (substr($xml_string, 0, 5) != '<?xml') { $xml_string = $this->xml_prolog . $xml_string . '</html>'; } |
From: Dashamir H. <das...@us...> - 2004-07-21 17:05:11
|
Update of /cvsroot/phpwebapp/web_app/tools/fileBrowser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2634/tools/fileBrowser Modified Files: panel.html folder.html fileBrowser.html file.html Log Message: Index: panel.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/tools/fileBrowser/panel.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** panel.html 15 Jul 2004 14:46:03 -0000 1.4 --- panel.html 21 Jul 2004 17:04:30 -0000 1.5 *************** *** 1,35 **** ! <WebBox ID="panel"> <table width="100%" border="0" cellspacing="0" cellpadding="2" bgcolor="#006633"> <tr><td> <table border="0" cellspacing="0" cellpadding="1" bgcolor="white"> <tr> ! <form name="changeViewForm" id="changeViewForm" onsubmit="return false;"> ! <td width="17%" nowrap="nowrap" valign="top"> ! <input type="checkbox" name="hide" id="hide" class="checkbox"><span class="font">Hide Folder Box</span><br /> ! <input type="button" name="refresh" id="refresh" value="Refresh" class="button" onclick="on_refresh()"> ! </td> ! <td width="17%" nowrap="nowrap" valign="top"> ! <input type="radio" name="viewMode" id="viewMode" value="codeView" class="radio" {{codeView_checked}}><span class="font">Code View</span> <br /> ! <input type="radio" name="viewMode" id="viewMode" value="preview" class="radio" {{preview_checked}}><span class="font">Preview</span> ! </td> ! <td bgcolor="#006633"></td> ! <td width="10%" nowrap="nowrap" valign="top" align="right"> ! <span class="font">Change Session:</span> <br /> ! <input type="button" name="changeSess" id="changeSess" value="Change" class="button" onclick="on_changeSess()"> ! </td> ! <td width="20%" nowrap="nowrap" valign="top"> ! <input type="text" name="var_name" id="var_name" class="text" size="15"> <br /> ! <input type="text" name="var_value" id="var_value" class="text" size="15"> ! </td> ! <td bgcolor="#006633"></td> ! <td width="40%" nowrap="nowrap"> ! <span class="font">Root Folder:</span> <br /> ! <input type="text" name="root_folder" id="root_folder" class="text" value="{{folderListing->root}}" size="30"> ! <input type="button" name="changePath" id="changePath" value="GO" class="button" onclick="on_changePath()"> ! </td> ! </form> </tr> </table> </td></tr> </table> ! </WebBox> --- 1,35 ---- ! <webbox id="panel"> <table width="100%" border="0" cellspacing="0" cellpadding="2" bgcolor="#006633"> <tr><td> <table border="0" cellspacing="0" cellpadding="1" bgcolor="white"> <tr> ! <form name="changeViewForm" id="changeViewForm" onsubmit="return false;"> ! <td width="17%" nowrap="nowrap" valign="top"> ! <input type="checkbox" name="hide" id="hide" class="checkbox" /><span class="font">Hide Folder Box</span><br /> ! <input type="button" name="refresh" id="refresh" value="Refresh" class="button" onclick="on_refresh()" /> ! </td> ! <td width="17%" nowrap="nowrap" valign="top"> ! <input type="radio" name="viewMode" id="viewMode" value="codeView" class="radio" checked="{{codeView_checked}}" /><span class="font">Code View</span> <br /> ! <input type="radio" name="viewMode" id="viewMode" value="preview" class="radio" checked="{{preview_checked}}" /><span class="font">Preview</span> ! </td> ! <td bgcolor="#006633"></td> ! <td width="10%" nowrap="nowrap" valign="top" align="right"> ! <span class="font">Change Session:</span> <br /> ! <input type="button" name="changeSess" id="changeSess" value="Change" class="button" onclick="on_changeSess()" /> ! </td> ! <td width="20%" nowrap="nowrap" valign="top"> ! <input type="text" name="var_name" id="var_name" class="text" size="15" /> <br /> ! <input type="text" name="var_value" id="var_value" class="text" size="15" /> ! </td> ! <td bgcolor="#006633"></td> ! <td width="40%" nowrap="nowrap"> ! <span class="font">Root Folder:</span> <br /> ! <input type="text" name="root_folder" id="root_folder" class="text" value="{{folderListing->root}}" size="30" /> ! <input type="button" name="changePath" id="changePath" value="GO" class="button" onclick="on_changePath()" /> ! </td> ! </form> </tr> </table> </td></tr> </table> ! </webbox> Index: folder.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/tools/fileBrowser/folder.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** folder.html 22 Aug 2003 06:47:20 -0000 1.3 --- folder.html 21 Jul 2004 17:04:30 -0000 1.4 *************** *** 9,13 **** <table width="100%" height="300" border="0" cellspacing="0" cellpadding="5" bgcolor="white"> <tr><td valign="top"> ! <Include SRC="{{FOLDERLISTING_PATH}}folderListing.html" /> </td></tr> </table> --- 9,13 ---- <table width="100%" height="300" border="0" cellspacing="0" cellpadding="5" bgcolor="white"> <tr><td valign="top"> ! <include src="{{FOLDERLISTING_PATH}}folderListing.html" /> </td></tr> </table> Index: fileBrowser.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/tools/fileBrowser/fileBrowser.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** fileBrowser.html 15 Jul 2004 14:46:03 -0000 1.5 --- fileBrowser.html 21 Jul 2004 17:04:30 -0000 1.6 *************** *** 1,25 **** ! <html> <head> <title>File Browser</title> <link type="text/css" rel="stylesheet" href="{{APP_STYLE}}" /> </head> - <body> ! <WebBox ID="fileBrowser"> ! <Include SRC="{{./}}panel.html" /> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> ! <If condition="{{panel->folderVisible}}"> ! <td width="200" valign="top" nowrap="nowrap"> ! <Include SRC="{{./}}folder.html" /> ! </td> ! </If> <td align="left" valign="top"> ! <Include SRC="{{./}}file.html" /> </td> </tr> </table> ! </WebBox> ! </body> </html> --- 1,27 ---- ! <?xml version="1.0" encoding="iso-8859-1"?> ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ! "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" lang="EN"> <head> <title>File Browser</title> <link type="text/css" rel="stylesheet" href="{{APP_STYLE}}" /> </head> ! <body> ! <webbox id="fileBrowser"> ! <include src="{{./}}panel.html" /> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> ! <if condition="{{panel->folderVisible}}"> ! <td width="200" valign="top" nowrap="nowrap"> ! <include src="{{./}}folder.html" /> ! </td> ! </if> <td align="left" valign="top"> ! <include src="{{./}}file.html" /> </td> </tr> </table> ! </webbox> </body> </html> Index: file.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/tools/fileBrowser/file.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** file.html 22 Aug 2003 06:47:20 -0000 1.3 --- file.html 21 Jul 2004 17:04:30 -0000 1.4 *************** *** 1,4 **** <!--# File Box #--> ! <WebBox ID="file"> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr bgcolor="#006633"> --- 1,4 ---- <!--# File Box #--> ! <webbox id="file"> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr bgcolor="#006633"> *************** *** 12,21 **** <table border="0" cellspacing="0" cellpadding="5"> <tr><td> ! <Include SRC="{{FILEVIEW_PATH}}fileView.html" /> </td></tr> ! </table </td></tr> </table> </td></tr> </table> ! </WebBox> --- 12,21 ---- <table border="0" cellspacing="0" cellpadding="5"> <tr><td> ! <include src="{{FILEVIEW_PATH}}fileView.html" /> </td></tr> ! </table> </td></tr> </table> </td></tr> </table> ! </webbox> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:05:10
|
Update of /cvsroot/phpwebapp/web_app/webobjects/dbTable In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2634/webobjects/dbTable Modified Files: editRecord.html dbTable.html Log Message: Index: editRecord.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/dbTable/editRecord.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** editRecord.html 15 Jul 2004 14:46:03 -0000 1.5 --- editRecord.html 21 Jul 2004 17:04:30 -0000 1.6 *************** *** 1,19 **** ! <WebClass ID="editRecord"> ! <If condition="!('{{state}}'=='hidden')"> <form name="{{obj_name}}" id="{{obj_name}}" onsubmit="return false;"> <table bgcolor="#aaaaaa" border="0" cellspacing="0" cellpadding="0"> ! <Repeat rs="{{table}}->fields"> <tr> <td bgcolor="#eeeeee" align="right">{{fld_name}}:</td> <td> <input type="text" class="editRecord_field" ! name="{{fld_name}}" id="{{fld_name}}" value="{{{{fld_name}}}}"> </td> <tr> ! </Repeat> </table> [<a href="javascript: editRecord_save('{{obj_name}}')">Save</a>] [<a href="javascript: editRecord_cancel('{{obj_id}}')">Cancel</a>] </form> ! </If> ! </WebClass> --- 1,19 ---- ! <webclass id="editRecord"> ! <if condition="!('{{state}}'=='hidden')"> <form name="{{obj_name}}" id="{{obj_name}}" onsubmit="return false;"> <table bgcolor="#aaaaaa" border="0" cellspacing="0" cellpadding="0"> ! <repeat rs="{{table}}->fields"> <tr> <td bgcolor="#eeeeee" align="right">{{fld_name}}:</td> <td> <input type="text" class="editRecord_field" ! name="{{fld_name}}" id="{{fld_name}}" value="{{{{fld_name}}}}" /> </td> <tr> ! </repeat> </table> [<a href="javascript: editRecord_save('{{obj_name}}')">Save</a>] [<a href="javascript: editRecord_cancel('{{obj_id}}')">Cancel</a>] </form> ! </if> ! </webclass> Index: dbTable.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/dbTable/dbTable.html,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** dbTable.html 14 Jul 2004 14:45:35 -0000 1.6 --- dbTable.html 21 Jul 2004 17:04:30 -0000 1.7 *************** *** 1,14 **** ! <Include SRC="{{./}}editRecord.html" /> ! <WebClass ID="dbTable"> ! <Parameter name="table" default="{{obj_name}}" /> ! <Parameter name="fields" default="*" /> ! <Parameter name="where" default="" /> ! <Parameter name="selectable" default="false" /> ! <Parameter name="editable" default="false" /> <table bgcolor="#aaaaaa" border="0" cellspacing="1" cellpadding="2"> <tr> ! <If condition="{{editable}}"> <th bgcolor="#eeeeee"> <a href="javascript: dbTable_rmAll('{{obj_id}}')">X</a> --- 1,14 ---- ! <include src="{{./}}editRecord.html" /> ! <webclass id="dbTable"> ! <parameter name="table" default="{{obj_name}}" /> ! <parameter name="fields" default="*" /> ! <parameter name="where" default="" /> ! <parameter name="selectable" default="false" /> ! <parameter name="editable" default="false" /> <table bgcolor="#aaaaaa" border="0" cellspacing="1" cellpadding="2"> <tr> ! <if condition="{{editable}}"> <th bgcolor="#eeeeee"> <a href="javascript: dbTable_rmAll('{{obj_id}}')">X</a> *************** *** 17,22 **** <a href="javascript: dbTable_add('{{obj_id}}')">A</a> </th> ! </If> ! <If condition="{{selectable}}"> <th bgcolor="#eeeeee"> <a href="javascript: dbTable_select('{{obj_id}}', '{{UNDEFINED}}')"> --- 17,22 ---- <a href="javascript: dbTable_add('{{obj_id}}')">A</a> </th> ! </if> ! <if condition="{{selectable}}"> <th bgcolor="#eeeeee"> <a href="javascript: dbTable_select('{{obj_id}}', '{{UNDEFINED}}')"> *************** *** 24,37 **** </a> </th> ! </If> ! <Repeat rs="{{table}}->fields"> <th bgcolor="#eeeeee"> {{fld_name}} </th> ! </Repeat> </tr> ! <Repeat rs="{{table}}->records"> ! <Var name="bgcolor">("{{rec_id}}"=="{{selected_rec}}" ? ! "#f3f3ff" : "white")</Var> <tr> ! <If condition="{{editable}}"> <td bgcolor="{{bgcolor}}"> <a href="javascript: dbTable_rm('{{obj_id}}', '{{rec_id}}')">X</a> --- 24,37 ---- </a> </th> ! </if> ! <repeat rs="{{table}}->fields"> <th bgcolor="#eeeeee"> {{fld_name}} </th> ! </repeat> </tr> ! <repeat rs="{{table}}->records"> ! <var name="bgcolor">("{{rec_id}}"=="{{selected_rec}}" ? ! "#f3f3ff" : "white")</var> <tr> ! <if condition="{{editable}}"> <td bgcolor="{{bgcolor}}"> <a href="javascript: dbTable_rm('{{obj_id}}', '{{rec_id}}')">X</a> *************** *** 40,45 **** <a href="javascript: dbTable_edit('{{obj_id}}', '{{rec_id}}')">E</a> </td> ! </If> ! <If condition="{{selectable}}"> <td bgcolor="{{bgcolor}}"> <a href="javascript: dbTable_select('{{obj_id}}', '{{rec_id}}')"> --- 40,45 ---- <a href="javascript: dbTable_edit('{{obj_id}}', '{{rec_id}}')">E</a> </td> ! </if> ! <if condition="{{selectable}}"> <td bgcolor="{{bgcolor}}"> <a href="javascript: dbTable_select('{{obj_id}}', '{{rec_id}}')"> *************** *** 47,60 **** </a> </td> ! </If> ! <Repeat rs="{{table}}->fields"> <td bgcolor="{{bgcolor}}"> {{{{fld_name}}}} </td> ! </Repeat> </tr> ! </Repeat> </table> <br /> ! <WebObject Class="editRecord" Name="{{obj_name}}" /> ! </WebClass> --- 47,60 ---- </a> </td> ! </if> ! <repeat rs="{{table}}->fields"> <td bgcolor="{{bgcolor}}"> {{{{fld_name}}}} </td> ! </repeat> </tr> ! </repeat> </table> <br /> ! <webobject class="editRecord" name="{{obj_name}}" /> ! </webclass> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:05:10
|
Update of /cvsroot/phpwebapp/web_app/webobjects/datebox In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2634/webobjects/datebox Modified Files: datebox.html Log Message: Index: datebox.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/datebox/datebox.html,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** datebox.html 15 Jul 2004 14:46:03 -0000 1.6 --- datebox.html 21 Jul 2004 17:04:30 -0000 1.7 *************** *** 1,6 **** ! <WebClass ID="datebox"> ! <Parameter name="value" default="{{{{obj_name}}}}" /> ! <Parameter name="onchange" default="return false;" /> ! <Parameter name="format" default="YYYY-MM-DD" /> <input type="hidden" name="{{obj_name}}" id="{{obj_name}}" value="{{value}}" /> <input type="text" class="datebox" --- 1,6 ---- ! <webclass id="datebox"> ! <parameter name="value" default="{{{{obj_name}}}}" /> ! <parameter name="onchange" default="return false;" /> ! <parameter name="format" default="YYYY-MM-DD" /> <input type="hidden" name="{{obj_name}}" id="{{obj_name}}" value="{{value}}" /> <input type="text" class="datebox" *************** *** 14,16 **** onmouseover="window.status='Calendar'; return true;" onmouseout="window.status=''; return true;" /> ! </WebClass> --- 14,16 ---- onmouseover="window.status='Calendar'; return true;" onmouseout="window.status=''; return true;" /> ! </webclass> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:05:10
|
Update of /cvsroot/phpwebapp/web_app/webobjects/tabs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2634/webobjects/tabs Modified Files: tabs3.html tabs2.html tabs1.html Log Message: Index: tabs3.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs3.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** tabs3.html 25 Aug 2003 14:37:19 -0000 1.2 --- tabs3.html 21 Jul 2004 17:04:29 -0000 1.3 *************** *** 1,6 **** ! <WebClass ID="tabs3"> ! <Parameter name="items" default="{{./}}{{obj_name}}_items.php" /> <table class="tabs3-table" cellspacing="0" cellpadding="0"> ! <Repeat rs="{{obj_name}}_items"> <tr><td class="{{class}}"> <a href="javascript: tabs3_select('{{obj_id}}', '{{item}}')"> --- 1,6 ---- ! <webclass id="tabs3"> ! <parameter name="items" default="{{./}}{{obj_name}}_items.php" /> <table class="tabs3-table" cellspacing="0" cellpadding="0"> ! <repeat rs="{{obj_name}}_items"> <tr><td class="{{class}}"> <a href="javascript: tabs3_select('{{obj_id}}', '{{item}}')"> *************** *** 8,12 **** </a> </td></tr> ! </Repeat> </table> ! </WebClass> --- 8,12 ---- </a> </td></tr> ! </repeat> </table> ! </webclass> Index: tabs2.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs2.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** tabs2.html 25 Aug 2003 14:37:19 -0000 1.2 --- tabs2.html 21 Jul 2004 17:04:29 -0000 1.3 *************** *** 1,7 **** ! <WebClass ID="tabs2"> ! <Parameter name="items" default="{{./}}{{obj_name}}_items.php" /> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> ! <Repeat rs="{{obj_name}}_items"> <td class="{{class}}"> <a href="javascript: tabs2_select('{{obj_id}}', '{{item}}')"> --- 1,7 ---- ! <webclass id="tabs2"> ! <parameter name="items" default="{{./}}{{obj_name}}_items.php" /> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> ! <repeat rs="{{obj_name}}_items"> <td class="{{class}}"> <a href="javascript: tabs2_select('{{obj_id}}', '{{item}}')"> *************** *** 9,15 **** </a> </td> ! </Repeat> <td class="tabs2-empty"> </td> </tr> </table> ! </WebClass> --- 9,15 ---- </a> </td> ! </repeat> <td class="tabs2-empty"> </td> </tr> </table> ! </webclass> Index: tabs1.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs1.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** tabs1.html 25 Aug 2003 14:37:19 -0000 1.2 --- tabs1.html 21 Jul 2004 17:04:29 -0000 1.3 *************** *** 1,15 **** ! <WebClass ID="tabs1"> ! <Parameter name="items" default="{{./}}tabs1_items.php" /> <table cellspacing="0" cellpadding="0" border="0"> <tr> ! <Repeat rs="{{obj_name}}_items"> ! <td class="{{class}}"> ! <a href="javascript: tabs1_select('{{obj_id}}', '{{item}}')"> ! {{label}} ! </a> ! </td> ! <td width="3"></td> ! </Repeat> </tr> </table> ! </WebClass> --- 1,15 ---- ! <webclass id="tabs1"> ! <parameter name="items" default="{{./}}tabs1_items.php" /> <table cellspacing="0" cellpadding="0" border="0"> <tr> ! <repeat rs="{{obj_name}}_items"> ! <td class="{{class}}"> ! <a href="javascript: tabs1_select('{{obj_id}}', '{{item}}')"> ! {{label}} ! </a> ! </td> ! <td width="3"></td> ! </repeat> </tr> </table> ! </webclass> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:05:09
|
Update of /cvsroot/phpwebapp/web_app/webobjects/listbox In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2634/webobjects/listbox Modified Files: listbox.html Log Message: Index: listbox.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/listbox/listbox.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** listbox.html 15 Jul 2004 14:46:03 -0000 1.4 --- listbox.html 21 Jul 2004 17:04:30 -0000 1.5 *************** *** 1,18 **** ! <WebClass ID="listbox"> ! <Parameter name="rs" default="{{obj_id}}" /> ! <Parameter name="value" default="{{{{obj_name}}}}" /> ! <Parameter name="onchange" default="return false;" /> ! <Parameter name="width" default="" /> <select name="{{obj_name}}" id="{{obj_name}}" onchange="{{onchange}}"> ! <Repeat rs="{{rs}}"> ! <Var name="selected">('{{id}}'=='{{value}}' ? "selected" : "")</Var> ! <option value="{{id}}" {{selected}}>{{label}}</option> ! </Repeat> ! <If condition="'{{width}}'<>''"> ! <Var name="selected">('{{value}}'=='' ? "selected" : "")</Var> ! <option value="" {{selected}}>{{width}}</option> ! </If> </select> ! </WebClass> --- 1,18 ---- ! <webclass id="listbox"> ! <parameter name="rs" default="{{obj_id}}" /> ! <parameter name="value" default="{{{{obj_name}}}}" /> ! <parameter name="onchange" default="return false;" /> ! <parameter name="width" default="" /> <select name="{{obj_name}}" id="{{obj_name}}" onchange="{{onchange}}"> ! <repeat rs="{{rs}}"> ! <var name="selected">('{{id}}'=='{{value}}' ? "selected" : "")</var> ! <option value="{{id}}" selected="{{selected}}">{{label}}</option> ! </repeat> ! <if condition="'{{width}}'!=''"> ! <var name="selected">('{{value}}'=='' ? "selected" : "")</var> ! <option value="" selected="{{selected}}">{{width}}</option> ! </if> </select> ! </webclass> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:05:09
|
Update of /cvsroot/phpwebapp/web_app/webobjects/table In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2634/webobjects/table Modified Files: table.html Log Message: Index: table.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/table/table.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** table.html 14 Jul 2004 14:45:35 -0000 1.4 --- table.html 21 Jul 2004 17:04:30 -0000 1.5 *************** *** 1,20 **** ! <WebClass ID="table"> ! <Parameter name="table" default="{{obj_name}}" /> ! <Parameter name="fields" default="*" /> ! <Parameter name="where" default="" /> <br /> <table bgcolor="#aaaaaa" border="0" cellspacing="1" cellpadding="2"> <tr> ! <Repeat rs="{{table}}->fields"> <th bgcolor="#eeeeee"> {{fld_name}} </th> ! </Repeat> </tr> ! <Repeat rs="{{table}}->records"> <tr> ! <Repeat rs="{{table}}->fields"> ! <td bgcolor="white"> {{{{fld_name}}}} </td> ! </Repeat> </tr> ! </Repeat> </table> ! </WebClass> --- 1,20 ---- ! <webclass id="table"> ! <parameter name="table" default="{{obj_name}}" /> ! <parameter name="fields" default="*" /> ! <parameter name="where" default="" /> <br /> <table bgcolor="#aaaaaa" border="0" cellspacing="1" cellpadding="2"> <tr> ! <repeat rs="{{table}}->fields"> <th bgcolor="#eeeeee"> {{fld_name}} </th> ! </repeat> </tr> ! <repeat rs="{{table}}->records"> <tr> ! <repeat rs="{{table}}->fields"> ! <td bgcolor="white"> {{{{fld_name}}}} </td> ! </repeat> </tr> ! </repeat> </table> ! </webclass> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:05:08
|
Update of /cvsroot/phpwebapp/web_app/webobjects/xlistbox In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2634/webobjects/xlistbox Modified Files: xlistbox.html Log Message: Index: xlistbox.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/xlistbox/xlistbox.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** xlistbox.html 15 Jul 2004 14:46:03 -0000 1.5 --- xlistbox.html 21 Jul 2004 17:04:29 -0000 1.6 *************** *** 1,39 **** ! <WebClass ID="xlistbox"> ! <Parameter name="mainlist" default="false" /> ! <Parameter name="sublist" default="" /> ! <Parameter name="onchange" default="" /> ! <Parameter name="rs" default="{{obj_id}}" /> ! <Var name="refill_sublist"> ("{{sublist}}"=="" ? "" : "refill_sublist(this, '{{sublist}}')") ! </Var> ! <If condition="{{mainlist}}"> <select name="{{obj_name}}" id="{{obj_name}}" onchange="{{onchange}};{{refill_sublist}}"> <option value="">----------------</option> ! <Repeat rs="{{rs}}"> ! <Var name="SELECT"> ! ("{{{{obj_name}}}}"=="{{id}}" ? "selected" : "") ! </Var> ! <option value="{{id}}" {{SELECT}}> {{label}}</option> ! </Repeat> </select> ! </If> ! <If condition="!{{mainlist}}"> <select name="{{obj_name}}" id="{{obj_name}}" onchange="{{onchange}};{{refill_sublist}}"> <option value="">----------------</option> ! <Repeat rs="{{obj_name}}_listsize"> <option value=""></option> ! </Repeat> </select> <script type="text/javascript" language="javascript"> var arr_{{obj_name}} = new Array(); var item; ! <Repeat rs="{{rs}}"> item = {master_id:'{{master_id}}', id:'{{id}}', label:'{{label}}'}; arr_{{obj_name}}.push(item); ! </Repeat> </script> ! </If> ! </WebClass> --- 1,37 ---- ! <webclass id="xlistbox"> ! <parameter name="mainlist" default="false" /> ! <parameter name="sublist" default="" /> ! <parameter name="onchange" default="" /> ! <parameter name="rs" default="{{obj_id}}" /> ! <var name="refill_sublist"> ("{{sublist}}"=="" ? "" : "refill_sublist(this, '{{sublist}}')") ! </var> ! <if condition="{{mainlist}}"> <select name="{{obj_name}}" id="{{obj_name}}" onchange="{{onchange}};{{refill_sublist}}"> <option value="">----------------</option> ! <repeat rs="{{rs}}"> ! <var name="SELECT">("{{{{obj_name}}}}"=="{{id}}" ? "selected" : "")</var> ! <option value="{{id}}" selected="{{SELECT}}"> {{label}}</option> ! </repeat> </select> ! </if> ! <if condition="!{{mainlist}}"> <select name="{{obj_name}}" id="{{obj_name}}" onchange="{{onchange}};{{refill_sublist}}"> <option value="">----------------</option> ! <repeat rs="{{obj_name}}_listsize"> <option value=""></option> ! </repeat> </select> <script type="text/javascript" language="javascript"> var arr_{{obj_name}} = new Array(); var item; ! <repeat rs="{{rs}}"> item = {master_id:'{{master_id}}', id:'{{id}}', label:'{{label}}'}; arr_{{obj_name}}.push(item); ! </repeat> </script> ! </if> ! </webclass> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:04:59
|
Update of /cvsroot/phpwebapp/web_app/boxes/folderListing In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2634/boxes/folderListing Modified Files: folderListing.html Log Message: Index: folderListing.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/folderListing/folderListing.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** folderListing.html 14 Jul 2004 14:45:41 -0000 1.2 --- folderListing.html 21 Jul 2004 17:04:32 -0000 1.3 *************** *** 1,9 **** ! <WebBox ID="folderListing"> ! <Repeat rs="paths"> <a href="javascript: on_path('{{path}}')"> <span class="folderListing_path">{{folder}}</span> ! </a> ! / ! </Repeat> <br /> <a href="javascript: on_folderUp()"> --- 1,8 ---- ! <webbox id="folderListing"> ! <repeat rs="paths"> <a href="javascript: on_path('{{path}}')"> <span class="folderListing_path">{{folder}}</span> ! </a> / ! </repeat> <br /> <a href="javascript: on_folderUp()"> *************** *** 12,32 **** <a href="javascript: on_folderRoot()"> <span class="folderListing_up">Root</span> ! </a> ! <br /> ! <a href="javascript: on_folderUp()"> ! <span class="folderListing_folder">[+] ..</span> ! </a> ! <br /> ! <Repeat rs="folders"> <a href="javascript: on_folder('{{folder}}')"> <span class="folderListing_folder">[+] {{folder}}</span> ! </a> ! <br /> ! </Repeat> ! <Repeat rs="files"> <a href="javascript: on_file('{{file}}')"> <span class="folderListing_file">[-] {{file}}</span> ! </a> ! <br /> ! </Repeat> ! </WebBox> --- 11,27 ---- <a href="javascript: on_folderRoot()"> <span class="folderListing_up">Root</span> ! </a> <br /> ! <a href="javascript: on_folderUp()"> ! <span class="folderListing_folder">[+] ..</span> ! </a> <br /> ! <repeat rs="folders"> <a href="javascript: on_folder('{{folder}}')"> <span class="folderListing_folder">[+] {{folder}}</span> ! </a> <br /> ! </repeat> ! <repeat rs="files"> <a href="javascript: on_file('{{file}}')"> <span class="folderListing_file">[-] {{file}}</span> ! </a> <br /> ! </repeat> ! </webbox> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:04:58
|
Update of /cvsroot/phpwebapp/web_app/boxes/folderManager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2634/boxes/folderManager Modified Files: folderManager.html folderEditing.html Log Message: Index: folderManager.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/folderManager/folderManager.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** folderManager.html 22 Aug 2003 06:47:20 -0000 1.3 --- folderManager.html 21 Jul 2004 17:04:32 -0000 1.4 *************** *** 2,9 **** <tr> <td valign="top"> ! <Include SRC="{{FOLDERLISTING_PATH}}folderListing.html"/> </td> <td valign="top"> ! <Include SRC="{{./}}folderEditing.html"/> </td> </tr> --- 2,9 ---- <tr> <td valign="top"> ! <include src="{{FOLDERLISTING_PATH}}folderListing.html"/> </td> <td valign="top"> ! <include src="{{./}}folderEditing.html"/> </td> </tr> Index: folderEditing.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/folderManager/folderEditing.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** folderEditing.html 15 Jul 2004 14:46:04 -0000 1.4 --- folderEditing.html 21 Jul 2004 17:04:32 -0000 1.5 *************** *** 1,4 **** ! <WebBox ID="folderEditing"> ! <form name="folderEditing_Form" id="folderEditing_Form" onSubmit="return false;"> <table border="0" cellspacing="0" cellpadding="5"> <tr><td> --- 1,4 ---- ! <webbox id="folderEditing"> ! <form name="folderEditing_Form" id="folderEditing_Form" onsubmit="return false;"> <table border="0" cellspacing="0" cellpadding="5"> <tr><td> *************** *** 7,23 **** </td></tr> <tr><td> ! Rename folder: <input type="text" name="fromFolder" id="fromFolder" class="i125"> ! to: <input type="text" name="toFolder" id="toFolder" class="i125"> ! <input type="button" name="rename" id="rename" value="Rename" onClick="on_rename()"> </td></tr> <tr><td> ! Delete folder: <input type="text" name="delFolder" id="delFolder" class="i125"> ! <input type="button" name="delete" id="delete" value="Delete" onClick="on_delete()"> </td></tr> <tr><td> ! Add new folder: <input type="text" name="newFolder" id="newFolder" class="i125"> ! <input type="button" name="addNew" id="addNew" value="Add New" onClick="on_addNew()"> </td></tr> </table> </form> ! </WebBox> --- 7,23 ---- </td></tr> <tr><td> ! Rename folder: <input type="text" name="fromFolder" id="fromFolder" class="i125" /> ! to: <input type="text" name="toFolder" id="toFolder" class="i125" /> ! <input type="button" name="rename" id="rename" value="Rename" onclick="on_rename()" /> </td></tr> <tr><td> ! Delete folder: <input type="text" name="delFolder" id="delFolder" class="i125" /> ! <input type="button" name="delete" id="delete" value="Delete" onclick="on_delete()" /> </td></tr> <tr><td> ! Add new folder: <input type="text" name="newFolder" id="newFolder" class="i125" /> ! <input type="button" name="addNew" id="addNew" value="Add New" onclick="on_addNew()" /> </td></tr> </table> </form> ! </webbox> |
From: Dashamir H. <das...@us...> - 2004-07-21 17:04:58
|
Update of /cvsroot/phpwebapp/web_app/boxes/fileView In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2634/boxes/fileView Modified Files: viewUnknown.html viewPHP.html viewImage.html viewHtml.html fileView.html Log Message: Index: viewUnknown.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/fileView/viewUnknown.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** viewUnknown.html 21 Feb 2003 08:15:50 -0000 1.1.1.1 --- viewUnknown.html 21 Jul 2004 17:04:32 -0000 1.2 *************** *** 1,4 **** <!--# The files of unknown type are opened in a new browser window #--> ! <WebBox ID="viewUnknown"> <br /> This file is of unknown type and may not be displayed properly. <br /> --- 1,4 ---- <!--# The files of unknown type are opened in a new browser window #--> ! <webbox id="viewUnknown"> <br /> This file is of unknown type and may not be displayed properly. <br /> *************** *** 7,9 **** to see it in a new browser. <br /> ! </WebBox> --- 7,9 ---- to see it in a new browser. <br /> ! </webbox> Index: viewPHP.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/fileView/viewPHP.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** viewPHP.html 21 Feb 2003 08:15:50 -0000 1.1.1.1 --- viewPHP.html 21 Jul 2004 17:04:32 -0000 1.2 *************** *** 1,3 **** ! <WebBox ID="viewPHP"> ! </WebBox> --- 1,3 ---- ! <webbox id="viewPHP"> ! </webbox> Index: viewImage.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/fileView/viewImage.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** viewImage.html 14 Jul 2004 14:45:41 -0000 1.2 --- viewImage.html 21 Jul 2004 17:04:32 -0000 1.3 *************** *** 1,3 **** ! <WebBox ID="viewImage"> <img src="{{image_src}}" border="0" /> ! </WebBox> --- 1,3 ---- ! <webbox id="viewImage"> <img src="{{image_src}}" border="0" /> ! </webbox> Index: viewHtml.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/fileView/viewHtml.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** viewHtml.html 21 Feb 2003 08:15:50 -0000 1.1.1.1 --- viewHtml.html 21 Jul 2004 17:04:32 -0000 1.2 *************** *** 1,2 **** <!--# ToDo: change this #--> ! <Include SRC="{{fileView->file}}"/> --- 1,2 ---- <!--# ToDo: change this #--> ! <include src="{{fileView->file}}"/> Index: fileView.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/fileView/fileView.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** fileView.html 20 Aug 2003 07:07:56 -0000 1.3 --- fileView.html 21 Jul 2004 17:04:32 -0000 1.4 *************** *** 1,3 **** ! <WebBox ID="fileView"> ! <Include SRC="{{template}}"> ! </WebBox> --- 1,3 ---- ! <webbox id="fileView"> ! <include src="{{template}}" /> ! </webbox> |