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
7139bc13
Commit
7139bc13
authored
Mar 15, 2024
by
Manoj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
6949c311
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
23 deletions
+35
-23
Applicationlist.php
admin/application/views/masters/Applicationlist.php
+0
-0
examSchedule.php
admin/application/views/masters/examSchedule.php
+10
-11
edit.php
admin/application/views/questions/edit.php
+25
-12
No files found.
admin/application/views/masters/Applicationlist.php
View file @
7139bc13
This diff is collapsed.
Click to expand it.
admin/application/views/masters/examSchedule.php
View file @
7139bc13
...
...
@@ -67,10 +67,10 @@
<td>
<?=
$i
?>
</td>
<td>
<?=
$row
->
academic
?>
</td>
<td>
<?=
$row
->
exam_schedule
?>
</td>
<td>
<?=
$row
->
date
?>
</td>
<td>
<?=
date
(
$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"
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"
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>
...
...
@@ -93,7 +93,7 @@
<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>
<h1
class=
"modal-title fs-5"
id=
"
formTitle
"
>
Add Exam Schedule
</h1>
<button
type=
"button"
class=
"btn-close"
data-bs-dismiss=
"modal"
aria-label=
"Close"
></button>
</div>
<div
class=
"modal-body"
>
...
...
@@ -155,7 +155,7 @@
<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
"
>
<input
type=
"hidden"
id=
'table'
name=
'table'
value=
"
exam_schedule
"
>
<div
class=
"form-group"
>
<h4>
Are You Sure you want to change the status?
</h4>
</div>
...
...
@@ -176,15 +176,14 @@
</html>
<script>
function
edit
(
id
,
feesVal
,
courseId
)
{
$
(
'#course_name_err'
).
text
(
' '
)
$
(
'#fees_err'
).
text
(
' '
)
function
edit
(
id
,
academic
,
schedule
,
date
,
time
)
{
$
(
'#id'
).
val
(
id
)
$
(
'#fees'
).
val
(
feesVal
)
$
(
'#courseId'
).
val
(
courseId
)
$
(
'#courseId'
).
val
(
courseId
).
trigger
(
'change'
);
$
(
'#formTitle'
).
text
(
'Edit Course'
)
$
(
'#academic'
).
val
(
academic
)
$
(
'#schedule'
).
val
(
schedule
)
$
(
'#date'
).
val
(
date
)
$
(
'#time'
).
val
(
time
)
$
(
'#formTitle'
).
text
(
'Edit Exam Schedule'
)
$
(
"#applicationModal"
).
modal
(
'show'
);
$
(
"#courseId"
).
select2
({
...
...
admin/application/views/questions/edit.php
View file @
7139bc13
...
...
@@ -8,7 +8,7 @@
<head>
<!-- Title -->
<title>
Question
</title>
<title>
Edit
Question
</title>
<!-- Meta -->
<style>
...
...
@@ -25,46 +25,59 @@
<div
class=
"col-lg-12"
>
<div
class=
"card "
>
<div
class=
"card-body"
>
<h2
class=
"card-title"
>
Add
Question
</h2><bR>
<h2
class=
"card-title"
>
Edit
Question
</h2><bR>
<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"
>
<option
value=
""
>
--Select--
</option>
<?php
foreach
(
$academic_year
as
$row
)
{
?>
<option
value=
"
<?php
echo
$row
->
id
?>
"
>
<?php
echo
$row
->
year
?>
</option>
<option
<?=
$default
[
'academic'
]
==
$row
->
id
?
'selected '
:
''
?>
value=
"
<?php
echo
$row
->
id
?>
"
>
<?php
echo
$row
->
year
?>
</option>
<?php
}
?>
</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"
>
<option
value=
""
>
--Select--
</option>
<?php
foreach
(
$exam_type
as
$row
)
{
?>
<option
value=
"
<?php
echo
$row
->
id
?>
"
>
<?php
echo
$row
->
exam_type_name
?>
</option>
<option
<?=
$default
[
'exam_type'
]
==
$row
->
id
?
'selected '
:
''
?>
value=
"
<?php
echo
$row
->
id
?>
"
>
<?php
echo
$row
->
exam_type_name
?>
</option>
<?php
}
?>
</select>
</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"
>
<option
value=
""
>
--Select--
</option>
<?php
foreach
(
$category
as
$row
)
{
?>
<option
value=
"
<?php
echo
$row
->
id
?>
"
>
<?php
echo
$row
->
category
?>
</option>
<option
<?=
$default
[
'category'
]
==
$row
->
id
?
'selected '
:
''
?>
value=
"
<?php
echo
$row
->
id
?>
"
>
<?php
echo
$row
->
category
?>
</option>
<?php
}
?>
</select>
</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
<?=
$default
[
'schedule_id'
]
==
$row
->
id
?
'selected '
:
''
?>
value=
"
<?php
echo
$row
->
id
?>
"
>
<?php
echo
$row
->
exam_schedule
?>
</option>
<?php
}
?>
</select>
</div>
<div
class=
"form-group col-md-12 mt-3"
>
...
...
@@ -128,10 +141,10 @@
<select
name=
"answer"
id=
"answer"
class=
"form-control select2 modal-select"
>
<option
value=
""
>
--Select Answer--
</option>
<option
value=
"a"
>
A
</option>
<option
value=
"b"
>
B
</option>
<option
value=
"c"
>
C
</option>
<option
value=
"d"
>
D
</option>
<option
<?=
$default
[
'answer'
]
==
'a'
?
'selected '
:
''
?>
value=
"a"
>
A
</option>
<option
<?=
$default
[
'answer'
]
==
'b'
?
'selected '
:
''
?>
value=
"b"
>
B
</option>
<option
<?=
$default
[
'answer'
]
==
'c'
?
'selected '
:
''
?>
value=
"c"
>
C
</option>
<option
<?=
$default
[
'answer'
]
==
'd'
?
'selected '
:
''
?>
value=
"d"
>
D
</option>
</select>
...
...
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