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
d249f6f6
Commit
d249f6f6
authored
Mar 15, 2024
by
Manoj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exam schedule
parent
77f192f5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
252 additions
and
70 deletions
+252
-70
ApplicationController.php
admin/application/controllers/ApplicationController.php
+75
-0
menu.php
admin/application/views/base/menu.php
+1
-0
add.php
admin/application/views/faculty/add.php
+0
-0
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
+0
-0
referenceno.php
admin/application/views/masters/referenceno.php
+1
-1
No files found.
admin/application/controllers/ApplicationController.php
View file @
d249f6f6
...
...
@@ -2454,6 +2454,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/views/base/menu.php
View file @
d249f6f6
...
...
@@ -22,6 +22,7 @@
<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>
...
...
admin/application/views/faculty/add.php
View file @
d249f6f6
This diff is collapsed.
Click to expand it.
admin/application/views/faculty/edit.php
View file @
d249f6f6
<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 @
d249f6f6
...
...
@@ -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 @
d249f6f6
This diff is collapsed.
Click to expand it.
admin/application/views/masters/referenceno.php
View file @
d249f6f6
...
...
@@ -8,7 +8,7 @@
<head>
<!-- Title -->
<title>
Tution Category
</title>
<title>
Reference No
</title>
<!-- Meta -->
<style>
...
...
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