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. It is based on the blade-ui project's architecture and widget set, but only a partial set of widgets have been ported so far. They are:

As an example, here is the PHP code necessary to create a pane (see blade-ui's sample page for an example of what a popout-themed pane looks like).

	<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.

  1. Go to an empty folder in your web server and extract the php-ui and blade-ui zip files.
  2. Grab the blade patch from the php-ui site, and extract it into blade's tools directory.
  3. Re-build the blade themes by running build-all.bat (requires saxon.exe - see blade's site for more info)
  4. Create a file named test.php, and paste the above PHP code into it.
  5. 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/"
  6. You're ready to go.


SourceForge.net Logo