College Management System

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 39

College Management System

SOFTWARE REQUIREMENT

GENERAL DESCRIPTION

Process Overview

This system reduces the human effort and time in identifying the rumor
sources in social network and the process involves
1. Narrowing down the scale of suspects
2. Determining the source with the maximum ML estimate
3. Diagnosing the malicious nodes

Assumptions and Dependencies

The following assumptions are made in the implementation:


1. Navigation through the nodes is easy
2. The simulator works properly
3. The system works efficiently

PLATFORM DESCRIPTION

Though there are numerous operating systems found in the field of


Information Technology, this project work is exclusively carried out in Windows
operating system.

SOFTWARE DESCRIPTION

Operating System : Windows


Platform : Php
Front End : Php, Html, CSS
Back End : My Sql
Browser : Mozila
Tools : Dream viewer, Sublime

Languages: PHP, Html, Java script , Mysql


OPERATIONAL REQUIREMENTS

Functional Requirements

1 The nodes involved in the network


2 The source node and the malicious node
3 The isolation of suspicious nodes

Data Requirements

The initial data which is stored in the internal storage are the data
requirements of the system.

Performance Requirements

1. Fast connection
2. Maximum storage
3. Controlling devices
4. Low power consumption

Non Functional Requirements

The system also provides these following non-functional requirements:


1. Reliability: The degree of measurement and calculation of the system
can be depended on to be accurate.
2. Scalability: The system has the capacity to perform even when the
number of nodes involved in the network may vary in scale.
3. Maintainability: It is easy to isolate the defects or their cause, correct
defects or their cause, repair or replace the fault.
4. Portability: The software can be easily transferred to another system.
5. Security: The system has a quality of being trustworthy or of
performing consistently well.
SYSTEM DESIGN

SYSTEM ARCHITECTURE

The benefits of college management system for the employee are they can create
any kind of certificate easily using this system. They can easily retrieve all
information related to student and employee. Admin has all the Collective records
of students of all the branches. Admin can check all the records of employees of all
departments anytime. This system gives easy approach to find the detail
information for any student/employee. Using this college management system it is
very easy to handle all functionality of college. This system is beneficial for both
students and employees as they can get all previous or current information when
they need. This system is also helpful to maintain the students record like
admission record, fees record, exam result records. College management system
can help to get all or a particular student attendance information. Also it can help
to maintain the fees and accounting reports of college in proper way. This system
also helps to generate mark sheets of current year.

Use case Diagram:


In the Unified Modeling Language (UML), a use case diagram can summarize the
details of your system's users (also known as actors) and their interactions with the
system. To build one, you'll use a set of specialized symbols and connectors. An
effective use case diagram can help your team discuss and represent:

 Scenarios in which your system or application interacts with people,


organizations, or external systems
 Goals that your system or application helps those entities (known as actors)
achieve
 The scope of your system
SOFTWARE DESCRIPTION

PHP:

PHP stands for Hypertext Preprocessor (no, the acronym doesn't follow the
name). It's an open source, server-side, scripting language used for the
development of web applications. By scripting language, we mean a program that
is script-based (lines of code) written for the automation of tasks.
Web pages can be designed using HTML. With HTML, code execution is
done on the user's browser (client-side). On the other hand, with PHP server-side
scripting language, it's executed on the server before it gets to the web browser of
the user.

PHP can be embedded in HTML, and it's well suited for web development
and the creation of dynamic web pages for web applications, e-commerce
applications, and database applications. It's considered a friendly language with
abilities to easily connect with MySQL, Oracle, and other databases.

PHP scripts can be used on most of the well-known operating systems like
Linux, Unix, Solaris, Microsoft Windows, MAC OS and many others. It also
supports most web servers including Apache and IIS. Using PHP affords web
developers the freedom to choose their operating system and web server.

In PHP, server-side scripting is the main area of operation. Server-side scripting


with PHP involves:

 PHP Parser: a program that converts source and human readable code into a
format easier for the computer to understand
 Web server: A program that executes the file that forms WebPages from
user request.
 Web Browser: An application is used to display content on the World Wide
Web.

MYSQL

MySQL is the most popular Open Source Relational SQL Database


Management System. MySQL is one of the best RDBMS being used for
developing various web-based software applications. MySQL is developed,
marketed and supported by MySQL AB, which is a Swedish company. This
tutorial will give you a quick start to MySQL and make you comfortable with
MySQL programming.

MySQL is a fast, easy-to-use RDBMS being used for many small and big
businesses. MySQL is developed, marketed and supported by MySQL AB, which
is a Swedish company. MySQL is becoming so popular because of many good
reasons −

 MySQL is released under an open-source license. So you have nothing to


pay to use it.

 MySQL is a very powerful program in its own right. It handles a large


subset of the functionality of the most expensive and powerful database
packages.

 MySQL uses a standard form of the well-known SQL data language.


 MySQL works on many operating systems and with many languages
including PHP, PERL, C, C++, JAVA, etc.

 MySQL works very quickly and works well even with large data sets.

 MySQL is very friendly to PHP, the most appreciated language for web
development.

Source Code

<?php

defined('BASEPATH') OR exit('No direct script access allowed');

class Student extends CI_controller{

public function __construct(){

parent::__construct();

$this->load->model('student_model');

$this->load->model('department_model');

$this->load->model('course_model');

$this->load->model('academic_model');
$this->load->model('qualification_model');

$this->load->model('contact_model');

function student_details_list(){

if(user_access("Student")){

$data['student_details_list'] = $this->student_model-
>student_details_list();

$this->load->view('student_details_list', $data);

function add_student_details(){

if(user_access("Student")){

$data['departments'] = $this->department_model-
>get_where(array("status" => 0));

$data['course'] = $this->course_model-
>get_where(array("status" => 0));
$data['academic_list'] = $this->academic_model-
>academic_list();

$this->load->view('add_student_details', $data);

// start add Student details in table

public function validate_student_details(){

if(user_access("Student")){

$this->load->library('form_validation');

$this->form_validation->set_rules('register_no', 'Register
Number', 'trim|required|callback_check_register|xss_clean');

$this->form_validation->set_rules('joining_date', 'Joining
Date', 'trim|required|xss_clean');

$this->form_validation->set_rules('roll_no', 'Roll no',


'trim|required|xss_clean');

$this->form_validation->set_rules('department_id',
'Student Department', 'trim|required|xss_clean');
$this->form_validation->set_rules('course_id', 'Student
Course', 'trim|required|xss_clean');

$this->form_validation->set_rules('academic_name',
'Student academic', 'trim|required|xss_clean');

// $this->form_validation->set_rules('cat_name', 'Student
Category', 'trim|required|xss_clean');

$this->form_validation->set_rules('major', 'Major',
'trim|required|xss_clean');

$this->form_validation->set_rules('part_language', 'Part
Language', 'trim|required|xss_clean');

$this->form_validation->set_rules('first_name', 'First
name', 'trim|required|xss_clean');

$this->form_validation->set_rules('last_name', 'Last name',


'trim|required|xss_clean');

$this->form_validation->set_rules('dob', 'Date of birth',


'trim|required|xss_clean');

$this->form_validation->set_rules('gender', 'Gender',
'trim|required|xss_clean');

$this->form_validation->set_rules('age', 'Age',
'trim|required|xss_clean');
$this->form_validation->set_rules('community',
'Community', 'trim|required|xss_clean');

$this->form_validation->set_rules('caste', 'Caste',
'trim|required|xss_clean');

$this->form_validation->set_rules('birth_place', 'Birth
Place', 'trim|required|xss_clean');

$this->form_validation->set_rules('nationality',
'nationality', 'trim|required|xss_clean');

$this->form_validation->set_rules('mother_tongue',
'Mother Tongue', 'trim|required|xss_clean');

$this->form_validation->set_rules('religion', 'Religion',
'trim|required|xss_clean');

$this->form_validation->set_rules('present_address',
'Present address', 'trim|required|xss_clean');

// $this->form_validation->set_rules('con_mobile', 'Mobile',
'trim|required|xss_clean');

$this->form_validation->set_rules('con_email', 'E-mail',
'trim|required|xss_clean');

$this->form_validation->set_rules('con_city', 'City',
'trim|required|xss_clean');
$this->form_validation->set_rules('con_pin', 'Pin',
'trim|required|xss_clean');

$this->form_validation->set_rules('country', 'County',
'trim|required|xss_clean');

if($this->input->post('graduation') == "UG"){

$this->form_validation->set_rules('board', 'Board',
'trim|required|xss_clean');

$this->form_validation->set_rules('school_address',
'School Name and Address', 'trim|required|xss_clean');

$this->form_validation->set_rules('mark_1', 'Tamil
mark', 'trim|required|xss_clean');

$this->form_validation->set_rules('passing_year_1',
'Tamil passing year', 'trim|required|xss_clean');

$this->form_validation->set_rules('register_1',
'Register number', 'trim|required|xss_clean');

$this->form_validation->set_rules('mark_2', 'English
mark', 'trim|required|xss_clean');

$this->form_validation->set_rules('passing_year_2',
'English passing year', 'trim|required|xss_clean');

$this->form_validation->set_rules('register_2',
'English Register number', 'trim|required|xss_clean');
}else{

$this->form_validation->set_rules('passed', 'Passed',
'trim|required|xss_clean');

$this->form_validation-
>set_rules('degree_branch_study', '. Degree & Branch of study',
'trim|required|xss_clean');

$this->form_validation->set_rules('name_of_college',
'Name of the College', 'trim|required|xss_clean');

$this->form_validation->set_rules('name_of_university',
'Name of the University ', 'trim|required|xss_clean');

$this->form_validation->set_rules('pg_register_no',
'Register Number', 'trim|required|xss_clean');

$this->form_validation->set_rules('pg_year_pasing',
'Month & Year of Passing', 'trim|required|xss_clean');

if($this->form_validation->run() == FALSE)

$this->add_student_details();

else
{

$this->load->helper('inflector');

$config = array(

/*'file_name'=>'ssssssssssss',*/

'upload_path' => "./uploads/student_profile/",

'allowed_types' => "gif|jpg|png|jpeg|pdf",

'overwrite' => FALSE,

'max_size' => "2048000" // Can be set to particular


file size , here it is 2 MB(2048 Kb)

/*'max_height' => "768",

'max_width' => "1024"*/

);

$this->load->library('upload', $config);

$student_id = $this->student_model-
>add_student_details();

$response = false;

if($this->input->post('graduation')=="UG"){
for ($x = 1; $x <= 6; $x++) {

$qualification_data = array(

'student_id' => $student_id,

'subject'
=> $this->input->post('subject_'.$x),

'mark' =>
$this->input->post('mark_'.$x),

'year_passing' => $this->input->post('passing_year_'.$x),

'register'
=> $this->input->post('register_'.$x),

'attempts'
=> $this->input->post('attempts_'.$x),

);

$response = $this->qualification_model-
>add($qualification_data);

}else{
$response = true;

$contacts = $this->input->post('con_mobile');

for ($c = 0; $c < count($contacts); $c++) {

$contact_data = array(

'student_id' =>
$student_id,

'phone_no' =>
$contacts[$c]

);

$response = $this->contact_model-
>add($contact_data);

if($response){

if($this->upload->do_upload('student_profile'))

$res = $this->upload->data();
$file_path = $res['file_path'];

$file = $res['full_path'];

$file_ext = $res['file_ext'];

$final_file_name = $this->student_model-
>upload_file('student_pic', $file_ext, 'Student_profile');

rename($file, $file_path .
$final_file_name);

if($this->upload-
>do_upload('consolidated_mark_file'))

$res = $this->upload->data();

$file_path = $res['file_path'];

$file = $res['full_path'];

$file_ext = $res['file_ext'];

$final_file_name = $this->student_model-
>upload_file('consolidated_mark', $file_ext,
'Student_consolidated_mark_file');
rename($file, $file_path .
$final_file_name);

if($this->upload-
>do_upload('provisional_certificate_file'))

$res = $this->upload->data();

$file_path = $res['file_path'];

$file = $res['full_path'];

$file_ext = $res['file_ext'];

$final_file_name = $this->student_model-
>upload_file('provisional_certificate', $file_ext,
'Student_provisional_certificate_file');

rename($file, $file_path .
$final_file_name);

if($this->upload-
>do_upload('degree_certificate_file'))

{
$res = $this->upload->data();

$file_path = $res['file_path'];

$file = $res['full_path'];

$file_ext = $res['file_ext'];

$final_file_name = $this->student_model-
>upload_file('degree_certificate',$file_ext, 'Student_degree_certificate_file');

rename($file, $file_path .
$final_file_name);

$this->session->set_flashdata('success_msg',
'Student details added successfully!');

redirect('student/add_student_details');

// end add Student details in table


//start Edit Student Details

function edit_student_details($id=''){

if($id == ""){

$id = $this->input->get('id');

if(user_access("Student")){

$data['departments'] = $this->department_model-
>get_where(array("status" => 0));

$data['course'] = $this->course_model-
>get_where(array("status" => 0));

$data['academic_list'] = $this->academic_model-
>academic_list();

$data['qualifications'] = $this->qualification_model-
>get_where(array("student_id" => $id));

$data['contacts'] = $this->contact_model-
>get_where(array("student_id" => $id));

$data['get_student_details'] = $this->student_model-
>get_student_details($id);
$this->load->view('edit_student_details', $data);

//End Edit Student Details

//start validate_edit_student_details

public function validate_edit_student_details()

if(user_access("Student")){

$this->load->library('form_validation');

$this->form_validation->set_rules('register_no', 'Register
Number', 'trim|required');

$this->form_validation->set_rules('joining_date', 'Joining
Date', 'trim|required|xss_clean');

$this->form_validation->set_rules('roll_no', 'Roll no',


'trim|required|xss_clean');

$this->form_validation->set_rules('academic_name',
'Student academic', 'trim|required|xss_clean');
$this->form_validation->set_rules('major', 'Major',
'trim|required|xss_clean');

$this->form_validation->set_rules('part_language', 'Part
Language', 'trim|required|xss_clean');

$this->form_validation->set_rules('first_name', 'First
name', 'trim|required|xss_clean');

$this->form_validation->set_rules('last_name', 'Last name',


'trim|required|xss_clean');

$this->form_validation->set_rules('dob', 'Date of birth',


'trim|required|xss_clean');

$this->form_validation->set_rules('gender', 'Gender',
'trim|required|xss_clean');

$this->form_validation->set_rules('age', 'Age',
'trim|required|xss_clean');

$this->form_validation->set_rules('community',
'Community', 'trim|required|xss_clean');

$this->form_validation->set_rules('caste', 'Caste',
'trim|required|xss_clean');

$this->form_validation->set_rules('birth_place', 'Birth
Place', 'trim|required|xss_clean');
$this->form_validation->set_rules('nationality',
'nationality', 'trim|required|xss_clean');

$this->form_validation->set_rules('mother_tongue',
'Mother Tongue', 'trim|required|xss_clean');

$this->form_validation->set_rules('religion', 'Religion',
'trim|required|xss_clean');

$this->form_validation->set_rules('present_address',
'Present address', 'trim|required|xss_clean');

$this->form_validation->set_rules('con_email', 'E-mail',
'trim|required|xss_clean');

$this->form_validation->set_rules('con_city', 'City',
'trim|required|xss_clean');

$this->form_validation->set_rules('con_pin', 'Pin',
'trim|required|xss_clean');

$this->form_validation->set_rules('country', 'County',
'trim|required|xss_clean');

if($this->form_validation->run() == FALSE)

{
$this->edit_student_details($this->input->post('id'));

else

$this->load->helper('inflector');

$config = array(

/*'file_name'=>'ssssssssssss',*/

'upload_path' => "./uploads/student_profile/",

'allowed_types' => "gif|jpg|png|jpeg|pdf",

'overwrite' => FALSE,

'max_size' => "2048000" // Can be set to particular


file size , here it is 2 MB(2048 Kb)

/*'max_height' => "768",

'max_width' => "1024"*/

);

$this->load->library('upload', $config);

$query = $this->student_model-
>edit_student_details($this->input->post('id'));
$response = false;

if($this->input->post('graduation')=="UG"){

$this->qualification_model->delete($this-
>input->post('id'));

for ($x = 1; $x <= 6; $x++) {

$qualification_data = array(

'student_id' => $student_id,

'subject'
=> $this->input->post('subject_'.$x),

'mark' =>
$this->input->post('mark_'.$x),

'year_passing' => $this->input->post('passing_year_'.$x),

'register'
=> $this->input->post('register_'.$x),

'attempts'
=> $this->input->post('attempts_'.$x),

);
$response = $this->qualification_model-
>add($qualification_data);

}else{

$response = true;

$this->contact_model->delete($this->input-
>post('id'));

$contacts = $this->input->post('con_mobile');

for ($c = 0; $c < count($contacts); $c++) {

$contact_data = array(

'student_id' =>
$this->input->post('id'),

'phone_no' =>
$contacts[$c]

);

$response = $this->contact_model-
>add($contact_data);
}

if($response){

if($this->upload->do_upload('student_profile'))

@unlink(base_url().'uploads/student_profile/'.$this->input-
>post('student_profile'));

$res = $this->upload->data();

$file_path = $res['file_path'];

$file = $res['full_path'];

$file_ext = $res['file_ext'];

$final_file_name = $this->student_model-
>edit_upload_file($file_ext);

rename($file, $file_path .
$final_file_name);

if($this->upload-
>do_upload('consolidated_mark_file'))

{
@unlink(base_url().'uploads/student_profile/'.$this->input-
>post('consolidated_mark_file'));

$res = $this->upload->data();

$file_path = $res['file_path'];

$file = $res['full_path'];

$file_ext = $res['file_ext'];

$final_file_name = $this->student_model-
>upload_file('consolidated_mark', $file_ext,
'Student_consolidated_mark_file');

rename($file, $file_path .
$final_file_name);

if($this->upload-
>do_upload('provisional_certificate_file'))

@unlink(base_url().'uploads/student_profile/'.$this->input-
>post('provisional_certificate_file'));

$res = $this->upload->data();
$file_path = $res['file_path'];

$file = $res['full_path'];

$file_ext = $res['file_ext'];

$final_file_name = $this->student_model-
>upload_file('provisional_certificate', $file_ext,
'Student_provisional_certificate_file');

rename($file, $file_path .
$final_file_name);

if($this->upload-
>do_upload('degree_certificate_file'))

@unlink(base_url().'uploads/student_profile/'.$this->input-
>post('degree_certificate_file'));

$res = $this->upload->data();

$file_path = $res['file_path'];

$file = $res['full_path'];

$file_ext = $res['file_ext'];
$final_file_name = $this->student_model-
>upload_file('degree_certificate',$file_ext, 'Student_degree_certificate_file');

rename($file, $file_path .
$final_file_name);

$this->session->set_flashdata('success_msg',
'Student details updated successfully!');

$this->edit_student_details($this->input-
>post('id'));

//end validate_edit_student_details

// start approve Student

function approve()

{
if(user_access("Student")){

if($this->student_model->approve())

$this->session->set_flashdata('success_msg', 'Student
Status Changed successfully!');

$data['student_details_list'] = $this->student_model-
>student_details_list();

redirect('student/student_details_list', $data);

// end approver Student

// start deny Student

function deny()

if(user_access("Student")){
if($this->student_model->deny())

$this->session->set_flashdata('success_msg', 'Student
Status Changed successfully!');

$data['student_details_list'] = $this->student_model-
>student_details_list();

redirect('student/student_details_list', $data);

// end deny Student

// start delete user details

public function delete()

if(user_access("Student")){

// start delete file


@unlink(base_url().'uploads/student_profile/'.$this->input-
>get('file_name'));

// end delete file

if($this->student_model->delete($this->input->get('id')))

$this->session->set_flashdata('success_msg', 'Student
Details Deleted Successfully!');

$data['student_details_list'] = $this->student_model-
>student_details_list();

redirect('student/student_details_list', $data);

// end delete user details

//start view student details:


function view_student_details(){

if(user_access("Student")){

$data['qualifications'] = $this->qualification_model-
>get_where(array("student_id" => $this->input->get('id')));

$data['contacts'] = $this->contact_model-
>get_where(array("student_id" => $this->input->get('id')));

$data['view_student_details'] = $this->student_model-
>get_student_details($this->input->get('id'));

$this->load->view('view_student_details', $data);

//end view student details:

// start check student register nymber exist


function check_register($key)

$is_exist = $this->student_model->check_register($key);

if ($is_exist==1)

$this->form_validation->set_message('check_register', 'Register
Number already Exist');

return false;

else

return true;

// end check student register nymber exist


//start ajax check register number alert

function ajax_check_register(){

$data = $this->student_model->ajax_check_register($this->input-
>get('register_no'));

if ($data==1)

echo 'Register Number already Exist';

//end ajax check register number alert

function check_user_rights()

$this->session->set_flashdata('failear_msg', 'Access Denied');


redirect('project_main');

function check_isvalidated()

if(! $this->session->userdata('username'))

$this->session->set_flashdata('failear_msg', 'Login Required');

redirect('project_main');

You might also like