From: <vb...@us...> - 2002-10-01 06:51:49
|
Update of /cvsroot/webnotes/webnotes/sample In directory usw-pr-cvs1:/tmp/cvs-serv14883/sample Modified Files: webservices.php xhtml.php xml.php Added Files: sample_footer.php sample_header.php webopedia.php Log Message: - Fixed a problem with page_update_neighbours, where neighbours were only updated if both prev/next are changed, rather than if only one changed. - Added parent_id field to the page table in the database. - Update neighbours currently defaults the prev/next/parent to the database value if null is passed, rather than replacing it with 0. Any empty string should be used to highlight the fact that there is no prev/next/parent. Or if it was never set, then null would work. - Dropped a redundant index (id) in the pages table. - Dropped a redundant index (id) in the notes table. - Removed an extra </table> in case of pages without notes (phpnet theme). - Implemented the first version of the php-like manual and added the necessary. --- NEW FILE: sample_footer.php --- <?php pwn_body( $page, $PHP_SELF, $page_prev, $page_next, $page_parent ); ?> </td></tr></table> <p><a href="http://sourceforge.net/projects/webnotes/"><img src="http://sourceforge.net/sflogo.php?group_id=15381&type=5" width="140" height="42" border="0" alt="phpWebNotes @ SourceForge" /></a></p> </body> </html> --- NEW FILE: sample_header.php --- <html> <head> <title><?php echo $page_title ?></title> <?php require_once("../core/api.php"); # replace with actual path pwn_head(); ?> </head> <body> <table summary="" cellspacing="0" cellpadding="10"> <tr> <td colspan="2" bgcolor="#d0d0d0"><h1>Webopedia Manual</h1></td> </tr> <tr> <td colspan="2" bgcolor="#e0e0e0" align="right">search functionality should go here.</td> </tr> <tr valign="top"> <td width="200" bgcolor="#f0f0f0"> <br /><br /> <?php $page_top = 'Webopedia'; if ( $page != $page_top ) { $link = pwn_page_get_link( $page_top ); echo "<p><a href=\"$link\">$page_top</a></p>\n"; } if ( ( $page_parent != null ) && ( $page_parent != $page_top ) ) { echo "<hr />\n"; $link = pwn_page_get_link( $page_parent ); echo "<p><a href=\"$link\">$page_parent</a></p>"; } $siblings = pwn_page_get_siblings_array( $page ); if ( count( $siblings ) > 0 ) { echo "<hr />\n"; foreach( $siblings as $sibling ) { $link = pwn_page_get_link( $sibling ); echo "<a href=\"$link\">$sibling</a><br />"; } } ?> </td> <td> --- NEW FILE: webopedia.php --- <?php # phpWebNotes - a php based note addition system # Copyright (C) 2000-2002 Webnotes Team - web...@so... # This program is distributed under the terms and conditions of the GPL # See the files README and LICENSE for details # -------------------------------------------------------- # $Id: webopedia.php,v 1.1 2002/10/01 06:51:45 vboctor Exp $ # -------------------------------------------------------- $page_title = 'Webopedia'; $page = 'Webopedia'; $page_parent = null; $page_prev = null; $page_next = 'XML'; include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'sample_header.php' ); ?> <h1>Webopedia</h1> <p>This is a sample document that contains multiple pages. Each page can have its own notes. Pages are linked together through previous/next nagivation, as well as the top, parent, and siblings on the left side.</p> <p>The contents of the pages lists in this document is copied from <a href="http://www.webopedia.com">Webopedia</a> to serve as a sample.</p> <?php include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'sample_footer.php' ); ?> Index: webservices.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/sample/webservices.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- webservices.php 26 Sep 2002 06:55:05 -0000 1.8 +++ webservices.php 1 Oct 2002 06:51:45 -0000 1.9 @@ -7,16 +7,15 @@ # -------------------------------------------------------- # $Id$ # -------------------------------------------------------- + + $page_title = 'Web Services'; + $page = 'Web Services'; + $page_parent = 'Webopedia'; + $page_prev = 'XHTML'; + $page_next = null; + + include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'sample_header.php' ); ?> -<html> - <head> - <title>Web services (from Webopedia)</title> - <?php - require_once("../core/api.php"); # replace with actual path - pwn_head(); - ?> - </head> - <body> <h1>Web services</h1> <p>The term Web services describes a standardized way of integrating Web-based applications using the XML, SOAP, WSDL and UDDI open standards over an Internet protocol backbone. XML is used to tag the data, SOAP is used to transfer the data, WSDL is used for describing the services available and UDDI is used for listing what services are available. Used primarily as a means for businesses to communicate with each other and with clients, Web services allow organizations to communicate data without intimate knowledge of each other's IT systems behind the firewall.</p> @@ -29,10 +28,6 @@ <p>Web services are sometimes called application services.</p> <p>The above definition was copied from <a href="http://www.webopedia.com">Webopedia</a>.</p> - - <?php pwn_body( 'Web Services', $PHP_SELF, 'XHTML', null ); ?> - - <p> - <a href="http://sourceforge.net/projects/webnotes/"><img src="http://sourceforge.net/sflogo.php?group_id=15381&type=5" width="140" height="42" border="0" alt="phpWebNotes @ SourceForge" /></a></p> - </body> -</html> +<?php + include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'sample_footer.php' ); +?> Index: xhtml.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/sample/xhtml.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- xhtml.php 26 Sep 2002 06:55:05 -0000 1.4 +++ xhtml.php 1 Oct 2002 06:51:45 -0000 1.5 @@ -1,12 +1,21 @@ -<html> -<head> -<title>XHTML</title> - <?php - require_once("../core/api.php"); # replace with actual path - pwn_head(); - ?> -</head> -<body> +<?php + # phpWebNotes - a php based note addition system + # Copyright (C) 2000-2002 Webnotes Team - web...@so... + # This program is distributed under the terms and conditions of the GPL + # See the files README and LICENSE for details + + # -------------------------------------------------------- + # $Id$ + # -------------------------------------------------------- + + $page_title = 'XHTML'; + $page = 'XHTML'; + $page_parent = 'Webopedia'; + $page_prev = 'XML'; + $page_next = 'Web Services'; + + include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'sample_header.php' ); +?> <h1>XHTML</h1> <p>Short for Extensible Hypertext Markup Language, a hybrid between HTML and XML specifically designed for Net device displays.</p> <p>XHTML is a markup language written in XML; therefore, it is an XML application.</p> @@ -15,8 +24,6 @@ <p>When applied to Net devices, XHTML must go through a modularization process. This enables XHTML pages to be read by many different platforms.</p> <p>A device designer, using standard building blocks, will specify which elements are supported. Content creators will then target these building blocks--or modules.</p> <p>Because these modules conform to certain standards, XHTML's extensibility ensures that layout and presentation stay true-to-form over any platform.</p> - <?php pwn_body( 'XHTML', $PHP_SELF, 'XML', 'Web Services' ); ?> - <p> - <a href="http://sourceforge.net/projects/webnotes/"><img src="http://sourceforge.net/sflogo.php?group_id=15381&type=5" width="140" height="42" border="0" alt="phpWebNotes @ SourceForge" /></a></p> -</body> -</html> +<?php + include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'sample_footer.php' ); +?> Index: xml.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/sample/xml.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- xml.php 26 Sep 2002 06:55:05 -0000 1.8 +++ xml.php 1 Oct 2002 06:51:45 -0000 1.9 @@ -7,24 +7,21 @@ # -------------------------------------------------------- # $Id$ # -------------------------------------------------------- + + $page_title = 'XML'; + $page = 'XML'; + $page_parent = 'Webopedia'; + $page_prev = 'Webopedia'; + $page_next = 'XHTML'; + + include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'sample_header.php' ); ?> -<html> - <head> - <title>XML (from Webopedia)</title> - <?php - require_once("../core/api.php"); # replace with actual path - pwn_head(); - ?> - </head> - <body> <h1>XML</h1> <p>Short for Extensible Markup Language, a specification developed by the W3C. XML is a pared-down version of SGML, designed especially for Web documents. It allows designers to create their own customized tags, enabling the definition, transmission, validation, and interpretation of data between applications and between organizations.</p> <p>The above definition was copied from <a href="http://www.webopedia.com">Webopedia</a>.</p> - <?php pwn_body( 'XML', $PHP_SELF, null, 'XHTML' ); ?> - <p> - <a href="http://sourceforge.net/projects/webnotes/"><img src="http://sourceforge.net/sflogo.php?group_id=15381&type=5" width="140" height="42" border="0" alt="phpWebNotes @ SourceForge" /></a></p> - </body> -</html> +<?php + include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'sample_footer.php' ); +?> |