Giter Club home page Giter Club logo

events's Introduction

events

Module sự kiện thích hợp với khối giáo dục

Chức năng admin

  • Quản lý chủ đề
  • Quản lý sự kiện

Chức năng site

  • Hiển thị sự kiện theo thời gian đăng
  • Xem chi tiết sự kiện
  • Xem sự kiện theo chủ đề
  • Xem sự kiện đã kết thúc, chưa diễn ra, đang diễn ra
  • Xem sự kiện theo ngày
  • Sitemap, rss, tìm kiếm

Các block

  • Block global.events.php: Sự kiện dạng list, ưu tiên tự kiện sắp diễn ra
  • global.calendar.php: Xem sự kiện theo dạng lịch, sự kiện chưa bắt đầu đang diễn ra và đã kết thúc.

Ghi chú: Để xem sự kiện theo chủ đề, dùng module menu, tạo khối menu và import menu từ module sự kiện sau đó thêm block của module menu là được.

events's People

Contributors

hoaquynhtim99 avatar mathagu avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

events's Issues

Lỗi tính toán ở global.calendar.php

Có một lỗi nhỏ trong xử lý hiển thị block Global Calendar, là ngày có sự kiện không chính xác.

Lý do: Các dòng 96 - 99 trong file global.calendar.php là
$array = array();
foreach ($list as $row) {
$array[date('j', $load_event_calendar)][$row['id']] = $row['title'];
}

Còn dòng 105 là
'has_event' => empty($array[date('j', $i)]) ? '' : 'has-event'

với $i từ vòng lặp
for ($i = $time_start_calendar, $j = 1; $i <= $time_end_calendar; $i += 86400)

Do không có sự tương ứng date('j', $i) và date('j', $load_event_calendar) nên hiển thị ở block sai như sau:
Có 2 sự kiện diễn ra ngày 07/01/2017 và 15/01/2017, ngày truy cập module là 28/12/2016, thì block báo là có sự kiện vào ngày 10/01/2017 (chỉ có 1 ngày này).

image

Đề nghị thay đổi dòng 98
$array[date('j', $load_event_calendar)][$row['id']] = $row['title'];

thành
$array[date('j', $row['time_start'])][$row['id']] = $row['title'];

Với lệnh này thì đã hiển thị đúng!

delete a category error

When you press the button to delete a category, the system goes to the menu to enter the admin control panel

Module lỗi trên 4.0.29

  • Cài đặt không tự động kích hoạt trực tiếp module
  • Kích chọn trang chính của module không có giá trị trả về nên trắng trang
  • Thêm sự kiện thì phần chủ đề chưa tạo thì nó vẫn không bắt lỗi
  • Thêm sự kiện thì phần Liên kết tỉnh không tự động tạo được
  • Khi click thêm sự kiện thì không thực hiện được báo lổi trắng trang
    Thấy module hay quá nên cài dùng thử nhưng chưa sử dụng được gì hết. Cảm ơn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.