[phpwebapp-commits] CVS: app3/templates styles.css,1.2,1.3 page3.html,1.2,1.3 page2.html,1.2,1.3 pag
Brought to you by:
dashohoxha
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> |