
Ihr Browser versucht gerade eine Seite aus dem sogenannten Internet auszudrucken. Das Internet ist ein weltweites Netzwerk von Computern, das den Menschen ganz neue Möglichkeiten der Kommunikation bietet.
Da Politiker im Regelfall von neuen Dingen nichts verstehen, halten wir es für notwendig, sie davor zu schützen. Dies ist im beidseitigen Interesse, da unnötige Angstzustände bei Ihnen verhindert werden, ebenso wie es uns vor profilierungs- und machtsüchtigen Politikern schützt.
Sollten Sie der Meinung sein, dass Sie diese Internetseite dennoch sehen sollten, so können Sie jederzeit durch normalen Gebrauch eines Internetbrowsers darauf zugreifen. Dazu sind aber minimale Computerkenntnisse erforderlich. Sollten Sie diese nicht haben, vergessen Sie einfach dieses Internet und lassen uns in Ruhe.
Die Umgehung dieser Ausdrucksperre ist nach §95a UrhG verboten.
Mehr Informationen unter www.politiker-stopp.de.
| Menu verstecken/anzeigen |
|
Menü |
[JB] PHPHP - How does it work? / More ![]() |
||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Extending PHPHPWhenever you need to specify a feature that appears on all pages - be it
some text, or variable text, a popup window, maybe a "feedback" form, a file
upload window: specify it in your Another example: I want a box containing "This page is probably out of date" to be showed whenever the page being viewed is older than six months. This is easy - you don't have to change your pages at all (because the decision whether to show this box does not depend on the page content, only the file age). Here's one way to do it: Put the code in a function in <php include "inc_page.php" class mypage extends page { ... var $vars = ..... function outofdate($text="NB: This site is out of date. Things might have changed.") { return "<div style='padding:1mm; font-size:12px; font-weight:bold; text-align:center; position:fixed; top:2mm; border:2px solid red; color:#ff0000; background-color:#ffeeee; width:60mm; left:auto; right:2mm;'> $text </div>"; } } ?> This feature has been used (in a similar way) in some of my pages on this site. Look at Linux am ASG for example. Actually, except for the fact that it automagically appears on every page (in my case), it's just plain HTML and CSS (cascading style sheet) code. More FeaturesThere are some more features in the code (which I haven't documented yet because they aren't finished yet or break compatability with older versions of PHPHP). If you want to have a look, go ahead - and tell me what you did ;-) Have Fun with PHPHP! I hope it saves you as much work as it did me.
Zuletzt geändert am: 23.06.2003 00:31
| ||||||||||||||||||||||||||||||||||||
![]() |
![]() |
||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|