GithubHelp home page GithubHelp logo

ifa6 / bootstrapfull Goto Github PK

View Code? Open in Web Editor NEW

This project forked from patrichs/bootstrapfull

0.0 3.0 0.0 4.61 MB

Full admin panel with lots of features including front-end, back-end (vanilla PHP), ajax and database (MySQL)

bootstrapfull's Introduction

This project is intended to deliver full back-end, ajax and database support to VinceG's Bootstrap Theme.

A preview of how it looks like can be seen here: http://i.imgur.com/1T0PLVo.png

Installation:

  1. Download this project
  2. Extract to a folder within your www
  3. Create a new database and run the SQL commands at the bottom of the page
  4. Navigate to /admin/php/configs/dbconfig.php and set your database info
  5. Navigate to /admin/register.html and register an account
  6. Navigate to /admin/login.html to login
  7. All done.

Current features:

  • Users
  • Groups
  • Graphs
  • Logs
  • Files
  • Autocomplete (working meh)
  • "Notifications"

All features uses AJAX so the content is always dynamically altered without reloading the page.

If you want to add a feature yourself this is how I do it:

  • Implement the bootstrap HTML code
  • Change the CSS if I want to change anything specific
  • Write a new Javascript function that alters the element(s) and posts to a php page
  • Write a new function in dbClass.php that fetches/alters info in the database
  • Create a new php file that takes input from the AJAX call and modifies the output from the previously written function in dbClass.php depending on what I want.

--- Run these queries on your database ---

CREATE TABLE IF NOT EXISTS files ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(64) COLLATE utf8_swedish_ci NOT NULL, location varchar(256) COLLATE utf8_swedish_ci NOT NULL, uploaded datetime NOT NULL, type varchar(16) COLLATE utf8_swedish_ci NOT NULL, uploader int(11) NOT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS groups ( groupid int(11) NOT NULL AUTO_INCREMENT, groupname varchar(32) COLLATE utf8_swedish_ci NOT NULL, PRIMARY KEY (groupid), UNIQUE KEY unique_groupid (groupid) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS logs ( logsid int(11) NOT NULL AUTO_INCREMENT, eventid int(11) NOT NULL, eventtitle varchar(32) COLLATE utf8_swedish_ci DEFAULT NULL, eventdesc varchar(1024) COLLATE utf8_swedish_ci NOT NULL, eventdate datetime NOT NULL, PRIMARY KEY (logsid) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS users ( userid int(11) NOT NULL AUTO_INCREMENT, username varchar(32) COLLATE utf8_swedish_ci NOT NULL, hash varchar(512) COLLATE utf8_swedish_ci NOT NULL, email varchar(60) COLLATE utf8_swedish_ci NOT NULL, groupid int(11) NOT NULL, dateregistered datetime NOT NULL, lastlogin datetime NOT NULL, PRIMARY KEY (userid) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci AUTO_INCREMENT=1 ;

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.