php中的拖放式座位安排 [英] Drag and drop seating arrangement in Php
问题描述
我们正在创建公共汽车网站,并为其预订车票.管理员希望在这里根据自己的意愿使用拖放操作(包括驾驶员座椅)来创建和修改座位安排.
该座位安排要维护/记录在数据库表中(在mysql中).在保存Mysql表中的座位安排中讨论的表结构似乎很漂亮接近我们正在寻找的
对于我们来说,不可行的部分是拖放及其在mysql数据库表中的维护,该表应该对每次拖放都具有响应,并应相应地进行更新.
我确信有人会提出解决方案.我猜可以使用ajax,但对于ajax来说,我们还很陌生.因此,如果有人提出ajax解决方案,我真的会要求详尽的答复.
( N.B.:编码将在php中完成)
您的要求不仅只能通过PHP来满足,您还需要使用javascript/jquery和html5 ..>
这是drag and drop jquery
和retrieving the array
的一个很好的例子.示例可以在此处进行演示和下载.
http://www.webresourcesdepot.com/dynamic -dragn-drop-with-jquery-and-php/
也看看这个.
saving seat arrangement in Mysql table seems to be pretty close to the one we are looking for
The non-feasible part for us is the drag and drop and its maintainance in a mysql database table which is expected to be responsive to every drag and drop and should update itself accordingly.
I am sure somebody is going to come to out with a solution.I guess ajax could be used but we are pretty much new to ajax. Therefore I would really request an elaborate reply if someone comes out with a solution in ajax.
(N. B.: Coding is to be done in php)
Your requirement could not only be fulfilled by only PHP, you need to use javascript/jquery and html5 as well..
Here is a good example of drag and drop jquery
and retrieving the array
.. A demo and download is available there for the example..
http://www.webresourcesdepot.com/dynamic-dragn-drop-with-jquery-and-php/
and also have a look at this..
这篇关于php中的拖放式座位安排的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!