May 26, 2008 -
A few bugfix and a bit of work on P4A_Table for a better readability:
- a default submit button was added to P4A default HTML form
(hidden and without events) to solve the
enter key bug (propagating event to the first button)
- mouseover on system messages pause the fadeOut timer giving
more time to read the messages
- P4A_Table_Col::setHeader() method was marked deprecated
- P4A_Table_Rows and P4A_Table_Col now trigger the onclick event
(in addition to beforeclick and afterclick) useful if you don’t
want the table to move your linked P4A_Data_Source
- P4A_Table::showTitleBar() method was removed because obsolete
- P4A_Table_Rows::disable() won’t disable table’s “action cols”
- A P4A_Table’s caption small rendering bug with safari was solved
- P4A_Table’s CSS was modified for a better readability
- jQuery was updated to 1.2.6
- P4A_Redirect_To_Url() global method was added, useful if you want to
redirect the user outside P4A
Download P4A 3.0.0-rc4, but before downloading, please take a minute to nominate P4A for the Sourceforge 2008 community choice awards:

New icon set survey
As you may know the default P4A’s icon set has been the “nuvola” one for ages, now for the 3.0 release we’re asking you if you continue to love the nuvola style or you wish to switch to the tango icon set (preview below, click to enlarge):

We’re waiting for your feedback!!
Filed in: P4A, PHP, Things I do
May 22, 2008 -
Thanks to your feedback we have a few improvements beside some fixes that are usual for a RC release.
Highlights of this release:
- P4A_DB_Navigator drag&drop implemented
- date P4A_Field now allows inputing dates by hand
- P4A_DB_Source::setTable() now supports database views
Complete changelog:
- file upload check and error reporting was enhanced
- a bug with file download within a non-ajax environment was solved
- Zend Framework was updated to 1.5.2
- P4A_Redirect_To_File() global function now checks if the file really
exists within P4A_UPLOADS_DIR, otherwise throws a P4A_Exception
- P4A_Tab_Pane’s pages’ labels are now auto translated on getAsString()
- P4A_Field::getAsDate() does not set the field “readonly” anymore thus
now dates can you written by hand too
- jQuery was updated to 1.2.5
- jQuery::UI::datepicker javascript file was replaced with the packed one
which is only 20kb instead of 60kb
- folder_home icon was changed with a new one that degrades to GIF in a
better way
- jQuery::UI::core, draggable and droppable 1.5b4 were added
- P4A_DB_Navigator’s drag&drop movements were implemented
- P4A_DB_Table::_setupPrimaryKey() method was added, it just calls
the parent::_setupPrimaryKey() avoiding exceptions (used when the
table has no primary keys)
- P4A_DB_Source now supports database views within the setTable() method
- P4A_DB_Source::load() now does not set pk if P4A_DB_Table does not
return one or more pk(s)
- jQuery::dimensions plugin was removed because it has been bundled to
the jQuery core
- P4A_Mask’s default template now includes CSS first and then JS, solving
some jQuery related issues (on safari/opera)
- fix_date option was added to P4A_I18N::_normalize() method
- jQuery::form plugin was updated to 2.10
Before downloading please remember to nominate P4A for the SF 2008 community choice award!

Download P4A 3.0.0-rc3 :-)
Filed in: P4A, PHP, Things I do
May 21, 2008 -
Hello everybody,

I worked a lot on 3.0-rc3, mostly on 2 things:
- patching the db_source so that the setTable() method could work with database views too
- update jQuery to 1.2.5 and implement drag&drop for db_navigator again
I’ve to say that I’m quite stuck with jQuery development, there are many delays and this release introduces (at least in our usage) a lot of regressions due to the integration of the “dimensions” plugin within jQuery core. Many things doesn’t work anymore on Safari 3.1 (win), there are some weird behaviours with opera (but there were also before the latest updates) and the drag&drop has issue on all browsers (ok, jQuery UI 1.5 is in beta, but the problems I’m talking about are related to the “dimensions” plugin again).
I filled a few bug reports on jQuery’s trac, let’s see what happens but I’m in a bad mood now and I can’t release the rc3.
Commercial license update
We finally have a draft of P4A Commercial License Agreement but it should be pretty definitive…
We think we can confirm the 100 Eur + 20% VAT (total = 120 Eur) for every developer, with a year of free upgrades.
Some sample of commercial policy:
- If 2 analysts and 3 developers work together on a commercial software based on P4A, than you should buy 3 licenses
- If a company buys 3 licenses and after 2 years the company wants to have new commercial updates, the company will have to pay for all developers that will work again on the commercial applications. Buying only 1 license to gain the commercial package won’t be enough if the application is coded by other developers (also if they have a previous license).
Hope it’s all enough clear.
Please write me all your considerations.

UPDATE: digging on jQuery’s trac I found a post where someone told to change the inclusion order (CSS before JS), I tried and that fixed all bugs. I’ve updated the bugs I filled with this info. I think we can release the rc3, just need a few more test.
Filed in: P4A, PHP, Things I do
May 13, 2008 -
The are a lot of things to talk about today, let’s start.
MOST IMPORTANT: SF 2008 COMMUNITY CHOICE AWARDS
Please take 1 minute to vote P4A in the “Best Tool or Utility for Developers” category (you can nominate P4A for more categories but we think that the suggested one is the right).

THE RELEASE
This is nothing more than a bugfix release, here’s the changelog:
- a bug with P4A_Field::getAsCheckbox() method was solved
- when a P4A_Field’s value is coming from a POST, P4A::main() now checks if the field is enabled
- translations were synched
Download P4A 3.0.0-rc2
P4A WEBSITE
We took some time to work on the website and add some cools features, first of all a nice screenshot section, powered by jquery and the jcarousel and lightbox plugins.
Here you have a screenshot of the new page:

Be sure to check the new website at:
http://p4a.sourceforge.net/
In the new link bar you can find the constantly updated code reference and the link to the translation tools and everything else you will need to live in the P4A world.
P4A WIKI
The new wiki is installed and available here:
http://p4a.crealabsfoundation.org/wiki/
it’s completely empty but you can start registering and we will discuss what to publish and how to do that in the next few days.
PS: the wiki is not linked from the home page yet, we’ll wait for some contents to do that.
MISCELLANEOUS
- We’re working on the commercial license and we hope to have it ready soon
- it seems that the new jquery and jquery UI release will be out in a few days, if it will be so we’ll be happy to include it in P4A 3
- I’m sure I’m forgetting something :-)
see you soon and spread the word!!!

Filed in: P4A, PHP, Things I do
May 5, 2008 -
Just a few days after the 2.0.2 it’s time to download the new 2.0.3. It’s only a minor minor minor update release, just some documentation changes and the uck-gui icon was moved from the “utility” menu to the “system tools” menu.
Download UCK 2.0.3
PS: Sorry for the ugly post, I’m really out of time now :-)
Filed in: Things I do, UCK
May 5, 2008 -
Time to release some bugfixes and prepare for the stable release, we had to cut out jQuery UI (and P4A_DB_Navigator’s drag&drop) from our roadmap ’cause it seems that jQuery UI won’t be released soon and we can’t wait anymore.
Anyway, here is the changelog:
- saveUploads() method was moved from P4A_Mask to P4A_Data_Source
- P4A_DB::quote() method’s 2nd param “autoquote” is now false by default,
solving some problems with P4A_Data_Field::getSQLValue() and getSQLNewValue()
- when P4A_DB_Source needs a quoted value now it uses P4A_DB->quote() with
autoquote turned on
- P4A_DB::quote() method, if autoquote param is on, always encloses the value
within single quotes
- jQuery::form was updated to 2.0.8
- jQuery::iFixPNG was updated to 2.1
- P4A_Menu’s CSS were changed a bit solving a bug with IE6 (too fast hide)
- P4A_DB_Navigator movements were disabled (due to the unavailable jQuery UI release)
thus now all allowMovements methods trigger errors
We’ll let this release “rest” for some weeks, during this time we’ll work on the documentation and website, fixing the bugs that will eventually come out. If everything will go smoothly as I hope, we’ll simply have to sync translations and release it as 3.0.0 final.
Download P4A 3.0.0-rc1, please help us with translations and report us all the bugs you find! Thank you so much!
Filed in: P4A, PHP, Things I do
May 2, 2008 -
It was a long time since the last UCK release but… it actually works pretty well for its purpose, anyway we thought it was time for an update.
With 2.0.2 you’ll find that UCK is now released under GPL3, I love it :-)
This new release adds support for Ubuntu 8.04 (hardy heron).
I worked on the (small) patched working on “Ubuntu Italian ISO” and Minibuntu thus it should be tested enough.
Download UCK 2.0.2
Filed in: Things I do, UCK