Báo cáo tài liệu vi phạm
Giới thiệu
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
THỊ TRƯỜNG NGÀNH HÀNG
NÔNG NGHIỆP, THỰC PHẨM
Gạo
Rau hoa quả
Nông sản khác
Sữa và sản phẩm
Thịt và sản phẩm
Dầu thực vật
Thủy sản
Thức ăn chăn nuôi, vật tư nông nghiệp
CÔNG NGHIỆP
Dệt may
Dược phẩm, Thiết bị y tế
Máy móc, thiết bị, phụ tùng
Nhựa - Hóa chất
Phân bón
Sản phẩm gỗ, Hàng thủ công mỹ nghệ
Sắt, thép
Ô tô và linh kiện
Xăng dầu
DỊCH VỤ
Logistics
Tài chính-Ngân hàng
NGHIÊN CỨU THỊ TRƯỜNG
Hoa Kỳ
Nhật Bản
Trung Quốc
Hàn Quốc
Châu Âu
ASEAN
BẢN TIN
Bản tin Thị trường hàng ngày
Bản tin Thị trường và dự báo tháng
Bản tin Thị trường giá cả vật tư
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
NGÀNH HÀNG
NÔNG NGHIỆP, THỰC PHẨM
Gạo
Rau hoa quả
Nông sản khác
Sữa và sản phẩm
Thịt và sản phẩm
Dầu thực vật
Thủy sản
Thức ăn chăn nuôi, vật tư nông nghiệp
CÔNG NGHIỆP
Dệt may
Dược phẩm, Thiết bị y tế
Máy móc, thiết bị, phụ tùng
Nhựa - Hóa chất
Phân bón
Sản phẩm gỗ, Hàng thủ công mỹ nghệ
Sắt, thép
Ô tô và linh kiện
Xăng dầu
DỊCH VỤ
Logistics
Tài chính-Ngân hàng
NGHIÊN CỨU THỊ TRƯỜNG
Hoa Kỳ
Nhật Bản
Trung Quốc
Hàn Quốc
Châu Âu
ASEAN
BẢN TIN
Bản tin Thị trường hàng ngày
Bản tin Thị trường và dự báo tháng
Bản tin Thị trường giá cả vật tư
Thông tin
Tài liệu Xanh là gì
Điều khoản sử dụng
Chính sách bảo mật
0
Trang chủ
Công Nghệ Thông Tin
Đồ họa - Thiết kế - Flash
Tạo mạng xã hội với PHP - part 30
Đang chuẩn bị liên kết để tải về tài liệu:
Tạo mạng xã hội với PHP - part 30
Thái Bình
72
10
pdf
Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG
Tải xuống
Events and Birthdays $calendarNext-buildMonth(); // days $this-registry-getObject('template')-dataToTags( $calendarNext-getDaysInOrder(),'cal_2_day_' ); // dates $this-registry-getObject('template')-dataToTags( $calendarNext-getDates(),'cal_2_dates_' ); // styles $this-registry-getObject('template')-dataToTags( $calendarNext-getDateStyles(),'cal_2_dates_style_' ); // data $this-registry-getObject('template')-dataToTags( $calendarNext-getDateData(),'cal_2_dates_data_' ); With events To display event information alongside dates in the calendar, we simply need to pass an array of data to our calendar library, indicating which days have events, and we can also pass the data itself for inclusion in the calendar: // pass data to the calendar for inclusion $calendar-setData( $data ); // tell the calendar which days should be highlighted $calendar-setDaysWithEvents($days); We simply pass an array of dates that have events, and an array of event data. Both. | Events and Birthdays calendarNext- buildMonth days this- registry- getObject template - dataToTags calendarNext- getDaysInOrder cal_2_day_ dates this- registry- getObject template - dataToTags calendarNext- getDates cal_2_dates_ styles this- registry- getObject template - dataToTags calendarNext- getDateStyles cal_2_dates_style_ data this- registry- getObject template - dataToTags calendarNext- getDateData cal_2_dates_data_ With events To display event information alongside dates in the calendar we simply need to pass an array of data to our calendar library indicating which days have events and we can also pass the data itself for inclusion in the calendar pass data to the calendar for inclusion calendar- setData data tell the calendar which days should be highlighted calendar- setDaysWithEvents days We simply pass an array of dates that have events and an array of event data. Both arrays use the day of the month as the key. Birthdays Birthdays should be a fairly straightforward feature for us to implement. We need to Add an additional profile field for the user s birthday Look up the date of birth of our user s contacts Calculate their age Send the data to the calendar Generate the calendar view Display a list of upcoming birthdays to our users 272 Download from www.eBookTM.com Chapter 9 Getting relationship IDs For us to quickly look up the birthdays of a user s connections we need to quickly gain access to the IDs of users another user is connected to. We have some similar functionality in our relationships model models relationships.php however the following method will give us a query returning IDs. We can then use this as a sub query in our birthdays lookup query Get IDs of users a user has a relationship with @param int user the user in question @param bool cache - cache the results or return the query return String int public function getIDsByUser user cache false sql SELECT u.ID FROM users u profile p relationships r relationship_types t WHERE t.ID r.type
TÀI LIỆU LIÊN QUAN
Tạo mạng xã hội với PHP - part 1
Tạo mạng xã hội với PHP - part 2
Tạo mạng xã hội với PHP - part 3
Tạo mạng xã hội với PHP - part 4
Tạo mạng xã hội với PHP - part 5
Tạo mạng xã hội với PHP - part 6
Tạo mạng xã hội với PHP - part 7
Tạo mạng xã hội với PHP - part 8
Tạo mạng xã hội với PHP - part 9
Tạo mạng xã hội với PHP - part 10
Đã 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.