javascript php中的时间选择器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5362441/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
time picker in php
提问by user667340
please help me out regarding time in php. I want to make time selection for a website that offers their services at different time . I want to make it like a date picker calendar . I haven't find anything yet . i can make in drop down box but showing the 60 min drop down looks quite ugly . plz help me out regarding this .
请帮助我解决有关 php 时间的问题。我想为在不同时间提供服务的网站进行时间选择。我想让它像一个日期选择器日历。我还没有找到任何东西。我可以在下拉框中制作,但显示 60 分钟的下拉菜单看起来很丑陋。请帮我解决这个问题。
回答by Muhammad Shahab
Well I won't recommend you making it from scratch. Instead you can use the jquery plugins available freely :). Some of them I recommend are
好吧,我不建议你从头开始制作。相反,您可以使用免费提供的 jquery 插件:)。我推荐的其中一些是
1) Full Calendar
1) 完整的日历
FullCalendar is a famous jQuery calendar plugin which offers features like drag-and-drop, integration with Google Calendar and able to fetch events through JSON. Designers can easily customize the look and feel of the calendar, while developers can utilize the exposed hooks for user-triggered events.
Website: http://arshaw.com/fullcalendar/
FullCalendar 是一个著名的 jQuery 日历插件,它提供诸如拖放、与 Google 日历集成以及能够通过 JSON 获取事件等功能。设计人员可以轻松自定义日历的外观和感觉,而开发人员可以利用暴露的钩子来处理用户触发的事件。
2) jQuery Interactive Date Range Picker
2) jQuery 交互式日期范围选择器
This powerful date range picker is a modified version of jQuery UI's Datepicker component. It has a quicker date selection from a list of preset dates/ranges and a smooth transitions. The latest version uses the jQuery UI 1.7 and jQuery UI CSS Framework. With the power of jQuery UI, user can now switch the calendar theme easily.
这个强大的日期范围选择器是 jQuery UI 的 Datepicker 组件的修改版本。它可以从预设日期/范围列表中更快地选择日期,并且可以平滑过渡。最新版本使用 jQuery UI 1.7 和 jQuery UI CSS 框架。借助 jQuery UI 的强大功能,用户现在可以轻松切换日历主题。
回答by Francois Gelinas
You might like my jQuery UI timepicker plugin. I built it to looks like the jQuery datepicker.
您可能会喜欢我的 jQuery UI timepicker 插件。我将它构建为看起来像 jQuery 日期选择器。
回答by Dr McKay
Use HTML5, it natively supports date pickers and all time-related inputs. See http://diveintohtml5.ep.io/forms.html
使用 HTML5,它本机支持日期选择器和所有与时间相关的输入。见http://diveintohtml5.ep.io/forms.html