Messaging System
Posted: Mon Jun 17, 2002 4:25 pm
Hi everybody,
I created some sort of a Messaging System and I'm having the problem now, that if you've got more than 29 sites of messages, it's getting to "wide".
Therefore I want to include an indication of page number that should look like this:
Site: 1|...|current site -2 | current site -1 | current site | current site +1 | current site +2| ...|last site
At present the side view is solved still in such a way:
So only the number of messages ($$count) and the maximally indicated messages per side ($$messagespersite) are handed over.
I'd be very glad if one of you could at least help me solving this difficulties
I created some sort of a Messaging System and I'm having the problem now, that if you've got more than 29 sites of messages, it's getting to "wide".
Therefore I want to include an indication of page number that should look like this:
Site: 1|...|current site -2 | current site -1 | current site | current site +1 | current site +2| ...|last site
At present the side view is solved still in such a way:
Code: Select all
for($x = 0; $x < $count; $x += $messagespersite)
{
$y = ($x / $messagespersite) + 1;
if($x == $site)
$sites .= ' '.$y;
else
$sites .= ' <A href="?menu=login&submenu=messages&site='.$x.'" >'.$y.'</a>';
}So only the number of messages ($$count) and the maximally indicated messages per side ($$messagespersite) are handed over.
I'd be very glad if one of you could at least help me solving this difficulties