Coder Social home page Coder Social logo

kishor10d / admin-panel-user-management-using-codeigniter Goto Github PK

View Code? Open in Web Editor NEW
333.0 49.0 244.0 34.97 MB

Admin Panel User Management Demo - CodeIgniter + AdminLTE Theme

Home Page: http://cias.codeinsect.com

License: GNU General Public License v3.0

PHP 98.31% HTML 0.28% JavaScript 1.42%
codeigniter codeigniter-adminlte-theme admin-panel codeigniter-admin-panel codeigniter-user-login-system codeigniter-user-login-demo codeigniter-user-registration codeigniter-user-register codeigniter-user-session codeigniter-crud

admin-panel-user-management-using-codeigniter's Introduction

Admin Panel - User Management using CodeIgniter

Admin Panel - User Management Demo using CodeIgniter + AdminLTE Bootstrap Theme

The code is uploaded to demonstrate the simple role based Admin Panel application using CodeIgniter(MVC Framework)

Purpose :

For every website, we need some sort of admin panel to monitor over the content of the website. The developers must have to start with the basic functinalities like login, logout, create/manage admin users, manage their roles, change password, forget password etc. This repository gives you all above things readymade as boilerplate for admin panel (but by using CodeIgniter PHP MVC framework). You just start code to add your project feature in it.

Features

  1. Login, Logout.
  2. Change Password, Forget Password.
  3. Create, Update, Delete Users.
  4. User defined Roles & Access (You can create roles and provide rights to the hardcoded modules).
  5. Login history of Users.

Version Information

1) Upto Release 1.2 - CodeIgniter 2.2, PHP version 5.1.6 or newer, MySQL (4.1+), MySQLi

2) Latest (master) - CodeIgniter 3.1.9, PHP version 5.6 or newer, MySQL (5.1+), MySQLi

Installation

Download the code from repository. Unzip the zip file.

Open browser; goto localhost/phpmyadmin.

Create a database with name "cias" and import the file "cias.sql" in that database.

Copy the remaining code into your root directory:

for example, for windows

WAMP : c:/wamp/www/cias

OR

XAMPP : c:/xampp/htdocs/cias

Open browser; goto localhost/cias and press enter:

The login screen will appear.

To login, I am going to provide the user-email ids and password below.

System Administrator Account :

email : [email protected]

password : admin

Once you logged in with System Administrator account, you can create user or edit previous user if you want. You can set passwords for other users. In the provided Youtube video, the passwords were different when the video was created. So, please use above passwords.

Youtube Links :

CodeIgniter Admin Panel Demo : This video contain the demo of CodeIgniter Admin Panel.

CodeIgniter Admin Panel Demo

How to setup CodeIgniter Admin Panel : This video contain the procedure of setting up CodeIgniter Admin Panel.

How to setup CodeIgniter Admin Panel

ISSUE # 1 : After login "loginMe" controller is not found :

Lot of people raising this issue, I resolved it 4-5 times for every user. People are not searching for closed issues. Thats why I am going to put this here.

How to get over this issue?

  1. enable mod_rewrite.dll (or mod_rewrite.so) by removing leading # in httpd.conf.
  2. After that, follow this solution https://stackoverflow.com/questions/24472349/htaccess-doesnt-work-on-xampp-windows-7

ISSUE # 2 : Call to undefined function password_verify() :

Solution is here : Call to undefined function password_verify()

admin-panel-user-management-using-codeigniter's People

Contributors

agastiazoro avatar danny007in avatar kishor10d avatar softydeveloper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

admin-panel-user-management-using-codeigniter's Issues

Can't login

Fatal error: Call to undefined function password_verify() in D:\xampp\htdocs\code_admin\application\helpers\cias_helper.php on line 46

call_user_func_array()

after install you receive the following error:
call_user_func_array() expects parameter 1 to be a valid callback, class 'Error' does not have a method 'index'
But method index is in the class Error

Server conf: Ubuntu 16.04 simple LAMP (PHP 7, MySql 5.6)

Api feature

can you add api based access of functionality in this project. where for login tokens will be generated so it can be used in android also.

Forgot password mail ok, but link redirect to login

Hi,

I configured your app, which is great, but i cannot get the forgot password to work.
If go to forgot password, i correctly get the email with the link, but everytilme i get redirected to the login page.

The token and email in the link are correct, i veriefied them in the database, so
$is_correct = $this->login_model->checkActivationDetails($email, $activation_id); should return 1.
But for some reason it does not.

Could you please help?

Thanks!

Getting Error Of baseURL in editUser.js file in assets folder

hi @kishor10d,
I m getting an error in editUser.js file in assets folder. The path is in following line:

<script src="assets/js/editUser.js" type="text/javascript"></script>.

When i access the Add New user or edit button on user page i m getting an error. Can you please help me to resolve it.Following is the log error image.
capture

Call to undefined method

Call to undefined method Admin::isLoggedIn()
Admin is controller name. login after this message.

User can redirect back to dashboard after logout.

Hi,
Thanks for this template. I have changed Email with user name for login and its working fine now. But when i logout i have seen that the user can move back to dashboard with the browser forward and backward button. So i want to restrict the user to move back to dashboard with back and forward button. I have seen your template and its working fine and i think this is happened because of username login. Can you please help me out for this. Thanks in advance.

404 Page Not Found

Does anyone facing the following issue? If yes, please share me the solution asap. Thanks in advance.
A PHP Error was encountered
Severity: Warning

Message: call_user_func_array() expects parameter 1 to be a valid callback, class 'Error' does not have a method 'index'

Filename: core/CodeIgniter.php

Line Number: 532

How to implement datatables

I would like to add datatables, please let me know, how to add it. Because when I am adding datatables then after clicking below links of datatables then 404 error occured.

file upload problem

i think you have not updated codeigniter setup properly from 2.2 to 3.1.6 because file upload is not working in the setup please have a look into that i have updated the mime.php in config folder still not working error i am getting is
file type is not allowed when i have define type in config array.

$config = array(
                'upload_path' => "./assets/images/profile",
                'allowed_types' => "image/jpg|image/png|image/jpeg",
                'overwrite' => false,
                'max_size' => "1000",
                'remove_spaces' => true
            );

here i have define the jpg,png,and jpeg but i cant upload any of image file.

Login problem when i try to use your code on my domain

i am using your code to build an application and new to codeigniter.
when i uploaded the code to my cpanel am unable to login. the url showing only mydomain/loginMe
.it redirecting to again login page rather going to dashboard. is their any encryption issue can you please help me out.

Sidebar Not working

sidebar toggle button not working it's not collapsing(on Desktop) and for mobile it's already collapsed.

404 error

Hello, I uploaded the updated version to my domain but I'm getting this error when I trying to login
ERROR - 2018-01-19 11:51:20 --> 404 Page Not Found: /index

The previous version was working fine

How to enable mod_rewrite in Ngnix server

Hi

I have deployed your code in my nginx server and I was able to access login page and after I try to login it is throwing 404 error.

I saw your ReadMe file where you mentioned for apache server. But I'm not able to modify the changes in nginx server. I searched in google and got different answers but nothing worked for me. Help me with this.

adminLTE template

i have added the new version of adminLTE template where i have paste the latest dist folder into assets and removed the existing one. the problem i am getting is that the new template menu work bit diffrent so when i create a sub menu and click on it only the sub menu becomes active, the parent of that sub menu remains in active.
that means i have to add active class to the parent. following is the menu strcture

<li class="treeview">
	<a href="#">
		<i class="fa fa-users"></i>
		<span>Users</span>
		<span class="pull-right-container">
			<i class="fa fa-angle-left pull-right"></i>
		</span>
	</a>
	<ul class="treeview-menu">
		<li><a href=""><i class="fa fa-circle-o"></i>New User</a></li>
		<li id="li"><a id="alink" href="<?php echo base_url(); ?>userListing"><i class="fa fa-circle-o"></i>User List</a></li>
		<li><a href=""><i class="fa fa-circle-o"></i>User Role</a></li>
	</ul>
</li>

because of the code in footer.php only sub menu becomes active not the main.

var windowURL = window.location.href;
        pageURL = windowURL.substring(0, windowURL.lastIndexOf('/'));
        var x= $('a[href="'+pageURL+'"]');
            x.addClass('active');
            x.parent().addClass('active');
        var y= $('a[href="'+windowURL+'"]');
            y.addClass('active');
            y.parent().addClass('active');

can you help with this one.

reset password

When i reset password am unable to login again. for admin, manager and employee.
can please fix this issue

Main Navigation Items

On the Main Navigation Menu on the left hand side, there are a number of items that seem to do nothing:
New Task
My Tasks
Task Status
Task Uploads
Reports

Function BaseTbl

what is the function of 'BaseTbl' in User_model and Login_model? can someone explain it?

Delete does not work, No style when editing a user.

Hi,

I have thoroughly enjoyed your application. I have found that the Delete button in the userListing does not work, and also when I want to edit the user the text and all is there but the template does not pull through.

could you please have a look at that, also I would love it if you built that Task system on, I am am struggling to find a stand alone application for that.

hi kishor

hi bro.
i jst download the admin panel source code.
thanks for it.

Jst wana ask. How do I add sub menu for the side menu?

Incorrect Datetime Value

The following error occurs when trying to add a user

A Database Error Occurred

Error Number: 1292

Incorrect datetime value: '2017-05-03 14:00:36pm' for column 'createdDtm' at row 1

INSERT INTO tbl_users (email, password, roleId, name, mobile, createdBy, createdDtm) VALUES ('[email protected]', '$2y$10$UfpF1pQKJZp8PmRaXsuKHuf5KM.4zke2HkBZCrrL74cnl/Lm.uRjW', '2', 'Spencer Shaw', '7932080811', '1', '2017-05-03 14:00:36pm')

Filename: C:\wamp64\www\Admin-Panel-User-Management-using-CodeIgniter\system\database\DB_driver.php

Line Number: 331

LoginMe not found on this server

Even after following your solution in readme the problem is not resolved.It is perfectly working when it is on godaddy,when i moved it on aws ec2 it's not working.

validation

i have a read only field and i want to make it require where form can not be submitted if that field does not have a value.
value comes dynamic and it can not be change thats why it is read only so can you tell me how i can validate it using your jquery validation.
i use your jquery method like following where txtadd and txt range are readonly but require validation is not firing for those two.
var validator = addDeviceForm.validate({ rules: { txtname: {required: true}, txtdesc: {required: true}, txtadd: {required: true}, txtrange: {required: true, digits: true} }, messages: { txtname: {required: "Fence name is required"}, txtdesc: {required: "Description is required"}, txtadd: {required: "Address is required"}, txtrange: {required: "Range is required", digits: "Only numbers allowed"}, } });

Need multiple admin with multiple users!

I know it's not an issue but it's my requirement,i want multiple admin with multiple users in the current project so what changes i have to do.
let's say what current module does is working with one admin and multiple users,actually i want multiple admin with their respective multiple users.

forget password/mail not working

Hey, sorry to ask something again :)

Maybe do you have any idea why sending emails for forget password is not working.

i started with using my own smtp mail server settings on localhost., i already find out that xampp have no default support for sending mails. so i setup everything to make it work on xampp. but still when i press forget password it says(Email has been failed, try again. ) at this point i thought 2 things or my smtp details are wrong or i i did something wrong with enable sendmail on xampp.

so i tried it with smtp from google on my hosting to see if the problem was just on localhost or my own smtp. but still i get the msg (Email has been failed, try again)

Any idea what it can be?

both own email and gmail are working and i can connect to smtp from my phone.
i setup all details in the constants.php
i tried to enable ssl since my own smtp needs ssl with adding $config['smtp_crypto'] = "ssl"; to the emailConfig function in cias_helper.php

do you have any idea what i do wrong?

My modification

Hi @kishor10d I just downloaded your code and did some modification on them. May I upload the modified code to my repository? I will mention your name in the description/Readme page to give the credit. Thanks in advance.

Change edit route

Hey,

first of all thanks for sharing this project:) for me its the first time working with mvc and codeigniter. i like your example of your own control where you check for the rights. verry usefull for me.

now i am trying to change the routes to make it set to my backend. now only i cant get the edit user route working. is there something special about this route?

for example add new user or user list i changed to
admin/user/list
admin/user/new

$route['admin/user/list'] = 'user/userListing';
$route['admin/user/list/(:num)'] = "user/userListing/$1";
$route['admin/user/add'] = "user/addNew";

now when i do exaxtly the same with editOld.

$route['admin/users/editOld(:num)'] = "user/editOld/$1";
and when i go do admin/user/edit/2

it keeps saying page not found.

also a other question shouldnt be the pageNotFound() not be placed in the base control?

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.