diff --git a/feedback.php b/feedback.php index ca3ec18..930c682 100644 --- a/feedback.php +++ b/feedback.php @@ -7,22 +7,8 @@ Feedback Form - - + + + + +
+ +
+
+ +
+ + + $value) { + array_push($main_responses[$i], round($value)); + $i++; + if ($i == $num_ques) { + break; + # code... + } + } + } + ?> + +
+
+
+
+
+
+
+ + +

Cusrow Wadia Institute of Technology, Pune-411001

+
Student's Feedback Report
+ +
+
+
+
+
+
+
+ +
+ + + + + + + + + +
Acadmic YearNo. of Suggestions
+
+ + + +
+
+
+
+
+
+
+ + + + + $row[question_title] "; +} + ?> + + + "; + $se = json_decode($row["response_json"], true); + foreach ($se as $i){ + echo ""; + } +} +?> + + +
Sr no.
$i
+
+ +
+ + + +
+
+
+ +
+
+ + +
+ +
+
+ + + + + + + + + + + + + + diff --git a/roles/admin/final_suggestions.php~ b/roles/admin/final_suggestions.php~ new file mode 100644 index 0000000..429fec5 --- /dev/null +++ b/roles/admin/final_suggestions.php~ @@ -0,0 +1,283 @@ + + + + + + + + + + + + + + + + + + CWIT-Feedback Portol + + + + + + + + +
+ +
+
+ +
+ + + $value) { + array_push($main_responses[$i], round($value)); + $i++; + if ($i == $num_ques) { + break; + # code... + } + } + } + ?> + +
+
+
+
+
+
+
+ + +

Cusrow Wadia Institute of Technology, Pune-411001

+
Student's Feedback Report
+ +
+
+
+
+
+
+
+ +
+ + + + + + + + + +
Acadmic YearNo. of Suggestions
+
+ + + +
+
+
+
+
+
+
+ + + + + $row[question_title] "; +} + ?> + + + "; + $se = json_decode($row["response_json"], true); + foreach ($se as $i){ + echo ""; + } +} +?> + + +
Sr no.
$i
+
+ +
+ + + +
+
+
+ +
+
+ + +
+ +
+
+ + + + + + + + + + + + + + diff --git a/roles/admin/genform.php b/roles/admin/genform.php index 18bec3b..c863aad 100644 --- a/roles/admin/genform.php +++ b/roles/admin/genform.php @@ -63,7 +63,7 @@
-
+
diff --git a/roles/admin/report.php b/roles/admin/report.php index 599078a..2294294 100644 --- a/roles/admin/report.php +++ b/roles/admin/report.php @@ -84,6 +84,9 @@ -ms-overflow-style: none; scrollbar-width: none; } + @media print { .navbar { + display:none; + }} diff --git a/roles/admin/sidebar.php b/roles/admin/sidebar.php index 67b4610..230a783 100644 --- a/roles/admin/sidebar.php +++ b/roles/admin/sidebar.php @@ -232,12 +232,19 @@ ?>
  • - "> + ">
  • + + + diff --git a/roles/admin/sidebar.php~ b/roles/admin/sidebar.php~ new file mode 100644 index 0000000..bca3d79 --- /dev/null +++ b/roles/admin/sidebar.php~ @@ -0,0 +1,296 @@ + + + + diff --git a/roles/admin/suggestions.php b/roles/admin/suggestions.php new file mode 100644 index 0000000..9fdfc38 --- /dev/null +++ b/roles/admin/suggestions.php @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + Suggestions + + + + + + + +
    + +
    + +
    +
    +
    +
    +
    + +
    +

    Suggestions

    +

    By Academic Year and Department

    +
    +
    +
    +
    + + + + + + + + + "; + echo ""; + echo ""; + echo ""; + // echo ""; + echo ""; + echo ""; + } + ?> + +
    Course NameAcademic YearDepartmentAction
    {$row['course_name']} {$row['academic_year']} {$row['dept_code']}
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    + + + + + + diff --git a/roles/admin/suggestions.php~ b/roles/admin/suggestions.php~ new file mode 100644 index 0000000..f6e830a --- /dev/null +++ b/roles/admin/suggestions.php~ @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + Suggestions + + + + + + + +
    + +
    + +
    +
    +
    +
    +
    + +
    +

    Suggestions

    +

    By Academic Year and Department

    +
    +
    +
    +
    + + + + + + + + + "; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + ?> + +
    Course NameAcademic YearDepartmentAction
    {$row['course_name']} {$row['academic_year']} {$row['dept_code']}
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    + + + + + + diff --git a/roles/faculty/courses_list.php b/roles/faculty/courses_list.php index eea86a8..cbd01ee 100644 --- a/roles/faculty/courses_list.php +++ b/roles/faculty/courses_list.php @@ -4,7 +4,7 @@ $sql = "select * from courses where dept_code = $dept_code"; $result = mysqli_query($conn, $sql); while ($row = mysqli_fetch_assoc($result)) { - echo ""; + echo ""; } ?> " . $row["course_name"] . "(" . $row["course_code"] . ")" . ""; + echo ""; } ?> diff --git a/roles/faculty/create_course.php b/roles/faculty/create_course.php index 83b61e2..2ec35dd 100644 --- a/roles/faculty/create_course.php +++ b/roles/faculty/create_course.php @@ -62,7 +62,9 @@
    -
    +
    +
    +
    + + +
    +
    +
    +
    +
    + +
      +
    • + Don't use symbols like '!@#$%^&*()_+-=' +
    • +
    • If multiple entries of same course are to be made, enter them as :
        +
      • R18CP4403A
      • +
      • R18CP4403B
      • +
      • R18CP4403C
      • +
      +
    +
    + +
    +
    +
    +
    @@ -115,8 +143,20 @@ $course_code = $_POST["course_code"]; $dept_code = $_POST["dept_code"]; $mode = $_POST["mode"]; + $final_name = $course_name . " - " . $mode; $final_code = $course_code . " - " . $mode; + $sql1 = "Select * from courses where course_code = '$final_code' && dept_code = '{$_POST['dept_code']}'"; + $result1 = mysqli_query($conn, $sql1); + if (mysqli_num_rows($result1) > 0) { + ?> + + alert('$final_name')"; $sql = "INSERT INTO `courses` (`course_name`, `course_code`, `dept_code`) VALUES ('$final_name', '$final_code', '$dept_code')"; $result = mysqli_query($conn, $sql); @@ -130,7 +170,8 @@ Error! Course Not Added.
    '; - } + } + } /* echo ""; echo ""; diff --git a/roles/faculty/create_course.php~ b/roles/faculty/create_course.php~ new file mode 100644 index 0000000..2ec35dd --- /dev/null +++ b/roles/faculty/create_course.php~ @@ -0,0 +1,231 @@ + + + + + + + + + + + + + + + + + + + + Add Course + + + + + + + +
    + +
    + +
    +
    +
    +
    +
    + +
    +

    New Course

    +

    + Create a New Course +

    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    + + +
    +
    + +
    + + +
    + + +
    +
    +
    +
    +
    + +
      +
    • + Don't use symbols like '!@#$%^&*()_+-=' +
    • +
    • If multiple entries of same course are to be made, enter them as :
        +
      • R18CP4403A
      • +
      • R18CP4403B
      • +
      • R18CP4403C
      • +
      +
    +
    + +
    +
    +
    +
    +
    +
    +
    + 0) { + ?> + + alert('$final_name')"; + $sql = "INSERT INTO `courses` (`course_name`, `course_code`, `dept_code`) VALUES ('$final_name', '$final_code', '$dept_code')"; + $result = mysqli_query($conn, $sql); + if ($result) { + echo ''; + } else { + echo ''; + } + } + /* + echo ""; + echo ""; + $course_name = $_POST['course_name'] + '-' + $_POST['mode']; + echo ""; + + $sql = "insert into courses (course_name, course_code, dept_code) values ('$course_name','{$_POST['course_code']}','{$_POST['dept_code']}')"; + $result = mysqli_query($conn, $sql); + if (!$result) { */ + } + ?> + +
    +
    +
    + + + + + + + + "; + echo ""; + echo ""; + echo ""; + echo ""; + } + ?> + +
    Course NameCourse CodeDepartment
    {$row['course_name']} {$row['course_code']} {$row['dept_code']}
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    + + + + + + diff --git a/roles/faculty/create_group.php b/roles/faculty/create_group.php index b0f3c6e..904a981 100644 --- a/roles/faculty/create_group.php +++ b/roles/faculty/create_group.php @@ -213,13 +213,29 @@ -->
    -
    + > + +
    +
    + +
    - "> + ">
    @@ -234,10 +250,11 @@

    - +
    +
    -
    + @@ -318,11 +335,51 @@ foreach (explode(";", $_POST["addrollunit"]) as $key => $value) { $active_roll[] = $value; } - $active_roll = array_diff($active_roll, [-4000, "", " "]); + $active_roll = array_diff($active_roll, [-4000,4000, "", " "]); $allrolls = count($active_roll); echo "

    Total number of students: " . $allrolls . "

    "; $count = 1; + if (isset($_POST["all_dept"])){ + $seql = "select * from login where uname LIKE '%$_POST[deptcode]%'"; + $res = mysqli_query($conn, $seql); + $allrolls = mysqli_num_rows($res); + $year = 0; + while ($row = mysqli_fetch_assoc($res)){ + $active_roll[] = $row["uname"]; + } + + while ($count <= $allrolls) { + echo ""; + for ($i = 1; $i < 14; $i++) { + + $row["enrollid"] = $active_roll[$count - 1]; + + + $count += 1; + if ($row['enrollid'] == 0) { + continue; + } + if ($count == $allrolls + 3) { + break; + } + error_reporting(0); + //array_push($rolls, $row['enrollid']); + echo " + + + "; + + echo "
    + + + +
    "; + } + echo "
    "; + } + + } while ($count <= $allrolls) { echo ""; for ($i = 1; $i < 14; $i++) { @@ -409,11 +466,14 @@ $active_rolls = json_encode($active_rolls); $sqltest = "SELECT * FROM `groups` WHERE `deptcode` = '$deptcode' AND `year` = '$year' AND `subject` = '$subject'"; $resulttest = mysqli_query($conn, $sqltest); + if (mysqli_num_rows($resulttest) > 0) { echo ""; echo ""; } else { + $sql = "INSERT INTO groups(year, semester, subject , deptcode, activeRoll, teacher_id, student_count) VALUES ('$year','{$_POST["semester"]}','$subject', '$deptcode', '$active_rolls', '{$_SESSION["id"]}', '$student_count')"; + echo $sql; $result = mysqli_query($conn, $sql); if ($result) { echo ""; @@ -437,6 +497,21 @@ console.log(data); }); }); + + + $('#all_dept').change(function(){ + var chkb = document.getElementById('all_dept'); + if (chkb.checked){ + document.getElementById("alter_dept").hidden = true; + } + else{ + document.getElementById("alter_dept").hidden = false; + + + + } + + }) diff --git a/roles/student/index.php b/roles/student/index.php index bd6250d..d0cd04d 100644 --- a/roles/student/index.php +++ b/roles/student/index.php @@ -36,8 +36,6 @@ - - @@ -226,4 +224,4 @@ - \ No newline at end of file + diff --git a/roles/student/submit_feedback.php b/roles/student/submit_feedback.php index 8dbf5ab..0f3a65a 100644 --- a/roles/student/submit_feedback.php +++ b/roles/student/submit_feedback.php @@ -3,14 +3,21 @@ include 'confirm.php'; include "../../imports/config.php"; // print all post data in table +var_dump($_POST); foreach ($_POST as $key => $value) { if ($key == "form_id") { $form_id = $value; continue; - } else { + + } elseif (strpos($key, "long") !== false) { + continue; + } + else { $_POST[$key] = round($value) ; } } + +var_dump($_POST); $form_id = $_POST["form_id"]; array_pop($_POST); $res = json_encode($_POST, true); diff --git a/suggestion.php b/suggestion.php new file mode 100644 index 0000000..f9ac540 --- /dev/null +++ b/suggestion.php @@ -0,0 +1,281 @@ + + + + + + + Suggestion Form + + + + + + + + + + +
    +
    + +
    + +
    + + +
    +
    +
    +

    + +

    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + Note: +
    +      - Please fill the survey questions and ratings in the order of your preference. +
    +      - Extreme left indicates postive and extreme right indicates negative. +
    +      - If any difficulty is encountered, please contact your respective supervisor. + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    + + +
    + +
    +
    + +
    +
    +
    +
    + + +
    +
    +
    + +
    + +
    +
    +
    +
    + +
      +
    • Poor
    • +
    • Needs Improvement
    • +
    • Satisfactory
    • +
    • Good
    • +
    • Excellent
    • +
    + +
    + + +

    + +

    + + +
    + +
    +
    + + +
    + +
    +
    + +
    +
    + + + "> + +
    + + +
    + + + + + + diff --git a/vendor/sabberworm/php-css-parser/tests/quickdump.php b/vendor/sabberworm/php-css-parser/tests/quickdump.php old mode 100755 new mode 100644