logo       
Google Custom Search
    AddThis Social Bookmark Button

r10344 - trunk/www/fragments: msg#00052

Subject: r10344 - trunk/www/fragments
Author: cpage
Date: Sun Nov  6 12:42:19 2005
New Revision: 10344

Modified:
   trunk/www/fragments/fragments.inc
Log:
Job: website

Updated the "12 Dylan Fragments" pages to use the same format and
appearance as the rest of the website.



Modified: trunk/www/fragments/fragments.inc
==============================================================================
--- trunk/www/fragments/fragments.inc   (original)
+++ trunk/www/fragments/fragments.inc   Sun Nov  6 12:42:19 2005
@@ -2,47 +2,24 @@
 ini_set("include_path", ini_get("include_path") . ":..");
 require "shared.inc";
 
+function short_code_header ($title) {
+   readfile("/usr/local/www/data/header.html");
+   echo "<title>12 Dylan Fragments: " . $title . "</title><body>";
+   readfile("/usr/local/www/data/menu.html");
+}
+
 function code_header ($title) {
+   short_code_header($title);
 ?>
-<HTML>
-<HEAD>
-<TITLE>Dylan Examples: <?php echo $title?></TITLE>
-</HEAD>
-<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#000099" ALINK="#FF0000"
-      VLINK="#990000">
-<H1 ALIGN=CENTER>
-<IMG SRC="../gwydion.png" ALT="Gwydion Dylan">
-</H1>
-
-<P ALIGN=CENTER>[
-<A HREF="../fragments.phtml">More examples</A> |
-<A HREF="../">Overview</A>
-]</P>
-
-<TABLE BORDER=0 WIDTH="100%" CELLPADDING=10 CELLSPACING=0 BGCOLOR="#CCCCCC">
-<TR><TD WIDTH="100%">
+<p align=center>[
+<a href="../fragments.phtml">All Fragments</a>
+]</p>
 
 <?php
-  echo "<H2>" . $title . "</H2>\n";
+  echo "<h2>" . $title . "</h2>\n";
 }
 
 function code_footer () {
-?>
-</TD></TR>
-</TABLE>
-</TD>
-
-<DIV CLASS=footer>
-
-<P><SMALL>Copyright &copy; 1998 Gwydion Dylan Maintainers. All rights
-reserved.  Created using <A HREF="http://www.php.net/";>PHP</A>, <A
-HREF="http://www.apache.org/";>Apache</A> and <A
-HREF="http://www.postgresql.org/";>PostgreSQL</A> on a machine running <A
-HREF="http://www.redhat.com/";>RedHat Linux</A>. Graphics by the <A
-HREF="http://www.gimp.org/";>GIMP</A>. [<A
-HREF="mailto:gd-bugs@xxxxxxxxxxxxxxx";>Feedback</A>]</SMALL></P>
-
-</DIV>
-<?php
+   standard_footer();
 }
 ?>
-- 
Gd-chatter mailing list
Gd-chatter@xxxxxxxxxxxxxxxx
https://gauss.gwydiondylan.org/mailman/listinfo/gd-chatter




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>