leon 01/10/25 10:19:18
Modified: freetrade2/modules/layout with_side_nav
Log:
Trying to make some modules more friendly to novices
Revision Changes Path
1.4 +54 -70 freetrade/freetrade2/modules/layout/with_side_nav
Index: with_side_nav
===================================================================
RCS file: /home/cvs/freetrade/freetrade2/modules/layout/with_side_nav,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- with_side_nav 2000/11/08 00:54:33 1.3
+++ with_side_nav 2001/10/25 17:19:18 1.4
@@ -1,106 +1,87 @@
<?php
/*
** File: with_side_nav
- ** Description: layout module that includes side navigation
- ** Version: $Revision: 1.3 $
+ ** Description: This layout module includes side navigation. There may be
+ ** other modules that only contain top- and bottom-navigation. Note that this
+ ** example layout module is very simple and uses four separate tables. Any
+ ** implementation would change this file to fit the given graphical design.
+ ** HTML code is written here directly, instead of through functions, in order
+ ** to promote simplicity and usability by those with little interest in
learning
+ ** PHP.
+ ** Version: $Revision: 1.4 $
** Created: 05/18/1999
** Author: Leon Atkinson
** Email: [EMAIL PROTECTED]
** CVS Author: $Author: leon $
- ** Last Revised: $Date: 2000/11/08 00:54:33 $
+ ** Last Revised: $Date: 2001/10/25 17:19:18 $
**
- ** Log : $Log: with_side_nav,v $
- ** Log : Revision 1.3 2000/11/08 00:54:33 leon
- ** Log : *** empty log message ***
- ** Log :
- ** Log : Revision 1.2 2000/06/02 23:08:39 leon
- ** Log : Removing HTML and SQL from navigation module
- ** Log :
- ** Log : Revision 1.1.1.1 2000/02/05 00:44:43 leon
- ** Log : Importing initial work on FreeTrade 2.0. This code is not really
working
- ** Log : yet, but I want everyone to be able to see what's going on and
possibly
- ** Log : contribute.
- ** Log :
- **
- ** Copyright (c) 1999 Working Dogs. All rights reserved.
*/
-
-
- //top
- print("<table border=\"0\" width=\"100%\">\n");
- print("<tr>\n");
- print("<td>\n");
-
+?>
+<table border="0" width="100%">
+<tr>
+<td>
+<?
+ //This block of code includes the common navigation
+ //for the top of the page.
if(!include_once(MODULE . "/navigation/page_top"))
{
print("An error occurred while showing navigation module
\"page_top\"!<br>\n");
}
-
- print("</td>\n");
- print("</tr>\n");
- print("</table>\n");
-
- //side
- print("<table border=\"0\" width=\"120\" align=\"left\">\n");
- print("<tr>\n");
- print("<td valign=\"top\">");
-
+?>
+</td>
+</tr>
+</table>
+
+<table border="0" width="120" align="left">
+<tr>
+<td valign="top">
+<?
+ //This block of code includes the script for creating the side
+ //navigation.
if(!include_once(MODULE . "/navigation/side"))
{
print("An error occurred while showing navigation module
\"side\"!<br>\n");
}
-
print("<br>\n");
// Logos showing off technolgies used
-
-
printLinkOutside(getImage("powered_by_php.gif", 88, 31),
"http://www.php.net/", 1);
-
printLinkOutside(getImage("powered_by_mysql.gif", 88, 46),
"http://www.mysql.com/", 1);
-
printLinkOutside(getImage("ecml_logosmall.jpg", 48, 48),
"http://www.ecml.org/", 1);
-
-
- print("</td>\n");
- print("</tr>\n");
- print("</table>\n");
-
-
- //content
- print("<table border=\"0\">\n");
- print("<tr>\n");
- print("<td>\n");
-
- /*
- ** Attempt to print Action Results, if any...
- */
+?>
+</td>
+</tr>
+</table>
+
+<table border="0">
+<tr>
+<td>
+<?
+ //Print any action results
+ //ActionResults are short messages produced by ACTION modules.
printActionResults();
- /*
- ** Branch to screen module
- */
+ //Execute SCREEN module, the main content of any page.
if(!include_once(MODULE . "screen/$SCREEN"))
{
print("Unable to execute screen module!<br>\n");
}
-
- print("</td>\n");
- print("</tr>\n");
- print("</table>\n");
-
- print("<br clear=\"all\">\n");
-
- //bottom
- print("<table border=\"0\" width=\"100%\">\n");
- print("<tr>\n");
- print("<td>\n");
+</td>
+</tr>
+</table>
+
+<br clear="all">
+
+<table border="0" width="100%">
+<tr>
+<td>
+<?
+ //This block gets the common navigation for the bottom of pages.
if(!include_once(MODULE . "/navigation/page_bottom"))
{
print("An error occurred while showing navigation module
\"page_bottom\"!<br>\n");
}
- print("</td>\n");
- print("</tr>\n");
- print("</table>\n");
-
-?>
\ No newline at end of file
+?>
+</td>
+</tr>
+</table>
_______________________________________________
FreeTrade-dev mailing list
[EMAIL PROTECTED]
http://share.whichever.com/mailman/listinfo/freetrade-dev