与PHP类似iGoogle的界面[关闭]

问题描述:

I want to create a website that offers users modules/widgets that can be dragged around, closed, minimized... like iGoogle (not necessarily looking like that, it's just an example). These modules/widgets should have the ability to dynamically load the contents from DB and show them. What tool/resource you suggest to do this as fast as possible. I know programming but I'm new to web and PHP and I'm supposed to deliver this project in 20 days tops! So I prefer the minimum amount of learning if possible.

我想创建一个网站,为用户提供可以拖动,关闭,最小化的模块/小部件...... 像iGoogle(不一定看起来像这样,它只是一个例子)。 这些模块/小部件应该能够动态加载来自DB的内容并显示它们。 您建议尽快使用哪种工具/资源。 我知道编程,但我是网络和PHP的新手,我应该在20天内完成这个项目! 所以如果可能的话,我更喜欢最少量的学习。 p> div>

Here's a tutorial from nettuts that teaches just what you're asking for (except the loading from DB part). The live demo is here

This isn't necessarily PHP, what you're referring to is client side. Take a look at jQuery, that allows the minimize/maximize, drag/drop, etc.

There is also other JavaScript libraries out there like MooTools and Prototype.

For this type of project you will require client side scripting i.e. Javascript (PHP is server side scripting)

JQuery makes writing Javascript considerably less tedious and JQuery UI allows you to add interactions to DOM objects such as: Draggable, Droppable, Resizable, Selectable, Sortable which will make creating the widgets much easier. http://jqueryui.com/

You might not need to write the windowing yourself the Elgg social network PHP framework has a theme called the Deyan Shell which pretty much does what you need out of the box: http://community.elgg.org/pg/plugins/project/752334/developer/vabel/deyan-shell