项目作者: foridpathan

项目描述 :
Full functional Ajax Admin Theme with Codeigniter 4
高级语言: JavaScript
项目地址: git://github.com/foridpathan/Codeigniter-Ajax-Admin-Theme-with-dynamic-menu.git


Codeigniter Ajax LobiAdmin Theme with dynamic menu

Full functional Ajax Admin Theme with Codeigniter 4. Completely functional user registration, login and lock screen system.

Features

  • User Registration
  • User Login
  • Auto-lock screen after 2 minutes
  • Dynamic multiple menus
  • Also whole features of LobiAdmin

Installation

  • Download and unzip all files.
  • Create a database and import cl_ajax.sql.zip file
  • Run this application using your localhost or simply run command php spark serve
  • Login username admin and passwork 123456

More information

Auto-lock screen code

  1. $(function() {
  2. function timeChecker() {
  3. setInterval(function() {
  4. var storedTimeStamp = sessionStorage.getItem("lastTimeStamp");
  5. timeCompare(storedTimeStamp);
  6. }, 3000);
  7. }
  8. function timeCompare(timeString) {
  9. var maxMinutes = 1; //GREATER THEN 1 MIN.
  10. var currentTime = new Date();
  11. var pastTime = new Date(timeString);
  12. var timeDiff = currentTime - pastTime;
  13. var minPast = Math.floor((timeDiff / 60000));
  14. if (minPast > maxMinutes) {
  15. sessionStorage.removeItem("lastTimeStamp");
  16. window.location = baseURL + "users/autoLogout";
  17. return false;
  18. } else {
  19. //JUST ADDED AS A VISUAL CONFIRMATION
  20. console.log(currentTime + " - " + pastTime + " - " + minPast + " min past");
  21. }
  22. }
  23. if (typeof(Storage) !== "undefined") {
  24. $(document).mousemove(function() {
  25. var timeStamp = new Date();
  26. sessionStorage.setItem("lastTimeStamp", timeStamp);
  27. });
  28. timeChecker();
  29. }
  30. });

If there any qoery feel free to contact us:

foridpathan45@gmail.com

Donation

If this project help you reduce time to develop, you can give me a cup of coffee :)

paypal