🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.php
3 messages
3 total messages Started by Rudi Mon, 27 Aug 2001 14:26
link
#1304
Author: Rudi
Date: Mon, 27 Aug 2001 14:26
21 lines
1295 bytes
Witam

1/  Chcialem zapytac w jakis sposob zmodyfikowac swoje menu , w taki sposob
aby po kliknieciu na link stawal sie on nie aktywny , poznizej  prosty
listing z ktorego kozystam dotychczas :
<?
switch($id)
  {

    case "news"        : include "menu/news.htm";break;
    case "onas"        : include "menu/onas.htm";break;
    case "sklad"       : include "menu/sklad.htm";break;
defaut :
print ' $id nie ma takiej strony ';
break;
}
?>
--
pzdr
>>Rudi<<
www.liceum.muszyna.pl/klasa4d
Re: link
#1305
Author: Metempsychoza
Date: Mon, 27 Aug 2001 14:56
7 lines
1065 bytes
<?php
$m = array(news, onas, sklad);
foreach($m as $v)($v==$id)?print($v.'<br>'):printf('<a
href="?id=%s">%s</a><br>', $v, $v);
?>
--
metempsychoza(at)wp.pl
Re: link
#1306
Author: Rudi
Date: Mon, 27 Aug 2001 15:27
13 lines
1162 bytes
Metempsychoza napisał(a) w wiadomości: <9mdnhl$9g4$1@news.tpi.pl>...
><?php
>$m = array(news, onas, sklad);
>foreach($m as $v)($v==$id)?print($v.'<br>'):printf('<a
>href="?id=%s">%s</a><br>', $v, $v);
>?>

big thx
--
pzdr
>>Rudi<<
www.liceum.muszyna.pl/klasa4d
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads