{"id":74,"date":"2026-05-01T07:01:50","date_gmt":"2026-05-01T07:01:50","guid":{"rendered":"https:\/\/adcet.net\/?page_id=74"},"modified":"2026-05-02T14:36:28","modified_gmt":"2026-05-02T14:36:28","slug":"course-choice-form","status":"publish","type":"page","link":"https:\/\/adcet.net\/?page_id=74","title":{"rendered":"Course Choice Form"},"content":{"rendered":"\r\n<div class=\"fcf-wrapper\">\r\n<form id=\"fcf-form\">\r\n        <h3>Faculty Details<\/h3>\r\n        <input type=\"text\" name=\"faculty_name\" placeholder=\"Full Name\" required><br><br>\r\n        <input type=\"text\" name=\"faculty_id\" placeholder=\"Faculty ERP ID\" required><br><br>\r\n\r\n        <h3>1st Semester (FY) (Select exactly 4)<\/h3><label><input type='checkbox' class='fcf-checkbox' data-section='1' value='3MEES104-Basic Electrical & Electronics Engg'> 3MEES104-Basic Electrical & Electronics Engg<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='1' value='3EEES105-Fundamental of Electrical Engg'> 3EEES105-Fundamental of Electrical Engg<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='1' value='3EEES104-Introduction to Emgerging Technology'> 3EEES104-Introduction to Emgerging Technology<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='1' value='3EEHS106-Indian Knowledge System'> 3EEHS106-Indian Knowledge System<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='1' value='3EEVS107-Idea Lab  Workshop'> 3EEVS107-Idea Lab  Workshop<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='1' value='0ETES104-Basic Electrical Engg'> 0ETES104-Basic Electrical Engg<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='1' value='0RAES104-Basic Electrical and Electronics Engg'> 0RAES104-Basic Electrical and Electronics Engg<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='1' value='2ICES102-Basic Electrical and Electronics Engg'> 2ICES102-Basic Electrical and Electronics Engg<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='1' value='3EEHS106-Indian Knowledge System'> 3EEHS106-Indian Knowledge System<\/label><br><h3>3rd Semester (SY) (Select exactly 4)<\/h3><label><input type='checkbox' class='fcf-checkbox' data-section='2' value='3EEPC202-Electric Circuit Analysis'> 3EEPC202-Electric Circuit Analysis<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='2' value='3EEPC203-Digital Electronics and Microcontrollers'> 3EEPC203-Digital Electronics and Microcontrollers<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='2' value='3EEPC204-Measurement and Instrumentation'> 3EEPC204-Measurement and Instrumentation<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='2' value='3EEHS206-Universal Human Values'> 3EEHS206-Universal Human Values<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='2' value='3EEHS207-India Constitution'> 3EEHS207-India Constitution<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='2' value='3EEHS208-Modern Indian Language'> 3EEHS208-Modern Indian Language<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='2' value='3EEVS205-Python Programming'> 3EEVS205-Python Programming<\/label><br><h3>5th Semester (TY) (Select exactly 4)<\/h3><label><input type='checkbox' class='fcf-checkbox' data-section='3' value='2EEPC301-Feedback Control Systems'> 2EEPC301-Feedback Control Systems<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='3' value='2EEPC302-AC Machines'> 2EEPC302-AC Machines<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='3' value='2EEPC303-Power System Analysis'> 2EEPC303-Power System Analysis<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='3' value='2EEEV304-Energy Storage Systems for Electric Vehicles'> 2EEEV304-Energy Storage Systems for Electric Vehicles<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='3' value='2EEHS306-Entrepreneurship'> 2EEHS306-Entrepreneurship<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='3' value='2EEVS307-CAD for Electrical Machine Design'> 2EEVS307-CAD for Electrical Machine Design<\/label><br><h3>7th Semester (B.Tech) (Select exactly 4)<\/h3><label><input type='checkbox' class='fcf-checkbox' data-section='4' value='2EEPC401-Electrical Drives'> 2EEPC401-Electrical Drives<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='4' value='2EEEV402-Plug-in Electric Vehicles in smart grid'> 2EEEV402-Plug-in Electric Vehicles in smart grid<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='4' value='2EEPE404-Utilization and Conservation of Electrical Energy'> 2EEPE404-Utilization and Conservation of Electrical Energy<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='4' value='2EEPE405-Special Electrical Machines'> 2EEPE405-Special Electrical Machines<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='4' value='2EEPE406-Smart Grid'> 2EEPE406-Smart Grid<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='4' value='2EEPE407-Battery Management System'> 2EEPE407-Battery Management System<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='4' value='2EEPC408-Industrial Automation & SCADA'> 2EEPC408-Industrial Automation & SCADA<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='4' value='2EEHS409-Project Management and Finance'> 2EEHS409-Project Management and Finance<\/label><br><label><input type='checkbox' class='fcf-checkbox' data-section='4' value='2EEVS411-Renewable Energy Systems Simulation Lab'> 2EEVS411-Renewable Energy Systems Simulation Lab<\/label><br>\r\n        <h3>Selected Courses (Drag to reorder)<\/h3>\r\n        <ul id=\"selected-courses\" style=\"border:1px solid #ccc; padding:10px; min-height:50px;\"><\/ul>\r\n\r\n        <input type=\"hidden\" name=\"ordered_courses\" id=\"ordered_courses\">\r\n\r\n        <br>\r\n        <button type=\"submit\">Submit<\/button>\r\n    <\/form>\r\n    <\/div>\r\n    <script src=\"https:\/\/code.jquery.com\/jquery-3.6.0.min.js\"><\/script>\r\n    <script src=\"https:\/\/code.jquery.com\/ui\/1.13.2\/jquery-ui.min.js\"><\/script>\r\n\r\n    <script>\r\n    jQuery(function($){\r\n\r\n        function updateList() {\r\n            let list = $(\"#selected-courses\");\r\n            list.empty();\r\n\r\n            $(\".fcf-checkbox:checked\").each(function(){\r\n                list.append(\"<li style='cursor:move;'>\"+$(this).val()+\"<\/li>\");\r\n            });\r\n\r\n            list.sortable({\r\n                update: updateHidden\r\n            });\r\n\r\n            updateHidden();\r\n        }\r\n\r\n        function updateHidden(){\r\n            let arr = [];\r\n            $(\"#selected-courses li\").each(function(){\r\n                arr.push($(this).text());\r\n            });\r\n            $(\"#ordered_courses\").val(arr.join(\"|\"));\r\n        }\r\n\r\n        $(document).on(\"change\", \".fcf-checkbox\", function(){\r\n\r\n            let section = $(this).data(\"section\");\r\n            let checked = $(\".fcf-checkbox[data-section='\"+section+\"']:checked\");\r\n\r\n            if(checked.length > 4){\r\n                alert(\"Only 4 courses allowed per section\");\r\n                $(this).prop(\"checked\", false);\r\n                return;\r\n            }\r\n\r\n            updateList();\r\n        });\r\n\r\n        $(\"#fcf-form\").submit(function(e){\r\n            e.preventDefault();\r\n\r\n            let total = $(\".fcf-checkbox:checked\").length;\r\n\r\n            if(total !== 16){\r\n                alert(\"You must select exactly 16 courses (4 from each section)\");\r\n                return;\r\n            }\r\n\r\n            updateHidden();\r\n\r\n            $.post(\"https:\/\/adcet.net\/wp-admin\/admin-ajax.php\", {\r\n                action: \"fcf_submit\",\r\n                faculty_name: $(\"input[name='faculty_name']\").val(),\r\n                faculty_id: $(\"input[name='faculty_id']\").val(),\r\n                ordered_courses: $(\"#ordered_courses\").val()\r\n            }, function(response){\r\n                alert(\"Form submitted and saved successfully!\");\r\n                $(\"#fcf-form\")[0].reset();\r\n                $(\"#selected-courses\").empty();\r\n            });\r\n        });\r\n\r\n    });\r\n    <\/script>\r\n\r\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-74","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/adcet.net\/index.php?rest_route=\/wp\/v2\/pages\/74","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adcet.net\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/adcet.net\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/adcet.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/adcet.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=74"}],"version-history":[{"count":3,"href":"https:\/\/adcet.net\/index.php?rest_route=\/wp\/v2\/pages\/74\/revisions"}],"predecessor-version":[{"id":80,"href":"https:\/\/adcet.net\/index.php?rest_route=\/wp\/v2\/pages\/74\/revisions\/80"}],"wp:attachment":[{"href":"https:\/\/adcet.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}