Update of /cvsroot/webnotes/webnotes/sample In directory usw-pr-cvs1:/tmp/cvs-serv14356/sample Modified Files: sample_footer.php sample_header.php webopedia.php xhtml.php xml.php Added Files: markup.php sample.css Log Message: - Added an extra level in the samples to demonstrate the parent page link. Now the manual has Webopedia > Markup Languages > XML / XHTML - Added a style sheet in the sample to enhance the look. - Moved some code from the sample_header.php to pwn_api.php. - Added some extra images that are used as part of phpnet in the manual look. --- NEW FILE: markup.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: markup.php,v 1.1 2002/10/01 12:30:09 vboctor Exp $ # -------------------------------------------------------- $page_title = 'Markup Languages'; $page = 'Markup Languages'; $page_parent = 'Webopedia'; $page_prev = 'Webopedia'; $page_next = 'XHTML'; include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'sample_header.php' ); ?> <h1>Markup Languages</h1> <p>This section explains different markup languages including: XHTML and XML.</p> <?php include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'sample_footer.php' ); ?> --- NEW FILE: sample.css --- /* # 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: sample.css,v 1.1 2002/10/01 12:30:09 vboctor Exp $ # -------------------------------------------------------- */ table.layout { border: 0px; width: 100%; } td.title, .dark { background-color: #d0d0d0; } td.search, .light { background-color: #e0e0e0; } td.side, .lighter { background-color: #f0f0f0; } td.title, td.search, td.side { font-family:Verdana, Arial; font-size: 10pt; } td.title { padding: 10px; } td.search { text-align: right; } td.side { border-right: 1px dotted #a0a0a0; vertical-align: top; padding: 10px; } td.body { padding: 5px; } img.bullet { border: 0px; height: 7px; width: 11px; } Index: sample_footer.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/sample/sample_footer.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- sample_footer.php 1 Oct 2002 06:51:45 -0000 1.1 +++ sample_footer.php 1 Oct 2002 12:30:09 -0000 1.2 @@ -1,6 +1,8 @@ <?php pwn_body( $page, $PHP_SELF, $page_prev, $page_next, $page_parent ); ?> - -</td></tr></table> +</td></tr> +<tr><td class="light" colspan="2">xxx</td></tr> +<tr><td class="dark">xxx</td><td align="right" class="dark">xxx</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> Index: sample_header.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/sample/sample_header.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- sample_header.php 1 Oct 2002 06:51:45 -0000 1.1 +++ sample_header.php 1 Oct 2002 12:30:09 -0000 1.2 @@ -4,42 +4,21 @@ <?php require_once("../core/api.php"); # replace with actual path pwn_head(); + print_css_link( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'sample.css' ); ?> </head> <body> -<table summary="" cellspacing="0" cellpadding="10"> +<table class="layout" summary="" cellspacing="0"> <tr> -<td colspan="2" bgcolor="#d0d0d0"><h1>Webopedia Manual</h1></td> +<td class="title" colspan="2"><h1>Webopedia Manual</h1></td> </tr> <tr> -<td colspan="2" bgcolor="#e0e0e0" align="right">search functionality should go here.</td> +<td class="search" colspan="2">search functionality should go here.</td> </tr> <tr valign="top"> -<td width="200" bgcolor="#f0f0f0"> -<br /><br /> +<td class="side" width="200"> <?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 />"; - } - } + pwn_index( $page, 'Webopedia', $page_parent ); ?> </td> -<td> \ No newline at end of file +<td class="body"> \ No newline at end of file Index: webopedia.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/sample/webopedia.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- webopedia.php 1 Oct 2002 06:51:45 -0000 1.1 +++ webopedia.php 1 Oct 2002 12:30:09 -0000 1.2 @@ -12,7 +12,7 @@ $page = 'Webopedia'; $page_parent = null; $page_prev = null; - $page_next = 'XML'; + $page_next = 'Markup Languages'; include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'sample_header.php' ); ?> Index: xhtml.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/sample/xhtml.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- xhtml.php 1 Oct 2002 06:51:45 -0000 1.5 +++ xhtml.php 1 Oct 2002 12:30:09 -0000 1.6 @@ -10,9 +10,9 @@ $page_title = 'XHTML'; $page = 'XHTML'; - $page_parent = 'Webopedia'; - $page_prev = 'XML'; - $page_next = 'Web Services'; + $page_parent = 'Markup Languages'; + $page_prev = 'Markup Languages'; + $page_next = 'XML'; include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'sample_header.php' ); ?> Index: xml.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/sample/xml.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- xml.php 1 Oct 2002 06:51:45 -0000 1.9 +++ xml.php 1 Oct 2002 12:30:09 -0000 1.10 @@ -10,9 +10,9 @@ $page_title = 'XML'; $page = 'XML'; - $page_parent = 'Webopedia'; - $page_prev = 'Webopedia'; - $page_next = 'XHTML'; + $page_parent = 'Markup Languages'; + $page_prev = 'XHTML'; + $page_next = 'Web Services'; include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'sample_header.php' ); ?> |