phpwebapp-commits Mailing List for phpWebApp (Page 28)
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...> - 2003-08-22 20:09:05
|
Update of /cvsroot/phpwebapp/web_app/boxes/editMenus/sample_menu In directory sc8-pr-cvs1:/tmp/cvs-serv6393/boxes/editMenus/sample_menu Modified Files: sample_menu.php Log Message: modified a little bit the comments Index: sample_menu.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/editMenus/sample_menu/sample_menu.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** sample_menu.php 11 Aug 2003 16:17:52 -0000 1.3 --- sample_menu.php 22 Aug 2003 15:54:42 -0000 1.4 *************** *** 4,8 **** * @subpackage editMenus */ ! class sample_menu extends IWebApp { function onParse() --- 4,8 ---- * @subpackage editMenus */ ! class sample_menu extends WebObject { function onParse() |
From: Dashamir H. <das...@us...> - 2003-08-22 19:49:07
|
Update of /cvsroot/phpwebapp/web_app/database In directory sc8-pr-cvs1:/tmp/cvs-serv6237/database Removed Files: database.doc Log Message: old --- database.doc DELETED --- |
From: Dashamir H. <das...@us...> - 2003-08-22 16:27:34
|
Update of /cvsroot/phpwebapp/empty-sample In directory sc8-pr-cvs1:/tmp/cvs-serv12226 Log Message: An empty sample application, that contains the files and folders that can be used in a phpwebapp application. Status: Vendor Tag: dashohoxha Release Tags: release_01 N empty-sample/webapp.php N empty-sample/index.php N empty-sample/browse.php N empty-sample/global.php N empty-sample/init.php N empty-sample/after_page.php N empty-sample/before_page.php N empty-sample/config/const.Debug.php N empty-sample/config/const.Options.php N empty-sample/config/const.Paths.php N empty-sample/templates/main.html N empty-sample/templates/sample_webbox.php N empty-sample/graphics/home.png No conflicts created by this import ***** Bogus filespec: - Imported sources |
From: Dashamir H. <das...@us...> - 2003-08-22 16:22:21
|
Update of /cvsroot/phpwebapp/app3 In directory sc8-pr-cvs1:/tmp/cvs-serv10080 Log Message: Sample Application 3 (used for the third tutorial) Status: Vendor Tag: dashohoxha Release Tags: release_01 N app3/browse.php N app3/index.php N app3/webapp.php N app3/after_page.php N app3/before_page.php N app3/global.php N app3/init.php N app3/config/const.Debug.php N app3/config/const.Options.php N app3/config/const.Paths.php N app3/templates/page3.html N app3/templates/footer.html N app3/templates/header.html N app3/templates/page1.html N app3/templates/page1_content.html N app3/templates/page2.html N app3/templates/styles.css N app3/templates/tip/tip2.html N app3/templates/tip/tip.html N app3/templates/tip/tip1.html N app3/templates/tip/tip1.php N app3/templates/tip/tip4.php N app3/templates/tip/tip.php N app3/templates/tip/tip2.php N app3/templates/tip/tips.php N app3/templates/tip/tip3.html N app3/templates/tip/tip_styles.css N app3/templates/tip/tip4.html N app3/templates/tip/fun.get_random_tip.php N app3/templates/tip/tip3.php N app3/templates/menu/menu.js N app3/templates/menu/menu.php N app3/templates/menu/menu.html N app3/templates/menu/menu.css N app3/graphics/back.png N app3/graphics/home.png No conflicts created by this import ***** Bogus filespec: - Imported sources |
From: Dashamir H. <das...@us...> - 2003-08-22 06:51:22
|
Update of /cvsroot/phpwebapp/documentation In directory sc8-pr-cvs1:/tmp/cvs-serv4885 Modified Files: webapp.php browse.php ToDo.txt Log Message: Index: webapp.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/webapp.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** webapp.php 15 Aug 2003 09:01:58 -0000 1.3 --- webapp.php 22 Aug 2003 06:51:17 -0000 1.4 *************** *** 26,30 **** include WEBAPP_PATH."WebApp.php"; ! if ($event->targetPage==UNDEFINED) { //first time that the user enters in the application --- 26,30 ---- include WEBAPP_PATH."WebApp.php"; ! if (WebApp::first_time()) { //first time that the user enters in the application Index: browse.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/browse.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** browse.php 23 Feb 2003 14:29:07 -0000 1.2 --- browse.php 22 Aug 2003 06:51:17 -0000 1.3 *************** *** 1,5 **** <?php include "webapp.php"; WebApp::addVar("APP_STYLE", APP_URL."templates/styles.css"); WebApp::constructHtmlPage(BROWSER_PATH."fileBrowser.html"); ! ?> --- 1,14 ---- <?php include "webapp.php"; + + if (WebApp::first_time()) + { + $path = $_SERVER["QUERY_STRING"]; + WebApp::addSVar("folderListing->fileFilter", ".*"); + WebApp::addSVar("folderListing->root", APP_PATH); + WebApp::addSVar("folderListing->currentPath", $path); + } + WebApp::addVar("APP_STYLE", APP_URL."templates/styles.css"); WebApp::constructHtmlPage(BROWSER_PATH."fileBrowser.html"); ! ?> \ No newline at end of file Index: ToDo.txt =================================================================== RCS file: /cvsroot/phpwebapp/documentation/ToDo.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ToDo.txt 20 Aug 2003 07:33:55 -0000 1.3 --- ToDo.txt 22 Aug 2003 06:51:17 -0000 1.4 *************** *** 1,7 **** ! * Make sample apps 3, 4, 5 etc. ! * Update tutorial 2, add tutorials 3, 4, 5 etc. ! * Add a "Would you like to help improve this page." notice at the ! end of some pages. * Put summaries of the tutorials in separate files. * Review the code of web_app and improve the comments. --- 1,6 ---- ! * Make sample apps 4, 5 etc. ! * Write tutorials 4, 5 etc. ! * Put summaries of the tutorials in separate files. * Review the code of web_app and improve the comments. |
From: Dashamir H. <das...@us...> - 2003-08-22 06:51:22
|
Update of /cvsroot/phpwebapp/documentation/templates/tutorial In directory sc8-pr-cvs1:/tmp/cvs-serv4885/templates/tutorial Modified Files: weboxes.html templates.html Log Message: Index: weboxes.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/weboxes.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** weboxes.html 20 Aug 2003 07:33:55 -0000 1.3 --- weboxes.html 22 Aug 2003 06:51:17 -0000 1.4 *************** *** 2,11 **** <p>Explains what are WebBox-es and their differences with templates. ! The PHP code of the WebBox-es declares template {{#variables}} ! in the onRender() function, by using WebApp::addVar(). Gives some ! tips about good programming practices with WebBox-es. Shows how to ! debug them. Explains as well the files 'init.php', 'global.php', ! 'before_page.php', 'after_page.php' and the structure of the ! application.</p> <span class="button"> <a href="{{UP_URL}}app3/" target= "_blank">Test</a> --- 2,11 ---- <p>Explains what are WebBox-es and their differences with templates. ! The PHP code of the WebBox-es declares template <em>{{#variables}}</em> ! in the <em>onRender()</em> function, by using <em>WebApp::addVar()</em>. ! Gives some tips about good programming practices with WebBox-es. ! Introduces as well the files <em>init.php</em>, <em>global.php</em>, ! <em>before_page.php</em> and <em>after_page.php</em>.</p> ! <span class="button"> <a href="{{UP_URL}}app3/" target= "_blank">Test</a> *************** *** 33,36 **** --- 33,38 ---- <li><a href="#files">Files related to a WebBox</a></li> + + <li><a href="#differences">Differences with templates</a></li> </ol> </li> *************** *** 38,43 **** <li><a href="#tips">Tips about using WebBox-es</a></li> - <li><a href="#optional">Optional framework files</a></li> - <li><a href="#study">Study the sample application</a></li> --- 40,43 ---- *************** *** 46,67 **** <ol> ! <li><a href="#exercise_1">Modify page2.html and ! page3.html</a></li> ! ! <li><a href="#exercise_2">Rename folder <em>img</em> to ! <em>images</em></a></li> ! ! <li><a href="#exercise_3">Divide Page1 further into ! subtemplates</a></li> ! <li><a href="#exercise_4">Move Page1 to a new folder</a></li> ! <li><a href="#exercise_5">Change the styles of the ! page1_content</a></li> ! <li><a href="#exercise_6">Move template tpl_2.html and its ! related files to folder <em>page3/tpl_2/</em></a></li> ! <li><a href="#exercise_7">Think about it</a></li> </ol> </li> --- 46,61 ---- <ol> ! <li><a href="#exercise_1">Use webbox <em>menu</em> in application ! <em>app2</em></a></li> ! <li><a href="#exercise_2">Use webbox <em>tip</em> in application ! <em>app2</em></a></li> ! <li><a href="#exercise_3">Enable counting</a></li> ! <li><a href="#exercise_4">Test <em>before_page.php</em> and ! <em>after_page.php</em></a></li> ! <li><a href="#exercise_5">Modify the <em>tip</em> webbox</a></li> </ol> </li> *************** *** 159,447 **** <h4>3 - Files related to a WebBox</h4> ! <p>The templates may contain some special comments as well:</p> ! <pre> ! <!--# Framework comments #--> ! </pre> ! <p>These comments are like HTML comments but they have a diesis ! <strong>#</strong> at the opening and closing marks. These comments ! are not processed (are skiped, ignored) by the framework and are not ! displayed in the HTML page that is generated. ! <a href="javascript:codeReview('{{APP2_PATH}}templates/header.html','1-3')"> ! Example</a>.</p> ! <span class="button"><a href="#toc">TOC</a></span> ! <hr> ! <h3><a name="study">Study the sample</a></h3> ! <p>Here we will highlight and discuss some of the features of the ! sample application, so that we can understand it better.</p> ! <ul> ! <li>All the templates of the application are placed in the folder ! <em>/templates/</em>. We tell to the framework where to look for the ! templates by giving an appropriate value to the constant ! <strong>TPL_PATH</strong> ! in the file ! <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 ! <em>/img/</em>. In templates they are linked using the ! <strong>{{#IMG_URL}}</strong> variable. ! <a href="javascript:codeReview('{{APP2_PATH}}templates/footer.html','9,10')"> ! See</a> how it is used. The <strong>{{#IMG_URL}}</strong> template ! variable gets the value from the PHP constant <strong>IMG_URL</strong>, ! which is declared in the file ! <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 ! folder <em>/templates/page3/</em>. Organizing files into folders and ! subfolders reduces the complexity of the application and makes it ! easier to be understood and maintained. ! <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 ! <a href="javascript:codeReview('{{APP2_PATH}}templates/page1.html','7,9')"> ! page1.html</a>. If you want to change something in the footer of ! 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> ! the files of the application and see the templates <em>page1.html</em>, ! <em>header.html</em>, <em>footer.html</em>, <em>page1_content.html</em>. ! 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 ! the templates in the folder <em>/templates/page3/</em>. See them both in ! preview mode and in code view mode. These two pages are the same ! in terms of what they display, however they are implemented ! differently in the server. <em>page2.html</em> is implemented as a flat ! big HTML file, while <em>page3.html</em> is structured, divided into ! 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> ! <p>Before starting the exercises, make a copy of the application ! <em>app2</em> to the folder <em>test/app2</em>. If you have problems ! with doing this (e.g. <em>test/app2</em> doesn't work) then see the ! <a href="javascript:tabs3_select('tabs3::tutorial','transitions')"> ! first tutorial</a>, second exercise.</p> ! <a name="exercise_1"></a> ! <h4>1 - Modify page2.html and page3.html</h4> ! <p>Change to red the color of the tpl_2_1 box, and change the text ! inside it to "This box is red!".</p> ! <p>Modify page2.html:</p> ! <ol> ! <li>Open the file ! <a href="javascript:codeReview('{{APP2_PATH}}templates/page2.css','52,59')"> ! page2.css</a> and change the color in the highlighted lines to ! <em>red</em>.</li> ! <li>Open the file ! <a href="javascript:codeReview('{{APP2_PATH}}templates/page2.html','60')"> ! page2.html</a> and change the text in the highlighted lines to ! "This box is red!".</li> ! </ol> ! <p>Modify page3.html:</p> ! <ol> ! <li>Open the file <a href= ! "javascript:codeReview('{{APP2_PATH}}templates/page3/tpl_2_1.css','5,12','')"> ! tpl_2_1.css</a> and change the color in the highlighted lines to ! <em>red</em>.</li> ! <li>Open the file <a href= ! "javascript:codeReview('{{APP2_PATH}}templates/page3/tpl_2_1.html','5-6','')"> ! tpl_2_1.html</a> and change the text in the highlighted line to ! "This box is red!".</li> ! </ol> ! <p>Which of the pages do you think is easier to be modified?</p> ! <a name="exercise_2"></a> ! <h4>2 - Rename folder <em>img</em> to <em>images</em></h4> ! <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> ! <li>Change the value of the <strong>IMG_URL</strong> constant in the file ! <a href="javascript:codeReview('{{APP2_PATH}}config/const.Paths.php','6')"> ! const.Paths.php</a>. ! Reload the application. The images should be allright.</li> ! </ol> ! <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> ! <a name="exercise_3"></a> ! <h4>3 - Divide Page1 further into subtemplates</h4> ! <ol> ! <li>Open the file ! <a href="javascript:codeReview('{{APP2_PATH}}templates/page1_content.html','9-14')"> ! page1_content.html</a> and copy the selected lines to the file ! <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> ! </ol> ! <a name="exercise_4"></a> ! <h4>4 - Move Page1 to a new folder</h4> ! <p>If you make a listing of the folder <em>/templates/</em> you will see ! that now there are a lot of files in it and it has started to ! become messy. It would be better if we moved page1 files to another ! folder.</p> <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> ! <li>If you test the application now, you will get an error. Open the file ! <a href="javascript:codeReview('{{APP2_PATH}}config/const.Options.php','9-13')"> ! <em>config/const.Options.php</em></a> and change the value of the constant ! <strong>FIRSTPAGE</strong> to "page1/page1.html".</li> ! <li>If you test the application now, it will not be able to find ! the stylesheet and the header and footer templates. Open the file ! <a href="javascript:codeReview('{{APP2_PATH}}templates/page1.html','4,7,9','')"> ! <em>page1/page1.html</em></a> and replace <strong>{{#./}}</strong> ! with <strong>{{#TPL_URL}}</strong> for the stylesheet, and with ! <strong>{{#TPL_PATH}}</strong> for the templates, in the selected ! lines.</li> </ol> ! <a name="exercise_5"></a> ! <h4>5 - Change the styles of the page1_content</h4> <ol> ! <li>In the folder <em>/templates/page1/</em> create the file ! <em>page1_content.css</em> which has these lines: ! <pre> ! h4 { color: red } ! p { color: blue } ! </pre> ! </li> ! <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> ! <li>Test the application and notice the changes in page1.</li> ! </ol> ! <a name="exercise_6"></a> ! <h4>6 - Move template tpl_2.html to folder <em>page3/tpl_2/</em></h4> ! <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> ! <li>Open the file ! <a href="javascript:codeReview('{{APP2_PATH}}templates/page3/tmpl.html','11','')"> ! tmpl.html</a> and change the <strong>SRC</strong> attribute of the include ! tag to <kbd>{{#./}}tpl_2/tpl_2.html</kbd>.</li> ! <li>Test the application and go to page3. It should be displayed ! correctly.</li> </ol> ! <p>Do yourself these changes as well:</p> ! <ul> ! <li>Create a new folder <em>/templates/page2/</em> and move the files ! <em>page2.html</em> and <em>page2.css</em> to it.</li> ! <li>Create a new folder <em>/templates/page3/tpl_1</em> and move the ! files <em>tpl_1.html</em> and <em>tpl_1.css</em> to it.</li> ! <li>Create a new folder <em>/templates/page3/tpl_2/tpl_2_1</em> and move ! the files <em>tpl_2_1.html</em> and <em>tpl_2_1.css</em> to it.</li> ! <li>Create a new folder <em>/templates/page3/tpl_2/tpl_2_2</em> and move ! the files <em>tpl_2_2.html</em> and <em>tpl_2_2.css</em> to it.</li> ! </ul> ! <h4><a name="exercise_7">7 - Think about it</a></h4> ! <p>Suppose that you would like to add the current date at the top ! of each file (whithout using JavaScript, using PHP). How would you ! do it? Or, in general, how could you display something from PHP in ! the page?</p> ! <p><span class="button"><a href="#toc">TOC</a></span></p> ! <hr> --- 153,481 ---- <h4>3 - Files related to a WebBox</h4> ! <p>Besides the file that contains the template of the WebBox and the ! <strong>box_id.php</strong> that contains its <em>PHP</em> class, ! there may be other files as well that belong to the WebBox. These are: ! <strong>box_id.js</strong> that contains the JavaScript code of the ! WebBox, <strong>box_id.css</strong> that contains the stylesheet of ! the WebBox, etc. (we will see the others later). If the framework ! finds such files, it automatically 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. As an example, ! <a href="{{APP3_URL}}browse.php?templates/menu/" target="_blank"> ! see the files of the WebBox <em>menu</em></a>.</p> ! <p>Of these files, the template is the most important. There can be a ! WebBox without <em>JS</em> code or without <em>PHP</em> code, but ! there cannot be a WebBox without <em>TPL</em>(template) code.</p> ! <a name="differences"></a> ! <h4>4 - Differences with templates</h4> ! <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), ! <a href="javascript:codeReview('{{APP2_PATH}}templates/page3/tmpl.html','1')"> ! <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> ! <h3>Tips about using WebBox-es</h3> ! <ul> ! <li>There must not be two WebBox-es in the same web application ! with the same <strong>ID</strong>.</li> ! <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> ! <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>, ! <strong>.css</strong>, <strong>.db</strong>, etc.) must have the ! same name as the <strong>ID</strong> of the WebBox, otherwise the ! framework will not reckognize them as belonging to this WebBox.</li> ! <li>You can place more than one WebBox in a template file, however ! it is recomended to place each WebBox in a separate template, ! without other HTML code that does not belong to it. It is recomended ! to name this template <strong>box_id.html</strong>.</li> ! <li>It is recomended to place all the files related to a WebBox in a ! separate folder, for better readability and structure of the ! application.</li> ! <li>Never print anything from the PHP code, except maybe for ! debug!</li> ! <li>Never construct HTML code in the PHP, put all the HTML in the ! template instead!</li> ! <li>Assign to template variables only a value that is really a ! variable, what is not a variable should be placed in the ! template.</li> ! </ul> ! <p>Don't worry if you don't understand these last 3 tips, we will ! discuss them later.</p> ! <span class="button"><a href="#toc">TOC</a></span> ! <hr> ! <a name="study"></a> ! <h3>Study the sample application</h3> ! <p>Here we will highlight and discuss some of the features of the ! sample application, so that we can understand it better.</p> ! <ul> ! <li>The <em>menu</em> of pages now is implemented as a WebBox. ! <a href="{{APP3_URL}}browse.php?templates/menu/" target="_blank"> ! Have a look at its files</a>. Notice that ! <a href="javascript:codeReview('{{APP3_PATH}}templates/menu/menu.html')"> ! <em>menu.html</em></a> does not include explicitly the JS and CSS code ! of the <em>menu</em> (like templates) because it is done automatically ! by the framework. ! <br><br> ! </li> ! <li>Notice how are included several webboxes in ! <a href="javascript:codeReview('{{APP3_PATH}}templates/page2.html','22,25,28,31,34')"> ! <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> + <li><a href="{{APP3_URL}}browse.php?templates/tip/" target="_blank"> + Study</a> the different implementations of the <em>tip</em> webbox + 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> ! <li>The application has defined a constant TIP_PATH in ! <a href="javascript:codeReview('{{APP3_PATH}}config/const.Paths.php','8')"> ! <em>config/const.Paths.php</em></a> and then has used it in several ! places, like in ! <a href="javascript:codeReview('{{APP3_PATH}}templates/tip/tip.php','2')"> ! <em>tip.php</em></a>, ! <a href="javascript:codeReview('{{APP3_PATH}}templates/tip/fun.get_random_tip.php','9')"> ! <em>fun.get_random_tip.php</em></a>, etc. ! This is better than hardcoding paths, because in case that you move ! or rename this folder, you have to change just the value of a constant ! and not every occurrence of the path. ! <br><br> ! </li> ! <li>The framework outputs a wellcome message each time that you initiate ! the application. This is done using the function ! <strong>WebApp::message()</strong> in the file ! <a href="javascript:codeReview('{{APP3_PATH}}init.php','7')"> ! <em>init.php</em></a>. ! <br><br> ! </li> ! <li> ! The application has also support for counting clicks and displaying ! them, however it is optional. See how it is done: ! <a href="javascript:codeReview('{{APP3_PATH}}config/const.Options.php','51-55')"> ! <em>config/const.Options.php</em></a>, ! <a href="javascript:codeReview('{{APP3_PATH}}init.php','9-12')"> ! <em>init.php</em></a>, ! <a href="javascript:codeReview('{{APP3_PATH}}global.php','8-14')"> ! <em>global.php</em></a>. ! ! <ul> ! <li>The constant COUNT_CLICKS is not a framework constant, ! it is defined and used by the application.</li> ! <li>The functions <strong>WebApp::addSVar()</strong>, ! <strong>WebApp::getSVar()</strong>, ! <strong>WebApp::setSVar()</strong> are used to handle ! <strong>state variables</strong> (or session variables, ! or persistent variables). We will see more about state variables ! later.</li> ! <li> ! The files ! <a href="javascript:codeReview('{{APP3_PATH}}init.php')"> ! <em>init.php</em></a>, ! <a href="javascript:codeReview('{{APP3_PATH}}global.php')"> ! <em>global.php</em></a>, as well as ! <a href="javascript:codeReview('{{APP3_PATH}}before_page.php')"> ! <em>before_page.php</em></a> and ! <a href="javascript:codeReview('{{APP3_PATH}}after_page.php')"> ! <em>after_page.php</em></a> are optional. ! <dl> ! <dt><strong>init.php</strong></dt> ! <dd>This file is included by the framework only the first time that ! the application is openned (at the beginning of the session).It may ! be used to initialize anything.</dd> ! <dt><strong>global.php</strong></dt> ! <dd>This file is included every time, if it exists. It may contain ! functions, constants and variables that are used throughout the ! whole application. </dd> ! <dt><strong>before_page.php</strong></dt> ! <dd>This file is included before each page is parsed.</dd> ! <dt><strong>after_page.php</strong></dt> ! <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> ! application. ! </li> ! </ul> ! </li> ! </ul> ! <span class="button"><a href="#toc">TOC</a></span> ! <hr> ! <a name="exercises"></a> ! <h3>Exercises</h3> ! <p>Before starting the exercises, make a copy of the application ! <em>app2</em> to the folder <em>test/app2</em> and a copy of ! <em>app3</em> to the folder <em>test/app3</em>. If you have problems ! with doing this then see the ! <a href="javascript:tabs3_select('tabs3::tutorial','transitions')"> ! first tutorial</a>, second exercise.</p> ! <a name="exercise_1"></a> ! <h4>1 - Use webbox <em>menu</em> in application <em>app2</em></h4> <ol> ! <li><kbd>$ cd test/app2/templates</kbd></li> ! <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> ! <li>Refresh the application <em>app2</em> in browser.</li> </ol> + <p><strong>UP_PATH</strong> contains the path of the parent folder of the + application.</p> ! <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> ! ! <a name="exercise_2"></a> ! ! <h4>2 - Use webbox <em>tip</em> in application <em>app2</em></h4> <ol> ! <li><kbd>$ cd test/app2/templates</kbd></li> ! <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> ! <li>Refresh the application <em>app2</em> in browser. You will get an ! error, because the <em>TIP_PATH</em> constant is unknown in ! <em>app2</em>.</li> + <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')"> + fun.get_random_tip.php</a>.</li> ! <li>Refresh the application <em>app2</em> in browser. You will see that ! 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> ! <li>Refresh again the application. Finally it should be OK.</li> ! </ol> ! <p><em>__FILE__</em> is a PHP constant and <em>dirname()</em> is a PHP ! function.</p> ! <a name="exercise_3"></a> ! <h4>3 - Enable counting</h4> ! <ol> ! <li>Open the file ! <a href="javascript:codeReview('{{APP3_PATH}}config/const.Options.php','51-55')"> ! config/const.Options.php</a> and set the constant ! <em>COUNT_CLICKS</em> to <em>true</em>.</li> ! <li>Test the application and see what happens. Then make it <em>false</em> ! and test the application again.</li> </ol> ! <p><em>COUNT_CLICKS</em> is not a framework constant, it is defined and ! used by the application <em>app3</em>.</p> ! <a name="exercise_4"></a> ! <h4>4 - Test <em>before_page.php</em> and <em>after_page.php</em></h4> ! <ol> ! <li>Open the files ! <a href="javascript:codeReview('{{APP3_PATH}}before_page.php','6')"> ! before_page.php</a> and ! <a href="javascript:codeReview('{{APP3_PATH}}after_page.php','6')"> ! after_page.php</a> ! and uncomment the <em>print</em> statements.</li> ! <li>Test the application and see what happens. Then comment them again.</li> ! </ol> + <a name="exercise_5"></a> ! <h4>5 - Modify the <em>tip</em> webbox</h4> ! <ol> ! <li>Suppose that we don't want to display a random tip, but we want to ! display the tips in their order. So, when we first open the app we ! should see the first tip, and each time that we open another page ! we should see the next tip. When we are at the end of the tips we should ! start again from the beginning. Can you do it yourself? You can use ! 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> Index: templates.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/templates.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** templates.html 20 Aug 2003 07:33:55 -0000 1.5 --- templates.html 22 Aug 2003 06:51:17 -0000 1.6 *************** *** 365,368 **** --- 365,377 ---- <strong>{{#TPL_PATH}}</strong> for the templates, in the selected lines.</li> + + <li>There is still one more thing to fix: open + <a href="javascript:codeReview('{{APP2_PATH}}templates/footer.js','5-8')"> + <em>footer.js</em></a>, modify <em>goto_page1()</em> and set the + <em>GoTo()</em> parameter to "page1/page1.html".</li> + + <li>Don't forget to refresh or reload the browser, so that it gets the + change in <em>footer.js</em> (otherwise it may still use the cached, old + version).</li> </ol> |
From: Dashamir H. <das...@us...> - 2003-08-22 06:51:22
|
Update of /cvsroot/phpwebapp/documentation/config In directory sc8-pr-cvs1:/tmp/cvs-serv4885/config Modified Files: const.Paths.php Log Message: Index: const.Paths.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/config/const.Paths.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** const.Paths.php 15 Aug 2003 07:39:32 -0000 1.4 --- const.Paths.php 22 Aug 2003 06:51:17 -0000 1.5 *************** *** 1,17 **** <?php //constants of the paths in the application ! define("WEBAPP_PATH", UP_PATH."web_app/"); ! define("GRAPHICS", APP_URL."graphics/"); ! define("TPL_PATH", APP_PATH."templates/"); ! define("WOBJ_PATH", APP_PATH."webobjects/"); //define paths and URLs of the sample applications ! define("APP1_PATH", UP_PATH."app1/"); ! define("APP2_PATH", UP_PATH."app2/"); ! define("APP3_PATH", UP_PATH."app3/"); ! define("APP1_URL", UP_URL."app1/"); ! define("APP2_URL", UP_URL."app2/"); ! define("APP3_URL", UP_URL."app3/"); ?> --- 1,19 ---- <?php //constants of the paths in the application ! define("WEBAPP_PATH", UP_PATH."web_app/"); ! define("GRAPHICS", APP_URL."graphics/"); ! define("TPL_PATH", APP_PATH."templates/"); ! define("WOBJ_PATH", APP_PATH."webobjects/"); //define paths and URLs of the sample applications ! define("SAMPLE_PATH", UP_PATH."empty-sample/"); ! define("APP1_PATH", UP_PATH."app1/"); ! define("APP2_PATH", UP_PATH."app2/"); ! define("APP3_PATH", UP_PATH."app3/"); ! define("SAMPLE_URL", UP_URL."empty-sample/"); ! define("APP1_URL", UP_URL."app1/"); ! define("APP2_URL", UP_URL."app2/"); ! define("APP3_URL", UP_URL."app3/"); ?> |
From: Dashamir H. <das...@us...> - 2003-08-22 06:51:21
|
Update of /cvsroot/phpwebapp/documentation/templates/user_manual In directory sc8-pr-cvs1:/tmp/cvs-serv4885/templates/user_manual Modified Files: user_manual.html Added Files: notes.html Log Message: --- NEW FILE: notes.html --- <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 or in DocBook format, as flexible formats that can be converted easily into other formats (and maybe into each-other as well). Then, I would need a webbox that can display the manual in this page, either by reading it directly from the original format, or after processing it somehow. In order to do this, you should know well texinfo or DocBook formats, and you should also know how to construct a webbox with phpWebApp.</p> </div> <div class="note"> <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 rewrite them either in texinfo or in DocBook format? For this you should have some experience with phpWebApp and it is even better if you are interested on how it is implemented.</p> </div> Index: user_manual.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/user_manual/user_manual.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** user_manual.html 15 Aug 2003 07:37:29 -0000 1.3 --- user_manual.html 22 Aug 2003 06:51:17 -0000 1.4 *************** *** 3,8 **** --- 3,11 ---- <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> |
From: Dashamir H. <das...@us...> - 2003-08-22 06:51:21
|
Update of /cvsroot/phpwebapp/documentation/templates In directory sc8-pr-cvs1:/tmp/cvs-serv4885/templates Modified Files: styles.css developer_docs.html Log Message: Index: styles.css =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/styles.css,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** styles.css 20 Aug 2003 07:31:55 -0000 1.4 --- styles.css 22 Aug 2003 06:51:17 -0000 1.5 *************** *** 52,53 **** --- 52,76 ---- } + .note + { + margin: 20px; + display: block; + border: 1px solid #dd0000; + padding: 5px; + background-color: #ffffcc; + font-family: arial, helvetica, sans-se; + font-size: 12pt; + color: #000000; + } + .note a + { + font-size: 12pt; + text-decoration: none; + color: #0000ff; + } + .note .title + { + font-size: 12pt; + color: #ee0000; + text-decoration: underline; + } Index: developer_docs.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/developer_docs.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** developer_docs.html 15 Aug 2003 08:13:25 -0000 1.2 --- developer_docs.html 22 Aug 2003 06:51:17 -0000 1.3 *************** *** 7,11 **** [ Petal | XMI ! | <a href="{{APP_URL}}uml_model/phpWebApp.html" target="new">HTML Online</a> | HTML Download ] </li> --- 7,11 ---- [ Petal | XMI ! | <a href="{{APP_URL}}external/uml_model/index.html" target="_blank">HTML Online</a> | HTML Download ] </li> |
From: Dashamir H. <das...@us...> - 2003-08-22 06:48:13
|
Update of /cvsroot/phpwebapp/web_app In directory sc8-pr-cvs1:/tmp/cvs-serv4508 Modified Files: class.WebApp.php Log Message: Index: class.WebApp.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/class.WebApp.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** class.WebApp.php 20 Aug 2003 07:07:56 -0000 1.10 --- class.WebApp.php 22 Aug 2003 06:48:09 -0000 1.11 *************** *** 1,3 **** --- 1,23 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + /** * Contains some functions that are used frequently in the application. *************** *** 9,14 **** class WebApp { ! function callFreeEvent(&$event) { $file_name = "on.".$event->name.".php"; $fun_name = "on_".$event->name; --- 29,53 ---- class WebApp { ! /** ! * Returns true only the first time that the application ! * is opened, at the begining of the session. ! */ ! function first_time() ! { ! global $request; ! return $request->firstTime; ! } ! ! /** ! * A free event has target 'none', doesn't have a target webobject, ! * so no webobject can handle it. Instead, it is handled by the ! * function on_eventName($event), that is in the file 'on.eventName.php', ! * which is placed in the same folder as the target page or the source ! * page of the event. ! */ ! function callFreeEvent() { + global $event; + $file_name = "on.".$event->name.".php"; $fun_name = "on_".$event->name; *************** *** 19,23 **** if (file_exists($fname)) { ! include $fname; $fun_name($event); return; --- 58,62 ---- if (file_exists($fname)) { ! include_once $fname; $fun_name($event); return; *************** *** 29,42 **** if (file_exists($fname)) { ! include $fname; ! $fun_name($event); ! return; ! } ! ! //look for the event handler in the common path ! $fname = EVENTHANDLER_PATH.$file_name; ! if (file_exists($fname)) ! { ! include $fname; $fun_name($event); return; --- 68,72 ---- if (file_exists($fname)) { ! include_once $fname; $fun_name($event); return; *************** *** 47,52 **** } ! /*------ begin construct page functions ---------*/ ! /** constructs an HTML page which is sent directly to the browser */ function constructHtmlPage($tpl_file, $collect =false) { --- 77,87 ---- } ! /*----------- begin construct page functions --------------*/ ! ! /** ! * Constructs an HTML page which is sent directly to the browser. ! * If $collect is true, however, instead of sending the page to ! * the browser, it returns it as a big string. ! */ function constructHtmlPage($tpl_file, $collect =false) { *************** *** 93,113 **** /** ! * constructs an HTML page and returns it as a string, ! * then resumes constructing the previous page ! * (it is useful when you want to construct a page ! * for sending it by e-mail) */ function getHtmlPage($tpl_file) { ! global $webPage; //save the current webPage and whatever //is already constructed in it $old_webPage = $webPage; //create a new web page in the global variable $webPage $webPage = new WebPage; ! $collect = true; //construct it into the $html_page variable $html_page = WebApp::constructHtmlPage($tpl_file, $collect); --- 128,151 ---- /** ! * Constructs an HTML page and returns it as a string. ! * Then resumes constructing the previous page. ! * It is useful when you want to construct a page ! * for sending it by e-mail. */ function getHtmlPage($tpl_file) { ! global $webPage, $tplVars; //save the current webPage and whatever //is already constructed in it $old_webPage = $webPage; + $old_tplVars = $tplVars; //create a new web page in the global variable $webPage $webPage = new WebPage; ! $tplVars = new VarStack; ! //construct it into the $html_page variable + $collect = true; $html_page = WebApp::constructHtmlPage($tpl_file, $collect); *************** *** 115,118 **** --- 153,157 ---- //and continue with its construction $webPage = $old_webPage; + $tplVars = $old_tplVars; //return the constructed page *************** *** 121,129 **** /** ! * this function stops loading the current page ! * and starts loading and constructing the given page; ! * if no page is given, reloads the same page again */ ! function reloadPage($tpl_file=UNDEFINED) //doesn't work, see how to fix it { global $webPage; --- 160,170 ---- /** ! * This function stops loading the current page ! * and starts loading and constructing the given page. ! * If no page is given, reloads the same page again. ! * ! * @todo It doesn't work yet, see how to fix it. */ ! function reloadPage($tpl_file=UNDEFINED) { global $webPage; *************** *** 138,144 **** --- 179,191 ---- $webPage->load($tpl_file); } + /*------ end construct functions ----------------*/ /*------ begin variable functions ---------------*/ + + /** + * Add a template variable in the current scope + * (for the current webbox or template). + */ function addVar($var_name, $var_value) { *************** *** 147,150 **** --- 194,201 ---- } + /** + * Add a template variable in the global scope; + * it will be available in all the application templates. + */ function addGlobalVar($var_name, $var_value) { *************** *** 153,157 **** } ! /** declares a list of variables at once */ function addVars($arrVars) { --- 204,211 ---- } ! /** ! * Add a list (associative array) of template variables ! * at once. ! */ function addVars($arrVars) { *************** *** 160,164 **** } ! /** declares a list of variables at once */ function addGlobalVars($arrVars) { --- 214,218 ---- } ! /** Add a list of global template variables at once */ function addGlobalVars($arrVars) { *************** *** 167,171 **** } ! /** returns the value of the variable, or UNDEFINED if not found */ function getVar($var_name) { --- 221,228 ---- } ! /** ! * Returns the value of a template variable, ! * or UNDEFINED if such a variable does not exist. ! */ function getVar($var_name) { *************** *** 174,177 **** --- 231,235 ---- } + /** Add a session variable. */ function addSVar($var_name, $var_value, $db =false) { *************** *** 180,184 **** } ! /** set state variable */ function setSVar($var_name, $var_value) { --- 238,242 ---- } ! /** Set a new value to a session variable. */ function setSVar($var_name, $var_value) { *************** *** 201,205 **** } ! /** get state variable */ function getSVar($var_name) { --- 259,263 ---- } ! /** Get the value of a session variable. */ function getSVar($var_name) { *************** *** 210,215 **** /** ! * returns the web object with the given id ! * or UNDEFINED */ function getObject($obj_id) --- 268,273 ---- /** ! * Returns the web object with the given id, ! * or UNDEFINED. */ function getObject($obj_id) *************** *** 223,227 **** /*------ begin evaluate ------------------------*/ ! /** returns the value of the expression $expr */ function evaluate($expr) { --- 281,286 ---- /*------ begin evaluate ------------------------*/ ! ! /** Returns the value of the given expression. */ function evaluate($expr) { *************** *** 236,253 **** } /** ! * used by evaluate; returns an array with all the variable ! * names that are used in $expr (which will be declared as global) */ function get_var_names($expr) { - //this trick is done because ereg - //does not handle well the character '$' - $expr = str_replace("$", "###", $expr); - $var_names = array(); ! while ( ereg("###([[:alnum:]_]*)", $expr, $regs) ) { ! $var_names[] = "\$".$regs[1]; ! $expr = str_replace($regs[0], "", $expr); } return $var_names; --- 295,309 ---- } /** ! * Returns an array with all the variable names that are used ! * in the given $expr. Called by evaluate() (which will be declared ! * these variables as global). */ function get_var_names($expr) { $var_names = array(); ! while ( ereg('\$[[:alnum:]_]+', $expr, $regs) ) { ! $var_names[] = $regs[0]; ! $expr = str_replace($regs[0], '', $expr); } return $var_names; *************** *** 256,263 **** /** ! * Returns the value of a variable by looking first at ! * $tplVars, and then at $session vars, ! * then at PHP constants, and finally at PHP global variables; ! * if this variable is not found, returns the var_name itself */ function getVarValue($var_name) --- 312,319 ---- /** ! * Returns the value of a variable by looking first at $tplVars, ! * and then at $session vars, then at PHP constants, and finally ! * at PHP global variables. If this variable is not found, ! * returns the constant VAR_NOT_FOUND. */ function getVarValue($var_name) *************** *** 292,298 **** } ! //if still not found return the variable name itself $var_value = str_replace("var_name", $var_name, VAR_NOT_FOUND); - //$var_value = "{".$var_name."}"; return $var_value; } --- 348,353 ---- } ! //if still not found return the constant VAR_NOT_FOUND $var_value = str_replace("var_name", $var_name, VAR_NOT_FOUND); return $var_value; } *************** *** 327,332 **** } /** ! * gets the quote which surrounds the $var_name ! * single, double, or none */ function get_quote($var_name) --- 382,387 ---- } /** ! * Get the quote which surrounds the $var_name: ! * single, double, or none. */ function get_quote($var_name) *************** *** 348,352 **** return array($var_name, $quote); } ! /** escapes all the quotes in the $var_value */ function escape_quotes($var_value, $quote) { --- 403,407 ---- return array($var_name, $quote); } ! /** Escape all the quotes in the $var_value. */ function escape_quotes($var_value, $quote) { *************** *** 373,377 **** /*------ begin DB functions -------------------*/ ! /** executes the query and returns a Recordset */ function execQuery($query, $conn =UNDEFINED) { --- 428,436 ---- /*------ begin DB functions -------------------*/ ! ! /** ! * Execute the given query. ! * @return Recordset ! */ function execQuery($query, $conn =UNDEFINED) { *************** *** 382,387 **** /** ! * opens the given table and returns the records that ! * satisfy the given $condition; returns a TableRS */ function openTable($tbl_name, $condition ="(1=1)", $conn =UNDEFINED) --- 441,447 ---- /** ! * Open the given table and return the records that ! * satisfy the given $condition. ! * @return TableRS */ function openTable($tbl_name, $condition ="(1=1)", $conn =UNDEFINED) *************** *** 394,400 **** /** ! * executes the DB command with the given id ! * returns TRUE or FALSE indicating success or failure ! * $params is an array of {{vars}} that are used in the query */ function execDBCmd($cmd_id, $params =array()) --- 454,460 ---- /** ! * Execute the DB command with the given id. ! * $params is an array of {{vars}} that are used in the query. ! * Returns TRUE or FALSE indicating success or failure. */ function execDBCmd($cmd_id, $params =array()) *************** *** 417,422 **** /** ! * opens and returns the recordset with the given id ! * $params is an array of {{vars}} that are used in the query */ function openRS($rs_id, $params =array()) --- 477,483 ---- /** ! * Open and return the recordset with the given id. ! * $params is an array of {{vars}} that are used in the query. ! * @return Recordset */ function openRS($rs_id, $params =array()) *************** *** 443,447 **** /*------ mix functions ------------------------*/ ! /** takes a path and returns the corresponding url */ function to_url($path) { --- 504,508 ---- /*------ mix functions ------------------------*/ ! /** Convert the given path to url. */ function to_url($path) { *************** *** 451,454 **** --- 512,520 ---- } + /** + * Construct and return a link that can be used to access + * from outside a certain page of the application, in a certain + * state. + */ function get_external_link() { *************** *** 465,468 **** --- 531,535 ---- } + /** Display a pop-up message box to the user. */ function message($msg) { *************** *** 471,474 **** --- 538,542 ---- } + /** Output a debug message. */ function debug_msg($dbg_msg, $comment ="") { *************** *** 477,481 **** } ! /** formats and returns an error message */ function error_msg($err_msg) { --- 545,549 ---- } ! /** Format and return an error message. */ function error_msg($err_msg) { *************** *** 488,492 **** } ! /** formats and returns a warning message */ function warning_msg($warn_msg) { --- 556,560 ---- } ! /** Format and return a warning message. */ function warning_msg($warn_msg) { |
From: Dashamir H. <das...@us...> - 2003-08-22 06:47:31
|
Update of /cvsroot/phpwebapp/web_app/tools/fileBrowser In directory sc8-pr-cvs1:/tmp/cvs-serv4302/tools/fileBrowser Modified Files: sample.html panel.html folder.html file.php file.html Log Message: Index: sample.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/tools/fileBrowser/sample.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** sample.html 16 Jul 2003 09:27:59 -0000 1.2 --- sample.html 22 Aug 2003 06:47:20 -0000 1.3 *************** *** 1,9 **** <table width="402" border="0" cellspacing="0" cellpadding="1"> ! <tr><td bgcolor="#000055" align="left"> ! <table width="400" height="200" border="0" cellspacing="0" cellpadding="5" bgcolor="white"> ! <tr><td align="center" valign="middle"> ! <div class="strong">Sample Template File</div> ! </td></tr> ! </table> ! </td></tr> </table> --- 1,9 ---- <table width="402" border="0" cellspacing="0" cellpadding="1"> ! <tr><td bgcolor="#000055" align="left"> ! <table width="400" height="200" border="0" cellspacing="0" cellpadding="5" bgcolor="white"> ! <tr><td align="center" valign="middle"> ! <div class="strong">Sample Template File</div> ! </td></tr> ! </table> ! </td></tr> </table> Index: panel.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/tools/fileBrowser/panel.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** panel.html 21 Feb 2003 08:17:01 -0000 1.1.1.1 --- panel.html 22 Aug 2003 06:47:20 -0000 1.2 *************** *** 4,32 **** <table border="0" cellspacing="0" cellpadding="1" bgcolor="white"> <tr> ! <form name="changeViewForm" onsubmit="return false;"> ! <td width="17%" nowrap="true" valign="top"> ! <input type="checkbox" name="hide" class="checkbox"><span class="font">Hide Folder Box</span><br> ! <input type="button" name="refresh" value="Refresh" class="button" onclick="on_refresh()"> ! </td> ! <td width="17%" nowrap="true" valign="top"> ! <input type="radio" name="viewMode" value="codeView" class="radio" {{codeView_checked}}><span class="font">Code View</span> <br> ! <input type="radio" name="viewMode" value="preview" class="radio" {{preview_checked}}><span class="font">Preview</span> ! </td> ! <td bgcolor="#006633"></td> ! <td width="10%" nowrap="true" valign="top" align="right"> ! <span class="font">Change Session:</span> <br> ! <input type="button" name="changeSess" value="Change" class="button" onclick="on_changeSess()"> ! </td> ! <td width="20%" nowrap="true" valign="top"> ! <input type="text" name="var_name" class="text" size="15"> <br> ! <input type="text" name="var_value" class="text" size="15"> ! </td> ! <td bgcolor="#006633"></td> ! <td width="40%" nowrap="true"> ! <span class="font">Root Folder:</span> <br> ! <input type="text" name="root_folder" class="text" value="{{folderListing->root}}" size="30"> ! <input type="button" name="changePath" value="GO" class="button" onclick="on_changePath()"> ! </td> ! </form> </tr> </table> --- 4,32 ---- <table border="0" cellspacing="0" cellpadding="1" bgcolor="white"> <tr> ! <form name="changeViewForm" onsubmit="return false;"> ! <td width="17%" nowrap="true" valign="top"> ! <input type="checkbox" name="hide" class="checkbox"><span class="font">Hide Folder Box</span><br> ! <input type="button" name="refresh" value="Refresh" class="button" onclick="on_refresh()"> ! </td> ! <td width="17%" nowrap="true" valign="top"> ! <input type="radio" name="viewMode" value="codeView" class="radio" {{codeView_checked}}><span class="font">Code View</span> <br> ! <input type="radio" name="viewMode" value="preview" class="radio" {{preview_checked}}><span class="font">Preview</span> ! </td> ! <td bgcolor="#006633"></td> ! <td width="10%" nowrap="true" valign="top" align="right"> ! <span class="font">Change Session:</span> <br> ! <input type="button" name="changeSess" value="Change" class="button" onclick="on_changeSess()"> ! </td> ! <td width="20%" nowrap="true" valign="top"> ! <input type="text" name="var_name" class="text" size="15"> <br> ! <input type="text" name="var_value" class="text" size="15"> ! </td> ! <td bgcolor="#006633"></td> ! <td width="40%" nowrap="true"> ! <span class="font">Root Folder:</span> <br> ! <input type="text" name="root_folder" class="text" value="{{folderListing->root}}" size="30"> ! <input type="button" name="changePath" value="GO" class="button" onclick="on_changePath()"> ! </td> ! </form> </tr> </table> Index: folder.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/tools/fileBrowser/folder.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** folder.html 16 Jul 2003 09:27:59 -0000 1.2 --- folder.html 22 Aug 2003 06:47:20 -0000 1.3 *************** *** 1,15 **** <!--# Folder Box #--> <table width="100%" border="0" cellspacing="0" cellpadding="1"> ! <tr bgcolor="#006633"> ! <td> ! <div class="title">Folder</div> ! </td> ! </tr> ! <tr><td bgcolor="#006633" align="left"> ! <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> ! </td></tr> </table> --- 1,15 ---- <!--# Folder Box #--> <table width="100%" border="0" cellspacing="0" cellpadding="1"> ! <tr bgcolor="#006633"> ! <td> ! <div class="title">Folder</div> ! </td> ! </tr> ! <tr><td bgcolor="#006633" align="left"> ! <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> ! </td></tr> </table> Index: file.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/tools/fileBrowser/file.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** file.php 11 Aug 2003 16:17:51 -0000 1.3 --- file.php 22 Aug 2003 06:47:20 -0000 1.4 *************** *** 15,18 **** --- 15,25 ---- { $tpl_file = WebApp::getSVar("fileView->file"); + $this->load_cfg_file($tpl_file); + $file = ereg_replace("^".APP_PATH, '', $tpl_file); + WebApp::addVar("file", $file); + } + + function load_cfg_file($tpl_file) + { $path = dirname($tpl_file); $fname = basename($tpl_file); Index: file.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/tools/fileBrowser/file.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** file.html 16 Jul 2003 09:27:59 -0000 1.2 --- file.html 22 Aug 2003 06:47:20 -0000 1.3 *************** *** 2,21 **** <WebBox ID="file"> <table width="100%" border="0" cellspacing="0" cellpadding="1"> ! <tr bgcolor="#006633"> ! <td> ! <div class="title">File: '{{fileView->file}}'</div> ! </td> ! </tr> ! <tr><td bgcolor="#006633"> ! <table width="100%" border="0" cellspacing="0" cellpadding="3" bgcolor="white"> ! <tr><td align="left"> ! <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> --- 2,21 ---- <WebBox ID="file"> <table width="100%" border="0" cellspacing="0" cellpadding="1"> ! <tr bgcolor="#006633"> ! <td> ! <div class="title">File: '{{file}}'</div> ! </td> ! </tr> ! <tr><td bgcolor="#006633"> ! <table width="100%" border="0" cellspacing="0" cellpadding="3" bgcolor="white"> ! <tr><td align="left"> ! <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...> - 2003-08-22 06:47:28
|
Update of /cvsroot/phpwebapp/web_app/boxes/folderManager In directory sc8-pr-cvs1:/tmp/cvs-serv4302/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.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** folderManager.html 16 Jul 2003 09:27:59 -0000 1.2 --- folderManager.html 22 Aug 2003 06:47:20 -0000 1.3 *************** *** 1,10 **** <table border="1" cellspacing="0" cellpadding="10"> ! <tr> ! <td valign="top"> ! <Include SRC="{{FOLDERLISTING_PATH}}folderListing.html"/> ! </td> ! <td valign="top"> ! <Include SRC="{{./}}folderEditing.html"/> ! </td> ! </tr> </table> --- 1,10 ---- <table border="1" cellspacing="0" cellpadding="10"> ! <tr> ! <td valign="top"> ! <Include SRC="{{FOLDERLISTING_PATH}}folderListing.html"/> ! </td> ! <td valign="top"> ! <Include SRC="{{./}}folderEditing.html"/> ! </td> ! </tr> </table> Index: folderEditing.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/folderManager/folderEditing.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** folderEditing.html 16 Jul 2003 09:27:59 -0000 1.2 --- folderEditing.html 22 Aug 2003 06:47:20 -0000 1.3 *************** *** 2,22 **** <form name="folderEditing_Form" onSubmit="return false;"> <table border="0" cellspacing="0" cellpadding="5"> ! <tr><td> ! Current folder: <b>{{folderListing.currentPath}}</b> ! <p> ! </td></tr> ! <tr><td> ! Rename folder: <input type="text" name="fromFolder" class="i125"> ! to: <input type="text" name="toFolder" class="i125"> ! <input type="button" name="rename" value="Rename" onClick="on_rename()"> ! </td></tr> ! <tr><td> ! Delete folder: <input type="text" name="delFolder" class="i125"> ! <input type="button" name="delete" value="Delete" onClick="on_delete()"> ! </td></tr> ! <tr><td> ! Add new folder: <input type="text" name="newFolder" class="i125"> ! <input type="button" name="addNew" value="Add New" onClick="on_addNew()"> ! </td></tr> </table> </form> --- 2,22 ---- <form name="folderEditing_Form" onSubmit="return false;"> <table border="0" cellspacing="0" cellpadding="5"> ! <tr><td> ! Current folder: <b>{{folderListing.currentPath}}</b> ! <p> ! </td></tr> ! <tr><td> ! Rename folder: <input type="text" name="fromFolder" class="i125"> ! to: <input type="text" name="toFolder" class="i125"> ! <input type="button" name="rename" value="Rename" onClick="on_rename()"> ! </td></tr> ! <tr><td> ! Delete folder: <input type="text" name="delFolder" class="i125"> ! <input type="button" name="delete" value="Delete" onClick="on_delete()"> ! </td></tr> ! <tr><td> ! Add new folder: <input type="text" name="newFolder" class="i125"> ! <input type="button" name="addNew" value="Add New" onClick="on_addNew()"> ! </td></tr> </table> </form> |
From: Dashamir H. <das...@us...> - 2003-08-22 06:47:28
|
Update of /cvsroot/phpwebapp/web_app/webobjects/dbTable In directory sc8-pr-cvs1:/tmp/cvs-serv4302/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.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** editRecord.html 16 Jul 2003 09:27:59 -0000 1.2 --- editRecord.html 22 Aug 2003 06:47:19 -0000 1.3 *************** *** 6,14 **** <tr> <td bgcolor="#eeeeee" align="right"> ! {{fld_name}}: </td> <td> ! <input type="text" class="editRecord_field" ! name="{{fld_name}}" value="{{{{fld_name}}}}"> </td> <tr> --- 6,14 ---- <tr> <td bgcolor="#eeeeee" align="right"> ! {{fld_name}}: </td> <td> ! <input type="text" class="editRecord_field" ! name="{{fld_name}}" value="{{{{fld_name}}}}"> </td> <tr> Index: dbTable.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/dbTable/dbTable.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** dbTable.html 11 Aug 2003 16:17:51 -0000 1.3 --- dbTable.html 22 Aug 2003 06:47:19 -0000 1.4 *************** *** 13,25 **** <If condition="{{editable}}"> <th bgcolor="#eeeeee"> ! <a href="javascript: dbTable_rmAll('{{obj_id}}')">X</a> </th> <th bgcolor="#eeeeee"> ! <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}}')"><img border="0" src="{{GRAPHICS}}blue_tri.png"></a> </th> </If> --- 13,25 ---- <If condition="{{editable}}"> <th bgcolor="#eeeeee"> ! <a href="javascript: dbTable_rmAll('{{obj_id}}')">X</a> </th> <th bgcolor="#eeeeee"> ! <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}}')"><img border="0" src="{{GRAPHICS}}blue_tri.png"></a> </th> </If> *************** *** 30,52 **** <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> ! </td> ! <td bgcolor="{{bgcolor}}"> ! <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}}')"> ! <img border="0" src="{{./}}select.png"> ! </a> ! </td> </If> <Repeat rs="{{table}}->fields"> ! <td bgcolor="{{bgcolor}}"> {{{{fld_name}}}} </td> </Repeat> </tr> --- 30,52 ---- <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> ! </td> ! <td bgcolor="{{bgcolor}}"> ! <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}}')"> ! <img border="0" src="{{./}}select.png"> ! </a> ! </td> </If> <Repeat rs="{{table}}->fields"> ! <td bgcolor="{{bgcolor}}"> {{{{fld_name}}}} </td> </Repeat> </tr> |
From: Dashamir H. <das...@us...> - 2003-08-22 06:47:28
|
Update of /cvsroot/phpwebapp/web_app/boxes/editMenus/sample_menu/menu_data In directory sc8-pr-cvs1:/tmp/cvs-serv4302/boxes/editMenus/sample_menu/menu_data Modified Files: menubar.html Log Message: Index: menubar.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/editMenus/sample_menu/menu_data/menubar.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** menubar.html 16 Jul 2003 09:27:59 -0000 1.2 --- menubar.html 22 Aug 2003 06:47:20 -0000 1.3 *************** *** 1,39 **** <link rel='stylesheet' type='text/css' href='{{./}}menubar.css'> <table class='menubar_table'> ! <tr class='menubar_tr'> ! <td class='topElem_td'> ! <a href='javascript: Personal_1' ! onMouseOver='popUp("elMenu1",event)' ! onMouseOut='popDown("elMenu1")'> ! <span class='topElem_descr'>Personal_1</span> ! </a> ! </td> ! <td class='topElem_td'> ! <a href='javascript: Personal_2' ! onMouseOver='popUp("elMenu2",event)' ! onMouseOut='popDown("elMenu2")'> ! <span class='topElem_descr'>Personal_2</span> ! </a> ! </td> ! <td class='topElem_td'> ! <a href='javascript: Personal_3' ! onMouseOver='popUp("elMenu3",event)' ! onMouseOut='popDown("elMenu3")'> ! <span class='topElem_descr'>Personal_3</span> ! </a> ! </td> ! <td class='topElem_td'> ! <a href='javascript: Personal_4' ! onMouseOver='popUp("elMenu4",event)' ! onMouseOut='popDown("elMenu4")'> ! <span class='topElem_descr'>Personal_4</span> ! </a> ! </td> ! ! <td class='topElem_td'> ! <a href='javascript: Personal_5'> ! <span class='topElem_descr'>Personal_5</span> ! </a> ! </td> </tr> </table> --- 1,40 ---- <link rel='stylesheet' type='text/css' href='{{./}}menubar.css'> <table class='menubar_table'> ! <tr class='menubar_tr'> ! <td class='topElem_td'> ! <a href='javascript: Personal_1' ! onMouseOver='popUp("elMenu1",event)' ! onMouseOut='popDown("elMenu1")'> ! <span class='topElem_descr'>Personal_1</span> ! </a> ! </td> ! <td class='topElem_td'> ! <a href='javascript: Personal_2' ! onMouseOver='popUp("elMenu2",event)' ! onMouseOut='popDown("elMenu2")'> ! <span class='topElem_descr'>Personal_2</span> ! </a> ! </td> ! <td class='topElem_td'> ! <a href='javascript: Personal_3' ! onMouseOver='popUp("elMenu3",event)' ! onMouseOut='popDown("elMenu3")'> ! <span class='topElem_descr'>Personal_3</span> ! </a> ! </td> ! <td class='topElem_td'> ! <a href='javascript: Personal_4' ! onMouseOver='popUp("elMenu4",event)' ! onMouseOut='popDown("elMenu4")'> ! <span class='topElem_descr'>Personal_4</span> ! </a> ! </td> ! ! <td class='topElem_td'> ! <a href='javascript: Personal_5'> ! <span class='topElem_descr'>Personal_5</span> ! </a> ! </td> ! </tr> </table> |
From: Dashamir H. <das...@us...> - 2003-08-22 06:47:28
|
Update of /cvsroot/phpwebapp/web_app/webobjects/xlistbox In directory sc8-pr-cvs1:/tmp/cvs-serv4302/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.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** xlistbox.html 16 Jul 2003 09:27:59 -0000 1.2 --- xlistbox.html 22 Aug 2003 06:47:19 -0000 1.3 *************** *** 13,20 **** <Repeat rs="{{rs}}"> <Var name="SELECT"> ! ("{{{{obj_name}}}}"=="{{id}}" ? "selected" : "") </Var> <option value="{{id}}" {{SELECT}}> ! {{label}}</option> </Repeat> </select> --- 13,20 ---- <Repeat rs="{{rs}}"> <Var name="SELECT"> ! ("{{{{obj_name}}}}"=="{{id}}" ? "selected" : "") </Var> <option value="{{id}}" {{SELECT}}> ! {{label}}</option> </Repeat> </select> |
From: Dashamir H. <das...@us...> - 2003-08-22 06:47:28
|
Update of /cvsroot/phpwebapp/web_app/session In directory sc8-pr-cvs1:/tmp/cvs-serv4302/session Modified Files: wbSession.html class.Request.php Log Message: Index: wbSession.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/session/wbSession.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** wbSession.html 16 Jul 2003 09:27:59 -0000 1.2 --- wbSession.html 22 Aug 2003 06:47:20 -0000 1.3 *************** *** 1,13 **** <WebBox ID="wbSession"> <!--# ! the form that transmits to the server the session vars, ! the event (and event args), the php vars etc. #--> <form name="WebAppForm" method="{{method}}" onSubmit="return false;"> ! <input type="hidden" name="sourcePage" value="{{sourcePage}}"> ! <input type="hidden" name="targetPage" value=""> ! <input type="hidden" name="sessionVars" value=""> ! <input type="hidden" name="strEvent" value=""> ! <input type="hidden" name="phpVars" value=""> </form> --- 1,13 ---- <WebBox ID="wbSession"> <!--# ! the form that transmits to the server the session vars, ! the event (and event args), the php vars etc. #--> <form name="WebAppForm" method="{{method}}" onSubmit="return false;"> ! <input type="hidden" name="sourcePage" value="{{sourcePage}}"> ! <input type="hidden" name="targetPage" value=""> ! <input type="hidden" name="sessionVars" value=""> ! <input type="hidden" name="strEvent" value=""> ! <input type="hidden" name="phpVars" value=""> </form> Index: class.Request.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/session/class.Request.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** class.Request.php 16 Jul 2003 09:27:59 -0000 1.2 --- class.Request.php 22 Aug 2003 06:47:20 -0000 1.3 *************** *** 11,14 **** --- 11,15 ---- var $strEvent; var $phpVars; + var $firstTime; //if true, then this page is the first in the session function Request() *************** *** 26,29 **** --- 27,31 ---- $this->phpVars = ( isset($browser_vars["phpVars"]) ? $browser_vars["phpVars"] : UNDEFINED ); + $this->firstTime = ($this->targetPage==UNDEFINED ? true : false); } } |
From: Dashamir H. <das...@us...> - 2003-08-22 06:47:28
|
Update of /cvsroot/phpwebapp/web_app/boxes/fileView In directory sc8-pr-cvs1:/tmp/cvs-serv4302/boxes/fileView Modified Files: sample_file.html Log Message: Index: sample_file.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/fileView/sample_file.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** sample_file.html 16 Jul 2003 09:27:59 -0000 1.2 --- sample_file.html 22 Aug 2003 06:47:20 -0000 1.3 *************** *** 1,9 **** <table width="402" border="0" cellspacing="0" cellpadding="1"> ! <tr><td bgcolor="#000055" align="left"> ! <table width="400" height="200" border="0" cellspacing="0" cellpadding="5" bgcolor="white"> ! <tr><td align="center" valign="middle"> ! <div class="strong">Sample Template File</div> ! </td></tr> ! </table> ! </td></tr> </table> --- 1,9 ---- <table width="402" border="0" cellspacing="0" cellpadding="1"> ! <tr><td bgcolor="#000055" align="left"> ! <table width="400" height="200" border="0" cellspacing="0" cellpadding="5" bgcolor="white"> ! <tr><td align="center" valign="middle"> ! <div class="strong">Sample Template File</div> ! </td></tr> ! </table> ! </td></tr> </table> |
From: Dashamir H. <das...@us...> - 2003-08-22 06:47:28
|
Update of /cvsroot/phpwebapp/web_app/webobjects/datebox In directory sc8-pr-cvs1:/tmp/cvs-serv4302/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.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** datebox.html 11 Aug 2003 16:17:51 -0000 1.3 --- datebox.html 22 Aug 2003 06:47:19 -0000 1.4 *************** *** 5,17 **** <input type="hidden" name="{{obj_name}}" value="{{value}}" /> <input type="text" class="datebox" ! name="text_{{obj_name}}" ! value="{{text_value}}" ! onchange="{{onchange}}" ! onfocus="blur()" /> <input type="image" ! src="{{./}}show_calendar.png" width="12" height="12" ! onclick="show_calendar(this.form.name+'.text_{{obj_name}}', ! null, null, '{{format}}');" ! onmouseover="window.status='Calendar'; return true;" ! onmouseout="window.status=''; return true;" /> </WebClass> --- 5,16 ---- <input type="hidden" name="{{obj_name}}" value="{{value}}" /> <input type="text" class="datebox" ! name="text_{{obj_name}}" ! value="{{text_value}}" ! onchange="{{onchange}}" ! onfocus="blur()" /> <input type="image" ! src="{{./}}show_calendar.png" width="12" height="12" ! onclick="show_calendar(this.form.name+'.text_{{obj_name}}', null, null, '{{format}}');" ! onmouseover="window.status='Calendar'; return true;" ! onmouseout="window.status=''; return true;" /> </WebClass> |
From: Dashamir H. <das...@us...> - 2003-08-22 06:47:27
|
Update of /cvsroot/phpwebapp/web_app/boxes/editMenus In directory sc8-pr-cvs1:/tmp/cvs-serv4302/boxes/editMenus Modified Files: editMenus.html Log Message: Index: editMenus.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/editMenus/editMenus.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** editMenus.html 16 Jul 2003 09:28:00 -0000 1.2 --- editMenus.html 22 Aug 2003 06:47:20 -0000 1.3 *************** *** 4,8 **** <WebBox ID="editMenus"> <script language="JavaScript1.2"> ! <Include SRC="{{./}}include_menus.js"/> </script> --- 4,8 ---- <WebBox ID="editMenus"> <script language="JavaScript1.2"> ! <Include SRC="{{./}}include_menus.js"/> </script> *************** *** 12,90 **** <form name="editMenusForm" onsubmit="return false;"> <table width="402" border="0" cellspacing="0" cellpadding="1"> ! <tr><td bgcolor="#006633" align="left"> ! <table width="400" border="0" cellspacing="0" cellpadding="10" bgcolor="white"> ! <tr><td> ! Selected Menu Element: ! <input type="text" name="id" size="20" onFocus="this.blur()" style="background-color:#dddddd"> ! </td></tr> ! <tr><td> ! <table border="0" cellspacing="0" cellpadding="0"> ! <tr> ! <td> ! description: <br> ! <input type="text" name="description" size="30"> ! </td> ! <td> ! action: <br> ! <input type="text" name="action" size="30"> ! </td> ! </tr> ! </table> ! </td></tr> ! <tr><td> ! <input type="button" name="move_up" value="Move Up" onClick="on_moveUp()"> ! <input type="button" name="move_down" value="Move Down" onClick="on_moveDown()"> ! <input type="button" name="update" value="Update" onClick="on_update()"> ! <input type="button" name="delete" value="Delete" onClick="on_delete()"> ! </td></tr> ! </table> ! </td></tr> </table> <p> <table width="402" border="0" cellspacing="0" cellpadding="1"> ! <tr><td bgcolor="#006633" align="left"> ! <table width="400" border="0" cellspacing="0" cellpadding="10" bgcolor="white"> ! <tr> ! <td> ! Add new elements at the selected element: ! </td> ! </tr> ! <tr><td> ! <table border="0" cellspacing="0" cellpadding="0"> ! <tr> ! <td> ! description: <br> ! <textarea name="description_list" cols="25" rows="5"></textarea> ! <!--# ! <input type="text" name="descr" size="30"> ! <input type="text" name="descr" size="30"> ! <input type="text" name="descr" size="30"> ! <input type="text" name="descr" size="30"> ! <input type="text" name="descr" size="30"> ! #--> ! </td> ! <td> ! action: <br> ! <textarea name="action_list" cols="25" rows="5"></textarea> ! <!--# ! <input type="text" name="action" size="30"> ! <input type="text" name="action" size="30"> ! <input type="text" name="action" size="30"> ! <input type="text" name="action" size="30"> ! <input type="text" name="action" size="30"> ! #--> ! </td> ! </tr> ! </table> ! </td></tr> ! <tr> ! <td> ! <input type="button" value="Add Before" onClick="on_addBefore()"> ! <input type="button" value="Add After" onClick="on_addAfter()"> ! <input type="button" value="Add Children" onClick="on_addChildren()"> ! </td> ! </tr> ! </table> ! </td></tr> </table> <p> --- 12,90 ---- <form name="editMenusForm" onsubmit="return false;"> <table width="402" border="0" cellspacing="0" cellpadding="1"> ! <tr><td bgcolor="#006633" align="left"> ! <table width="400" border="0" cellspacing="0" cellpadding="10" bgcolor="white"> ! <tr><td> ! Selected Menu Element: ! <input type="text" name="id" size="20" onFocus="this.blur()" style="background-color:#dddddd"> ! </td></tr> ! <tr><td> ! <table border="0" cellspacing="0" cellpadding="0"> ! <tr> ! <td> ! description: <br> ! <input type="text" name="description" size="30"> ! </td> ! <td> ! action: <br> ! <input type="text" name="action" size="30"> ! </td> ! </tr> ! </table> ! </td></tr> ! <tr><td> ! <input type="button" name="move_up" value="Move Up" onClick="on_moveUp()"> ! <input type="button" name="move_down" value="Move Down" onClick="on_moveDown()"> ! <input type="button" name="update" value="Update" onClick="on_update()"> ! <input type="button" name="delete" value="Delete" onClick="on_delete()"> ! </td></tr> ! </table> ! </td></tr> </table> <p> <table width="402" border="0" cellspacing="0" cellpadding="1"> ! <tr><td bgcolor="#006633" align="left"> ! <table width="400" border="0" cellspacing="0" cellpadding="10" bgcolor="white"> ! <tr> ! <td> ! Add new elements at the selected element: ! </td> ! </tr> ! <tr><td> ! <table border="0" cellspacing="0" cellpadding="0"> ! <tr> ! <td> ! description: <br> ! <textarea name="description_list" cols="25" rows="5"></textarea> ! <!--# ! <input type="text" name="descr" size="30"> ! <input type="text" name="descr" size="30"> ! <input type="text" name="descr" size="30"> ! <input type="text" name="descr" size="30"> ! <input type="text" name="descr" size="30"> ! #--> ! </td> ! <td> ! action: <br> ! <textarea name="action_list" cols="25" rows="5"></textarea> ! <!--# ! <input type="text" name="action" size="30"> ! <input type="text" name="action" size="30"> ! <input type="text" name="action" size="30"> ! <input type="text" name="action" size="30"> ! <input type="text" name="action" size="30"> ! #--> ! </td> ! </tr> ! </table> ! </td></tr> ! <tr> ! <td> ! <input type="button" value="Add Before" onClick="on_addBefore()"> ! <input type="button" value="Add After" onClick="on_addAfter()"> ! <input type="button" value="Add Children" onClick="on_addChildren()"> ! </td> ! </tr> ! </table> ! </td></tr> </table> <p> |
From: Dashamir H. <das...@us...> - 2003-08-22 06:47:27
|
Update of /cvsroot/phpwebapp/web_app/boxes/editMenus/sample_menu In directory sc8-pr-cvs1:/tmp/cvs-serv4302/boxes/editMenus/sample_menu Modified Files: sample_menu.html Log Message: Index: sample_menu.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/editMenus/sample_menu/sample_menu.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** sample_menu.html 16 Jul 2003 09:28:00 -0000 1.2 --- sample_menu.html 22 Aug 2003 06:47:20 -0000 1.3 *************** *** 1,11 **** <WebBox ID="sample_menu"> <script language="JavaScript1.2"> ! <Include SRC="{{./}}include_menus.js"/> </script> <table bgcolor="#FF0000" cellspacing="0" cellpadding="0"> ! <tr><td> ! <Include SRC="{{./}}menu_data/menubar.html"/> ! </td></tr> </table> </WebBox> --- 1,11 ---- <WebBox ID="sample_menu"> <script language="JavaScript1.2"> ! <Include SRC="{{./}}include_menus.js"/> </script> <table bgcolor="#FF0000" cellspacing="0" cellpadding="0"> ! <tr><td> ! <Include SRC="{{./}}menu_data/menubar.html"/> ! </td></tr> </table> </WebBox> |
From: Dashamir H. <das...@us...> - 2003-08-22 06:47:25
|
Update of /cvsroot/phpwebapp/web_app/webobjects/table In directory sc8-pr-cvs1:/tmp/cvs-serv4302/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.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** table.html 16 Jul 2003 09:27:59 -0000 1.2 --- table.html 22 Aug 2003 06:47:19 -0000 1.3 *************** *** 13,17 **** <tr> <Repeat rs="{{table}}->fields"> ! <td bgcolor="white"> {{{{fld_name}}}} </td> </Repeat> </tr> --- 13,17 ---- <tr> <Repeat rs="{{table}}->fields"> ! <td bgcolor="white"> {{{{fld_name}}}} </td> </Repeat> </tr> |
From: Dashamir H. <das...@us...> - 2003-08-20 10:58:05
|
Update of /cvsroot/phpwebapp/app2/templates In directory sc8-pr-cvs1:/tmp/cvs-serv11047/templates Modified Files: page1_content.html footer.html Log Message: Index: page1_content.html =================================================================== RCS file: /cvsroot/phpwebapp/app2/templates/page1_content.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** page1_content.html 15 Aug 2003 09:09:26 -0000 1.2 --- page1_content.html 20 Aug 2003 07:36:39 -0000 1.3 *************** *** 12,16 **** "template variables"), which are replaced by the framework with their string values. The variables inside a template are denoted by ! double curly braces: {{#tpl_var} }.</p> <h4>The <Include> tag</h4> --- 12,16 ---- "template variables"), which are replaced by the framework with their string values. The variables inside a template are denoted by ! double curly braces: <strong>{{#tpl_var}}</strong>.</p> <h4>The <Include> tag</h4> *************** *** 18,25 **** <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> --- 18,25 ---- <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> *************** *** 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> ! <!--# Framework comments #--> </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> ! <script language="javascript" src="file.js"></script> ! <link rel="stylesheet" type="text/css" href="file.css"> </pre> Index: footer.html =================================================================== RCS file: /cvsroot/phpwebapp/app2/templates/footer.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** footer.html 15 Aug 2003 09:09:26 -0000 1.3 --- footer.html 20 Aug 2003 07:36:39 -0000 1.4 *************** *** 7,10 **** | <a href="javascript: goto_page3()"> Page 3 </a> ] <br><br> ! <a href="javascript:go_back()"><img src="{{IMG_URL}}back.png" border="0"></a> ! <a href="{{APP_URL}}"><img src="{{IMG_URL}}home.png" border="0"></a> --- 7,10 ---- | <a href="javascript: goto_page3()"> Page 3 </a> ] <br><br> ! <a href="javascript:go_back()"><img src="{{IMG_URL}}back.png" alt="Back" border="0"></a> ! <a href="{{APP_URL}}"><img src="{{IMG_URL}}home.png" alt="Home" border="0"></a> |
From: Dashamir H. <das...@us...> - 2003-08-20 10:58:04
|
Update of /cvsroot/phpwebapp/app2/templates/page3 In directory sc8-pr-cvs1:/tmp/cvs-serv11047/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.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** tpl_1.html 15 Aug 2003 09:09:26 -0000 1.2 --- tpl_1.html 20 Aug 2003 07:36:38 -0000 1.3 *************** *** 5,10 **** <tr><td class="box_content_1" valign="top"> <p class="content_1"> ! <i>page3.html</i> is the same as <i>page2.html</i>, however it ! is implemented using the templates and the <strong><Include></strong> tag of the framework. Some of the benefits of separating pages --- 5,10 ---- <tr><td class="box_content_1" valign="top"> <p class="content_1"> ! <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 |
From: Dashamir H. <das...@us...> - 2003-08-20 10:54:21
|
Update of /cvsroot/phpwebapp/web_app/webobjects/tabs In directory sc8-pr-cvs1:/tmp/cvs-serv5996/webobjects/tabs Modified Files: tabs1.css Log Message: changed some styles Index: tabs1.css =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs1.css,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** tabs1.css 16 Jul 2003 09:27:59 -0000 1.2 --- tabs1.css 20 Aug 2003 07:00:47 -0000 1.3 *************** *** 2,12 **** { display: block; - font-family: sans-serif; margin: 0; ! padding: 3px; ! color: rgb(0,0,127); ! background-color: #eecccc; ! text-transform: none; ! text-decoration: none; } --- 2,14 ---- { display: block; margin: 0; ! padding: 2px; ! font-family: arial, helvetica, sans-se; ! font-size: 10pt; ! font-weight: bold; ! color: #000066; ! background-color: #ffeedd; ! border: solid 1px #ffdfaf; ! border-bottom: solid 1px #ffe6d6; } *************** *** 14,31 **** { display: block; - font-family: sans-serif; margin: 0; padding: 3px; ! color: rgb(0,0,0); ! background-color: #ffaaaa; ! text-transform: none; ! text-decoration: none; } .tabs1-item a:hover { ! border: solid 1px #ffaaaa; ! border-bottom: solid 1px #eecccc; padding: 2px; } --- 16,35 ---- { display: block; margin: 0; padding: 3px; ! font-family: arial, helvetica, sans-se; ! font-size: 10pt; ! font-weight: bold; ! color: #660000; ! background-color: #ffddaa; } .tabs1-item a:hover { ! background-color: #ffe6d6; ! border: solid 1px #ffccaa; ! border-bottom: solid 1px #ffe6d6; padding: 2px; + color: #000099; } |
From: Dashamir H. <das...@us...> - 2003-08-20 10:52:20
|
Update of /cvsroot/phpwebapp/web_app/tools/fileBrowser In directory sc8-pr-cvs1:/tmp/cvs-serv5996/tools/fileBrowser Modified Files: fileBrowser.html fileBrowser.css Log Message: changed some styles Index: fileBrowser.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/tools/fileBrowser/fileBrowser.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** fileBrowser.html 16 Jul 2003 09:27:59 -0000 1.2 --- fileBrowser.html 20 Aug 2003 07:00:48 -0000 1.3 *************** *** 1,8 **** <html> <head> ! <title> File Browser </title> ! <link rel="stylesheet" type="text/css" href="{{APP_STYLE}}"> ! <link rel="stylesheet" type="text/css" href="{{WEBAPP_URL}}styles.css"> ! <link rel="stylesheet" type="text/css" href="{{./}}fileBrowser.css"> </head> <body> --- 1,6 ---- <html> <head> ! <title>File Browser</title> ! <link rel="stylesheet" type="text/css" href="{{APP_STYLE}}"> </head> <body> *************** *** 11,24 **** <Include SRC="{{./}}panel.html" /> <table width="100%" border="0" cellspacing="0" cellpadding="1"> ! <tr> ! <If condition="{{panel->folderVisible}}"> ! <td width="200" valign="top" nowrap="true"> ! <Include SRC="{{./}}folder.html" /> ! </td> ! </If> ! <td align="left" valign="top"> ! <Include SRC="{{./}}file.html" /> ! </td> ! </tr> </table> </WebBox> --- 9,22 ---- <Include SRC="{{./}}panel.html" /> <table width="100%" border="0" cellspacing="0" cellpadding="1"> ! <tr> ! <If condition="{{panel->folderVisible}}"> ! <td width="200" valign="top" nowrap="true"> ! <Include SRC="{{./}}folder.html" /> ! </td> ! </If> ! <td align="left" valign="top"> ! <Include SRC="{{./}}file.html" /> ! </td> ! </tr> </table> </WebBox> Index: fileBrowser.css =================================================================== RCS file: /cvsroot/phpwebapp/web_app/tools/fileBrowser/fileBrowser.css,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** fileBrowser.css 16 Jul 2003 09:27:59 -0000 1.2 --- fileBrowser.css 20 Aug 2003 07:00:49 -0000 1.3 *************** *** 1,5 **** body { ! background-color:#EFE7D6; margin-top:0px; margin-left:0px; --- 1,5 ---- body { ! background-color:#efe7d6; margin-top:0px; margin-left:0px; *************** *** 10,14 **** .font { ! font-family: Arial, Helvetica, Sans-Se; font-size: 10pt; color:#000000; --- 10,14 ---- .font { ! font-family: arial, helvetica, sans-se; font-size: 10pt; color:#000000; *************** *** 21,27 **** .text, .button { ! font-family: Arial, Helvetica, Sans-Se; font-size: 10pt; ! background-color: #EAEAEA; color: #006666; } --- 21,27 ---- .text, .button { ! font-family: arial, helvetica, sans-se; font-size: 10pt; ! background-color: #eaeaea; color: #006666; } *************** *** 29,43 **** .title { ! COLOR: #FFFFFF; ! FONT-FAMILY: Arial, Helvetica, Sans-Se; ! FONT-SIZE: 12px; ! FONT-WEIGHT: bold } .strong { ! COLOR: #000066; ! FONT-FAMILY: Arial, Helvetica, Sans-Se; ! FONT-SIZE: 16px; ! FONT-WEIGHT: bold } --- 29,43 ---- .title { ! color: #ffffff; ! font-family: arial, helvetica, sans-se; ! font-size: 12px; ! font-weight: bold; } .strong { ! color: #000066; ! font-family: arial, helvetica, sans-se; ! font-size: 16px; ! font-weight: bold } |