You are here: Re: 2-column-layout with <table> « HTML « IT news, forums, messages
Re: 2-column-layout with <table>

Posted by Markus.Baerlocher on 04/24/06 11:00

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&uuml;r Anzeige ben&ouml;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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация