'edited_question.php'

parent b01f07ae
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
{ {
header('location:'.SITEURL.'admin/index.php?page=questions'); 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="main">
<div class="content"> <div class="content">
<div class="report"> <div class="report">
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
unset($_SESSION['update']); unset($_SESSION['update']);
} }
?> ?>
<span class="name">Question</span><br /> <span class="name">Question</span>
<textarea name="question" required="true"><?php echo $question; ?></textarea> <br /> <textarea name="question" required="true"><?php echo $question; ?></textarea> <br />
<script> <script>
CKEDITOR.replace( 'question' ); CKEDITOR.replace( 'question' );
...@@ -99,11 +99,8 @@ ...@@ -99,11 +99,8 @@
</select> </select>
<br /> <br />
<span class="name">Reason</span><br /> <span class="name">Reason</span>
<textarea name="reason" ><?php echo $reason; ?></textarea> <textarea name="reason" ><?php echo $reason; ?></textarea>
<script>
CKEDITOR.replace( 'reason' );
</script>
<br /> <br />
<span class="name">Marks</span> <span class="name">Marks</span>
...@@ -121,7 +118,7 @@ ...@@ -121,7 +118,7 @@
<select name="faculty"> <select name="faculty">
<?php <?php
//Get Faculties from database //Get Faculties from database
$tbl_name="tbl_class"; $tbl_name="tbl_faculty";
$query=$obj->select_data($tbl_name); $query=$obj->select_data($tbl_name);
$res=$obj->execute_query($conn,$query); $res=$obj->execute_query($conn,$query);
$count_rows=$obj->num_rows($res); $count_rows=$obj->num_rows($res);
...@@ -207,7 +204,7 @@ ...@@ -207,7 +204,7 @@
} }
//Uploading if the file is valid //Uploading if the file is valid
//first changing image name //first changing image name
$new_name='Exam_Question_Vijay_Thapa_'.$obj->uniqid(); $new_name='Beyond_Boundaries_Question_'.$obj->uniqid();
$image_name=$new_name.'.'.$ext; $image_name=$new_name.'.'.$ext;
//Adding Watermark to the image fie too //Adding Watermark to the image fie too
$source=$_FILES['image']['tmp_name']; $source=$_FILES['image']['tmp_name'];
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment