Professional Documents
Culture Documents
College Management System
College Management System
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
PLATFORM DESCRIPTION
SOFTWARE DESCRIPTION
Functional Requirements
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
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.
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.
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 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 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
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);
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('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('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',*/
);
$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(
'subject'
=> $this->input->post('subject_'.$x),
'mark' =>
$this->input->post('mark_'.$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');
$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');
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);
//start 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('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('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',*/
);
$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'));
$qualification_data = array(
'subject'
=> $this->input->post('subject_'.$x),
'mark' =>
$this->input->post('mark_'.$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');
$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
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);
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);
if(user_access("Student")){
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);
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);
$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;
function ajax_check_register(){
$data = $this->student_model->ajax_check_register($this->input-
>get('register_no'));
if ($data==1)
function check_user_rights()
function check_isvalidated()
if(! $this->session->userdata('username'))
redirect('project_main');