Giter Club home page Giter Club logo

timeclock's Introduction

Timeclock

A simple time clock application for hourly employees built with AngularJS, using PHP/MySQL as a backend.

Features

  • Simple clock in/out functionality. Employees select their name from a drop down, and the system displays buttons that allow them to clock in or out, based on what their last action was. It also displays their total hours for each day and week, for both the current pay period as well as the last.
  • Admin functions:
    • Add new users. Activate/deactivate existing users.
    • Add/edit/delete punches for individual users.
    • Generate a simple report for each pay period, that shows total hours for each employee, with weekly breakdowns.

Todo

  1. Exportable file to make it easier to upload to ADP or similar.

  2. Easy settings to change pay period start day.

  3. Overtime indicators.

  4. Comparison against scheduled hours.

License

Creative Commons by-sa

Timeclock by Sean Ryan is licensed under a Creative Commons Attribution-ShareAlike 3.0 United States License.

Required Libraries

jQuery 1.8.3

AngularJS 1.0.7

MomentJS 2.0.0

Meekro 2.1

Database Structure

User table:

CREATE TABLE `users` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL DEFAULT '',
  `active` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Timeclock table:

CREATE TABLE `clock` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL,
  `clockIn` datetime NOT NULL,
  `clockOut` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Misc

db.config.php file omitted for obvious reasons. Format is below:

DB::$user = 'DBUSER';
DB::$password = 'DBPASS';
DB::$dbName = 'DBNAME';

timeclock's People

Watchers

James Cloos avatar Hendy A. Setiawan avatar

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.