phpUI is an HTML widget set for web-based PHP
applications. Supports loading different widget sets based on the
browser ID string. Supports widgets for rollover buttons, Panes and
DHTML popups, sliders, and spinboxes.
phpUI (php User Interface)
phpUI is an HTML widget set for web-based PHP applications. The widgets are both Netscape and IE compatible
(CSS and DOM required - no NS 4.7), and different widget sets can be loaded based on the browser ID string.
They are:
- Rollover buttons
- Panes and DHTML popups
- Slider
- Spin box
As an example, here is the PHP code necessary to create a pane
<html>
<head>
<?php
require "php/blade.inc";
$blade = new Blade("php/", "blade/");
$blade->importTheme("themes.cx.core");
$blade->out();
?>
</head>
<body>
<?
$p = new Pane("id_here", "popout-blue", array("header" => "test pane", "type" => "dynamic", "width" => "200px"));
$p->open();
?> hi <?
$p->close();
?>
</body>
<html>
You can download phpUI from the project's Sourceforge Project Page.
If you'd like to kick it around, you also need a copy of blade-ui, version 0.5.1.
- Go to an empty folder in your web server and extract the php-ui and blade-ui zip files.
- Grab the blade patch from the php-ui site, and extract it into blade's tools directory.
- Re-build the blade themes by running build-all.bat (requires saxon.exe - see blade's site for more info)
- Create a file named test.php, and paste the above PHP code into it.
- In the second PHP line above, change the arguments to the Blade constructor to point to the names of
the php and blade folders. For example, if the php folder is named phpui-v0.1, change the argument to "phpui-v0.1/"
- You're ready to go.
|