CSE Display - Information That Moves
Test 4MinimizeMove
Cannot move up and down,
no small mode,
but can minimize or change side.
Test 1SmallMinimizeHigherLowerMove
Blah, blah
blah blah
blah...
Test 2SmallMinimizeHigherLowerMove
Blah, blah
blah blah
blah...
Test 3 - Fix
Blah, blah
blah...
But what comes in those side columns?

It is common in current website design to have small information elements in the side columns. Those elements can be a table of content, a list of other users online, statistics about the site...

With CSE Display, this is supported easily:

<?php
$id 
$myHTML->addPanel("test1"); // this name is important and must be unique. If you change the name, you loose the preferences...
$myHTML->IP_setTitle($id,"Test 1");
$myHTML->IP_appendBody($id"Blah, blah<br>blah blah<br>blah...");
$id $myHTML->addPanel("test2");
$myHTML->IP_setTitle($id,"Test 2");
$myHTML->IP_appendBody($id"Blah, blah<br>blah blah<br>blah...");
$myHTML->IP_setMainPage("index5.php"); // the buttons must know which page to call...
?>

The syntax is slightly more complex then for other elements, because we did not simply spool some text in there, we created independant object which are able to manage themselves...

Using cookies, these Information Panels remember where they are, and in which state (maximized, minimized, or 'small').

Automatically, the panels gets a collection of buttons and when the buttons are clicked they send a 'GET' query.

The next time addPanel("test1") is called, the function search for this get string, and, if found, adapt the preference cookies for itself.

Finally, of course, each panel displays itself according to the preference set in the cookie.

Have a try be clicking on some of those buttons...

Note that if you want a fixed box, you can stop it from using cookies and accordingly remove the buttons:

<?php
$id 
$myHTML->addPanel("test3""large""RIGHT"010);
// This one is "advanced", but for the demo:
$myHTML->infopanels[$id]->setPriority(-50);
$myHTML->IP_setTitle($id,"Test 3 - Fix");
$myHTML->IP_appendBody($id"Blah, blah<br>blah...");
?>

The presence of buttons can also be more finely controled:

<?php
$id 
$myHTML->addPanel("test4""large""RIGHT"119);
$myHTML->infopanels[$id]->setPriority(-40);
$myHTML->IP_setTitle($id,"Test 4");
$myHTML->IP_appendBody($id"Cannot move up and down,<br>no small mode,<br>but can minimize or change side.");
?>

The cookies are based on the name you give in the addPanel() function. On any page of your website, panels with the same name will share the preferences. You can check this by putting Panel 'Test 1' to the right before going to the next page.

By the way, Panels appear by default in a region named 'LEFT'. If you don't have such a region in your template, you will have to specify the region in the addPannel command like;

<?php
$id 
$myHTML->addPanel("test3""large""MY_COOL_REGION_WHERE_THE_PANEL_APPEARS");
?>

You can of course specify the list of regions (all) the panels can move to, and the "Change Side" button (right/left arrows) will be used to switch between 2 regions or rotate between an arbitrary number of regions.

Go to the Next Page or return to the Previous Page
Made with CSE_display, © CSE, 2008