| 23 | | $text = addslashes($item['extended_text']); |
|---|
| 24 | | $text = str_replace("\n", "\\n", $text); // convert php code to javascript code - output "\n" to the page |
|---|
| 25 | | echo ' <a href="#" onclick="alert(\''.$text.'\');"><i>more..</i></a>'; |
|---|
| | 23 | if ($_GET['item'] == $item['module'].'.'.$item['id']) { |
|---|
| | 24 | echo '<p>'.nl2br($item['extended_text']).'</p>'; |
|---|
| | 25 | } else { |
|---|
| | 26 | $link = $_SERVER['PHP_SELF'].'?display='.addslashes($_GET['display']).'&item='.$item['module'].'.'.$item['id']; |
|---|
| | 27 | echo ' <a href="'.$link.'"><i>more..</i></a>'; |
|---|
| | 28 | } |
|---|