Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
20_21-J09
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
20_21-J09
20_21-J09
Commits
b3ad4f24
Commit
b3ad4f24
authored
Jul 09, 2021
by
Janith Madushanka_IT17142656
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'edited_question.php'
parent
b01f07ae
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
275 deletions
+5
-275
Admin/pages/update_question.php
Admin/pages/update_question.php
+5
-8
update_question.php
update_question.php
+0
-267
No files found.
Admin/pages/update_question.php
View file @
b3ad4f24
...
...
@@ -34,7 +34,7 @@
{
header
(
'location:'
.
SITEURL
.
'admin/index.php?page=questions'
);
}
?>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
r>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
?>
<div
class=
"main"
>
<div
class=
"content"
>
<div
class=
"report"
>
...
...
@@ -53,7 +53,7 @@
unset
(
$_SESSION
[
'update'
]);
}
?>
<span
class=
"name"
>
Question
</span>
<br
/>
<span
class=
"name"
>
Question
</span>
<textarea
name=
"question"
required=
"true"
>
<?php
echo
$question
;
?>
</textarea>
<br
/>
<script>
CKEDITOR
.
replace
(
'
question
'
);
...
...
@@ -99,11 +99,8 @@
</select>
<br
/>
<span
class=
"name"
>
Reason
</span>
<br
/>
<span
class=
"name"
>
Reason
</span>
<textarea
name=
"reason"
>
<?php
echo
$reason
;
?>
</textarea>
<script>
CKEDITOR
.
replace
(
'
reason
'
);
</script>
<br
/>
<span
class=
"name"
>
Marks
</span>
...
...
@@ -121,7 +118,7 @@
<select
name=
"faculty"
>
<?php
//Get Faculties from database
$tbl_name
=
"tbl_
class
"
;
$tbl_name
=
"tbl_
faculty
"
;
$query
=
$obj
->
select_data
(
$tbl_name
);
$res
=
$obj
->
execute_query
(
$conn
,
$query
);
$count_rows
=
$obj
->
num_rows
(
$res
);
...
...
@@ -207,7 +204,7 @@
}
//Uploading if the file is valid
//first changing image name
$new_name
=
'
Exam_Question_Vijay_Thapa
_'
.
$obj
->
uniqid
();
$new_name
=
'
Beyond_Boundaries_Question
_'
.
$obj
->
uniqid
();
$image_name
=
$new_name
.
'.'
.
$ext
;
//Adding Watermark to the image fie too
$source
=
$_FILES
[
'image'
][
'tmp_name'
];
...
...
update_question.php
deleted
100644 → 0
View file @
b01f07ae
This diff is collapsed.
Click to expand it.
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