Splinter (http://splinter.comasu.de/index.php)
- Laberecke (http://splinter.comasu.de/board.php?boardid=3)
-- Technik (http://splinter.comasu.de/board.php?boardid=60)
--- PHP: mehrfache action-Anweisung über switch and case (http://splinter.comasu.de/thread.php?threadid=197)
Quellcode |
|
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: |
aktivierung in tpl
<a href="portal.php?portalinfo=1">1</a>
<a href="portal.php?portalinfo=2">1</a>
<a href="portal.php?portalinfo=3">1</a>
php-code
if ($portalinfo=="") { $text = "Ausgangsinfotext"; }
if ($portalinfo=="1") { $text = "1 Infotext"; }
if ($portalinfo=="2") { $text = "2 Infotext"; }
if ($portalinfo=="3") { $text = "3 Infotext"; }
ausgabecode in tpl
<if($portalinfo=="")><then>$text</then></if>
<if($portalinfo=="1")><then>$text</then></if>
<if($portalinfo=="2")><then>$text</then></if>
<if($portalinfo=="3")><then>$text</then></if>
|
|
||||