PHP part of dat-grid (highly configurable framework to create web pages/mails in drag and drop)