简体   繁体   English

试图找到一个(jquery?)弹出日期/时间选择器并回调到php

[英]Trying to find a (jquery?) popup date/time selector with callback to php

I have a large table with input boxes. 我有一张带输入框的大桌子。

Three columns of these are dates/times (in unix format). 其中三列是日期/时间(以Unix格式)。

Im trying to find an easy to implement way of allowing the user to click on this box, being able to (graphically) select a date/time, and when done, sending the selection to a php script to make the physical changes of the data. 我试图找到一种易于实现的方法,允许用户单击此框,能够(以图形方式)选择日期/时间,完成后将选择内容发送到php脚本以对数据进行物理更改。 (i can convert the date/time back to unix from here if necessary). (如有必要,我可以从此处将日期/时间转换回UNIX)。

The caveat is that each input is named dynamically according to its row number. 需要注意的是,每个输入都根据其行号动态命名。

Here is my script where i output the date fields 这是我的脚本,我在其中输出日期字段

}elseif(in_array($j, array(19,33,54))){
    echo "<td><input type=text value=\"$value\" name=\"date$j\" class=med></td></td>";

jQuery UI datepicker supports a great number of options and events including an on-select event . jQuery UI datepicker支持大量选项和事件,包括on-select事件 It's also possible to have a datepicker attached to a hidden input with a separate activation control, so there's no problem at all with using it for AJAX. 还可以使用单独的激活控件将日期选择器附加到隐藏的输入上,因此将其用于AJAX完全没有问题。

尝试集成jQuery datepicker,但是您需要做的是对PHP进行某种Ajax调用!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM