Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apps.acj
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Franklin
apps.acj
Commits
f5185fc1
Commit
f5185fc1
authored
Mar 15, 2024
by
Hussain Mohamed
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'development' of
http://alphasoftz.net/Franklin/apps.acj
into development
parents
9bfc624d
6949c311
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
1052 additions
and
309 deletions
+1052
-309
routes.php
admin/application/config/routes.php
+12
-49
ApplicationController.php
admin/application/controllers/ApplicationController.php
+82
-0
AuthController.php
admin/application/controllers/AuthController.php
+76
-14
DashboardController.php
admin/application/controllers/DashboardController.php
+55
-12
Common_model.php
admin/application/models/Common_model.php
+9
-0
login.php
admin/application/views/auth/login.php
+41
-24
menu.php
admin/application/views/base/menu.php
+3
-2
home.php
admin/application/views/dashboard/home.php
+242
-10
add.php
admin/application/views/faculty/add.php
+110
-124
edit.php
admin/application/views/faculty/edit.php
+168
-60
view.php
admin/application/views/faculty/view.php
+7
-9
examSchedule.php
admin/application/views/masters/examSchedule.php
+227
-0
referenceno.php
admin/application/views/masters/referenceno.php
+1
-1
add.php
admin/application/views/questions/add.php
+17
-3
style.css
admin/assets/css/style.css
+2
-1
asian_logo.jpg
admin/assets/images/asian_logo.jpg
+0
-0
No files found.
admin/application/config/routes.php
View file @
f5185fc1
<?php
defined
(
'BASEPATH'
)
OR
exit
(
'No direct script access allowed'
);
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
| example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
| https://codeigniter.com/userguide3/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There are three reserved routes:
|
| $route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
| $route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router which controller/method to use if those
| provided in the URL cannot be matched to a valid route.
|
| $route['translate_uri_dashes'] = FALSE;
|
| This is not exactly a route, but allows you to automatically route
| controller and method names that contain dashes. '-' isn't a valid
| class or method name character, so it requires translation.
| When you set this option to TRUE, it will replace ALL dashes in the
| controller and method URI segments.
|
| Examples: my-controller/index -> my_controller/index
| my-controller/my-method -> my_controller/my_method
*/
$route
[
'default_controller'
]
=
'DashboardController/'
;
$route
[
'default_controller'
]
=
'AuthController/'
;
$route
[
'404_override'
]
=
''
;
$route
[
'translate_uri_dashes'
]
=
FALSE
;
//auth
$route
[
'login'
]
=
'AuthController/login'
;
$route
[
'logout'
]
=
'AuthController/logout'
;
$route
[
'recover'
]
=
'auth/forgetpassword'
;
$route
[
'verification'
]
=
'auth/recovery_verification'
;
$route
[
'privacy'
]
=
'auth/privacy_policy'
;
\ No newline at end of file
admin/application/controllers/ApplicationController.php
View file @
f5185fc1
...
...
@@ -2338,6 +2338,7 @@ class ApplicationController extends CI_Controller
$view_data
[
'records'
]
=
$this
->
mcommon
->
records_all
(
'question'
);
$view_data
[
'exam_type'
]
=
$this
->
mcommon
->
records_all
(
'exam_type'
,
array
(
'status'
,
1
));
$view_data
[
'academic_year'
]
=
$this
->
mcommon
->
records_all
(
'accadamic_year'
,
array
(
'status'
,
1
));
$view_data
[
'schedule'
]
=
$this
->
mcommon
->
records_all
(
'exam_schedule'
,
array
(
'status'
,
1
));
$view_data
[
'category'
]
=
$this
->
mcommon
->
records_all
(
'section_category'
,
array
(
'status'
,
1
));
$data
=
array
(
'title'
=>
'View Question '
,
...
...
@@ -2354,6 +2355,7 @@ class ApplicationController extends CI_Controller
$academic
=
$this
->
input
->
post
(
'academic'
);
$exam_type
=
$this
->
input
->
post
(
'exam_type'
);
$category
=
$this
->
input
->
post
(
'category'
);
$schedule
=
$this
->
input
->
post
(
'schedule'
);
$question
=
$this
->
input
->
post
(
'question'
);
$option_a
=
$this
->
input
->
post
(
'option_a'
);
$option_b
=
$this
->
input
->
post
(
'option_b'
);
...
...
@@ -2365,6 +2367,7 @@ class ApplicationController extends CI_Controller
'academic'
=>
$academic
,
'exam_type'
=>
$exam_type
,
'category'
=>
$category
,
'schedule_id'
=>
$schedule
,
'question'
=>
$question
,
'option_a'
=>
$option_a
,
'option_b'
=>
$option_b
,
...
...
@@ -2390,6 +2393,7 @@ class ApplicationController extends CI_Controller
$view_data
[
'exam_type'
]
=
$this
->
mcommon
->
records_all
(
'exam_type'
,
array
(
'status'
,
1
));
$view_data
[
'academic_year'
]
=
$this
->
mcommon
->
records_all
(
'accadamic_year'
,
array
(
'status'
,
1
));
$view_data
[
'category'
]
=
$this
->
mcommon
->
records_all
(
'section_category'
,
array
(
'status'
,
1
));
$view_data
[
'schedule'
]
=
$this
->
mcommon
->
records_all
(
'exam_schedule'
,
array
(
'status'
,
1
));
$data
=
array
(
'title'
=>
'Add Question'
,
...
...
@@ -2408,6 +2412,7 @@ class ApplicationController extends CI_Controller
$academic
=
$this
->
input
->
post
(
'academic'
);
$exam_type
=
$this
->
input
->
post
(
'exam_type'
);
$category
=
$this
->
input
->
post
(
'category'
);
$schedule
=
$this
->
input
->
post
(
'schedule'
);
$question
=
$this
->
input
->
post
(
'question'
);
$option_a
=
$this
->
input
->
post
(
'option_a'
);
$option_b
=
$this
->
input
->
post
(
'option_b'
);
...
...
@@ -2420,6 +2425,7 @@ class ApplicationController extends CI_Controller
'academic'
=>
$academic
,
'exam_type'
=>
$exam_type
,
'category'
=>
$category
,
'schedule_id'
=>
$schedule
,
'question'
=>
$question
,
'option_a'
=>
$option_a
,
'option_b'
=>
$option_b
,
...
...
@@ -2445,6 +2451,7 @@ class ApplicationController extends CI_Controller
$view_data
[
'exam_type'
]
=
$this
->
mcommon
->
records_all
(
'exam_type'
,
array
(
'status'
,
1
));
$view_data
[
'academic_year'
]
=
$this
->
mcommon
->
records_all
(
'accadamic_year'
,
array
(
'status'
,
1
));
$view_data
[
'category'
]
=
$this
->
mcommon
->
records_all
(
'section_category'
,
array
(
'status'
,
1
));
$view_data
[
'schedule'
]
=
$this
->
mcommon
->
records_all
(
'exam_schedule'
,
array
(
'status'
,
1
));
$data
=
array
(
'title'
=>
'Edit Question'
,
'page'
=>
'Edit Question'
,
...
...
@@ -2454,6 +2461,81 @@ class ApplicationController extends CI_Controller
}
}
public
function
examSchedule
()
{
$view_data
[
'academic_year'
]
=
$this
->
mcommon
->
records_all
(
'accadamic_year'
,
array
(
'status'
,
1
));
$view_data
[
'records'
]
=
$this
->
mcommon
->
records_all
(
'exam_schedule'
,
array
(
'status'
,
1
));
$data
=
array
(
'title'
=>
'Exam Schedule'
,
'page'
=>
'Exam Schedule'
,
'content'
=>
$this
->
load
->
view
(
'masters/examSchedule'
,
$view_data
,
true
),
);
$this
->
load
->
view
(
'base/base_template'
,
$data
);
}
public
function
addEditexamSchedule
()
{
$id
=
$this
->
input
->
post
(
'id'
);
$schedule
=
$this
->
input
->
post
(
'schedule'
);
$academic
=
$this
->
input
->
post
(
'academic'
);
$date
=
$this
->
input
->
post
(
'date'
);
$time
=
$this
->
input
->
post
(
'time'
);
if
(
$id
)
{
$update_array
=
array
(
'exam_schedule'
=>
$schedule
,
'academic'
=>
$academic
,
'date'
=>
$date
,
'time'
=>
$time
,
'status'
=>
1
,
);
$update
=
$this
->
mcommon
->
common_edit
(
'exam_schedule'
,
$update_array
,
array
(
'id'
=>
$id
));
if
(
$update
)
{
$this
->
session
->
set_flashdata
(
'alert_success'
,
'Exam Schedule Updated Successfully!'
);
}
else
{
$this
->
session
->
set_flashdata
(
'alert_danger'
,
'Something went wrong'
);
}
}
else
{
$user_array
=
array
(
'exam_schedule'
=>
$schedule
,
'academic'
=>
$academic
,
'date'
=>
$date
,
'time'
=>
$time
,
'status'
=>
1
,
);
$insert
=
$this
->
mcommon
->
common_insert
(
'exam_schedule'
,
$user_array
);
if
(
$insert
)
{
$this
->
session
->
set_flashdata
(
'alert_success'
,
'Exam Schedule Added successfully!'
);
}
else
{
$this
->
session
->
set_flashdata
(
'alert_danger'
,
'Something went wrong'
);
}
}
redirect
(
'ApplicationController/examSchedule'
);
}
...
...
admin/application/controllers/AuthController.php
View file @
f5185fc1
<?php
defined
(
'BASEPATH'
)
OR
exit
(
'No direct script access allowed'
);
defined
(
'BASEPATH'
)
or
exit
(
'No direct script access allowed'
);
class
AuthController
extends
CI_Controller
{
class
AuthController
extends
CI_Controller
{
public
function
index
()
{
$view_data
[
''
]
=
''
;
$this
->
load
->
view
(
'auth/login'
,
$view_data
);
$view_data
[
''
]
=
''
;
$this
->
load
->
view
(
'auth/login'
,
$view_data
);
}
public
function
register
()
public
function
login
()
{
$view_data
[
''
]
=
''
;
$this
->
load
->
view
(
'auth/register'
,
$view_data
);
$email
=
$this
->
input
->
post
(
'email'
);
$password
=
$this
->
input
->
post
(
'password'
);
$user
=
$this
->
mcommon
->
specific_row
(
'users'
,
array
(
'email'
=>
$email
));
if
(
$user
[
'user_id'
]
!=
''
&&
password_verify
(
$password
,
$user
[
'passwd'
]))
{
$this
->
session
->
set_flashdata
(
'alert_success'
,
'Login successfully!'
);
$userArray
=
array
(
"user_id"
=>
$user
[
'user_id'
],
"email"
=>
$user
[
'email'
],
"mobile"
=>
$user
[
'mobile'
],
"name"
=>
$user
[
'name'
],
"auth_level"
=>
$user
[
'auth_level'
],
"logged_in"
=>
true
,
);
$this
->
session
->
set_userdata
(
$userArray
);
redirect
(
'DashboardController'
);
}
else
{
$this
->
session
->
set_flashdata
(
'alert_danger'
,
'Email or Password Wrong!'
);
redirect
(
'login'
);
}
}
public
function
forget
()
// public function register()
// {
// if (isset($_POST['submit'])) {
// $user_array = array(
// 'first_name' => $first_name,
// // 'last_name' => $last_name,
// 'username' => $username,
// 'name' => $name,
// 'email' => $email,
// 'mobile' => $mobile_number,
// 'auth_level' => 1, // 1->customer,9->admin
// 'passwd' => password_hash($password, PASSWORD_DEFAULT),
// 'created_at' => date("Y-m-d h:i:s"),
// 'banned' => 0
// );
// //insert values in database
// $insert = $this->mcommon->common_insert('users', $user_array);
// } else {
// $view_data[''] = '';
// $this->load->view('auth/register', $view_data);
// }
// }
public
function
forget
()
{
$view_data
[
''
]
=
''
;
$this
->
load
->
view
(
'auth/forget'
,
$view_data
);
$view_data
[
''
]
=
''
;
$this
->
load
->
view
(
'auth/forget'
,
$view_data
);
}
public
function
logout
()
{
$this
->
session
->
unset_userdata
(
'logged_in'
);
$this
->
authentication
->
logout
();
// Set redirect protocol
$redirect_protocol
=
USE_SSL
?
'https'
:
null
;
redirect
(
site_url
(
LOGIN_PAGE
.
'?logout=1'
,
$redirect_protocol
));
}
}
admin/application/controllers/DashboardController.php
View file @
f5185fc1
<?php
defined
(
'BASEPATH'
)
OR
exit
(
'No direct script access allowed'
);
defined
(
'BASEPATH'
)
or
exit
(
'No direct script access allowed'
);
class
DashboardController
extends
CI_Controller
{
class
DashboardController
extends
CI_Controller
{
public
function
index
()
{
...
...
@@ -17,18 +18,60 @@ class DashboardController extends CI_Controller {
$this
->
db
->
from
(
'applications'
);
$this
->
db
->
where
(
'payment_status'
,
2
);
$completed
=
$this
->
db
->
count_all_results
();
$currentYear
=
date
(
'Y'
);
$this
->
db
->
select
(
'MONTH(a.created_at) as month, COUNT(*) as count'
);
$this
->
db
->
from
(
'applications as a'
);
$this
->
db
->
join
(
'accomodation_info as ai'
,
'ai.application_id = a.id'
,
'left'
);
$this
->
db
->
where
(
'a.status'
,
1
);
$this
->
db
->
where
(
'YEAR(a.created_at)'
,
$currentYear
);
// Ensure filtering by the same date field used for grouping
$this
->
db
->
group_by
(
'MONTH(a.created_at)'
);
$query
=
$this
->
db
->
get
();
$monthlyCounts
=
array_fill
(
0
,
12
,
0
);
// Start indices from 0 to 11 for months Jan-Dec
foreach
(
$query
->
result
()
as
$row
)
{
$monthlyCounts
[
$row
->
month
-
1
]
=
(
int
)
$row
->
count
;
// Adjust index by 1 to match array indexing
}
$view_data
[
'monthlyCounts'
]
=
$monthlyCounts
;
$view_data
[
'drafted'
]
=
$drafted
;
$view_data
[
'pending'
]
=
$pending
;
$view_data
[
'completed'
]
=
$completed
;
$data
=
array
(
// print_r($view_data['monthlyCounts']);
// exit;
$this
->
db
->
from
(
'applications as a'
);
$this
->
db
->
where
(
'a.payment_status'
,
2
);
$completed_count
=
$this
->
db
->
count_all_results
();
$total_amount
=
$completed_count
*
1260
;
$view_data
[
'courses'
]
=
$this
->
mcommon
->
records_all
(
'course'
);
$this
->
db
->
select
(
'*, applications.id as appid, applications.status as apstatus,ai.payment_mode,applications.email as appEmail'
);
$this
->
db
->
from
(
'applications'
);
$this
->
db
->
join
(
'course'
,
'course.id = applications.course_id'
,
'left'
);
$this
->
db
->
join
(
'users'
,
'users.user_id = applications.user_id'
,
'left'
);
$this
->
db
->
join
(
'accomodation_info as ai'
,
'ai.application_id = applications.id'
,
'left'
);
$this
->
db
->
join
(
'application_other_info as athinfo'
,
'athinfo.application_id = applications.id'
,
'left'
);
// $this->db->where('athinfo.tab_status', '1');
$this
->
db
->
where
(
'applications.status'
,
'1'
);
$query
=
$this
->
db
->
get
();
$view_data
[
'records'
]
=
$query
->
result
();
$view_data
[
'drafted'
]
=
$drafted
;
$view_data
[
'pending'
]
=
$pending
;
$view_data
[
'completed'
]
=
$completed
;
$view_data
[
'total_amount'
]
=
$total_amount
;
$data
=
array
(
'title'
=>
"Home"
,
'content'
=>
$this
->
load
->
view
(
'dashboard/home'
,
$view_data
,
true
),
);
$this
->
load
->
view
(
'base/base_template'
,
$data
);
$this
->
load
->
view
(
'base/base_template'
,
$data
);
}
}
admin/application/models/Common_model.php
View file @
f5185fc1
...
...
@@ -415,6 +415,15 @@ class Common_model extends CI_Model
return
true
;
}
public
function
getUser
(
$email
){
$this
->
db
->
select
(
'*'
);
$this
->
db
->
from
(
'users'
);
$this
->
db
->
where
(
'email'
,
$email
);
$result
=
$this
->
db
->
get
()
->
row_array
();
return
$result
;
}
...
...
admin/application/views/auth/login.php
View file @
f5185fc1
...
...
@@ -4,22 +4,36 @@
<head>
<!-- Title -->
<!-- Title -->
<title>
Login ACJ
</title>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<!-- Mobile Specific -->
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<!-- Favicon icon -->
<link
rel=
"icon"
type=
"image/png"
sizes=
"16x16"
href=
"
<?=
base_url
(
''
)
?>
assets/images/favicon.png"
>
<link
href=
"
<?=
base_url
(
''
)
?>
assets/css/style.css"
rel=
"stylesheet"
>
<!-- Favicon icon -->
<link
rel=
"icon"
type=
"image/png"
sizes=
"16x16"
href=
"
<?=
base_url
(
''
)
?>
assets/images/favicon.png"
>
<link
href=
"
<?=
base_url
(
''
)
?>
assets/css/style.css"
rel=
"stylesheet"
>
<style>
.login-image
{
height
:
440px
!important
;
width
:
362px
;
margin-left
:
-65px
;
}
.tab-content
{
margin-left
:
-82px
!important
;
}
</style>
</head>
<body
class=
"body h-100"
>
<div
class=
"authincation d-flex flex-column flex-lg-row flex-column-fluid"
>
<div
class=
"login-aside text-center d-flex flex-column flex-row-auto"
>
...
...
@@ -34,35 +48,38 @@
<img
class=
"img1 move-1"
src=
"
<?=
base_url
(
''
)
?>
assets/images/background/pic3.png"
alt=
""
>
<img
class=
"img2 move-2"
src=
"
<?=
base_url
(
''
)
?>
assets/images/background/pic4.png"
alt=
""
>
<img
class=
"img3 move-3"
src=
"
<?=
base_url
(
''
)
?>
assets/images/background/pic5.png"
alt=
""
>
</div>
</div>
<div
class=
"container flex-row-fluid d-flex flex-column justify-content-center position-relative overflow-hidden p-7 mx-auto"
>
<div
class=
"d-flex justify-content-center h-100 align-items-center"
>
<div
class=
"authincation-content style-2"
>
<div
class=
"row no-gutters"
>
<div
class=
"col-xl-12 tab-content"
>
<div
id=
"sign-up"
class=
"auth-form tab-pane fade show active form-validation"
>
<form
action=
"https://akademi.dexignlab.com/codeigniter/demo/index"
>
<div
class=
"col-xl-12 d-flex tab-content"
>
<div
class=
"col-md-8"
>
<img
src=
"
<?php
echo
base_url
();
?>
assets/images/asian_logo.jpg"
alt=
""
width=
"300px"
class=
"login-image"
>
</div>
<div
style=
" border:1px solid grey;"
id=
"sign-up"
class=
"auth-form tab-pane fade show active form-validation col-md-11 "
>
<form
action=
"
<?=
base_url
(
"login"
)
?>
"
method=
"post"
>
<div
class=
"text-center mb-4"
>
<h3
class=
"text-center mb-2 text-black"
>
Sign In
</h3>
<
span>
Your Social Campaigns
</span
>
<
!-- <span>Your Social Campaigns</span> --
>
</div>
<div
class=
"mb-3"
>
<label
for=
"exampleFormControlInput1"
class=
"form-label mb-2 fs-13 label-color font-w500"
>
Email
address
</label>
<input
type=
"email"
class=
"form-control"
id=
"exampleFormControlInput1"
value=
"hello@example.com
"
>
<label
for=
"exampleFormControlInput1"
class=
"form-label mb-2 fs-13 label-color font-w500"
>
Email
Id
</label>
<input
type=
"text"
name=
"email"
class=
"form-control"
id=
"email
"
>
</div>
<div
class=
"mb-3"
>
<label
for=
"exampleFormControlInput1"
class=
"form-label mb-2 fs-13 label-color font-w500"
>
Password
</label>
<input
type=
"password"
class=
"form-control"
id=
"exampleFormControlInput2"
value=
"P
assword"
>
<input
type=
"password"
name=
"password"
class=
"form-control"
id=
"p
assword"
>
</div>
<a
href=
"
<?=
base_url
(
'AuthController/forget'
)
?>
"
class=
"text-primary float-end mb-4"
>
Forgot Password ?
</a>
<button
class=
"btn btn-block btn-primary"
>
Sign In
</button>
</form>
<div
class=
"new-account mt-3 text-center"
>
<
p
class=
"font-w500"
>
Don't have an account?
<a
class=
"text-primary"
href=
"
<?=
base_url
(
'AuthController/register'
)
?>
"
data-toggle=
"tab"
>
Sign Up
</a></p
>
<
!-- <p class="font-w500">Don't have an account? <a class="text-primary" href="
<?=
base_url
(
'AuthController/register'
)
?>
" data-toggle="tab">Sign Up</a></p> --
>
</div>
</div>
</div>
...
...
@@ -73,13 +90,13 @@
</div>
<!--**********************************
<!--**********************************
Scripts
***********************************-->
<!-- Required vendors -->
<script
src=
"
<?=
base_url
(
''
)
?>
assets/vendor/global/global.min.js"
></script>
<script
src=
"
<?=
base_url
(
''
)
?>
assets/js/custom.min.js"
></script>
<script
src=
"
<?=
base_url
(
''
)
?>
assets/js/dlabnav-init.js"
></script>
<!-- Required vendors -->
<script
src=
"
<?=
base_url
(
''
)
?>
assets/vendor/global/global.min.js"
></script>
<script
src=
"
<?=
base_url
(
''
)
?>
assets/js/custom.min.js"
></script>
<script
src=
"
<?=
base_url
(
''
)
?>
assets/js/dlabnav-init.js"
></script>
</body>
...
...
admin/application/views/base/menu.php
View file @
f5185fc1
...
...
@@ -22,15 +22,16 @@
<li><a
href=
"
<?php
echo
base_url
();
?>
ApplicationController/tutionFees/"
>
Tution Fees
</a></li>
<li><a
href=
"
<?php
echo
base_url
();
?>
ApplicationController/examType"
>
Exam Type
</a></li>
<li><a
href=
"
<?php
echo
base_url
();
?>
ApplicationController/sectionCategory"
>
Section Category
</a></li>
<li><a
href=
"
<?php
echo
base_url
();
?>
ApplicationController/examSchedule"
>
Exam Schedule
</a></li>
</ul>
</li>
<li><a
href=
"
<?php
echo
base_url
();
?>
EmailTemplateController/"
aria-expanded=
"false"
>
<
!-- <
li><a href="
<?php
echo
base_url
();
?>
EmailTemplateController/" aria-expanded="false">
<i class="material-symbols-outlined">email</i>
<span class="nav-text">Email Template</span>
</a>
</li>
</li>
-->
<li><a
class=
"has-arrow "
href=
"javascript:void(0);"
aria-expanded=
"false"
>
<i
class=
"material-icons"
>
settings
</i>
...
...
admin/application/views/dashboard/home.php
View file @
f5185fc1
<div
class=
"content-body"
>
<!-- row -->
<script
src=
"https://cdn.jsdelivr.net/npm/apexcharts"
></script>
<div
class=
"container-fluid"
>
<!-- Row -->
<div
class=
"row"
>
<div
class=
"col-xl-12"
>
<div
class=
"card"
>
<div
class=
"card-body pb-sm-4 pb-0"
>
<div
class=
"card-body pb-sm-4 pb-0"
>
<div
class=
"row"
>
<div
class=
"col-xl-3 col-6"
>
<div
class=
"content-box"
>
<div
class=
"icon-box icon-box-xl std-data"
>
<svg
width=
"25"
height=
"25"
viewBox=
"0 0 30 38"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M12.9288 37.75H3.75C1.67875 37.75 0 36.0713 0 34V23.5863C0 21.7738 1.29625 20.2213 3.07875 19.8975C5.72125 19.4163 10.2775 18.5875 12.855 18.12C14.2737 17.8612 15.7263 17.8612 17.145 18.12C19.7225 18.5875 24.2788 19.4163 26.9213 19.8975C28.7038 20.2213 30 21.7738 30 23.5863C30 26.3125 30 31.0825 30 34C30 36.0713 28.3212 37.75 26.25 37.75H12.9288ZM24.785 22.05L24.79 22.0563C25.0088 22.3838 25.06 22.795 24.9287 23.1662L24.0462 25.6662C23.9312 25.9925 23.685 26.2575 23.3675 26.3963L21.7075 27.12L22.3675 28.4412C22.5525 28.81 22.5425 29.2462 22.3425 29.6075L19.2075 35.25H26.25C26.94 35.25 27.5 34.69 27.5 34C27.5 31.0825 27.5 26.3125 27.5 23.5863C27.5 22.9825 27.0675 22.465 26.4738 22.3562L24.785 22.05ZM21.3663 21.4275L16.6975 20.5788C15.575 20.375 14.425 20.375 13.3025 20.5788L8.63375 21.4275L7.63625 22.9238L8.13 24.3213L10.5 25.3537C10.8138 25.4912 11.0575 25.7512 11.175 26.0737C11.2925 26.3962 11.2712 26.7525 11.1175 27.0588L10.1625 28.9688L13.6525 35.25H16.3475L19.8375 28.9688L18.8825 27.0588C18.7288 26.7525 18.7075 26.3962 18.825 26.0737C18.9425 25.7512 19.1862 25.4912 19.5 25.3537L21.87 24.3213L22.3638 22.9238L21.3663 21.4275ZM5.215 22.05L3.52625 22.3562C2.9325 22.465 2.5 22.9825 2.5 23.5863V34C2.5 34.69 3.06 35.25 3.75 35.25H10.7925L7.6575 29.6075C7.4575 29.2462 7.4475 28.81 7.6325 28.4412L8.2925 27.12L6.6325 26.3963C6.315 26.2575 6.06875 25.9925 5.95375 25.6662L5.07125 23.1662C4.94 22.795 4.99125 22.3838 5.21 22.0563L5.215 22.05ZM23.75 29V31.5C23.75 32.19 24.31 32.75 25 32.75C25.69 32.75 26.25 32.19 26.25 31.5V29C26.25 28.31 25.69 27.75 25 27.75C24.31 27.75 23.75 28.31 23.75 29ZM15 0.25C10.5163 0.25 6.875 3.89125 6.875 8.375C6.875 12.8587 10.5163 16.5 15 16.5C19.4837 16.5 23.125 12.8587 23.125 8.375C23.125 3.89125 19.4837 0.25 15 0.25ZM15 2.75C18.105 2.75 20.625 5.27 20.625 8.375C20.625 11.48 18.105 14 15 14C11.895 14 9.375 11.48 9.375 8.375C9.375 5.27 11.895 2.75 15 2.75Z"
fill=
"white"
/>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M12.9288 37.75H3.75C1.67875 37.75 0 36.0713 0 34V23.5863C0 21.7738 1.29625 20.2213 3.07875 19.8975C5.72125 19.4163 10.2775 18.5875 12.855 18.12C14.2737 17.8612 15.7263 17.8612 17.145 18.12C19.7225 18.5875 24.2788 19.4163 26.9213 19.8975C28.7038 20.2213 30 21.7738 30 23.5863C30 26.3125 30 31.0825 30 34C30 36.0713 28.3212 37.75 26.25 37.75H12.9288ZM24.785 22.05L24.79 22.0563C25.0088 22.3838 25.06 22.795 24.9287 23.1662L24.0462 25.6662C23.9312 25.9925 23.685 26.2575 23.3675 26.3963L21.7075 27.12L22.3675 28.4412C22.5525 28.81 22.5425 29.2462 22.3425 29.6075L19.2075 35.25H26.25C26.94 35.25 27.5 34.69 27.5 34C27.5 31.0825 27.5 26.3125 27.5 23.5863C27.5 22.9825 27.0675 22.465 26.4738 22.3562L24.785 22.05ZM21.3663 21.4275L16.6975 20.5788C15.575 20.375 14.425 20.375 13.3025 20.5788L8.63375 21.4275L7.63625 22.9238L8.13 24.3213L10.5 25.3537C10.8138 25.4912 11.0575 25.7512 11.175 26.0737C11.2925 26.3962 11.2712 26.7525 11.1175 27.0588L10.1625 28.9688L13.6525 35.25H16.3475L19.8375 28.9688L18.8825 27.0588C18.7288 26.7525 18.7075 26.3962 18.825 26.0737C18.9425 25.7512 19.1862 25.4912 19.5 25.3537L21.87 24.3213L22.3638 22.9238L21.3663 21.4275ZM5.215 22.05L3.52625 22.3562C2.9325 22.465 2.5 22.9825 2.5 23.5863V34C2.5 34.69 3.06 35.25 3.75 35.25H10.7925L7.6575 29.6075C7.4575 29.2462 7.4475 28.81 7.6325 28.4412L8.2925 27.12L6.6325 26.3963C6.315 26.2575 6.06875 25.9925 5.95375 25.6662L5.07125 23.1662C4.94 22.795 4.99125 22.3838 5.21 22.0563L5.215 22.05ZM23.75 29V31.5C23.75 32.19 24.31 32.75 25 32.75C25.69 32.75 26.25 32.19 26.25 31.5V29C26.25 28.31 25.69 27.75 25 27.75C24.31 27.75 23.75 28.31 23.75 29ZM15 0.25C10.5163 0.25 6.875 3.89125 6.875 8.375C6.875 12.8587 10.5163 16.5 15 16.5C19.4837 16.5 23.125 12.8587 23.125 8.375C23.125 3.89125 19.4837 0.25 15 0.25ZM15 2.75C18.105 2.75 20.625 5.27 20.625 8.375C20.625 11.48 18.105 14 15 14C11.895 14 9.375 11.48 9.375 8.375C9.375 5.27 11.895 2.75 15 2.75Z"
fill=
"white"
/>
</svg>
</div>
<div
class=
"chart-num"
>
<div
class=
"chart-num"
>
<p>
DRAFTED
</p>
<h2
class=
"font-w700 mb-0"
>
<?php
echo
$drafted
;
?>
</h2>
</div>
...
...
@@ -24,7 +27,7 @@
<div
class=
"content-box"
>
<div
class=
"teach-data icon-box icon-box-xl"
>
<svg
width=
"25"
height=
"25"
viewBox=
"0 0 30 38"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M0 34C0 36.0713 1.67875 37.75 3.75 37.75H26.25C28.3212 37.75 30 36.0713 30 34C30 31.0825 30 26.3125 30 23.5863C30 21.7738 28.7038 20.2213 26.9213 19.8975C24.2788 19.4163 19.7225 18.5875 17.145 18.12C15.7263 17.8612 14.2737 17.8612 12.855 18.12C10.2775 18.5875 5.72125 19.4163 3.07875 19.8975C1.29625 20.2213 0 21.7738 0 23.5863V34ZM17.885 20.795L19.7612 27.9288C20.0075 28.865 19.6775 29.8588 18.92 30.4638C18.28 30.9738 17.2713 31.7788 16.5713 32.3388C15.6525 33.0713 14.3475 33.0713 13.4287 32.3388C12.7287 31.7788 11.72 30.9738 11.08 30.4638C10.3225 29.8588 9.9925 28.865 10.2388 27.9288L12.115 20.795L3.52625 22.3562C2.9325 22.465 2.5 22.9825 2.5 23.5863V34C2.5 34.69 3.06 35.25 3.75 35.25C8.98 35.25 21.02 35.25 26.25 35.25C26.94 35.25 27.5 34.69 27.5 34C27.5 31.0825 27.5 26.3125 27.5 23.5863C27.5 22.9825 27.0675 22.465 26.4738 22.3562L17.885 20.795ZM15.2038 20.4288C15.0675 20.425 14.9325 20.425 14.7962 20.4288L12.6663 28.5312L14.9887 30.3837C14.995 30.39 15.005 30.39 15.0113 30.3837L17.3337 28.5312L15.2038 20.4288ZM15 0.25C10.5163 0.25 6.875 3.89125 6.875 8.375C6.875 12.8587 10.5163 16.5 15 16.5C19.4837 16.5 23.125 12.8587 23.125 8.375C23.125 3.89125 19.4837 0.25 15 0.25ZM15 2.75C18.105 2.75 20.625 5.27 20.625 8.375C20.625 11.48 18.105 14 15 14C11.895 14 9.375 11.48 9.375 8.375C9.375 5.27 11.895 2.75 15 2.75Z"
fill=
"white"
/>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M0 34C0 36.0713 1.67875 37.75 3.75 37.75H26.25C28.3212 37.75 30 36.0713 30 34C30 31.0825 30 26.3125 30 23.5863C30 21.7738 28.7038 20.2213 26.9213 19.8975C24.2788 19.4163 19.7225 18.5875 17.145 18.12C15.7263 17.8612 14.2737 17.8612 12.855 18.12C10.2775 18.5875 5.72125 19.4163 3.07875 19.8975C1.29625 20.2213 0 21.7738 0 23.5863V34ZM17.885 20.795L19.7612 27.9288C20.0075 28.865 19.6775 29.8588 18.92 30.4638C18.28 30.9738 17.2713 31.7788 16.5713 32.3388C15.6525 33.0713 14.3475 33.0713 13.4287 32.3388C12.7287 31.7788 11.72 30.9738 11.08 30.4638C10.3225 29.8588 9.9925 28.865 10.2388 27.9288L12.115 20.795L3.52625 22.3562C2.9325 22.465 2.5 22.9825 2.5 23.5863V34C2.5 34.69 3.06 35.25 3.75 35.25C8.98 35.25 21.02 35.25 26.25 35.25C26.94 35.25 27.5 34.69 27.5 34C27.5 31.0825 27.5 26.3125 27.5 23.5863C27.5 22.9825 27.0675 22.465 26.4738 22.3562L17.885 20.795ZM15.2038 20.4288C15.0675 20.425 14.9325 20.425 14.7962 20.4288L12.6663 28.5312L14.9887 30.3837C14.995 30.39 15.005 30.39 15.0113 30.3837L17.3337 28.5312L15.2038 20.4288ZM15 0.25C10.5163 0.25 6.875 3.89125 6.875 8.375C6.875 12.8587 10.5163 16.5 15 16.5C19.4837 16.5 23.125 12.8587 23.125 8.375C23.125 3.89125 19.4837 0.25 15 0.25ZM15 2.75C18.105 2.75 20.625 5.27 20.625 8.375C20.625 11.48 18.105 14 15 14C11.895 14 9.375 11.48 9.375 8.375C9.375 5.27 11.895 2.75 15 2.75Z"
fill=
"white"
/>
</svg>
</div>
<div
class=
"chart-num"
>
...
...
@@ -37,8 +40,8 @@
<div
class=
"content-box"
>
<div
class=
"event-data icon-box icon-box-xl"
>
<svg
width=
"20"
height=
"20"
viewBox=
"0 0 28 28"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M24 2.75H21.5V1.5C21.5 1.16848 21.3683 0.850537 21.1339 0.616117C20.8995 0.381696 20.5815 0.25 20.25 0.25C19.9185 0.25 19.6005 0.381696 19.3661 0.616117C19.1317 0.850537 19 1.16848 19 1.5V2.75H15.25V1.5C15.25 1.16848 15.1183 0.850537 14.8839 0.616117C14.6495 0.381696 14.3315 0.25 14 0.25C13.6685 0.25 13.3505 0.381696 13.1161 0.616117C12.8817 0.850537 12.75 1.16848 12.75 1.5V2.75H9V1.5C9 1.16848 8.8683 0.850537 8.63388 0.616117C8.39946 0.381696 8.08152 0.25 7.75 0.25C7.41848 0.25 7.10054 0.381696 6.86612 0.616117C6.6317 0.850537 6.5 1.16848 6.5 1.5V2.75H4C3.00544 2.75 2.05161 3.14509 1.34835 3.84835C0.645088 4.55161 0.25 5.50544 0.25 6.5V24C0.25 24.9946 0.645088 25.9484 1.34835 26.6517C2.05161 27.3549 3.00544 27.75 4 27.75H24C24.9946 27.75 25.9484 27.3549 26.6517 26.6517C27.3549 25.9484 27.75 24.9946 27.75 24V6.5C27.75 5.50544 27.3549 4.55161 26.6517 3.84835C25.9484 3.14509 24.9946 2.75 24 2.75ZM2.75 6.5C2.75 6.16848 2.8817 5.85054 3.11612 5.61612C3.35054 5.3817 3.66848 5.25 4 5.25H6.5V6.5C6.5 6.83152 6.6317 7.14946 6.86612 7.38388C7.10054 7.6183 7.41848 7.75 7.75 7.75C8.08152 7.75 8.39946 7.6183 8.63388 7.38388C8.8683 7.14946 9 6.83152 9 6.5V5.25H12.75V6.5C12.75 6.83152 12.8817 7.14946 13.1161 7.38388C13.3505 7.6183 13.6685 7.75 14 7.75C14.3315 7.75 14.6495 7.6183 14.8839 7.38388C15.1183 7.14946 15.25 6.83152 15.25 6.5V5.25H19V6.5C19 6.83152 19.1317 7.14946 19.3661 7.38388C19.6005 7.6183 19.9185 7.75 20.25 7.75C20.5815 7.75 20.8995 7.6183 21.1339 7.38388C21.3683 7.14946 21.5 6.83152 21.5 6.5V5.25H24C24.3315 5.25 24.6495 5.3817 24.8839 5.61612C25.1183 5.85054 25.25 6.16848 25.25 6.5V10.25H2.75V6.5ZM25.25 24C25.25 24.3315 25.1183 24.6495 24.8839 24.8839C24.6495 25.1183 24.3315 25.25 24 25.25H4C3.66848 25.25 3.35054 25.1183 3.11612 24.8839C2.8817 24.6495 2.75 24.3315 2.75 24V12.75H25.25V24Z"
fill=
"white"
/>
</svg>
<path
d=
"M24 2.75H21.5V1.5C21.5 1.16848 21.3683 0.850537 21.1339 0.616117C20.8995 0.381696 20.5815 0.25 20.25 0.25C19.9185 0.25 19.6005 0.381696 19.3661 0.616117C19.1317 0.850537 19 1.16848 19 1.5V2.75H15.25V1.5C15.25 1.16848 15.1183 0.850537 14.8839 0.616117C14.6495 0.381696 14.3315 0.25 14 0.25C13.6685 0.25 13.3505 0.381696 13.1161 0.616117C12.8817 0.850537 12.75 1.16848 12.75 1.5V2.75H9V1.5C9 1.16848 8.8683 0.850537 8.63388 0.616117C8.39946 0.381696 8.08152 0.25 7.75 0.25C7.41848 0.25 7.10054 0.381696 6.86612 0.616117C6.6317 0.850537 6.5 1.16848 6.5 1.5V2.75H4C3.00544 2.75 2.05161 3.14509 1.34835 3.84835C0.645088 4.55161 0.25 5.50544 0.25 6.5V24C0.25 24.9946 0.645088 25.9484 1.34835 26.6517C2.05161 27.3549 3.00544 27.75 4 27.75H24C24.9946 27.75 25.9484 27.3549 26.6517 26.6517C27.3549 25.9484 27.75 24.9946 27.75 24V6.5C27.75 5.50544 27.3549 4.55161 26.6517 3.84835C25.9484 3.14509 24.9946 2.75 24 2.75ZM2.75 6.5C2.75 6.16848 2.8817 5.85054 3.11612 5.61612C3.35054 5.3817 3.66848 5.25 4 5.25H6.5V6.5C6.5 6.83152 6.6317 7.14946 6.86612 7.38388C7.10054 7.6183 7.41848 7.75 7.75 7.75C8.08152 7.75 8.39946 7.6183 8.63388 7.38388C8.8683 7.14946 9 6.83152 9 6.5V5.25H12.75V6.5C12.75 6.83152 12.8817 7.14946 13.1161 7.38388C13.3505 7.6183 13.6685 7.75 14 7.75C14.3315 7.75 14.6495 7.6183 14.8839 7.38388C15.1183 7.14946 15.25 6.83152 15.25 6.5V5.25H19V6.5C19 6.83152 19.1317 7.14946 19.3661 7.38388C19.6005 7.6183 19.9185 7.75 20.25 7.75C20.5815 7.75 20.8995 7.6183 21.1339 7.38388C21.3683 7.14946 21.5 6.83152 21.5 6.5V5.25H24C24.3315 5.25 24.6495 5.3817 24.8839 5.61612C25.1183 5.85054 25.25 6.16848 25.25 6.5V10.25H2.75V6.5ZM25.25 24C25.25 24.3315 25.1183 24.6495 24.8839 24.8839C24.6495 25.1183 24.3315 25.25 24 25.25H4C3.66848 25.25 3.35054 25.1183 3.11612 24.8839C2.8817 24.6495 2.75 24.3315 2.75 24V12.75H25.25V24Z"
fill=
"white"
/>
</svg>
</div>
<div
class=
"chart-num"
>
<p>
COMPLETED
</p>
...
...
@@ -46,11 +49,240 @@
</div>
</div>
</div>
</div>
<div
class=
"col-xl-3 col-6"
>
<div
class=
"content-box"
>
<div
class=
"event-data icon-box icon-box-xl"
>
<svg
width=
"20"
height=
"20"
viewBox=
"0 0 28 28"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M24 2.75H21.5V1.5C21.5 1.16848 21.3683 0.850537 21.1339 0.616117C20.8995 0.381696 20.5815 0.25 20.25 0.25C19.9185 0.25 19.6005 0.381696 19.3661 0.616117C19.1317 0.850537 19 1.16848 19 1.5V2.75H15.25V1.5C15.25 1.16848 15.1183 0.850537 14.8839 0.616117C14.6495 0.381696 14.3315 0.25 14 0.25C13.6685 0.25 13.3505 0.381696 13.1161 0.616117C12.8817 0.850537 12.75 1.16848 12.75 1.5V2.75H9V1.5C9 1.16848 8.8683 0.850537 8.63388 0.616117C8.39946 0.381696 8.08152 0.25 7.75 0.25C7.41848 0.25 7.10054 0.381696 6.86612 0.616117C6.6317 0.850537 6.5 1.16848 6.5 1.5V2.75H4C3.00544 2.75 2.05161 3.14509 1.34835 3.84835C0.645088 4.55161 0.25 5.50544 0.25 6.5V24C0.25 24.9946 0.645088 25.9484 1.34835 26.6517C2.05161 27.3549 3.00544 27.75 4 27.75H24C24.9946 27.75 25.9484 27.3549 26.6517 26.6517C27.3549 25.9484 27.75 24.9946 27.75 24V6.5C27.75 5.50544 27.3549 4.55161 26.6517 3.84835C25.9484 3.14509 24.9946 2.75 24 2.75ZM2.75 6.5C2.75 6.16848 2.8817 5.85054 3.11612 5.61612C3.35054 5.3817 3.66848 5.25 4 5.25H6.5V6.5C6.5 6.83152 6.6317 7.14946 6.86612 7.38388C7.10054 7.6183 7.41848 7.75 7.75 7.75C8.08152 7.75 8.39946 7.6183 8.63388 7.38388C8.8683 7.14946 9 6.83152 9 6.5V5.25H12.75V6.5C12.75 6.83152 12.8817 7.14946 13.1161 7.38388C13.3505 7.6183 13.6685 7.75 14 7.75C14.3315 7.75 14.6495 7.6183 14.8839 7.38388C15.1183 7.14946 15.25 6.83152 15.25 6.5V5.25H19V6.5C19 6.83152 19.1317 7.14946 19.3661 7.38388C19.6005 7.6183 19.9185 7.75 20.25 7.75C20.5815 7.75 20.8995 7.6183 21.1339 7.38388C21.3683 7.14946 21.5 6.83152 21.5 6.5V5.25H24C24.3315 5.25 24.6495 5.3817 24.8839 5.61612C25.1183 5.85054 25.25 6.16848 25.25 6.5V10.25H2.75V6.5ZM25.25 24C25.25 24.3315 25.1183 24.6495 24.8839 24.8839C24.6495 25.1183 24.3315 25.25 24 25.25H4C3.66848 25.25 3.35054 25.1183 3.11612 24.8839C2.8817 24.6495 2.75 24.3315 2.75 24V12.75H25.25V24Z"
fill=
"white"
/>
</svg>
</div>
<div
class=
"chart-num"
>
<p>
TOTAL PAYMENT RECEIVED
</p>
<h2
class=
"font-w700 mb-0"
>
<?php
echo
$total_amount
;
?>
</h2>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-xl-6"
>
<div
class=
"card h-auto"
>
<div
class=
"card-header border-0 pb-0 flex-wrap"
>
<h4
class=
"heading mb-3 mb-sm-0"
>
Application Overview
</h4>
</div>
<div
class=
"card-body p-0"
>
<div
id=
"barChart"
></div>
</div>
</div>
</div>
<div
class=
"col-xl-6"
>
<div
class=
"card h-auto"
>
<div
class=
"card-header border-0 pb-0 flex-wrap"
>
<h4
class=
"heading mb-3 mb-sm-0"
>
Application Overview
</h4>
</div>
<div
style=
"height: 366px"
class=
"card-body p-0"
>
<div
style=
"width: 366px"
id=
"pieChart"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"row p-5"
>
<h2>
Application Payment Pending List
</h2>
<div
class=
"col-xl-12 wow "
data-wow-delay=
"1.5s"
>
<div
class=
"table-responsive full-data"
>
<table
class=
"table-responsive-lg table display dataTablesCard student-tab dataTable no-footer"
id=
"example-student"
>
<thead>
<tr>
<th
class=
"wd-20p"
>
S.No
</th>
<th
class=
"wd-20p"
>
Ref.No
</th>
<th
class=
"wd-25p"
>
Application No.
</th>
<th
class=
"wd-15p"
>
Course Name
</th>
<th
class=
"wd-15p"
>
Name
</th>
<th
class=
"wd-15p"
>
Mobile No.
</th>
<th
class=
"wd-15p"
>
Application staus
</th>
<th
class=
"wd-15p"
>
Payment Mode
</th>
<th
class=
"wd-15p"
>
Payment Status
</th>
<th
class=
"wd-15p"
>
Submitted Date
</th>
<!-- <th class="wd-15p">Email </th>
<th class="wd-15p">Action</th> -->
</tr>
</thead>
<tbody>
<?php
foreach
(
$records
as
$i
=>
$row
)
{
?>
<tr>
<td>
<?=
$i
+
1
?>
</td>
<td>
<?=
$row
->
reference_no
?>
</td>
<td>
<?=
$row
->
application_no
?>
</td>
<td>
<?php
foreach
(
$courses
as
$course
)
{
if
(
$row
->
course_id
==
$course
->
id
)
{
echo
$course
->
short_name
?>
<?php
}
}
?>
</td>
<td>
<?=
$row
->
first_name
.
' '
.
$row
->
middle_name
.
' '
.
$row
->
last_name
?>
</td>
<td>
<?=
$row
->
mobile
?>
</td>
<td>
<?=
$row
->
payment_status
==
1
?
'Submitted'
:
'Drafted'
;
?>
</td>
<td>
<?=
$row
->
payment_status
==
0
?
'N/A'
:
(
$row
->
payment_mode
==
1
?
'Online'
:
'Demand Draft'
);
?>
</td>
<td>
<?=
$row
->
payment_status
==
2
?
'Paid'
:
'Not Paid'
;
?>
</td>
<td>
<?=
$row
->
created_at
==
''
?
'N/A'
:
date
(
'd-m-Y'
,
strtotime
(
$row
->
created_at
))
?>
</td>
<!-- <td>
<a href="
<?=
base_url
(
'ApplicationController/mailSendOnPendingList/'
.
$row
->
appid
)
?>
" data-toggle="tooltip" id="email" data-placement="top" title="Send Mail" data-original-title="Send Mail" class="btn btn-sm btn-secondary"><i class="ti ti-email"></i></a>
</td>
<td>
<a href="
<?=
base_url
(
'ApplicationController/viewApplication/'
.
$row
->
user_id
)
?>
" data-toggle="tooltip" id="preview" data-placement="top" title="Preview" data-original-title="Preview" class="btn btn-sm btn-primary"><i class="ti ti-eye"></i></a>
<a href="
<?=
base_url
(
'ApplicationController/applicationedit/'
.
$row
->
appid
)
?>
" data-toggle="tooltip" id="edit" data-placement="top" title="Edit" data-original-title="Edit" class="btn btn-sm btn-info"><i class="ti ti-pencil"></i></a>
</td> -->
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
\ No newline at end of file
</div>
<script>
var
options
=
{
series
:
[{
name
:
'Inflation'
,
data
:
<?=
json_encode
(
array_values
(
$monthlyCounts
))
?>
,
}],
chart
:
{
height
:
350
,
type
:
'bar'
,
},
plotOptions
:
{
bar
:
{
borderRadius
:
3
,
dataLabels
:
{
position
:
'top'
,
// top, center, bottom
},
}
},
dataLabels
:
{
enabled
:
true
,
formatter
:
function
(
val
)
{
return
val
;
},
offsetY
:
-
20
,
style
:
{
fontSize
:
'12px'
,
colors
:
[
"#304758"
]
}
},
xaxis
:
{
categories
:
[
"Jan"
,
"Feb"
,
"Mar"
,
"Apr"
,
"May"
,
"Jun"
,
"Jul"
,
"Aug"
,
"Sep"
,
"Oct"
,
"Nov"
,
"Dec"
],
position
:
'top'
,
axisBorder
:
{
show
:
false
},
axisTicks
:
{
show
:
false
},
crosshairs
:
{
fill
:
{
type
:
'gradient'
,
gradient
:
{
colorFrom
:
'#FC9003'
,
colorTo
:
'#FC9003'
,
stops
:
[
0
,
100
],
opacityFrom
:
0.4
,
opacityTo
:
0.5
,
}
}
},
tooltip
:
{
enabled
:
true
,
}
},
yaxis
:
{
axisBorder
:
{
show
:
false
},
axisTicks
:
{
show
:
false
,
},
labels
:
{
show
:
false
,
formatter
:
function
(
val
)
{
return
val
+
"%"
;
}
}
},
title
:
{
text
:
'Monthly Application Received ,
<?=
date
(
'Y'
)
?>
'
,
floating
:
true
,
offsetY
:
330
,
align
:
'center'
,
style
:
{
color
:
'#444'
}
}
};
var
chart1
=
new
ApexCharts
(
document
.
querySelector
(
"#barChart"
),
options
);
chart1
.
render
();
//pie chart
var
options
=
{
series
:
[
<?=
$drafted
?>
,
<?=
$pending
?>
,
<?=
$completed
?>
],
// Pie chart data
chart
:
{
width
:
380
,
type
:
'pie'
,
},
labels
:
[
"Draft"
,
"Pending"
,
"Completed"
],
// Labels for each slice
responsive
:
[{
breakpoint
:
480
,
options
:
{
chart
:
{
width
:
200
},
legend
:
{
position
:
'bottom'
}
}
}],
title
:
{
text
:
'Monthly Application Received,
<?=
date
(
'Y'
)
?>
'
,
align
:
'center'
,
floating
:
false
,
style
:
{
color
:
'#444'
}
},
dataLabels
:
{
enabled
:
true
,
formatter
:
function
(
val
)
{
return
val
.
toFixed
(
2
)
+
"%"
;
}
},
legend
:
{
position
:
'right'
,
offsetY
:
0
,
height
:
230
,
}
};
var
chart2
=
new
ApexCharts
(
document
.
querySelector
(
"#pieChart"
),
options
);
chart2
.
render
();
</script>
\ No newline at end of file
admin/application/views/faculty/add.php
View file @
f5185fc1
<link
href=
"https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.css"
rel=
"stylesheet"
>
<script
src=
"https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.js"
></script>
<div
class=
"row align-items-center"
>
<div
class=
"col-sm-6"
>
<div
class=
"page-title-box"
>
<!-- <h4 class="font-size-18">Pages</h4> -->
<!DOCTYPE html>
<html
lang=
"en"
>
</div>
</div>
<div
class=
"col-sm-6"
>
<div
class=
"float-right d-none d-md-block"
>
<!-- Mirrored from akademi.dexignlab.com/codeigniter/demo/student by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 06 Mar 2024 10:51:33 GMT -->
<!-- Added by HTTrack -->
<meta
http-equiv=
"content-type"
content=
"text/html;charset=UTF-8"
/>
<!-- /Added by HTTrack -->
<!-- <a class="btn btn-primary waves-effect waves-light" href="
<?php
echo
base_url
();
?>
Pages/get_pages">
<i class="mdi mdi-plus mr-2"></i>
</a> -->
</div>
</div>
</div>
<br>
<?php
if
(
validation_errors
())
{
?>
<div
class=
"alert alert-danger alert-dismissible fade show"
role=
"alert"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
<?php
echo
validation_errors
();
?>
</div>
<?php
}
?>
<?php
if
(
$this
->
session
->
flashdata
(
'check_email_alert_danger'
))
{
?>
<div
class=
"alert alert-danger alert-dismissible fade show"
role=
"alert"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
<strong>
Success!
</strong>
<?php
echo
$this
->
session
->
flashdata
(
'check_email_alert_danger'
);
?>
</div>
<?php
}
?>
<div
class=
"row"
>
<div
class=
"col-lg-12"
>
<div
class=
"card"
>
<div
class=
"card-body"
>
<h4
class=
"card-title"
>
Faculty create
</h4><bR>
<form
action=
"
<?php
echo
base_url
();
?>
ApplicationController/store"
method=
"post"
enctype=
"multipart/form-data"
id=
"registration_form"
>
<head>
<!-- Title -->
<title>
Add Faculty
</title>
<!-- Meta -->
<style>
.custom-card
{
margin-top
:
200px
;
}
</style>
</head>
<body>
<div
class=
"row p-5 custom-card"
>
<div
class=
"col-lg-12"
>
<div
class=
"card "
>
<div
class=
"card-body"
>
<h3
class=
""
>
Add Faculty
</h3>
<br>
<form
action=
"
<?php
echo
base_url
();
?>
ApplicationController/store"
method=
"post"
enctype=
"multipart/form-data"
id=
"registration_form"
>
<div
class=
"row"
>
<div
class=
"form-group col-md-4"
>
<label
class=
"required"
>
Name
</label>
<label
>
Name
</label>
<input
type=
"text"
class=
"form-control"
name=
"facultyname"
placeholder=
"name"
required
>
</div>
<div
class=
"form-group col-md-4"
>
<label
class=
"required"
>
Mobile
</label>
<label
>
Mobile
</label>
<input
name=
"mobile"
id=
"mobile"
type=
"number"
class=
"form-control"
placeholder=
"Mobile_number"
value=
"
<?php
echo
(
isset
(
$_POST
[
''
]))
?
$_POST
[
''
]
:
''
;
?>
"
required
>
<?php
if
(
$this
->
session
->
flashdata
(
'mobile'
))
:
?>
<span
style=
"color: red;"
>
<?=
$this
->
session
->
flashdata
(
'mobile'
)
?>
</span>
...
...
@@ -59,7 +43,7 @@ if (validation_errors()) {
<?php
endif
;
?>
</div>
<div
class=
"form-group col-md-4"
>
<label
class=
"required"
>
Email
</label>
<label
>
Email
</label>
<input
name=
"email"
id=
"email"
type=
"email"
class=
"form-control"
placeholder=
"Email"
value=
"
<?php
echo
(
isset
(
$_POST
[
''
]))
?
$_POST
[
''
]
:
''
;
?>
"
required
>
<?php
if
(
form_error
(
'email'
))
{
?>
<div
id=
"summernote"
class=
"alert alert-danger alert-dismissible fade show"
role=
"alert"
>
...
...
@@ -71,14 +55,14 @@ if (validation_errors()) {
<?php
}
?>
</div>
<div
class=
"form-group col-md-4"
>
<div
class=
"form-group col-md-4
mt-3
"
>
<label
for=
"login_pass"
class=
"form_label"
>
Password
</label>
<div
class=
"control"
>
<input
type=
"password"
name=
"password"
id=
"login_pass"
class=
"form-control password"
autocomplete=
"off"
placeholder=
"Password"
/>
<span
class=
"input-group-text"
>
<
!-- <
span class="input-group-text">
<i class="eye showPwd1"></i>
</span>
</span>
-->
<?php
if
(
form_error
(
'password'
))
{
?>
<div
class=
"alert alert-danger alert-dismissible fade show pb-0 mt-1"
role=
"alert"
>
...
...
@@ -91,15 +75,15 @@ if (validation_errors()) {
</div>
<div
class=
"form-group col-md-4"
>
<div
class=
"form-group col-md-4
mt-3
"
>
<label
for=
"login_pass"
class=
"form_label"
>
confirm Password
</label>
<div
class=
"control"
>
<!-- <input type="password" name="Password" id="login_pass" class="form-control password" autocomplete="off" placeholder="Enter password" /> -->
<input
type=
"password"
name=
"c_password"
id=
"login_pass2"
class=
"form-control password2"
autocomplete=
"off"
placeholder=
"Confirm password"
/>
<span
class=
"input-group-text"
>
<
!-- <
span class="input-group-text">
<i class="eye showPwd2"></i>
</span>
</span>
-->
<?php
if
(
form_error
(
'c_password'
))
{
?>
<div
class=
"alert alert-danger alert-dismissible fade show pb-0 mt-1"
role=
"alert"
>
...
...
@@ -111,32 +95,10 @@ if (validation_errors()) {
</div>
<!-- <div class="form-group col-md-4">
<label class="required">Password</label>
<input name="Password" id="Password" type="psw" class="form-control" placeholder="Password" value="
<?php
echo
(
isset
(
$_POST
[
''
]))
?
$_POST
[
''
]
:
''
;
?>
" required>
<?php
if
(
form_error
(
'Password'
))
{
?>
<div id="summernote" class="alert alert-danger alert-dismissible fade show" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<?php
echo
form_error
(
'Password'
);
?>
</div>
<?php
}
?>
</div>
<div class="form-group col-md-4">
<label class="required">Confirm Password</label>
<input name="confirm_password" id="confirm_password" type="psw" class="form-control" placeholder="confirm_password" value="
<?php
echo
(
isset
(
$_POST
[
''
]))
?
$_POST
[
''
]
:
''
;
?>
" required>
<?php
if
(
form_error
(
'confirm_password'
))
{
?>
<div id="summernote" class="alert alert-danger alert-dismissible fade show" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<?php
echo
form_error
(
'confirm_password'
);
?>
</div>
<?php
}
?>
</div> -->
<div
class=
"form-group mt-3 col-md-4"
>
</div>
<div
class=
"form-group mt-3 col-md-4"
>
<div
class=
""
>
<button
name=
"submit"
type=
"submit"
class=
"btn btn-primary waves-effect waves-light mr-1"
>
Submit
...
...
@@ -144,22 +106,53 @@ if (validation_errors()) {
<a
href=
"
<?php
echo
base_url
(
'ApplicationController/faculty'
);
?>
"
class=
"btn btn-secondary waves-effect"
>
Cancel
</a>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<body>
<script>
$
(
document
).
ready
(
function
()
{
$
(
'#summernote'
).
summernote
();
</body>
</html>
<script>
function
edit
(
id
,
name
)
{
$
(
'#tution_name_err'
).
text
(
' '
)
$
(
'#id'
).
val
(
id
)
$
(
'#tution_name'
).
val
(
name
)
$
(
'#formTitle'
).
text
(
'Edit Tution'
)
$
(
"#tutionModal"
).
modal
(
'show'
);
}
function
deletetution
(
id
,
status
)
{
$
(
'#tutionId'
).
val
(
id
)
$
(
'#tutionStatus'
).
val
(
status
)
$
(
"#statusModal"
).
show
();
}
$
(
'#open-modal'
).
on
(
'click'
,
function
()
{
$
(
"#tutionModal"
).
modal
(
'show'
);
});
$
(
'.closemodel'
).
on
(
'click'
,
function
()
{
$
(
"#statusModal"
).
hide
();
});
$
(
document
).
ready
(
function
()
{
$
(
'#registration_form'
).
validate
({
rules
:
{
...
...
@@ -214,52 +207,45 @@ if (validation_errors()) {
$
(
element
).
removeClass
(
'is-invalid'
);
}
});
});
});
let
pwd1
=
document
.
getElementById
(
'login_pass'
),
eye1
=
document
.
querySelector
(
'.showPwd1'
);
eye1
.
addEventListener
(
'click'
,
function
()
{
toggleType1
();
})
function
toggleType1
()
{
if
(
eye1
.
classList
.
contains
(
'closed'
))
{
pwd1
.
type
=
'password'
;
}
else
{
pwd1
.
type
=
'text'
;
}
eye1
.
classList
.
toggle
(
'closed'
);
}
//end of password toggle
eye1
=
document
.
querySelector
(
'.showPwd1'
);
eye1
.
addEventListener
(
'click'
,
function
()
{
toggleType1
();
})
//start of confirm password toggle
let
pwd2
=
document
.
getElementById
(
'login_pass2'
);
eye2
=
document
.
querySelector
(
'.showPwd2'
);
eye2
.
addEventListener
(
'click'
,
function
()
{
toggleType2
();
})
function
toggleType1
()
{
if
(
eye1
.
classList
.
contains
(
'closed'
))
{
pwd1
.
type
=
'password'
;
}
else
{
pwd1
.
type
=
'text'
;
}
eye1
.
classList
.
toggle
(
'closed'
);
}
//end of password toggle
function
toggleType2
()
{
if
(
eye2
.
classList
.
contains
(
'closed'
))
{
pwd2
.
type
=
'password'
;
}
else
{
pwd2
.
type
=
'text'
;
}
eye2
.
classList
.
toggle
(
'closed'
);
}
</script>
</body>
<style
type=
"text/css"
>
.required
:after
{
content
:
" *"
!important
;
color
:
red
!important
;
//start of confirm password toggle
let
pwd2
=
document
.
getElementById
(
'login_pass2'
);
eye2
=
document
.
querySelector
(
'.showPwd2'
);
eye2
.
addEventListener
(
'click'
,
function
()
{
toggleType2
();
})
function
toggleType2
()
{
if
(
eye2
.
classList
.
contains
(
'closed'
))
{
pwd2
.
type
=
'password'
;
}
else
{
pwd2
.
type
=
'text'
;
}
eye2
.
classList
.
toggle
(
'closed'
);
}
</style>
\ No newline at end of file
</script>
\ No newline at end of file
admin/application/views/faculty/edit.php
View file @
f5185fc1
<link
href=
"https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.css"
rel=
"stylesheet"
>
<script
src=
"https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.js"
></script>
<div
class=
"row align-items-center"
>
<div
class=
"col-sm-6"
>
<div
class=
"page-title-box"
>
<!-- <h4 class="font-size-18">Pages</h4> -->
<!DOCTYPE html>
<html
lang=
"en"
>
</div>
</div>
<div
class=
"col-sm-6"
>
<div
class=
"float-right d-none d-md-block"
>
<!-- Mirrored from akademi.dexignlab.com/codeigniter/demo/student by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 06 Mar 2024 10:51:33 GMT -->
<!-- Added by HTTrack -->
<meta
http-equiv=
"content-type"
content=
"text/html;charset=UTF-8"
/>
<!-- /Added by HTTrack -->
<!-- <a class="btn btn-primary waves-effect waves-light" href="
<?php
echo
base_url
();
?>
Pages/get_pages">
<i class="mdi mdi-plus mr-2"></i>
</a> -->
</div>
</div>
</div>
<br>
<?php
if
(
validation_errors
())
{
?>
<div
class=
"alert alert-danger alert-dismissible fade show"
role=
"alert"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
<?php
echo
validation_errors
();
?>
</div>
<?php
}
?>
<?php
if
(
$this
->
session
->
flashdata
(
'check_email_alert_danger'
))
{
?>
<div
class=
"alert alert-danger alert-dismissible fade show"
role=
"alert"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
<strong>
Success!
</strong>
<?php
echo
$this
->
session
->
flashdata
(
'check_email_alert_danger'
);
?>
</div>
<?php
}
?>
<div
class=
"row"
>
<div
class=
"col-lg-12"
>
<div
class=
"card"
>
<div
class=
"card-body"
>
<h4
class=
"card-title"
>
Faculty edit
</h4><bR>
<form
action=
"
<?php
echo
base_url
();
?>
ApplicationController/update/
<?php
echo
$records
[
'id'
];
?>
"
method=
"post"
enctype=
"multipart/form-data"
>
<head>
<!-- Title -->
<title>
Edit Faculty
</title>
<!-- Meta -->
<style>
.custom-card
{
margin-top
:
200px
;
}
</style>
</head>
<body>
<div
class=
"row p-5 custom-card"
>
<div
class=
"col-lg-12"
>
<div
class=
"card "
>
<div
class=
"card-body"
>
<h3
class=
""
>
Edit Faculty
</h3>
<br>
<form
action=
"
<?php
echo
base_url
();
?>
ApplicationController/update/
<?php
echo
$records
[
'id'
];
?>
"
method=
"post"
enctype=
"multipart/form-data"
>
<div
class=
"row"
>
<div
class=
"form-group col-md-4"
>
<label
class=
""
>
Name
</label>
...
...
@@ -70,7 +54,7 @@ if (validation_errors()) {
</div>
<?php
}
?>
</div>
<div
class=
"form-group col-md-4"
>
<div
class=
"form-group col-md-4
mt-3
"
>
<label>
Password
</label>
<input
name=
"Password"
id=
"Password"
type=
"psw"
class=
"form-control"
placeholder=
"Password"
value=
"
<?php
echo
(
isset
(
$_POST
[
''
]))
?
$_POST
[
''
]
:
''
;
?>
"
>
<?php
if
(
form_error
(
'Password'
))
{
?>
...
...
@@ -82,7 +66,7 @@ if (validation_errors()) {
</div>
<?php
}
?>
</div>
<div
class=
"form-group col-md-4"
>
<div
class=
"form-group col-md-4
mt-3
"
>
<label>
Confirm Password
</label>
<input
name=
"confirm_password"
id=
"confirm_password"
type=
"psw"
class=
"form-control"
placeholder=
"confirm_password"
value=
"
<?php
echo
(
isset
(
$_POST
[
''
]))
?
$_POST
[
''
]
:
''
;
?>
"
>
<?php
if
(
form_error
(
'confirm_password'
))
{
?>
...
...
@@ -95,7 +79,10 @@ if (validation_errors()) {
<?php
}
?>
</div>
<div
class=
"form-group mt-3 col-md-4"
>
</div>
<div
class=
"form-group mt-3 col-md-4 mt-3"
>
<div>
<button
name=
"submit"
type=
"submit"
class=
"btn btn-primary waves-effect waves-light mr-1"
>
Submit
...
...
@@ -103,25 +90,146 @@ if (validation_errors()) {
<a
href=
"
<?php
echo
base_url
(
'ApplicationController/faculty'
);
?>
"
class=
"btn btn-secondary waves-effect"
>
Cancel
</a>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<body>
<script>
$
(
document
).
ready
(
function
()
{
$
(
'#summernote'
).
summernote
();
});
</script>
</body>
<style
type=
"text/css"
>
.required
:after
{
content
:
" *"
!important
;
color
:
red
!important
;
</html>
<script>
function
edit
(
id
,
name
)
{
$
(
'#tution_name_err'
).
text
(
' '
)
$
(
'#id'
).
val
(
id
)
$
(
'#tution_name'
).
val
(
name
)
$
(
'#formTitle'
).
text
(
'Edit Tution'
)
$
(
"#tutionModal"
).
modal
(
'show'
);
}
function
deletetution
(
id
,
status
)
{
$
(
'#tutionId'
).
val
(
id
)
$
(
'#tutionStatus'
).
val
(
status
)
$
(
"#statusModal"
).
show
();
}
$
(
'#open-modal'
).
on
(
'click'
,
function
()
{
$
(
"#tutionModal"
).
modal
(
'show'
);
});
$
(
'.closemodel'
).
on
(
'click'
,
function
()
{
$
(
"#statusModal"
).
hide
();
});
$
(
document
).
ready
(
function
()
{
$
(
'#registration_form'
).
validate
({
rules
:
{
facultyname
:
{
required
:
true
},
mobile
:
{
required
:
true
,
number
:
true
},
email
:
{
required
:
true
,
email
:
true
},
Password
:
{
required
:
true
},
confirm_password
:
{
required
:
true
,
equalTo
:
"#Password"
// Ensure it matches the password field
}
},
messages
:
{
facultyname
:
{
required
:
"Please enter your name"
},
mobile
:
{
required
:
"Please enter your mobile number"
,
number
:
"Please enter a valid mobile number"
},
email
:
{
required
:
"Please enter your email address"
,
email
:
"Please enter a valid email address"
},
Password
:
{
required
:
"Please enter a password"
},
confirm_password
:
{
required
:
"Please confirm your password"
,
equalTo
:
"Passwords do not match"
}
},
errorElement
:
'span'
,
errorPlacement
:
function
(
error
,
element
)
{
error
.
addClass
(
'invalid-feedback'
);
element
.
closest
(
'.form-group'
).
append
(
error
);
},
highlight
:
function
(
element
,
errorClass
,
validClass
)
{
$
(
element
).
addClass
(
'is-invalid'
);
},
unhighlight
:
function
(
element
,
errorClass
,
validClass
)
{
$
(
element
).
removeClass
(
'is-invalid'
);
}
});
});
let
pwd1
=
document
.
getElementById
(
'login_pass'
),
eye1
=
document
.
querySelector
(
'.showPwd1'
);
eye1
.
addEventListener
(
'click'
,
function
()
{
toggleType1
();
})
function
toggleType1
()
{
if
(
eye1
.
classList
.
contains
(
'closed'
))
{
pwd1
.
type
=
'password'
;
}
else
{
pwd1
.
type
=
'text'
;
}
eye1
.
classList
.
toggle
(
'closed'
);
}
//end of password toggle
//start of confirm password toggle
let
pwd2
=
document
.
getElementById
(
'login_pass2'
);
eye2
=
document
.
querySelector
(
'.showPwd2'
);
eye2
.
addEventListener
(
'click'
,
function
()
{
toggleType2
();
})
function
toggleType2
()
{
if
(
eye2
.
classList
.
contains
(
'closed'
))
{
pwd2
.
type
=
'password'
;
}
else
{
pwd2
.
type
=
'text'
;
}
eye2
.
classList
.
toggle
(
'closed'
);
}
</style>
\ No newline at end of file
</script>
\ No newline at end of file
admin/application/views/faculty/view.php
View file @
f5185fc1
...
...
@@ -34,12 +34,13 @@
</svg>
</a></span>
</div>
<div>
<!-- Button trigger modal --
>
<button
type=
"button"
class=
"btn btn-primary"
id=
"open-modal"
>
+ New Faculty
</button>
<a
class=
"btn btn-primary"
id=
"open-modal"
href=
"
<?php
echo
base_url
();
?>
ApplicationController/facultyadd"
>
+ New Faculty
</a>
</div>
</div>
</div>
...
...
@@ -69,11 +70,8 @@
<td>
<?=
$row
->
f_email
;
?>
</td>
<td>
<?=
$row
->
f_mobile
;
?>
</td>
<td>
<a
data-toggle=
"tooltip"
id=
"edit"
data-placement=
"top"
title=
"Edit"
data-original-title=
"Edit"
onclick=
"edit('
<?php
echo
$row
->
id
;
?>
', '
<?php
echo
$row
->
fees
;
?>
', '
<?php
echo
$row
->
course
;
?>
')"
class=
"btn btn-sm btn-info"
><i
class=
"ti ti-pencil"
></i></a>
<!-- <a href="
<?=
base_url
(
'ApplicationController/edit/'
.
$row
->
id
)
?>
" class="btn-sm btn-info"><i class="ti-pencil-alt"></i></a> -->
<a
href=
"
<?=
base_url
(
'ApplicationController/delete/'
.
$row
->
id
)
?>
"
class=
"btn-sm btn-danger"
><i
class=
"ti-trash"
></i></a>
<a
href=
"
<?=
base_url
(
'ApplicationController/edit/'
.
$row
->
id
)
?>
"
data-toggle=
"tooltip"
id=
"edit"
data-placement=
"top"
title=
"Edit"
data-original-title=
"Edit"
class=
"btn btn-sm btn-info"
><i
class=
"ti ti-pencil"
></i></a>
<a
href=
"
<?=
base_url
(
'ApplicationController/delete/'
.
$row
->
id
)
?>
"
data-toggle=
"tooltip"
id=
"delete"
data-placement=
"top"
title=
"Delete"
data-original-title=
"Delete"
class=
"btn btn-sm btn-danger"
><i
class=
"ti ti-trash"
></i></a>
</td>
</tr>
...
...
admin/application/views/masters/examSchedule.php
0 → 100644
View file @
f5185fc1
<!DOCTYPE html>
<html
lang=
"en"
>
<!-- Mirrored from akademi.dexignlab.com/codeigniter/demo/student by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 06 Mar 2024 10:51:33 GMT -->
<!-- Added by HTTrack -->
<meta
http-equiv=
"content-type"
content=
"text/html;charset=UTF-8"
/>
<!-- /Added by HTTrack -->
<head>
<!-- Title -->
<title>
Exam Schedule
</title>
<!-- Meta -->
</head>
<body>
<div
class=
"content-body"
>
<!-- row -->
<div
class=
"container-fluid"
>
<!-- Row -->
<div
class=
"row"
>
<div
class=
"col-xl-12"
>
<div
class=
"row"
>
<div
class=
"col-xl-12"
>
<div
class=
"page-title flex-wrap"
>
<div
class=
"input-group search-area mb-md-0 mb-3"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"Search here..."
>
<span
class=
"input-group-text"
><a
href=
"javascript:void(0)"
>
<svg
width=
"15"
height=
"15"
viewBox=
"0 0 18 18"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M17.5605 15.4395L13.7527 11.6317C14.5395 10.446 15 9.02625 15 7.5C15 3.3645 11.6355 0 7.5 0C3.3645 0 0 3.3645 0 7.5C0 11.6355 3.3645 15 7.5 15C9.02625 15 10.446 14.5395 11.6317 13.7527L15.4395 17.5605C16.0245 18.1462 16.9755 18.1462 17.5605 17.5605C18.1462 16.9747 18.1462 16.0252 17.5605 15.4395V15.4395ZM2.25 7.5C2.25 4.605 4.605 2.25 7.5 2.25C10.395 2.25 12.75 4.605 12.75 7.5C12.75 10.395 10.395 12.75 7.5 12.75C4.605 12.75 2.25 10.395 2.25 7.5V7.5Z"
fill=
"#01A3FF"
/>
</svg>
</a></span>
</div>
<div>
<!-- Button trigger modal -->
<button
type=
"button"
class=
"btn btn-primary"
id=
"open-modal"
>
+ New Exam Schedule
</button>
</div>
</div>
</div>
<!--column-->
<div
class=
"col-xl-12 wow fadeInUp"
data-wow-delay=
"1.5s"
>
<div
class=
"table-responsive full-data"
>
<table
class=
"table-responsive-lg table display dataTablesCard student-tab dataTable no-footer"
id=
"example-student"
>
<thead>
<tr>
<th
class=
"wd-20p"
>
S.No
</th>
<th
class=
"wd-20p"
>
Academic
</th>
<th
class=
"wd-25p"
>
Exam Schedule
</th>
<th
class=
"wd-25p"
>
Date
</th>
<th
class=
"wd-25p"
>
Time
</th>
<th
class=
"wd-15p"
>
Action
</th>
</tr>
</thead>
<tbody>
<?php
$i
=
1
;
foreach
(
$records
as
$key
=>
$row
)
{
?>
<tr>
<td>
<?=
$i
?>
</td>
<td>
<?=
$row
->
academic
?>
</td>
<td>
<?=
$row
->
exam_schedule
?>
</td>
<td>
<?=
$row
->
date
?>
</td>
<td>
<?=
$row
->
time
?>
</td>
<td>
<a
data-toggle=
"tooltip"
id=
"edit"
data-placement=
"top"
title=
"Edit"
data-original-title=
"Edit"
onclick=
"edit('
<?php
echo
$row
->
id
;
?>
', '
<?php
echo
$row
->
academic
;
?>
', '
<?php
echo
$row
->
exam_schedule
;
?>
')"
class=
"btn btn-sm btn-info"
><i
class=
"ti ti-pencil"
></i></a>
<a
data-toggle=
"tooltip"
data-placement=
"top"
title=
"Delete"
data-original-title=
"Delete"
onclick=
"deleteCourse('
<?php
echo
$row
->
id
;
?>
','
<?php
echo
$row
->
status
;
?>
')"
class=
"btn btn-sm
<?php
echo
$row
->
status
==
1
?
'btn-primary'
:
'btn-danger'
?>
text-white"
>
<?php
echo
$row
->
status
==
1
?
'Active'
:
'In-Active'
?>
</a>
</td>
</tr>
<?php
$i
++
;
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div
class=
"modal fade"
id=
"applicationModal"
tabindex=
"-1"
aria-labelledby=
"exampleModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-lg modal-dialog-center"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<h1
class=
"modal-title fs-5"
id=
"exampleModalLabel"
>
Add Exam Schedule
</h1>
<button
type=
"button"
class=
"btn-close"
data-bs-dismiss=
"modal"
aria-label=
"Close"
></button>
</div>
<div
class=
"modal-body"
>
<form
method=
"POST"
id=
"feesForm"
action=
"
<?php
echo
base_url
(
'ApplicationController/addEditexamSchedule'
);
?>
"
>
<input
type=
"hidden"
id=
'id'
name=
'id'
>
<div
class=
"row"
>
<div
class=
"form-group col-md-6"
>
<label
class=
"tx-medium"
>
Academic Year
<span
class=
"text-danger"
>
*
</span>
</label>
<select
name=
"academic"
id=
"academic"
class=
"form-control select2 modal-select"
>
<option
value=
""
>
--Select--
</option>
<?php
foreach
(
$academic_year
as
$row
)
{
?>
<option
value=
"
<?php
echo
$row
->
id
?>
"
>
<?php
echo
$row
->
year
?>
</option>
<?php
}
?>
</select>
</div>
<div
class=
"form-group col-md-6"
>
<label
class=
"tx-medium"
>
Exam Schedule
<span
class=
"text-danger"
>
*
</span>
</label>
<input
type=
"text"
class=
"form-control"
id=
"schedule"
name=
"schedule"
placeholder=
"Exam Schedule"
required
>
<!-- <p class="text-danger mt-2" id="fees_err"></p> -->
</div>
<div
class=
"form-group col-md-6"
>
<label
class=
"tx-medium"
>
Date
<span
class=
"text-danger"
>
*
</span>
</label>
<input
type=
"date"
class=
"form-control"
id=
"date"
name=
"date"
placeholder=
"Date"
required
>
<!-- <p class="text-danger mt-2" id="fees_err"></p> -->
</div>
<div
class=
"form-group col-md-6"
>
<label
class=
"tx-medium"
>
Time
<span
class=
"text-danger"
>
*
</span>
</label>
<input
type=
"time"
class=
"form-control"
id=
"time"
name=
"time"
placeholder=
"Time"
required
>
<!-- <p class="text-danger mt-2" id="fees_err"></p> -->
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"submit"
class=
"btn ripple btn-primary"
id=
"save"
>
Save
</button>
<button
type=
"button"
class=
"btn ripple btn-secondary "
id=
"closemodel"
data-bs-dismiss=
"modal"
>
Close
</button>
</div>
</form>
</div>
</div>
</div>
</div>
<div
class=
"modal show"
id=
"statusModal"
style=
"display: none;"
aria-modal=
"true"
role=
"dialog"
>
<div
class=
"modal-dialog "
role=
"document"
>
<div
class=
"modal-content modal-content-demo"
>
<div
class=
"modal-header"
>
<h6
class=
"modal-title"
id=
"formTitle"
>
Change Status
</h6>
</div>
<div
class=
"modal-body"
>
<form
method=
"POST"
action=
"
<?php
echo
base_url
(
'ApplicationController/commonStatusChange/'
)
?>
"
id=
"courseForm"
>
<input
type=
"hidden"
id=
'rowId'
name=
'id'
>
<input
type=
"hidden"
id=
'rowStatus'
name=
'status'
>
<input
type=
"hidden"
id=
'table'
name=
'table'
value=
"application_fees"
>
<div
class=
"form-group"
>
<h4>
Are You Sure you want to change the status?
</h4>
</div>
<div
class=
"modal-footer"
>
<button
type=
"submit"
class=
"btn ripple btn-primary"
>
Yes
</button>
<button
type=
"button"
class=
"btn ripple btn-secondary closemodel"
id=
"closemodel"
data-bs-dismiss=
"modal"
>
Close
</button>
</div>
</form>
</div>
</div>
</div>
</div>
</body>
</html>
<script>
function
edit
(
id
,
feesVal
,
courseId
)
{
$
(
'#course_name_err'
).
text
(
' '
)
$
(
'#fees_err'
).
text
(
' '
)
$
(
'#id'
).
val
(
id
)
$
(
'#fees'
).
val
(
feesVal
)
$
(
'#courseId'
).
val
(
courseId
)
$
(
'#courseId'
).
val
(
courseId
).
trigger
(
'change'
);
$
(
'#formTitle'
).
text
(
'Edit Course'
)
$
(
"#applicationModal"
).
modal
(
'show'
);
$
(
"#courseId"
).
select2
({
width
:
'100%'
,
});
}
function
deleteCourse
(
id
,
status
)
{
$
(
'#rowId'
).
val
(
id
)
$
(
'#rowStatus'
).
val
(
status
)
$
(
"#statusModal"
).
show
();
}
$
(
'#open-modal'
).
on
(
'click'
,
function
()
{
$
(
"#applicationModal"
).
modal
(
'show'
);
});
$
(
'.closemodel'
).
on
(
'click'
,
function
()
{
$
(
"#statusModal"
).
hide
();
});
$
(
document
).
ready
(
function
()
{
$
(
'#timepicker'
).
timepicker
({
timeFormat
:
'HH:mm:ss'
,
interval
:
30
,
// 30 minutes
minTime
:
'10'
,
maxTime
:
'12:00pm'
,
defaultTime
:
'11'
,
startTime
:
'10:00'
,
dynamic
:
false
,
dropdown
:
true
,
scrollbar
:
true
});
});
</script>
\ No newline at end of file
admin/application/views/masters/referenceno.php
View file @
f5185fc1
...
...
@@ -8,7 +8,7 @@
<head>
<!-- Title -->
<title>
Tution Category
</title>
<title>
Reference No
</title>
<!-- Meta -->
<style>
...
...
admin/application/views/questions/add.php
View file @
f5185fc1
...
...
@@ -29,7 +29,7 @@
<form
action=
"
<?php
echo
base_url
();
?>
ApplicationController/questionAdd"
method=
"post"
enctype=
"multipart/form-data"
id=
"registration_form"
>
<div
class=
"row"
>
<div
class=
"form-group col-md-
4
"
>
<div
class=
"form-group col-md-
3
"
>
<label
class=
"tx-medium"
>
Academic Year
<span
class=
"text-danger"
>
*
</span>
</label>
<select
name=
"academic"
id=
"academic"
class=
"form-control select2 modal-select"
>
...
...
@@ -41,7 +41,7 @@
</select>
</div>
<div
class=
"form-group col-md-
4
"
>
<div
class=
"form-group col-md-
3
"
>
<label
class=
"tx-medium"
>
Exam Type
<span
class=
"text-danger"
>
*
</span>
</label>
<select
name=
"exam_type"
id=
"exam_type"
class=
"form-control select2 modal-select"
>
...
...
@@ -54,7 +54,7 @@
</div>
<div
class=
"form-group col-md-
4
"
>
<div
class=
"form-group col-md-
3
"
>
<label
class=
"tx-medium"
>
Category
<span
class=
"text-danger"
>
*
</span>
</label>
<select
name=
"category"
id=
"category"
class=
"form-control select2 modal-select"
>
...
...
@@ -67,6 +67,20 @@
</div>
<div
class=
"form-group col-md-3"
>
<label
class=
"tx-medium"
>
Schedule
<span
class=
"text-danger"
>
*
</span>
</label>
<select
name=
"schedule"
id=
"schedule"
class=
"form-control select2 modal-select"
>
<option
value=
""
>
--Select--
</option>
<?php
foreach
(
$schedule
as
$row
)
{
?>
<option
value=
"
<?php
echo
$row
->
id
?>
"
>
<?php
echo
$row
->
exam_schedule
?>
</option>
<?php
}
?>
</select>
</div>
<div
class=
"form-group col-md-12 mt-3"
>
<label>
Question
</label>
...
...
admin/assets/css/style.css
View file @
f5185fc1
...
...
@@ -21495,7 +21495,8 @@ Fixing Order => Base + Typography >> General Layout + Grid >> Page Layout + Comp
.input-group > .bootstrap-select:not(:last-child) .dropdown-toggle {
border-top-right-radius: 0;
border-bottom-right-radius: 0; }
border-bottom-right-radius: 0;
height : 42px ;}
:root {
--primary: #FC9003;
admin/assets/images/asian_logo.jpg
0 → 100644
View file @
f5185fc1
1.01 MB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment