TAILIEUCHUNG - Thiết kế mạng xã hội với PHP - 32

Tạo sự kiện" mẫu của chúng tôi đơn giản chỉ cần các lĩnh vực cho tên, ngày tháng, thời gian bắt đầu, kết thúc thời gian, mô tả, và hộp kiểm cho tất cả bạn bè của người dùng. Chúng tôi có thể cung cấp cho các trường ngày một lớp học của selectdate, để làm cho việc sử dụng của datepicker jQuery plug-in, chúng tôi được sử dụng cho các cấu hình. Chúng tôi cũng có thể sử dụng bảng chọn thời gian plug-in cũng vậy, để làm cho thời gian lựa chọn dễ dàng hơn. Các vòng lặp. | Events and Birthdays Template for a new event Our Create event template simply needs fields for the name date start time end time description and checkboxes for all of the user s friends. We can give the date field a class of selectdate to make use of the jQuery datepicker plug-in we used for profiles. We may also wish to use the time picker plug-in too to make time selection easier. The friends loop is highlighted in the following code div id main div id rightside div div id content h1 Create an event h1 form action event create method post label for Name label br input type text name name br label for Type of event label br select name type option value public Public event option option value private Private event option select br label for Date label br input type text class selectdate name date br label for Start time label br input type text class selecttime name start_ time br label for End time label br input type text class selecttime name end_ time br label for Description label br textarea name description cols 45 rows 6 textarea br h2 Invite friends h2 p Select any friends you would like to invite to the event. p -- START all -- input type checkbox name invitees 1 value ID users_name -- END all -- br ----------------------------------- 292 ------------------------------- Download from Wow eBook Chapter 9 input type submit name value Create event form div div Now if we visit the create event page event create we see the form This makes use of the very helpful datepicker plugin 293 Download from Wow eBook Events and Birthdays Calendar of events We looked earlier at integrating the calendar library with birthdays so why not try and integrate the events with the calendar too The code is in the download bundle for this book if you need help. Viewing an event To view an event we simply call the toTags method on the model and build the template. We should also list users who have been invited are attending are not attending and

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.