|
Posted by Martin Edwards on 04/25/06 04:34
Markus.Baerlocher@lau-net.de wrote:
> Dear css-Professionals,
>
> thanks a lot for your advices! (and sorry for my switzerland-english)
>
> In the last days I read (and understand) a lot about the advantages of
> CSS.
> It is easy to split content and style by calling style.css in <head>.
> Unfortunately my .php doesn't have a "<head>"...
>
> The story behind:
> I use a BIG open-source-prog for genealogy.
> I try to append it to a "small CMS" (for this I need the
> "2-column-layout").
> Of corse it will be VERY much better with css!
>
> But in the .php which does my things, there is no <head> where I could
> link-in the .css
> Alternatively I tried this "table-working-around".
>
> I now something about HTML, and now a little about CSS - but nothing
> about PHP.
> I use the given content.php, and customyse it after:
>
> echo <<<TEXT
>
> with some HTML-code.
>
> This is bevore "echo <<<TEXT":
> ----------------------------------
> <?php
>
> //----- Globale Einstellungen ( wird für Anzeige benötigt!)
> ------//
> require("config.php");
> require("includes/functions_charts.php");
> require($PGV_BASE_DIRECTORY.$factsfile["english"]);
> if (file_exists($PGV_BASE_DIRECTORY . $factsfile[$LANGUAGE])) require
> $PGV_BASE_DIRECTORY . $factsfile[$LANGUAGE];
>
> // -- print html header information
> print_header($name." ".$pgv_lang["descend_chart"]);
> if (strlen($name)<30) $cellwidth="100%";
> else $cellwidth=(strlen($name)*14);
> print "\n\t<table class=\"list_table, $TEXT_DIRECTION\"><tr><td
> width=\"${cellwidth}px\" valign=\"top\">\n\t\t";
> // print "\n\t<h2>".$pgv_lang["descend_chart"].":<br
> />".PrintReady($name)."</h2>";
>
> //----- HTML- content ----------------//
> echo <<<TEXT
> ------------------------------------------
> (which I desn't understand - but it works)
>
> I put in this content.php my HTML, including all local style-formats.
> For every new content, I repeate the whole PHP- and CSS-stuff around in
> many content.php's.
> Then I call the content.php's by a menu.php: $submenu["link"] =
> "1th-content.php";
>
> Of corse, the best way is to split:
> - XHTML-content (a lot of pages)
> - style.css
> - display.php to call the content and the style
>
> and in the menu.php I call the display.php with a parameter for the
> specific content.html
>
> But I have no idea HOW to do this...
>
> Thanks a lot for your support!
> Markus
>
> if you will have a look:
> http://www.lau-net.de/baerlocher/phpGedView/z_HTML-Test.php
>
Verdammt! Kompliziert, na?
--
You can't fool me: there ain't no Sanity Clause - Chico Marx
www.geocities.com/Athens/Agora/1955
Navigation:
[Reply to this message]
|