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
6949c311
Commit
6949c311
authored
Mar 15, 2024
by
Manoj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
d249f6f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
+24
-3
ApplicationController.php
admin/application/controllers/ApplicationController.php
+7
-0
add.php
admin/application/views/questions/add.php
+17
-3
No files found.
admin/application/controllers/ApplicationController.php
View file @
6949c311
...
@@ -2338,6 +2338,7 @@ class ApplicationController extends CI_Controller
...
@@ -2338,6 +2338,7 @@ class ApplicationController extends CI_Controller
$view_data
[
'records'
]
=
$this
->
mcommon
->
records_all
(
'question'
);
$view_data
[
'records'
]
=
$this
->
mcommon
->
records_all
(
'question'
);
$view_data
[
'exam_type'
]
=
$this
->
mcommon
->
records_all
(
'exam_type'
,
array
(
'status'
,
1
));
$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
[
'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
));
$view_data
[
'category'
]
=
$this
->
mcommon
->
records_all
(
'section_category'
,
array
(
'status'
,
1
));
$data
=
array
(
$data
=
array
(
'title'
=>
'View Question '
,
'title'
=>
'View Question '
,
...
@@ -2354,6 +2355,7 @@ class ApplicationController extends CI_Controller
...
@@ -2354,6 +2355,7 @@ class ApplicationController extends CI_Controller
$academic
=
$this
->
input
->
post
(
'academic'
);
$academic
=
$this
->
input
->
post
(
'academic'
);
$exam_type
=
$this
->
input
->
post
(
'exam_type'
);
$exam_type
=
$this
->
input
->
post
(
'exam_type'
);
$category
=
$this
->
input
->
post
(
'category'
);
$category
=
$this
->
input
->
post
(
'category'
);
$schedule
=
$this
->
input
->
post
(
'schedule'
);
$question
=
$this
->
input
->
post
(
'question'
);
$question
=
$this
->
input
->
post
(
'question'
);
$option_a
=
$this
->
input
->
post
(
'option_a'
);
$option_a
=
$this
->
input
->
post
(
'option_a'
);
$option_b
=
$this
->
input
->
post
(
'option_b'
);
$option_b
=
$this
->
input
->
post
(
'option_b'
);
...
@@ -2365,6 +2367,7 @@ class ApplicationController extends CI_Controller
...
@@ -2365,6 +2367,7 @@ class ApplicationController extends CI_Controller
'academic'
=>
$academic
,
'academic'
=>
$academic
,
'exam_type'
=>
$exam_type
,
'exam_type'
=>
$exam_type
,
'category'
=>
$category
,
'category'
=>
$category
,
'schedule_id'
=>
$schedule
,
'question'
=>
$question
,
'question'
=>
$question
,
'option_a'
=>
$option_a
,
'option_a'
=>
$option_a
,
'option_b'
=>
$option_b
,
'option_b'
=>
$option_b
,
...
@@ -2390,6 +2393,7 @@ class ApplicationController extends CI_Controller
...
@@ -2390,6 +2393,7 @@ class ApplicationController extends CI_Controller
$view_data
[
'exam_type'
]
=
$this
->
mcommon
->
records_all
(
'exam_type'
,
array
(
'status'
,
1
));
$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
[
'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
[
'category'
]
=
$this
->
mcommon
->
records_all
(
'section_category'
,
array
(
'status'
,
1
));
$view_data
[
'schedule'
]
=
$this
->
mcommon
->
records_all
(
'exam_schedule'
,
array
(
'status'
,
1
));
$data
=
array
(
$data
=
array
(
'title'
=>
'Add Question'
,
'title'
=>
'Add Question'
,
...
@@ -2408,6 +2412,7 @@ class ApplicationController extends CI_Controller
...
@@ -2408,6 +2412,7 @@ class ApplicationController extends CI_Controller
$academic
=
$this
->
input
->
post
(
'academic'
);
$academic
=
$this
->
input
->
post
(
'academic'
);
$exam_type
=
$this
->
input
->
post
(
'exam_type'
);
$exam_type
=
$this
->
input
->
post
(
'exam_type'
);
$category
=
$this
->
input
->
post
(
'category'
);
$category
=
$this
->
input
->
post
(
'category'
);
$schedule
=
$this
->
input
->
post
(
'schedule'
);
$question
=
$this
->
input
->
post
(
'question'
);
$question
=
$this
->
input
->
post
(
'question'
);
$option_a
=
$this
->
input
->
post
(
'option_a'
);
$option_a
=
$this
->
input
->
post
(
'option_a'
);
$option_b
=
$this
->
input
->
post
(
'option_b'
);
$option_b
=
$this
->
input
->
post
(
'option_b'
);
...
@@ -2420,6 +2425,7 @@ class ApplicationController extends CI_Controller
...
@@ -2420,6 +2425,7 @@ class ApplicationController extends CI_Controller
'academic'
=>
$academic
,
'academic'
=>
$academic
,
'exam_type'
=>
$exam_type
,
'exam_type'
=>
$exam_type
,
'category'
=>
$category
,
'category'
=>
$category
,
'schedule_id'
=>
$schedule
,
'question'
=>
$question
,
'question'
=>
$question
,
'option_a'
=>
$option_a
,
'option_a'
=>
$option_a
,
'option_b'
=>
$option_b
,
'option_b'
=>
$option_b
,
...
@@ -2445,6 +2451,7 @@ class ApplicationController extends CI_Controller
...
@@ -2445,6 +2451,7 @@ class ApplicationController extends CI_Controller
$view_data
[
'exam_type'
]
=
$this
->
mcommon
->
records_all
(
'exam_type'
,
array
(
'status'
,
1
));
$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
[
'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
[
'category'
]
=
$this
->
mcommon
->
records_all
(
'section_category'
,
array
(
'status'
,
1
));
$view_data
[
'schedule'
]
=
$this
->
mcommon
->
records_all
(
'exam_schedule'
,
array
(
'status'
,
1
));
$data
=
array
(
$data
=
array
(
'title'
=>
'Edit Question'
,
'title'
=>
'Edit Question'
,
'page'
=>
'Edit Question'
,
'page'
=>
'Edit Question'
,
...
...
admin/application/views/questions/add.php
View file @
6949c311
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<form
action=
"
<?php
echo
base_url
();
?>
ApplicationController/questionAdd"
method=
"post"
enctype=
"multipart/form-data"
id=
"registration_form"
>
<form
action=
"
<?php
echo
base_url
();
?>
ApplicationController/questionAdd"
method=
"post"
enctype=
"multipart/form-data"
id=
"registration_form"
>
<div
class=
"row"
>
<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>
<label
class=
"tx-medium"
>
Academic Year
<span
class=
"text-danger"
>
*
</span>
</label>
<select
name=
"academic"
id=
"academic"
class=
"form-control select2 modal-select"
>
<select
name=
"academic"
id=
"academic"
class=
"form-control select2 modal-select"
>
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
</select>
</select>
</div>
</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>
<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"
>
<select
name=
"exam_type"
id=
"exam_type"
class=
"form-control select2 modal-select"
>
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
</div>
</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>
<label
class=
"tx-medium"
>
Category
<span
class=
"text-danger"
>
*
</span>
</label>
<select
name=
"category"
id=
"category"
class=
"form-control select2 modal-select"
>
<select
name=
"category"
id=
"category"
class=
"form-control select2 modal-select"
>
...
@@ -67,6 +67,20 @@
...
@@ -67,6 +67,20 @@
</div>
</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"
>
<div
class=
"form-group col-md-12 mt-3"
>
<label>
Question
</label>
<label>
Question
</label>
...
...
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