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
1296d54b
Commit
1296d54b
authored
Mar 16, 2024
by
Manoj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
c1a1c5e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
80 additions
and
67 deletions
+80
-67
ApplicationController.php
admin/application/controllers/ApplicationController.php
+80
-67
No files found.
admin/application/controllers/ApplicationController.php
View file @
1296d54b
...
@@ -2479,77 +2479,90 @@ class ApplicationController extends CI_Controller
...
@@ -2479,77 +2479,90 @@ class ApplicationController extends CI_Controller
public
function
examSchedule
()
public
function
examSchedule
()
{
{
$view_data
[
'academic_year'
]
=
$this
->
mcommon
->
records_all
(
'accadamic_year'
,
array
(
'status'
,
1
));
$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
));
$view_data
[
'records'
]
=
$this
->
mcommon
->
records_all
(
'exam_schedule'
,
array
(
'status'
,
1
));
$view_data
[
'exam_type'
]
=
$this
->
mcommon
->
records_all
(
'exam_type'
,
array
(
'status'
,
1
));
$data
=
array
(
'title'
=>
'Exam Schedule'
,
$data
=
array
(
'page'
=>
'Exam Schedule'
,
'title'
=>
'Exam Schedule'
,
'content'
=>
$this
->
load
->
view
(
'masters/examSchedule'
,
$view_data
,
true
),
'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'
);
$exam_type1
=
$this
->
input
->
post
(
'exam_type1'
);
$exam_type2
=
$this
->
input
->
post
(
'exam_type2'
);
$objective_date
=
$this
->
input
->
post
(
'objective_date'
);
$objective_time
=
$this
->
input
->
post
(
'objective_time'
);
$essay_date
=
$this
->
input
->
post
(
'essay_date'
);
$essay_time
=
$this
->
input
->
post
(
'essay_time'
);
if
(
$id
)
{
$update_array
=
array
(
'exam_schedule'
=>
$schedule
,
'academic'
=>
$academic
,
'exam_type1'
=>
$exam_type1
,
'exam_type2'
=>
$exam_type2
,
'objective_date'
=>
$objective_date
,
'objective_time'
=>
$objective_time
,
'essay_date'
=>
$essay_date
,
'essay_time'
=>
$essay_time
,
'status'
=>
1
,
);
);
$this
->
load
->
view
(
'base/base_template'
,
$data
);
}
$update
=
$this
->
mcommon
->
common_edit
(
'exam_schedule'
,
$update_array
,
array
(
'id'
=>
$id
));
if
(
$update
)
{
public
function
addEditexamSchedule
()
$this
->
session
->
set_flashdata
(
'alert_success'
,
'Exam Schedule Updated Successfully!'
);
{
$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
{
}
else
{
$user_array
=
array
(
$this
->
session
->
set_flashdata
(
'alert_danger'
,
'Something went wrong'
);
'exam_schedule'
=>
$schedule
,
}
'academic'
=>
$academic
,
}
else
{
'date'
=>
$date
,
'time'
=>
$time
,
$user_array
=
array
(
'status'
=>
1
,
'exam_schedule'
=>
$schedule
,
);
'academic'
=>
$academic
,
$insert
=
$this
->
mcommon
->
common_insert
(
'exam_schedule'
,
$user_array
);
'exam_type1'
=>
$exam_type1
,
'exam_type2'
=>
$exam_type2
,
'objective_date'
=>
$objective_date
,
if
(
$insert
)
{
'objective_time'
=>
$objective_time
,
'essay_date'
=>
$essay_date
,
'essay_time'
=>
$essay_time
,
$this
->
session
->
set_flashdata
(
'alert_success'
,
'Exam Schedule Added successfully!'
);
'status'
=>
1
,
}
else
{
);
$insert
=
$this
->
mcommon
->
common_insert
(
'exam_schedule'
,
$user_array
);
$this
->
session
->
set_flashdata
(
'alert_danger'
,
'Something went wrong'
);
}
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'
);
}
}
redirect
(
'ApplicationController/examSchedule'
);
}
...
...
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