From f16a813b43d7915920d48e771b4553f6a6b7c278 Mon Sep 17 00:00:00 2001 From: justafolk Date: Fri, 14 Oct 2022 00:03:40 +0530 Subject: [PATCH] linux install kar re --- LICENSE~ | 201 ------ add_profile.php~ | 120 ---- client_get.php~ | 135 ---- create_form.php~ | 75 --- faculty_index.php~ | 116 ---- feedback.php~ | 312 --------- index.php~ | 111 ---- lel.php~ | 3 - logincheck.php~ | 61 -- new.php~ | 33 - register.php~ | 139 ---- roles/admin/create_course.php~ | 169 ----- roles/admin/create_feedback.php~ | 95 --- roles/admin/edit_form.php~ | 522 --------------- roles/admin/final_print_report.php~ | 431 ------------- roles/admin/final_report.php~ | 454 -------------- roles/admin/genform.php~ | 134 ---- roles/admin/index.php~ | 445 ------------- roles/admin/past_form.php~ | 941 ---------------------------- roles/admin/print_report.php~ | 328 ---------- roles/admin/report.php~ | 513 --------------- roles/admin/requested_feedback.php~ | 841 ------------------------- roles/admin/sidebar.php~ | 289 --------- roles/admin/view_form.php~ | 930 --------------------------- roles/faculty/courses_list.php~ | 19 - roles/faculty/create_course.php~ | 190 ------ roles/faculty/create_form.php~ | 575 ----------------- roles/faculty/create_group.php~ | 574 ----------------- roles/faculty/index.php~ | 707 --------------------- roles/faculty/requested_forms.php~ | 196 ------ roles/faculty/sidebar.php~ | 83 --- roles/faculty/viewedit.php~ | 418 ------------ roles/student/sidebar.php~ | 49 -- roles/student/submit_feedback.php~ | 29 - testforms.php~ | 15 - try.php~ | 30 - 36 files changed, 10283 deletions(-) delete mode 100644 LICENSE~ delete mode 100644 add_profile.php~ delete mode 100644 client_get.php~ delete mode 100644 create_form.php~ delete mode 100644 faculty_index.php~ delete mode 100644 feedback.php~ delete mode 100644 index.php~ delete mode 100644 lel.php~ delete mode 100644 logincheck.php~ delete mode 100644 new.php~ delete mode 100644 register.php~ delete mode 100644 roles/admin/create_course.php~ delete mode 100644 roles/admin/create_feedback.php~ delete mode 100644 roles/admin/edit_form.php~ delete mode 100644 roles/admin/final_print_report.php~ delete mode 100644 roles/admin/final_report.php~ delete mode 100644 roles/admin/genform.php~ delete mode 100644 roles/admin/index.php~ delete mode 100644 roles/admin/past_form.php~ delete mode 100644 roles/admin/print_report.php~ delete mode 100644 roles/admin/report.php~ delete mode 100644 roles/admin/requested_feedback.php~ delete mode 100644 roles/admin/sidebar.php~ delete mode 100644 roles/admin/view_form.php~ delete mode 100644 roles/faculty/courses_list.php~ delete mode 100644 roles/faculty/create_course.php~ delete mode 100644 roles/faculty/create_form.php~ delete mode 100644 roles/faculty/create_group.php~ delete mode 100644 roles/faculty/index.php~ delete mode 100644 roles/faculty/requested_forms.php~ delete mode 100644 roles/faculty/sidebar.php~ delete mode 100644 roles/faculty/viewedit.php~ delete mode 100644 roles/student/sidebar.php~ delete mode 100644 roles/student/submit_feedback.php~ delete mode 100644 testforms.php~ delete mode 100644 try.php~ diff --git a/LICENSE~ b/LICENSE~ deleted file mode 100644 index 261eeb9..0000000 --- a/LICENSE~ +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/add_profile.php~ b/add_profile.php~ deleted file mode 100644 index 040b818..0000000 --- a/add_profile.php~ +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - Add Profile - - - - - - -
- -
-
-
-
-
-
- -
-

Profile

-

- Create a New Profile -

-
- -
-
-
-
-
- - -
- -
- - -
-
- - -
-
-
-
- 0) { - echo ""; - } - else{ - $password1 = md5($password); - $sql = "INSERT INTO login(uname, passwd, role, name, flog) VALUES('$username', '$password1','Faculty', '$name', 1);"; - $smt = mysqli_stmt_init($conn); - if(!mysqli_stmt_prepare($smt, $sql)){ - $error .= "Error in STMT"; - exit(); - } - mysqli_stmt_execute($smt); - mysqli_stmt_close($smt); - echo ""; - } - } - createuser($conn, $name, $username, $password); - } - ?> -
-
-
- -
-
-
-
-
- -
- - - - diff --git a/client_get.php~ b/client_get.php~ deleted file mode 100644 index a5e4063..0000000 --- a/client_get.php~ +++ /dev/null @@ -1,135 +0,0 @@ - -
- -
-
-
- -
- -
    -
  • Very Bad
  • -
  • Bad
  • -
  • Neutral
  • -
  • Good
  • -
  • Excellent
  • -
- -
- -
-
- - -
- -
-
- - -
- -
-
-
- - -
- -
-
- - - - - -
- -
-
-
- - -
- -
-
- - - -
- -
-
-
-
-
- - -
- -
- - -
-
- - -
-
- - - - -
-
-
- - -
- -
-
- - - - -
-
-
- - - -
- - -
- - - - - - -
- -
- diff --git a/create_form.php~ b/create_form.php~ deleted file mode 100644 index c745fc8..0000000 --- a/create_form.php~ +++ /dev/null @@ -1,75 +0,0 @@ - $value) { - if (strpos($key, "main-question") !== false) { - $mainquestions[$key] = array($value) ; - } - elseif (strpos($key, "option-") !== false and strpos($key, "-text") !== false) { - array_push($mainquestions["main-question_main-question".explode("-", $key)[1]], $value); - } - elseif (strpos($key, "slider-title") !== false) { - $slidertitle = $value; - $num = explode("title", explode("-", $key)[2]); - $num = end($num); - array_push($mainquestions["main-question_main-question".$num], $value); - # code... - array_push($sliders_idk, $num); - } - -} -// create table from mainquestions array -$table = ""; -$table .= ""; -$table .= ""; -foreach ($mainquestions as $key => $value) { - $table .= ""; - $table .= ""; - $table .= ""; - $table .= ""; - $table .= ""; -} -$table .= ""; -$table .= "
QuestionOptionsMultiple Selections
".$value[0].""; - for ($i=1; $i < count($value); $i++) { - $table .= $value[$i]."
"; - } - $table .= "
"; - if (strpos($key, "multi-") !== false) { - $table .= "Yes"; - } - else { - $table .= "No"; - } - $table .= "
"; - -echo $table; - -include "./imports/config.php"; - -$sql = "insert into forms (author, ini_date, instructions, status) values('$_SESSION[username]', now(), '$instructions', 'online')"; -$result = mysqli_query($conn, $sql); -if (!$result) { - echo "Error: " . $sql . "
" . mysqli_error($conn); -} -$formid = mysqli_insert_id($conn); -echo $formid; -foreach ($mainquestions as $key => $value) { - if (in_array(explode("main-question",$key)[2], $sliders_idk)){ - $sql = "insert into form_ques (form_id, question_title, sub_content, type) values('$formid', '$value[0]', '".json_encode(array_slice($value, 1))."', 'slider')"; - } - elseif (count($value) > 1){ - $sql = "insert into form_ques (form_id, question_title, sub_content, type) values('$formid', '$value[0]', '".json_encode(array_slice($value, 1))."', 'mcq')"; - - } - else{ - - $sql = "insert into form_ques (form_id, question_title, sub_content) values('$formid', '$value[0]', '".json_encode(array_slice($value, 1))."')"; - } - $result = mysqli_query($conn, $sql); - if (!$result) { - echo "Error: " . $sql . "
" . mysqli_error($conn); - } -} diff --git a/faculty_index.php~ b/faculty_index.php~ deleted file mode 100644 index 8685dc6..0000000 --- a/faculty_index.php~ +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - Feedback Login Form - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
- - - -
- -
- -
-
Login
-

Enter your credentials to login

-
- -
- -
- -
- @ - -
Please enter your username.
-
-
- -
- - -
Please enter your password!
-
-
- -
-
-

Don't have account? Register here

-
-
- -
-
- -
-
-
- -
- -
-
- - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/feedback.php~ b/feedback.php~ deleted file mode 100644 index ca3ec18..0000000 --- a/feedback.php~ +++ /dev/null @@ -1,312 +0,0 @@ - - - - - - - Feedback Form - - - - - - - alert('This form is not active. Please contact the admin.')"; - echo ""; - }else{ - //echo ""; - $sqlconfirm = "SELECT `student_id` from `form_responses` where `student_id` = '$_SESSION[uname]' and `form_id` = '$form_id'"; - $resultconfirm = mysqli_query($conn, $sqlconfirm); - if (mysqli_num_rows($resultconfirm) > 0) { - echo ""; - echo ""; - } - } - - if ($default_flag == 1){ - $sql = "select * from form_ques where form_id = '0'"; - }else{ - - $sql = "SELECT * FROM form_ques WHERE form_id = '$form_id'"; - } - $result = mysqli_query($conn, $sql); - ?> - - - -
-
- -
- -
- - -
-
-
-

- -

-
-
-
-
-
-
- - -
-
-
-
- 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/index.php~ b/index.php~ deleted file mode 100644 index de0439c..0000000 --- a/index.php~ +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - - Feedback Login Form - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
- - - -
- -
- -
-
Login
-

Enter your credentials to login

-
- -
- -
- -
- -
Please enter your username.
-
-
- -
- - -
Please enter your password!
-
-
- -
-
-

Can't login? Please contact respective Administrator

-
-
- -
-
- -
-
-
- -
- -
-
- - - - - - - - - - - - - - - - - - - diff --git a/lel.php~ b/lel.php~ deleted file mode 100644 index 3e8ee94..0000000 --- a/lel.php~ +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/logincheck.php~ b/logincheck.php~ deleted file mode 100644 index d8c0d3b..0000000 --- a/logincheck.php~ +++ /dev/null @@ -1,61 +0,0 @@ -alert('Invalid username or password');"; - echo ""; - } -} - - -?> diff --git a/new.php~ b/new.php~ deleted file mode 100644 index f19295b..0000000 --- a/new.php~ +++ /dev/null @@ -1,33 +0,0 @@ - - - - - New Page - - - -
-
-
-
-
-

-
-
-
-
-
-
-

-
-
-
-
-
- - diff --git a/register.php~ b/register.php~ deleted file mode 100644 index e2f306e..0000000 --- a/register.php~ +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - - - Pages / Register - NiceAdmin Bootstrap Template - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
- - - -
- -
- -
-
Create an Account
-

Enter your personal details to create account

-
- -
-
- - -
Please, enter your name!
-
- -
- - -
Please enter a valid Email adddress!
-
- -
- -
- @ - -
Please choose a username.
-
-
- -
- - -
Please enter your password!
-
- -
-
- - -
You must agree before submitting.
-
-
-
- -
-
-

Already have an account? Log in

-
-
- -
-
- -
- - - - - Designed by BootstrapMade -
- -
-
-
- -
- -
-
- - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/roles/admin/create_course.php~ b/roles/admin/create_course.php~ deleted file mode 100644 index cf8ffb4..0000000 --- a/roles/admin/create_course.php~ +++ /dev/null @@ -1,169 +0,0 @@ - - - - - - - - - - - - - - - - - - - - Add Course - - - - - - - -
- -
- -
-
-
-
-
- -
-

New Course

-

- Create a New Course -

-
-
-
-
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
- - - -
- -
-
-
-
- - - - - -
-
-
- - - - - - - - "; - echo ""; - echo ""; - echo ""; - echo ""; - } - ?> - -
Course NameCourse CodeDepartment
{$row['course_name']} {$row['course_code']} {$row['dept_code']}
-
-
-
-
-
-
-
-
- -
- - - - - - diff --git a/roles/admin/create_feedback.php~ b/roles/admin/create_feedback.php~ deleted file mode 100644 index cfab9d7..0000000 --- a/roles/admin/create_feedback.php~ +++ /dev/null @@ -1,95 +0,0 @@ - $value) { - if (strpos($key, "main-question") !== false) { - - $mainquestions[$key] = array($value) ; - - } - elseif (strpos($key, "option-") !== false and strpos($key, "-text") !== false) { - array_push($mainquestions["main-question_main-question".explode("-", $key)[1]], $value); - } - elseif (strpos($key, "slidercount") !== false) { - $slidertitle = $value; - $num = explode("count", $key); - $num = end($num); - echo $num; - array_push($mainquestions["main-question_main-question".$num], $value); - array_push($sliders_idk, $num); - } - -} -// create table from mainquestions array -$table = ""; -$table .= ""; -$table .= ""; -foreach ($mainquestions as $key => $value) { - $table .= ""; - $table .= ""; - $table .= ""; - - $table .= ""; - $table .= ""; - $table .= ""; -} -$table .= ""; -$table .= "
QuestionOptionsMultiple Selections
".$value[0]."".$key.""; - for ($i=1; $i < count($value); $i++) { - $table .= $value[$i]."
"; - } - $table .= "
"; - if (strpos($key, "multi-") !== false) { - $table .= "Yes"; - } - else { - $table .= "No"; - } - $table .= "
"; - -echo $table; -$formid = $_POST['form_id']; - -$form_sql = "update forms set default_ques='$formid' where form_id = '$formid' "; -$result = mysqli_query($conn, $form_sql); -if (!$result){ - echo "SOME ERROR"; -} - -var_dump($sliders_idk); -foreach ($mainquestions as $key => $value) { - if (in_array(explode("main-question",$key)[2], $sliders_idk)){ - $sql = "insert into form_ques (form_id, question_title, sub_content, type) values('$formid', \"$value[0]\", '".json_encode(array_slice($value, 1))."', 'slider')"; - echo "SLIDER KADE ALO"; - } - elseif (count($value) > 1){ - $sql = "insert into form_ques (form_id, question_title, sub_content, type) values('$formid', '$value[0]', '".json_encode(array_slice($value, 1))."', 'mcq')"; - - } - elseif (in_array(explode(";",$key)[2], ["short"])){ - - $sql = "insert into form_ques (form_id, question_title, sub_content, type) values('$formid', '$value[0]', '".json_encode(array_slice($value, 1))."', 'short')"; - } - elseif (in_array(explode(";",$key)[2], ["long"])){ - - $sql = "insert into form_ques (form_id, question_title, sub_content, type) values('$formid', '$value[0]', '".json_encode(array_slice($value, 1))."', 'long')"; - } - echo $sql; - $result = mysqli_query($conn, $sql); - if (!$result) { - - echo "Error: " . $sql . "
" . mysqli_error($conn); - exit(); - } -} - -header("Location: feedback/roles/admin/index.php?flag=done"); diff --git a/roles/admin/edit_form.php~ b/roles/admin/edit_form.php~ deleted file mode 100644 index bd42be6..0000000 --- a/roles/admin/edit_form.php~ +++ /dev/null @@ -1,522 +0,0 @@ - - - - - - - - - - - - - - - - - - View / Edit Form - - - - - - - - - - - - - -
- - -
- -
-
-
-
- -
-
-
-
- -
- -
- - -
-
-
- -

- - " style="background-color: transparent;width:100%; outline:none; border:0px" placeholder="Enter Form Name"> - -

-
- "> - "> - -
- - -
- - -
- -
-
-
-
- -
-
-
- - -
- -
- -
-
-
- . " name="main-question main-question" class="main-question" id="main-question" style="width:100%"> -
- -
- -
    -
  • Very Bad
  • -
  • Bad
  • -
  • Neutral
  • -
  • Good
  • -
  • Excellent
  • -
- -
- -
-
- -
-
-
- -
-
-
- -
-
- -
- -
-
-
" name="main-question main-question;short" class="main-question" id="main-question">
- - -
- -
-
-
-
- -
-
-
- -
- -
-
-
. " name="main-question main-question;long" class="main-question" id="main-question">
- - -
-
-
- -
-
-
- -
-
- - -
- -
-
-
. " name="main-question main-question" class="main-question" id="main-question">
- -
- -
    -
  • Very Bad
  • -
  • Bad
  • -
  • Neutral
  • -
  • Good
  • -
  • Excellent
  • -
- -
- -
-
-
-
-
- -
-
- -
- -
-
- - -
- -
- - -
-
- - - - - -
- - - - -
- -
- - - -
- - -
-
- -
-
-
-
-
- -
-
- - - - - - - - - diff --git a/roles/admin/final_print_report.php~ b/roles/admin/final_print_report.php~ deleted file mode 100644 index d0df946..0000000 --- a/roles/admin/final_print_report.php~ +++ /dev/null @@ -1,431 +0,0 @@ - - - - - - - - - - - - - - - - - - CWIT-Feedback Portol - - - - - - - - -
- - -
- -
- - - - -
- -
-
-
-
-
-
- - -

Cusrow Wadia Institute of Technology, Pune-411001

-
Student's Feedback Report
-
-
-
-
-
- -
-
-
-
-
- - $value) { - - $forms_sql = "select * from forms where form_id='$value'"; - $forms_result = mysqli_query($conn, $forms_sql); - $forms_row = mysqli_fetch_assoc($forms_result); - $default_flag = $forms_row['default_ques']; - $i = 1; - $count_ques = 0; - if ($default_flag == 1) { - $sql = "SELECT * FROM form_ques where form_id = '0'"; - $count_ques = 7; - } else { - - $sql = "SELECT * FROM form_ques where form_id = '$value'"; - } - $result = mysqli_query($conn, $sql); - if ($count_ques == 0) { - - $count_ques = mysqli_num_rows($result); - } - $sql = "select * from form_responses where form_id='$value'"; - $resu = mysqli_query($conn, $sql); - - $main_responses = array(); - $num_ques = $count_ques; - if ($count_ques > $max_ques) { - $max_ques = $count_ques; - } - $main_responses = array(); - for ($i = 0; $i < $num_ques; $i++) { - array_push($main_responses, array()); - } - while ($row = mysqli_fetch_assoc($resu)) { - $res = json_decode($row['response_json'], true); - $i = 0; - foreach ($res as $key => $value) { - if ($value == "null") { - $value = 0; - } - array_push($main_responses[$i], round($value)); - $i++; - if ($i == $num_ques) { - break; - # code... - } - } - } - - for ($i = 0; $i < $count_ques; $i++) { - # code... - array_push($averages[$count], round(array_sum($main_responses[$i]) / count($main_responses[$i]), 2)); - } - $count++; - } - ?> - - - - - - - - - - - - - - - - - - $value) { - $grp_sql = "select * from courses where course_code='$courses[$key]'"; - $grp_res = mysqli_query($conn, $grp_sql); - $grp_row = mysqli_fetch_assoc($grp_res); - echo ""; - echo ""; - $avgd = 0; - for ($i = 0; $i < count($averages[$key]); $i++) { - if ($averages[$key][$i] >= 4.5 or $averages[$key][$i] <= 3) { - echo ""; - $avgd += $averages[$key][$i]; - continue; - } - echo ""; - $avgd += $averages[$key][$i]; - } - for ($i = 0; $i < $max_ques - count($averages[$key]); $i++) { - echo ""; - } - $avg_er = round($avgd / count($averages[$key]), 2); - if ($avg_er >= 4.5 or $avg_er <= 3) { - echo ""; - continue; - } - echo ""; - } - ?> - - -
CoursesScore IndexAvg Score Index
" . $grp_row['course_name'] . " (".explode(' - ', $grp_row['course_code'])[0].")" . $averages[$key][$i] . "" . $averages[$key][$i] . "" . "" . round($avgd / count($averages[$key]), 2) . "" . round($avgd / count($averages[$key]), 2) . "
- -
-
-
- - - - - - - - - - - - - - -
FIVE POINT GRADING SCALE
Excellent : 5Good : 4Satisfactory : 3Needs Improvement : 2Poor : 1
-
-
- -

- Note: 1. The score index less than 3 and greater than 4.5 is Highlighted. -
          2. The response for more than 40% score is highlighted. -

-
-
-
-
- - - - - -
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/roles/admin/final_report.php~ b/roles/admin/final_report.php~ deleted file mode 100644 index 43233a7..0000000 --- a/roles/admin/final_report.php~ +++ /dev/null @@ -1,454 +0,0 @@ - - - - - - - - - - - - - - - - - - CWIT-Feedback Portol - - - - - - - -
- - -
- - -
- -
-
-
-
-
- - $value) { - - $forms_sql = "select * from forms where form_id='$value'"; - $forms_result = mysqli_query($conn, $forms_sql); - $forms_row = mysqli_fetch_assoc($forms_result); - $default_flag = $forms_row['default_ques']; - $i = 1; - $count_ques = 0; - if ($default_flag == 1) { - $sql = "SELECT * FROM form_ques where form_id = '0'"; - $count_ques = 7; - } else { - - $sql = "SELECT * FROM form_ques where form_id = '$value'"; - } - $result = mysqli_query($conn, $sql); - if ($count_ques == 0) { - - $count_ques = mysqli_num_rows($result); - } - $sql = "select * from form_responses where form_id='$value'"; - $resu = mysqli_query($conn, $sql); - - $main_responses = array(); - $num_ques = $count_ques; - if ($count_ques > $max_ques) { - $max_ques = $count_ques; - } - $main_responses = array(); - for ($i = 0; $i < $num_ques; $i++) { - array_push($main_responses, array()); - } - while ($row = mysqli_fetch_assoc($resu)) { - $res = json_decode($row['response_json'], true); - $i = 0; - foreach ($res as $key => $value) { - if ($value == "null") { - $value = 0; - } - array_push($main_responses[$i], round($value)); - $i++; - if ($i == $num_ques) { - break; - # code... - } - } - } - - for ($i = 0; $i < $count_ques; $i++) { - # code... - array_push($averages[$count], round(array_sum($main_responses[$i]) / count($main_responses[$i]), 2)); - } - $count++; - } - ?> - - - - - - - - - - - - - - - - - - - - - - - $value) { - $grp_sql = "select * from courses where course_code='$courses[$key]'"; - $grp_res = mysqli_query($conn, $grp_sql); - $grp_row = mysqli_fetch_assoc($grp_res); - echo ""; - echo ""; - $avgd = 0; - for ($i = 0; $i < count($averages[$key]); $i++) { - echo ""; - $avgd += $averages[$key][$i]; - } - for ($i = 0; $i < $max_ques - count($averages[$key]); $i++) { - echo ""; - } - echo ""; - } - ?> - - -
CoursesQuestionsAvg
1234567
" . $grp_row['course_name'] . " ({$grp_row['course_code']})" . "" . $averages[$key][$i] . "" . "" . round($avgd / count($averages[$key]), 2) . "
-
-
-
-
-
- - - - - - - -
- -
-
- - - - - - - - - - - - - - diff --git a/roles/admin/genform.php~ b/roles/admin/genform.php~ deleted file mode 100644 index efc7e43..0000000 --- a/roles/admin/genform.php~ +++ /dev/null @@ -1,134 +0,0 @@ - -
-
-
-
- -
- -
    -
  • Very Bad
  • -
  • Bad
  • -
  • Neutral
  • -
  • Good
  • -
  • Excellent
  • -
- -
- -
-
- -
- -
-
- - -
- -
-
-
- - -
- -
-
- - - - - -
- -
-
-
- - -
- -
-
- - - -
-
-
-
-
-
- - -
- -
- - -
-
- - -
-
- - - - -
-
-
- - -
- -
-
- - - - -
-
-
- - - -
- - -
- - - - - - -
- -
- diff --git a/roles/admin/index.php~ b/roles/admin/index.php~ deleted file mode 100644 index e0727e8..0000000 --- a/roles/admin/index.php~ +++ /dev/null @@ -1,445 +0,0 @@ - - - - - - - - - - - - - - - - - CWIT-Feedback Portol - - - - - - - - - - - - -
- -
- - -
-
- - - - -

Analytics Dashboard

-
-
-
-
-
-
-
-
-
-
Total Feedbacks
-
- -
-
- -
-
-
-

-
- Since Forever -
-
-
-
-
-
-
-
-
-
Pending Feedbacks
-
- -
-
- -
-
-
- -

-
- Since last week -
-
-
-
-
-
-
-
-
-
Filled Feedbacks
-
- -
-
- -
-
-
- -

-
- Since Forever -
-
-
-
-
-
-
-
-
-
Students
-
- -
-
- -
-
-
- -

-
- Since 2022 -
-
-
-
-
-
-
-
- -
-
- -
-
-
Active Feedbacks - $td"; ?>
-
- - - - - - - - - - - - 0){ - $active_feedbacks_count = 1; - while($active_feedbacks_row = mysqli_fetch_assoc($active_feedbacks_result)){ - $course_code = $active_feedbacks_row['course_code']; - - $course = "SELECT * FROM courses WHERE course_code = '$course_code'"; - $course_result = mysqli_query($conn, $course); - $course_row = mysqli_fetch_assoc($course_result); - $course_name = $course_row['course_name']; - $total_stud = $active_feedbacks_row['total_students']; - //$feedback_date = date('d-m-Y', strtotime($feedback_date)); - echo " - - - - - "; - $active_feedbacks_count++; - } - } - else{ - echo " - - "; - } - - ?> - - -
#CourseCourse CodeTotal Students
$active_feedbacks_count$course_name$course_code$total_stud
No Active Feedbacks
-
-
- -
-
- -
-
-
-
Requested Feedbacks
-
- - - - - - - - - - - - - - 0){ - $active_feedbacks_count = 1; - while($active_feedbacks_row = mysqli_fetch_assoc($active_feedbacks_result)){ - $course_code = $active_feedbacks_row['subject']; - - $dept_code = $active_feedbacks_row["deptcode"]; - $course = "SELECT * FROM courses WHERE course_code = '$course_code'"; - $course_result = mysqli_query($conn, $course); - $course_row = mysqli_fetch_assoc($course_result); - $course_name = $course_row['course_name']; - $total_stud = $active_feedbacks_row['student_count']; - //$feedback_date = date('d-m-Y', strtotime($feedback_date)); - echo " - - - - - - - "; - $active_feedbacks_count++; - } - } - else{ - echo " - - "; - } - - ?> - -
IDCourseCodeStudentsDateView
$active_feedbacks_count$course_name$course_code$total_stud$active_feedbacks_row[fdate] - -
No Feedback Records
-
-
- -
-
-
- -
- - - - - - - - - - - - - - - - - - - - diff --git a/roles/admin/past_form.php~ b/roles/admin/past_form.php~ deleted file mode 100644 index e8dd298..0000000 --- a/roles/admin/past_form.php~ +++ /dev/null @@ -1,941 +0,0 @@ - - - - - - - - - - - - - - - - - CWIT-Feedback Portol - - - - - - - - -
- -
- - -
-
-
-

View by Acadmic Year

-
- - - -
-
-
-

View by Semester

-
- - - -
-
- -
-

Computer Department

-
- - - -
-
-
-
-
-
-
-
-
Winter Seasons | 1st Semester
- - - - - - - - - - - - - - - - - $date) { - $status = "Expired"; - } elseif ($todays_date == $date) { - $sql3 = "UPDATE `forms` SET status = '1' WHERE course_code = '$course_code' AND author = '$teacher_name' AND ini_date = '$date'"; - $result3 = mysqli_query($conn, $sql3); - - $status = "Active"; - } else { - $status = "Pending"; - } - - - $fid = $row['form_id']; - - echo " - - - - - - - - - "; - $i++; - } - - ?> - - - - -
Sr. NoSubjectCourse CodeTeacher NameDateStatusViewReschedule
$i$subject$course_code$teacher_name$date$statusViewEdit
-
-
-
-
-
-
-
-
-
Summer Seasons | 2nd Semester
- - - - - - - - - - - - - - - - - - $date) { - $status = "Expired"; - } elseif ($todays_date == $date) { - $sql3 = "UPDATE `forms` SET status = '1' WHERE course_code = '$course_code' AND author = '$teacher_name' AND ini_date = '$date'"; - $result3 = mysqli_query($conn, $sql3); - - $status = "Active"; - } else { - $status = "Pending"; - } - - - $fid = $row['form_id']; - - echo " - - - - - - - - - "; - $i++; - } - - ?> - - -
Sr. NoSubjectCourse CodeTeacher NameDateStatusViewReschedule
$i$subject$course_code$teacher_name$date$statusViewEdit
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Winter Seasons | 3rd Semester
- - - - - - - - - - - - - - - - - - $date) { - $status = "Expired"; - } elseif ($todays_date == $date) { - $sql3 = "UPDATE `forms` SET status = '1' WHERE course_code = '$course_code' AND author = '$teacher_name' AND ini_date = '$date'"; - $result3 = mysqli_query($conn, $sql3); - - $status = "Active"; - } else { - $status = "Pending"; - } - - - $fid = $row['form_id']; - - echo " - - - - - - - - - "; - $i++; - } - - ?> - - -
Sr. NoSubjectCourse CodeTeacher NameDateStatusViewReschedule
$i$subject$course_code$teacher_name$date$statusViewEdit
-
-
-
-
-
-
-
-
-
Summer Seasons | 4th Semester
- - - - - - - - - - - - - - - - - - $date) { - $status = "Expired"; - } elseif ($todays_date == $date) { - $sql3 = "UPDATE `forms` SET status = '1' WHERE course_code = '$course_code' AND author = '$teacher_name' AND ini_date = '$date'"; - $result3 = mysqli_query($conn, $sql3); - - $status = "Active"; - } else { - $status = "Pending"; - } - - - $fid = $row['form_id']; - - echo " - - - - - - - - - "; - $i++; - } - - ?> - - -
Sr. NoSubjectCourse CodeTeacher NameDateStatusViewReschedule
$i$subject$course_code$teacher_name$date$statusViewEdit
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Winter Seasons | 5th Semester
- - - - - - - - - - - - - - - - - - $date) { - $status = "Expired"; - } elseif ($todays_date == $date) { - $sql3 = "UPDATE `forms` SET status = '1' WHERE course_code = '$course_code' AND author = '$teacher_name' AND ini_date = '$date'"; - $result3 = mysqli_query($conn, $sql3); - - $status = "Active"; - } else { - $status = "Pending"; - } - - - $fid = $row['form_id']; - - echo " - - - - - - - - - - "; - $i++; - } - - ?> - - -
Sr. NoSubjectCourse CodeTeacher NameDateStatusViewReschedule
$i$subject$course_code$teacher_name$date$statusViewEdit
-
-
-
-
-
-
-
-
-
Summer Seasons | 6th Semester
- - - - - - - - - - - - - - - - - $date) { - $status = "Expired"; - } elseif ($todays_date == $date) { - $sql3 = "UPDATE `forms` SET status = '1' WHERE course_code = '$course_code' AND author = '$teacher_name' AND ini_date = '$date'"; - $result3 = mysqli_query($conn, $sql3); - - $status = "Active"; - } else { - $status = "Pending"; - } - - - $fid = $row['form_id']; - - echo " - - - - - - - - - "; - $i++; - } - - ?> - - -
Sr. NoSubjectCourse CodeTeacher NameDateStatusViewReschedule
$i$subject$course_code$teacher_name$date$statusViewEdit
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

Programming in C

-
Teachers Name
-
-
-
Date: 10/10/2021
-
-
-
-
-
-
-
-
-
Description
-

Cusrow Wadia Institute of Technology, Pune

- -
-
-
-
-
-
-
-
-
Short Answers
-

Q1. Enter your name

-
-
-
-
-
-
-
-
-
Short Answers
-

Q2. Enter your email

-
-
-
-
-
-
-
-
-
Long Answers
-

Q3. Enter your department

-
-
-
-
-
-
-
-
-
Long Answers
-

Q4. Subject and Course Code

-
-
-
-
-
-
-
-
-

Multiple Answers

-

Q5. Overall Experience

-

I. 5

-

II. 4

-

III. 3

-

IV. 2

-

V. 1

-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - - - - - - - - - - - - -alert('".$id."');"; - - $sql = "UPDATE `forms` SET `status` = '1' WHERE `forms`.`form_id` = $id"; - $result = mysqli_query($conn, $sql); - if($result){ - echo ""; - echo ""; - }else{ - echo ""; - echo ""; - } -} -*/ -?> \ No newline at end of file diff --git a/roles/admin/print_report.php~ b/roles/admin/print_report.php~ deleted file mode 100644 index 862908c..0000000 --- a/roles/admin/print_report.php~ +++ /dev/null @@ -1,328 +0,0 @@ - - - - - - - - - - - - - - - - - - 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
- -
-
-
-
-
-
-
- -
- - - - - - - - - - - - - - - -
ProgrammeCourse
Course Code - - No. of Feedback entries
-
- - - -
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - "; - $percentage = array_count_values($main_responses[$i]); - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - if ( round(array_sum($main_responses[$i]) / count($main_responses[$i]), 2) >= 4.5 or round(array_sum($main_responses[$i]) / count($main_responses[$i]), 2) <=3 ){ - - echo ""; - }else{ - - echo ""; - } - echo ""; - $i++; - } - ?> - - -
Feedback QuestionPercentage of ScoresAvg
12345
" . $row['question_title'] . "" . round(count(array_keys($main_responses[$i], 1)) / count($main_responses[$i]) * 100, 2) . "" . round(count(array_keys($main_responses[$i], 2)) / count($main_responses[$i]) * 100, 2) . "" . round(count(array_keys($main_responses[$i], 3)) / count($main_responses[$i]) * 100, 2) . "" . round(count(array_keys($main_responses[$i], 4)) / count($main_responses[$i]) * 100, 2) . "" . round(count(array_keys($main_responses[$i], 5)) / count($main_responses[$i]) * 100, 2) . "" . round(array_sum($main_responses[$i]) / count($main_responses[$i]), 2) . "" . round(array_sum($main_responses[$i]) / count($main_responses[$i]), 2) . "
-
-
- - - - - - - - - - - - - - -
FIVE POINT GRADING SCALE
Excellent : 5Good : 4Satisfactory : 3Needs Improvement : 2Poor : 1
-
-
- -

- Note: 1. The score index less than 3 and greater than 4.5 is Highlighted. -
          2. The response for more than 40% score is highlighted. -

- -
-
-
- -
-
- - -
- -
-
- - - - - - - - - - - - - - diff --git a/roles/admin/report.php~ b/roles/admin/report.php~ deleted file mode 100644 index 599078a..0000000 --- a/roles/admin/report.php~ +++ /dev/null @@ -1,513 +0,0 @@ -fetch_assoc()) { - $items[] = $row; -} -if (isset($_POST["export"])) { - $fileName = "itemdata-" . date('d-m-Y') . ".xls"; - $json1 = array(); - for ($i = 0; $i < count($items); $i++) { - $json = $items[$i]["response_json"]; - $json1[] = json_decode($json, true); - } - $heading = false; - $headings = array('Student_id', 'Form ID', 'Fill_date', '1', '2', '3', '4', '5', '6', '7'); - $item = array(); - $data[] = ""; - for ($i = 0; $i < count($items); $i++) { - $item = array($items[$i]['student_id'], $items[$i]['form_id'], $items[$i]['filldate'], $json1[$i]['slider-1'], $json1[$i]['slider-2'], $json1[$i]['slider-3'], $json1[$i]['slider-4'], $json1[$i]['slider-5'], $json1[$i]['slider-6'], $json1[$i]['slider-7']); - $data[$i] = $item; - } - header('Content-Type: application/vnd.ms-excel'); - header('Content-Disposition: attachment; filename=' . $fileName); - if (!empty($items)) { - foreach ($data as $item) { - if (!$heading) { - echo implode("\t", array_values($headings)) . "\n\n"; - $heading = true; - } - echo implode("\t", array_values($item)) . "\n"; - } - } - exit(); -} -?> - - - - - - - - - - - - - - - - - - - CWIT-Feedback Portol - - - - - - - -
- - -
- - -
-
-
-
- -
- -
- -

: #

-

-
-
-

Last Updated :

- -
- -
- " target=”_blank”> - - - - -
-
-
-
-
- $value) { - array_push($main_responses[$i], round($value)); - $i++; - if ($i == $num_ques) { - break; - # code... - } - } - } - ?> -
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - "; - $percentage = array_count_values($main_responses[$i]); - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - - echo ""; - echo ""; - $i++; - } - ?> - - -
Feedback QuestionPercentage of ScoresAvg
12345
" . $row['question_title'] . "" . round(count(array_keys($main_responses[$i], 1)) / count($main_responses[$i]) * 100, 2) . "" . round(count(array_keys($main_responses[$i], 2)) / count($main_responses[$i]) * 100, 2) . "" . round(count(array_keys($main_responses[$i], 3)) / count($main_responses[$i]) * 100, 2) . "" . round(count(array_keys($main_responses[$i], 4)) / count($main_responses[$i]) * 100, 2) . "" . round(count(array_keys($main_responses[$i], 5)) / count($main_responses[$i]) * 100, 2) . "" . round(array_sum($main_responses[$i]) / count($main_responses[$i]), 2) . "
-
-
-
-
-
-
-
-
-
-
-
Filled Roll Numbers
-
-
-
- - - - - - - - - - - "; - echo ""; - echo ""; - array_push($filled, $row['student_id']); - if ($j == round($rows / 4)) { - break; - } - $j++; - } - - ?> - - -
Roll Number
" . $row['student_id'] . "
- - -
-
-
-
-
-
-
-
Not Filled Roll Numbers
-
-
-
- - - - - - - - - - - "; - $i++; - } - - if ($i >= ($countse / 4)) { - break; - } - } - ?> - - -
Roll Number
" . $row['uname'] . "
- - -
-
-
-
- - - - -
- -
-
- - - - - - - - - - - - - - diff --git a/roles/admin/requested_feedback.php~ b/roles/admin/requested_feedback.php~ deleted file mode 100644 index ee855fd..0000000 --- a/roles/admin/requested_feedback.php~ +++ /dev/null @@ -1,841 +0,0 @@ - - - - - - - - - - - - - - - - - CWIT-Feedback Portol - - - - - - - -
- -
- - -
-
-
-

Computer Department

-
- - - - -
-
-
-
-
-
-
-
-
Winter Seasons | 1st Semester
- - - - - - - - - - - - - - - - - - - - - - - - "; - $i++; - } - - ?> - - -
Sr. NoSubjectCourse CodeTeacher NameDateAction
$i$subject$course_code$teacher_name$dateApprove RejectView
-
-
-
-
-
-
-
-
-
Summer Seasons | 2nd Semester
- - - - - - - - - - - - - - - - - - - - - - - - "; - $i++; - } - - ?> - - -
Sr. NoSubjectCourse CodeTeacher NameDateAction
$i$subject$course_code$teacher_name$dateApprove RejectView
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Winter Seasons | 3rd Semester
- - - - - - - - - - - - - - - - - - - - - - - - "; - $i++; - } - - ?> - - -
Sr. NoSubjectCourse CodeTeacher NameDateAction
$i$subject$course_code$teacher_name$dateApprove RejectView
-
-
-
-
-
-
-
-
-
Summer Seasons | 4th Semester
- - - - - - - - - - - - - - - - - - - - - - - - "; - $i++; - } - - ?> - - -
Sr. NoSubjectCourse CodeTeacher NameDateAction
$i$subject$course_code$teacher_name$dateApprove RejectView
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Winter Seasons | 5th Semester
- - - - - - - - - - - - - - - - - - - - - - - - "; - $i++; - } - - ?> - - -
Sr. NoSubjectCourse CodeTeacher NameDateAction
$i$subject$course_code$teacher_name$dateApprove RejectView
-
-
-
-
-
-
-
-
-
Summer Seasons | 6th Semester
- - - - - - - - - - - - - - - - - - - - - - - - "; - $i++; - } - - ?> - - -
Sr. NoSubjectCourse CodeTeacher NameDateAction
$i$subject$course_code$teacher_name$dateApprove RejectView
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

Programming in C

-
Teachers Name
-
-
-
Date: 10/10/2021
-
-
-
-
-
-
-
-
-
Description
-

Cusrow Wadia Institute of Technology, Pune

- -
-
-
-
-
-
-
-
-
Short Answers
-

Q1. Enter your name

-
-
-
-
-
-
-
-
-
Short Answers
-

Q2. Enter your email

-
-
-
-
-
-
-
-
-
Long Answers
-

Q3. Enter your department

-
-
-
-
-
-
-
-
-
Long Answers
-

Q4. Subject and Course Code

-
-
-
-
-
-
-
-
-

Multiple Answers

-

Q5. Overall Experience

-

I. 5

-

II. 4

-

III. 3

-

IV. 2

-

V. 1

-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - - - - - - - - - diff --git a/roles/admin/sidebar.php~ b/roles/admin/sidebar.php~ deleted file mode 100644 index 67b4610..0000000 --- a/roles/admin/sidebar.php~ +++ /dev/null @@ -1,289 +0,0 @@ - - - - diff --git a/roles/admin/view_form.php~ b/roles/admin/view_form.php~ deleted file mode 100644 index 252554d..0000000 --- a/roles/admin/view_form.php~ +++ /dev/null @@ -1,930 +0,0 @@ - - - - - - - - - - - - - - - - - CWIT-Feedback Portol - - - - - - - -
- -
- - -
-
-
-

Computer Department

-
- - - - -
-
-
-
-
-
-
-
-
Winter Seasons | 1st Semester
- - - - - - - - - - - - - - - - $date){ - $status = "Expired"; - } - elseif($todays_date == $date){ - $sql3 = "UPDATE `forms` SET status = '1' WHERE course_code = '$course_code' AND author = '$teacher_name' AND ini_date = '$date'"; - $result3 = mysqli_query($conn, $sql3); - - $status = "Active"; - } - else{ - $status = "Pending"; - } - - - $fid = $row['form_id']; - - echo " - - - - - - - - "; - $i++; - - } - - ?> - - - - -
Sr. NoSubjectCourse CodeTeacher NameDateStatusAction
$i$subject$course_code$teacher_name$date$statusView - Reschedule - Edit
-
-
-
-
-
-
-
-
-
Summer Seasons | 2nd Semester
- - - - - - - - - - - - - - - - - - $date){ - $status = "Expired"; - } - elseif($todays_date == $date){ - $sql3 = "UPDATE `forms` SET status = '1' WHERE course_code = '$course_code' AND author = '$teacher_name' AND ini_date = '$date'"; - $result3 = mysqli_query($conn, $sql3); - - $status = "Active"; - } - else{ - $status = "Pending"; - } - - - $fid = $row['form_id']; - - echo " - - - - - - - - "; - $i++; - - } - - ?> - - -
Sr. NoSubjectCourse CodeTeacher NameDateStatusViewReschedule
$i$subject$course_code$teacher_name$date$statusView - Reschedule - Edit
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Winter Seasons | 3rd Semester
- - - - - - - - - - - - - - - - - - $date){ - $status = "Expired"; - } - elseif($todays_date == $date){ - $sql3 = "UPDATE `forms` SET status = '1' WHERE course_code = '$course_code' AND author = '$teacher_name' AND ini_date = '$date'"; - $result3 = mysqli_query($conn, $sql3); - - $status = "Active"; - } - else{ - $status = "Pending"; - } - - - $fid = $row['form_id']; - - echo " - - - - - - - - "; - $i++; - - } - - ?> - - -
Sr. NoSubjectCourse CodeTeacher NameDateStatusViewReschedule
$i$subject$course_code$teacher_name$date$statusView - Reschedule - Edit
-
-
-
-
-
-
-
-
-
Summer Seasons | 4th Semester
- - - - - - - - - - - - - - - - - - $date){ - $status = "Expired"; - } - elseif($todays_date == $date){ - $sql3 = "UPDATE `forms` SET status = '1' WHERE course_code = '$course_code' AND author = '$teacher_name' AND ini_date = '$date'"; - $result3 = mysqli_query($conn, $sql3); - - $status = "Active"; - } - else{ - $status = "Pending"; - } - - - $fid = $row['form_id']; - - echo " - - - - - - - - "; - $i++; - - } - - ?> - - -
Sr. NoSubjectCourse CodeTeacher NameDateStatusViewReschedule
$i$subject$course_code$teacher_name$date$statusView - Reschedule - Edit
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Winter Seasons | 5th Semester
- - - - - - - - - - - - - - - - - - $date){ - $status = "Expired"; - } - elseif($todays_date == $date){ - $sql3 = "UPDATE `forms` SET status = '1' WHERE course_code = '$course_code' AND author = '$teacher_name' AND ini_date = '$date'"; - $result3 = mysqli_query($conn, $sql3); - - $status = "Active"; - } - else{ - $status = "Pending"; - } - - - $fid = $row['form_id']; - - echo " - - - - - - - - "; -$i++; - - } - - ?> - - -
Sr. NoSubjectCourse CodeTeacher NameDateStatusViewReschedule
$i$subject$course_code$teacher_name$date$statusView - Reschedule - Edit
-
-
-
-
-
-
-
-
-
Summer Seasons | 6th Semester
- - - - - - - - - - - - - - - - - $date){ - $status = "Expired"; - } - elseif($todays_date == $date){ - $sql3 = "UPDATE `forms` SET status = '1' WHERE course_code = '$course_code' AND author = '$teacher_name' AND ini_date = '$date'"; - $result3 = mysqli_query($conn, $sql3); - - $status = "Active"; - } - else{ - $status = "Pending"; - } - - - $fid = $row['form_id']; - - echo " - - - - - - - - "; - $i++; - - } - - ?> - - -
Sr. NoSubjectCourse CodeTeacher NameDateStatusViewReschedule
$i$subject$course_code$teacher_name$date$statusView - Reschedule - Edit
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

Programming in C

-
Teachers Name
-
-
-
Date: 10/10/2021
-
-
-
-
-
-
-
-
-
Description
-

Cusrow Wadia Institute of Technology, Pune

- -
-
-
-
-
-
-
-
-
Short Answers
-

Q1. Enter your name

-
-
-
-
-
-
-
-
-
Short Answers
-

Q2. Enter your email

-
-
-
-
-
-
-
-
-
Long Answers
-

Q3. Enter your department

-
-
-
-
-
-
-
-
-
Long Answers
-

Q4. Subject and Course Code

-
-
-
-
-
-
-
-
-

Multiple Answers

-

Q5. Overall Experience

-

I. 5

-

II. 4

-

III. 3

-

IV. 2

-

V. 1

-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - - - - - - - - - - - -alert('".$id."');"; - - $sql = "UPDATE `forms` SET `status` = '1' WHERE `forms`.`form_id` = $id"; - $result = mysqli_query($conn, $sql); - if($result){ - echo ""; - echo ""; - }else{ - echo ""; - echo ""; - } -} -*/ -?> diff --git a/roles/faculty/courses_list.php~ b/roles/faculty/courses_list.php~ deleted file mode 100644 index e16c3ee..0000000 --- a/roles/faculty/courses_list.php~ +++ /dev/null @@ -1,19 +0,0 @@ -" . $row["course_name"] . "(" . $row["course_code"] . ")" . ""; -} -?> -" . $row["course_name"] . "(" . $row["course_code"] . ")" . ""; -} -?> - diff --git a/roles/faculty/create_course.php~ b/roles/faculty/create_course.php~ deleted file mode 100644 index 6522160..0000000 --- a/roles/faculty/create_course.php~ +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - - - - - - - - - - - - - - - Add Course - - - - - - - -
- -
- -
-
-
-
-
- -
-

New Course

-

- Create a New Course -

-
-
-
-
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
- - -
-
- -
- -
-
-
-
- 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_form.php~ b/roles/faculty/create_form.php~ deleted file mode 100644 index b062177..0000000 --- a/roles/faculty/create_form.php~ +++ /dev/null @@ -1,575 +0,0 @@ - - - - - - - - - - - - - - - - - Create Form - - - - - - - - - - - -
- - -
- - - -
-
-
-
- -
-
-
-
- -
- -
- - -
-
-
-

- - - -

-
- "> - "> - -
-
- -
-
-
- - -
- - -
- -
-
-
-
- -
-
-
-
- - -
- -
-
-
- -
-
- - -
-
-
- - -
- -
-
-
- - -
-
-
- - -
- -
-
- -
-
- -
- -
-
-
-
- -
- -
    -
  • Very Bad
  • -
  • Bad
  • -
  • Neutral
  • -
  • Good
  • -
  • Excellent
  • -
- -
- -
-
- -
- -
-
- -
-
-
-
- -
- -
    -
  • Very Bad
  • -
  • Bad
  • -
  • Neutral
  • -
  • Good
  • -
  • Excellent
  • -
- -
- -
-
- -
- -
-
- -
-
-
-
- -
- -
    -
  • Very Bad
  • -
  • Bad
  • -
  • Neutral
  • -
  • Good
  • -
  • Excellent
  • -
- -
- -
-
- -
- -
-
- -
-
-
-
- -
- -
    -
  • Very Bad
  • -
  • Bad
  • -
  • Neutral
  • -
  • Good
  • -
  • Excellent
  • -
- -
- -
-
- -
- -
-
- -
-
-
-
- -
- -
    -
  • Very Bad
  • -
  • Bad
  • -
  • Neutral
  • -
  • Good
  • -
  • Excellent
  • -
- -
- -
-
- -
- -
-
- -
-
-
-
- -
- -
    -
  • Very Bad
  • -
  • Bad
  • -
  • Neutral
  • -
  • Good
  • -
  • Excellent
  • -
- -
- -
-
- -
- -
-
- -
-
-
-
- -
- -
    -
  • Very Bad
  • -
  • Bad
  • -
  • Neutral
  • -
  • Good
  • -
  • Excellent
  • -
- -
- -
-
- -
- -
-
- -
-
- - -
-
- - - - - -
- - - - -
- -
- - - -
- - -
-
- -
-
-
-
- -
- - - -
-
- - - - - - - - diff --git a/roles/faculty/create_group.php~ b/roles/faculty/create_group.php~ deleted file mode 100644 index b0f3c6e..0000000 --- a/roles/faculty/create_group.php~ +++ /dev/null @@ -1,574 +0,0 @@ - - -alert('Invalid Session, please login again');"; - echo ""; -} -$server = "localhost"; -$user = "root"; -$passwd = ""; -$dbname = "feedback"; - -$conn = mysqli_connect($server, $user, $passwd, $dbname); -if (!$conn) { - die("Connection failed: " . mysqli_connect_error()); -} -?> - - - - - - - - - - - Create student group - - - - - - - - - - - - - -
- - -
- - - -
-
-
-

Create Student group

-
-
-
- -
- -
-
- - -
- -
- - -
- -
- - -
- -
-
- - -
- - -
-
- -
- - "> -
- -
- - " placeholder="specify with '-'"> -
-
- - " class="form-control" id="name" name="addrollunit" placeholder="split with ';'"> -
-
- -
-
- -
-
- - - -
- - -

- - -
- - -
-                 - - - Green checkbox indicates student is in the course group. -
- -                 - - Red checkbox indicates student is not in the course group. -
-
- * Click on the roll number to add/remove student from group. -
- - $value) { - $active_roll[] = $value; - } - $active_roll = array_diff($active_roll, [-4000, "", " "]); - $allrolls = count($active_roll); - echo "

Total number of students: " . $allrolls . "

"; - $count = 1; - - 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 "
"; - } - } - ?> - -
-
-
-
-
-
- -
- -
-
-
- - -
- - - - -
- -
- - -
-
- - - - - $value) { - if (!in_array($key, $known_posts)) { - if ($value == "0") { - $remove_rolls[] = $key; - } else { - array_push($active_rolls, $key); - } - } - } - var_dump($remove_rolls); - $active_rolls = array_unique($active_rolls); - $student_count = count($active_rolls); - $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')"; - $result = mysqli_query($conn, $sql); - if ($result) { - echo ""; - echo ""; - } else { - echo mysqli_error($conn); - } - } - } - - - ?> - - - - - - - diff --git a/roles/faculty/index.php~ b/roles/faculty/index.php~ deleted file mode 100644 index aeb9161..0000000 --- a/roles/faculty/index.php~ +++ /dev/null @@ -1,707 +0,0 @@ - - - -alert('Invalid Session, please login again');"; - echo ""; -} -$server = "localhost"; -$user = "root"; -$passwd = ""; -$dbname = "feedback"; - -$conn = mysqli_connect($server, $user, $passwd, $dbname); -if (!$conn) { - die("Connection failed: " . mysqli_connect_error()); -} -?> - - - - - - - - - - - - Faculty Home - - - - - - - - - - - - - -
- - -
- - -
-
-

Faculty Home

-
- -
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
-
-
-
-
-
-
-
Current Created Forms
-
- alert('".$created."')"; - - $sqltotal = "SELECT COUNT(teacher_id) FROM `groups` WHERE `teacher_id` = '$teach_id'"; - $result = mysqli_query($conn, $sqltotal); - $row = mysqli_fetch_array($result); - $total = $row['COUNT(teacher_id)']; - ?> - -
-
- -
-
-
-

-
- - Total - till date -
-
-
-
-
-
-
-
-
-
Current Requested Forms
-
- alert('".$created."')"; - - $sqltotal = "SELECT COUNT(teacher_id) FROM `groups` WHERE `accepted`='1' AND `teacher_id` = '$teach_id'"; - $result = mysqli_query($conn, $sqltotal); - $row = mysqli_fetch_array($result); - $accepted = $row['COUNT(teacher_id)']; - ?> -
-
- -
-
-
-

-
- - accepted till date -
-
-
-
-
-
-
-
-
-
On Going Feedbacks
-
- -
-
- -
-
-
- - alert('".$name."')"; - - $sqlcompleted = "SELECT COUNT(`status`) from `forms` WHERE `status` = '1' and `author` = '$name' and date(`ini_date`) >= '$today'"; - //echo ""; - $result = mysqli_query($conn, $sqlcompleted); - $row = mysqli_fetch_array($result); - $completed = $row['COUNT(status)']; - //echo ""; - ?> - -

-
- - Feedbacks -
-
-
-
-
-
-
-
-
-
Session Details
-
- -
-
- -
-
-
- - Username : ".$_SESSION['uname']; - echo "
"; - echo 'Name : '.$name; - echo '
'; - echo 'teacher ID : '.$teach_id; - echo '
'; - echo 'Role : '.$_SESSION['role']; - ?> - - - - -
-
-
-
-
-
-
-
-
- -
-
-
Active Feedbacks - $td"; ?>
-
- - - - - - - - - - - - 0){ - $active_feedbacks_count = 1; - while($active_feedbacks_row = mysqli_fetch_assoc($active_feedbacks_result)){ - $course_code = $active_feedbacks_row['course_code']; - - $course = "SELECT * FROM courses WHERE course_code = '$course_code'"; - $course_result = mysqli_query($conn, $course); - $course_row = mysqli_fetch_assoc($course_result); - $course_name = $course_row['course_name']; - $total_stud = $active_feedbacks_row['total_students']; - //$feedback_date = date('d-m-Y', strtotime($feedback_date)); - echo " - - - - - "; - $active_feedbacks_count++; - } - } - else{ - echo " - - "; - } - - ?> - - -
#CourseCourse CodeTotal Students
$active_feedbacks_count$course_name$course_code$total_stud
No Active Feedbacks
-
-
- -
-
- -
-
-
-
Past Feedbacks
-
- - - - - - - - - - - - - 0){ - $active_feedbacks_count = 1; - while($active_feedbacks_row = mysqli_fetch_assoc($active_feedbacks_result)){ - $course_code = $active_feedbacks_row['course_code']; - - $course = "SELECT * FROM courses WHERE course_code = '$course_code'"; - $course_result = mysqli_query($conn, $course); - $course_row = mysqli_fetch_assoc($course_result); - $course_name = $course_row['course_name']; - $total_stud = $active_feedbacks_row['total_students']; - //$feedback_date = date('d-m-Y', strtotime($feedback_date)); - echo " - - - - - - "; - $active_feedbacks_count++; - } - } - else{ - echo " - - "; - } - - ?> - -
IDCourseCodeStudentsDate
$active_feedbacks_count$course_name$course_code$total_stud$active_feedbacks_row[ini_date]
No Feedback Records
-
-
- -
-
-
- - - - -
- - - - -
- -
- - -
-
- - - - - - - - - - - - - - - - - - - - diff --git a/roles/faculty/requested_forms.php~ b/roles/faculty/requested_forms.php~ deleted file mode 100644 index 32802e8..0000000 --- a/roles/faculty/requested_forms.php~ +++ /dev/null @@ -1,196 +0,0 @@ - - - - - - - - - - - - - - - - - Requested Forms - - - - - - - - - - - -
- - -
- - - -
-
-
-

Requested Feedback Survey:

-
- 0) { - while ($row = mysqli_fetch_assoc($result)) { - $sql2 = "select * from courses where course_code='{$row["subject"]}'"; - $result2 = mysqli_query($conn, $sql2); - $row2 = mysqli_fetch_assoc($result2); - ?> -
-
-
-

- ) -

-
- - - -
-

Number of Students :

-

Date :

- -

Status :

- - - -
- -
-
- - -
- -
-
- - - -
- -
-
- - -
- - -
- - - - - - - - - \ No newline at end of file diff --git a/roles/faculty/sidebar.php~ b/roles/faculty/sidebar.php~ deleted file mode 100644 index dfaa2df..0000000 --- a/roles/faculty/sidebar.php~ +++ /dev/null @@ -1,83 +0,0 @@ - - - - diff --git a/roles/faculty/viewedit.php~ b/roles/faculty/viewedit.php~ deleted file mode 100644 index e5fb5bb..0000000 --- a/roles/faculty/viewedit.php~ +++ /dev/null @@ -1,418 +0,0 @@ - - -alert('Invalid Session, please login again');"; - echo ""; -} -?> - - - - - - - - - - - - - - Create student group - - - - - - - - - - - - - -
- - -
- - - -
-
-
-

Set feedback details

-
-
-
- -
-
-

Department:

- - -
- -
-

Semester:

- -
- -
-

Course:

- -
- -
-
- - -
- -
-
-
-
- -
- - -
- -
-
- -
- -
-
-
- -
- -

-
- "; - for ($i = 1; $i < 14; $i++) { - - $row["enrollid"] = $active_rolls[$count - 1]; - - - $count += 1; - if ($row['enrollid'] == 0) { - continue; - } - if ($count == $allrolls + 2) { - break; - } - error_reporting(0); - array_push($rolls, $row['enrollid']); - - echo "
- - -
"; - } - echo ""; - } - ?> - -
-
-
-
- - - -
-
-
- -
-
-
-
-
- -
- - -
-
- - - - $value) { - if (!in_array($key, $known_posts)) { - array_push($active_rolls, $key); - } - } - - array_pop($active_rolls); - $activeRoll = json_encode($active_rolls); - //echo ""; - - $sql = "UPDATE groups SET `activeRoll` = '$activeRoll',`fdate`= '$date', `req` = '1' WHERE `id` = '$feedbackid' "; - $result = mysqli_query($conn, $sql); - - - $loginroll = json_decode($activeRoll); - echo count($loginroll); - for ($i = 0; $i < count($loginroll); $i++) { - $roll = $loginroll[$i]; - //create login id for each rollnumber - $loginid = $roll; - //create password for each rollnumber - $password = md5($roll);; - //create login table - - $rollcount = "SELECT * FROM `login` WHERE `uname` = '$roll'"; - $rollcountresult = mysqli_query($conn, $rollcount); - $rollcountrow = mysqli_num_rows($rollcountresult); - $row_login = mysqli_fetch_assoc($rollcountresult); - if ($rollcountrow == 0) { - $student_grp = $feedbackid; - $sql = "INSERT INTO `login`(`uname`, `passwd`, `role`, `name`, `student_groups` ) VALUES ('$loginid','$password','Student', 'Student', ';$feedbackid;')"; - $result = mysqli_query($conn, $sql); - if (!$result) { - - echo ""; - exit(); - } - } else { - $student_grp = $row_login['student_groups'] . ';' . $feedbackid. ';'; - $sql = "UPDATE `login` SET `student_groups` = '{$student_grp}' WHERE `uname` = '$roll'"; - $result = mysqli_query($conn, $sql); - if (!$result) { - - echo ""; - exit(); - } - } - } - echo ""; - echo ""; - } - - - ?> - - - - - - $value) { - if (!in_array($key, $known_posts)) { - array_push($active_rolls, $key); - } - } - $active_rolls = array_unique($active_rolls); - $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) VALUES ('$year','{$_POST["semester"]}','$subject', '$deptcode', '$active_rolls', '{$_SESSION["id"]}')"; - $result = mysqli_query($conn, $sql); - if ($result) { - echo "success"; - } else { - echo mysqli_error($conn); - } - } - - } - - -if(isset($_POST['request'])){ - - $date = $_POST['date']; - $feedbackid = $_GET['id']; - - $known_posts = array('date', 'request'); - $active_rolls = array(); - foreach($_POST as $key => $value) { - if(!in_array($key, $known_posts)) { - array_push($active_rolls, $key); - } - } - - - $active_rolls = array_unique($active_rolls); - $active_rolls = json_encode($active_rolls); - - $sql = "UPDATE groups SET `activeRoll` = '$active_rolls', `date` = '$date', `request` = '1' WHERE `id` = '$feedbackid'"; - $result = mysqli_query($conn, $sql); - if ($result) { - echo ""; - echo ""; - } else { - echo ""; - }*/ - - -?> diff --git a/roles/student/sidebar.php~ b/roles/student/sidebar.php~ deleted file mode 100644 index 30a2da3..0000000 --- a/roles/student/sidebar.php~ +++ /dev/null @@ -1,49 +0,0 @@ - - - - diff --git a/roles/student/submit_feedback.php~ b/roles/student/submit_feedback.php~ deleted file mode 100644 index 664217c..0000000 --- a/roles/student/submit_feedback.php~ +++ /dev/null @@ -1,29 +0,0 @@ - $value) { - if ($key == "form_id") { - $form_id = $value; - continue; - } else { - $_POST[$key] = $value ; - } -} -$form_id = $_POST["form_id"]; -array_pop($_POST); -$res = json_encode($_POST, true); -$sql = "insert into form_responses(student_id, form_id, filldate, response_json) values ('{$_SESSION["uname"]}', '{$form_id}', now(), '{$res}')"; - -$result = mysqli_query($conn, $sql); -if ($result) { - - //echo "success"; - header("Location: ./index.php"); -} else { - echo "fail"; - exit(); -} - -?> diff --git a/testforms.php~ b/testforms.php~ deleted file mode 100644 index 7b0d392..0000000 --- a/testforms.php~ +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/try.php~ b/try.php~ deleted file mode 100644 index c0ce184..0000000 --- a/try.php~ +++ /dev/null @@ -1,30 +0,0 @@ -"; -} - - -?> - -Sr. No - Subject - Course Code - Teacher Name - Date - Status - Action - View - - \ No newline at end of file