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
c1a1c5e5
Commit
c1a1c5e5
authored
Mar 16, 2024
by
Hussain Mohamed
Browse files
Options
Browse Files
Download
Plain Diff
changes
parents
d919f886
252e5c44
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
82 additions
and
26 deletions
+82
-26
ApplicationController.php
admin/application/controllers/ApplicationController.php
+2
-2
QuestionController.php
admin/application/controllers/QuestionController.php
+0
-0
menu.php
admin/application/views/base/menu.php
+14
-1
examSchedule.php
admin/application/views/masters/examSchedule.php
+59
-16
add.php
admin/application/views/questions/add.php
+2
-2
edit.php
admin/application/views/questions/edit.php
+2
-2
view.php
admin/application/views/questions/view.php
+3
-3
No files found.
admin/application/controllers/ApplicationController.php
View file @
c1a1c5e5
...
...
@@ -2371,9 +2371,9 @@ class ApplicationController extends CI_Controller
if
(
$totalQuestions
==
$count
)
{
$this
->
session
->
set_flashdata
(
'alert_danger'
,
'Question Limit Exceeded !'
);
$this
->
session
->
set_flashdata
(
'alert_danger'
,
'Question Limit Exceeded
successfully
!'
);
redirect
(
'ApplicationController/viewQuestion'
);
//return
exit();
exit
();
}
$insert_array
=
array
(
...
...
admin/application/controllers/QuestionController.php
0 → 100644
View file @
c1a1c5e5
This diff is collapsed.
Click to expand it.
admin/application/views/base/menu.php
View file @
c1a1c5e5
...
...
@@ -59,12 +59,25 @@
</a>
</li>
<li><a
href=
"
<?php
echo
base_url
();
?>
ApplicationController/viewQuestion/"
aria-expanded=
"false"
>
<
!-- <
li><a href="
<?php
echo
base_url
();
?>
ApplicationController/viewQuestion/" aria-expanded="false">
<i class="material-symbols-outlined">note</i>
<span class="nav-text">Create Question</span>
</a>
</li> -->
<li><a
class=
"has-arrow "
href=
"javascript:void(0);"
aria-expanded=
"false"
>
<i
class=
"material-icons"
>
note
</i>
<span
class=
"nav-text"
>
Create Question
</span>
</a>
<ul
aria-expanded=
"false"
>
<li><a
href=
"
<?php
echo
base_url
();
?>
QuestionController/viewQuestion/"
>
Objective Question
</a></li>
<li><a
href=
"
<?php
echo
base_url
();
?>
QuestionController/viewEssayQuestion/"
>
Essay Question
</a></li>
</ul>
</li>
<li><a
class=
"has-arrow "
href=
"javascript:void(0);"
aria-expanded=
"false"
>
<i
class=
"material-symbols-outlined"
>
list
</i>
<span
class=
"nav-text"
>
Application list
</span>
...
...
admin/application/views/masters/examSchedule.php
View file @
c1a1c5e5
...
...
@@ -53,8 +53,10 @@
<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-25p"
>
Objective Date
</th>
<th
class=
"wd-25p"
>
Objective Time
</th>
<th
class=
"wd-25p"
>
Essay Date
</th>
<th
class=
"wd-25p"
>
Essay Time
</th>
<th
class=
"wd-15p"
>
Action
</th>
</tr>
</thead>
...
...
@@ -67,10 +69,12 @@
<td>
<?=
$i
?>
</td>
<td>
<?=
$row
->
academic
?>
</td>
<td>
<?=
$row
->
exam_schedule
?>
</td>
<td>
<?=
date
(
$row
->
date
)
?>
</td>
<td>
<?=
$row
->
time
?>
</td>
<td>
<?=
date
(
$row
->
objective_date
)
?>
</td>
<td>
<?=
$row
->
objective_time
?>
</td>
<td>
<?=
date
(
$row
->
essay_date
)
?>
</td>
<td>
<?=
$row
->
essay_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
;
?>
','
<?php
echo
$row
->
date
;
?>
','
<?php
echo
$row
->
time
;
?>
')"
class=
"btn btn-sm btn-info"
><i
class=
"ti ti-pencil"
></i></a>
<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
;
?>
','
<?php
echo
$row
->
objective_date
;
?>
','
<?php
echo
$row
->
objective_time
;
?>
','
<?php
echo
$row
->
essay_date
;
?>
','
<?php
echo
$row
->
essay_
time
;
?>
')"
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>
...
...
@@ -111,7 +115,6 @@
<?php
}
?>
</select>
</div>
...
...
@@ -121,15 +124,53 @@
<!-- <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
>
<div
class=
"form-group col-md-4 mt-3"
>
<label
class=
"tx-medium"
>
Exam Type
<span
class=
"text-danger"
>
*
</span>
</label>
<select
name=
"exam_type1"
id=
"exam_type1"
class=
"form-control select2 modal-select"
>
<option
value=
""
>
--Select--
</option>
<?php
foreach
(
$exam_type
as
$row
)
{
?>
<option
value=
"
<?php
echo
$row
->
id
?>
"
>
<?php
echo
$row
->
exam_type_name
?>
</option>
<?php
}
?>
</select>
</div>
<div
class=
"form-group col-md-4 mt-3"
>
<label
class=
"tx-medium"
>
Objective Date
<span
class=
"text-danger"
>
*
</span>
</label>
<input
type=
"date"
class=
"form-control"
id=
"objective_date"
name=
"objective_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
>
<div
class=
"form-group col-md-4 mt-3"
>
<label
class=
"tx-medium"
>
Objective Time
<span
class=
"text-danger"
>
*
</span>
</label>
<input
type=
"time"
class=
"form-control"
id=
"objective_time"
name=
"objective_time"
placeholder=
"Time"
required
>
<!-- <p class="text-danger mt-2" id="fees_err"></p> -->
</div>
<div
class=
"form-group col-md-4 mt-3"
>
<label
class=
"tx-medium"
>
Exam Type
<span
class=
"text-danger"
>
*
</span>
</label>
<select
name=
"exam_type2"
id=
"exam_type2"
class=
"form-control select2 modal-select"
>
<option
value=
""
>
--Select--
</option>
<?php
foreach
(
$exam_type
as
$row
)
{
?>
<option
value=
"
<?php
echo
$row
->
id
?>
"
>
<?php
echo
$row
->
exam_type_name
?>
</option>
<?php
}
?>
</select>
</div>
<div
class=
"form-group col-md-4 mt-3"
>
<label
class=
"tx-medium"
>
Essay Date
<span
class=
"text-danger"
>
*
</span>
</label>
<input
type=
"date"
class=
"form-control"
id=
"essay_date"
name=
"essay_date"
placeholder=
"Date"
required
>
<!-- <p class="text-danger mt-2" id="fees_err"></p> -->
</div>
<div
class=
"form-group col-md-4 mt-3"
>
<label
class=
"tx-medium"
>
Essay Time
<span
class=
"text-danger"
>
*
</span>
</label>
<input
type=
"time"
class=
"form-control"
id=
"essay_time"
name=
"essay_time"
placeholder=
"Time"
required
>
<!-- <p class="text-danger mt-2" id="fees_err"></p> -->
</div>
</div>
...
...
@@ -176,15 +217,17 @@
</html>
<script>
function
edit
(
id
,
academic
,
schedule
,
date
,
time
)
{
function
edit
(
id
,
academic
,
schedule
,
objective_date
,
objective_time
,
essay_date
,
essay_
time
)
{
$
(
'#id'
).
val
(
id
)
$
(
'#academic'
).
val
(
academic
)
$
(
'#schedule'
).
val
(
schedule
)
$
(
'#date'
).
val
(
date
)
$
(
'#time'
).
val
(
time
)
$
(
'#objective_date'
).
val
(
objective_date
)
$
(
'#objective_time'
).
val
(
objective_time
)
$
(
'#essay_date'
).
val
(
essay_date
)
$
(
'#essay_time'
).
val
(
essay_time
)
$
(
'#formTitle'
).
text
(
'Edit Exam Schedule'
)
$
(
".select"
).
trigger
(
"change"
);
$
(
"#applicationModal"
).
modal
(
'show'
);
$
(
"#courseId"
).
select2
({
width
:
'100%'
,
...
...
admin/application/views/questions/add.php
View file @
c1a1c5e5
...
...
@@ -26,7 +26,7 @@
<div
class=
"card "
>
<div
class=
"card-body"
>
<h2
class=
"card-title"
>
Add Question
</h2><bR>
<form
action=
"
<?php
echo
base_url
();
?>
Applica
tionController/questionAdd"
method=
"post"
enctype=
"multipart/form-data"
id=
"registration_form"
>
<form
action=
"
<?php
echo
base_url
();
?>
Ques
tionController/questionAdd"
method=
"post"
enctype=
"multipart/form-data"
id=
"registration_form"
>
<div
class=
"row"
>
<div
class=
"form-group col-md-3"
>
...
...
@@ -161,7 +161,7 @@
<button
name=
"submit"
type=
"submit"
class=
"btn btn-primary waves-effect waves-light mr-1"
>
Submit
</button>
<a
href=
"
<?php
echo
base_url
(
'
Applica
tionController/viewQuestion'
);
?>
"
class=
"btn btn-secondary waves-effect"
>
Cancel
</a>
<a
href=
"
<?php
echo
base_url
(
'
Ques
tionController/viewQuestion'
);
?>
"
class=
"btn btn-secondary waves-effect"
>
Cancel
</a>
</div>
</div>
</div>
...
...
admin/application/views/questions/edit.php
View file @
c1a1c5e5
...
...
@@ -26,7 +26,7 @@
<div
class=
"card "
>
<div
class=
"card-body"
>
<h2
class=
"card-title"
>
Edit Question
</h2><bR>
<form
action=
"
<?php
echo
base_url
();
?>
Applica
tionController/questionEdit/
<?=
$default
[
'id'
]
?>
"
method=
"post"
enctype=
"multipart/form-data"
id=
"registration_form"
>
<form
action=
"
<?php
echo
base_url
();
?>
Ques
tionController/questionEdit/
<?=
$default
[
'id'
]
?>
"
method=
"post"
enctype=
"multipart/form-data"
id=
"registration_form"
>
<div
class=
"row"
>
<div
class=
"form-group col-md-3"
>
...
...
@@ -159,7 +159,7 @@
<button
name=
"submit"
type=
"submit"
class=
"btn btn-primary waves-effect waves-light mr-1"
>
Submit
</button>
<a
href=
"
<?php
echo
base_url
(
'
Applica
tionController/viewQuestion'
);
?>
"
class=
"btn btn-secondary waves-effect"
>
Cancel
</a>
<a
href=
"
<?php
echo
base_url
(
'
Ques
tionController/viewQuestion'
);
?>
"
class=
"btn btn-secondary waves-effect"
>
Cancel
</a>
</div>
</div>
</div>
...
...
admin/application/views/questions/view.php
View file @
c1a1c5e5
...
...
@@ -48,7 +48,7 @@
</div>
<div>
<!-- Button trigger modal -->
<a
href=
"
<?php
echo
base_url
();
?>
Applica
tionController/questionAdd"
type=
"button"
class=
"btn btn-primary"
id=
"open-modal"
>
<a
href=
"
<?php
echo
base_url
();
?>
Ques
tionController/questionAdd"
type=
"button"
class=
"btn btn-primary"
id=
"open-modal"
>
+ New Question
</a>
...
...
@@ -90,8 +90,8 @@
<?php
}
?>
</td>
<td>
<?=
$row
->
question
;
?>
</td>
<td>
<a
href=
"
<?=
base_url
(
'
Applica
tionController/questionEdit/'
.
$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
(
'
Applica
tionController/deleteQuestion/'
.
$row
->
id
)
?>
"
data-toggle=
"tooltip"
id=
"delete"
data-placement=
"top"
title=
"Delete"
data-original-title=
"Edit"
class=
"btn btn-sm btn-danger"
><i
class=
"ti ti-trash"
></i></a>
<a
href=
"
<?=
base_url
(
'
Ques
tionController/questionEdit/'
.
$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
(
'
Ques
tionController/deleteQuestion/'
.
$row
->
id
)
?>
"
data-toggle=
"tooltip"
id=
"delete"
data-placement=
"top"
title=
"Delete"
data-original-title=
"Edit"
class=
"btn btn-sm btn-danger"
><i
class=
"ti ti-trash"
></i></a>
</td>
</tr>
...
...
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