Update of /cvsroot/webnotes/webnotes/sample
In directory usw-pr-cvs1:/tmp/cvs-serv26969/sample
Modified Files:
webservices.php xml.php
Added Files:
xhtml.php
Log Message:
- Added prev_id and next_id to the pages table.
- Handled prev/next from theme
- Auto setting prev/next if specific in the call to webnotes.
- Added XHTML example, to demonstrate the prev / prev-next / next.
There is still a problem with pages that have no notes.
--- NEW FILE: xhtml.php ---
<html>
<head>
<title>XHTML</title>
</head>
<body>
<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>
<p>XHTML uses three XML namespaces (used to qualify element and attributes names by associating them with namespaces identified by URI references. Namespaces prevent identically custom-named tags that may be used in different XML documents from being read the same way), which correspond to three HTML 4.0 DTDs: Strict, Transitional, and Frameset.</p>
<p>XHTML markup must conform to the markup standards defined in a HTML DTD.</p>
<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
require_once("../core/api.php"); # replace with actual path
print_web_notes( 'XHTML', $PHP_SELF, 'XML', 'Web Services' );
?>
</body>
</html>
Index: webservices.php
===================================================================
RCS file: /cvsroot/webnotes/webnotes/sample/webservices.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- webservices.php 12 Sep 2002 13:31:46 -0000 1.5
+++ webservices.php 19 Sep 2002 22:50:38 -0000 1.6
@@ -28,7 +28,7 @@
<?php
require_once("../core/api.php"); # replace with actual path
- print_web_notes( 'Web Services', $PHP_SELF );
+ print_web_notes( 'Web Services', $PHP_SELF, 'XHTML', null );
?>
<br />
Index: xml.php
===================================================================
RCS file: /cvsroot/webnotes/webnotes/sample/xml.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- xml.php 12 Sep 2002 13:31:46 -0000 1.5
+++ xml.php 19 Sep 2002 22:50:38 -0000 1.6
@@ -21,7 +21,7 @@
<?php
require_once("../core/api.php"); # replace with actual path
- print_web_notes( 'XML', $PHP_SELF );
+ print_web_notes( 'XML', $PHP_SELF, null, 'XHTML' );
?>
<br />
<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>
|