class_management_system

Senior Project - Spring 2019
Log | Files | Refs | README

commit 4f6720e7b62f7169ca8b066856b5fd9b47d182be
parent 0a2c7378d3e50e1acd550c1670e1648ec7258c0e
Author: Alexander Kulpin <alexanderkulpin@rocketmail.com>
Date:   Thu,  4 Apr 2019 01:30:25 -0400

HTML filled in information

All information regarding proposals filled in

Diffstat:
MWork_History_Log.txt | 5+++--
Msrc/html/index.html | 868++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
Msrc/python/main.py | 192+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------
3 files changed, 1032 insertions(+), 33 deletions(-)

diff --git a/Work_History_Log.txt b/Work_History_Log.txt @@ -19,4 +19,5 @@ 2-28-19: John Kubach: Push initial document archive script. 3-02-19: Alaina Smith: Layout ideas for Upload, Assemble, and Status pages uploaded. 3-14-19: Alaina Smith: Version 2 of Upload, Download, and Status pages uploaded. -4-02-19: Alex Kulpin: Initial HTML design for the front end -\ No newline at end of file +4-02-19: Alex Kulpin: Initial HTML design for the front end +4-04-19: Alex Kulpin: HTML front end proposal information +\ No newline at end of file diff --git a/src/html/index.html b/src/html/index.html @@ -72,6 +72,12 @@ h3 margin-left: auto; margin-right: auto; } +h4 +{ + color: #57150B; + margin-left: auto; + margin-right: auto; +} .tablink { @@ -97,7 +103,7 @@ h3 color: #57150B; display: none; padding: 20px 20px; - height: 100%; + height: auto; } #Home {background-color: white;} @@ -121,13 +127,799 @@ h3 <img src="Rowan_University_seal.svg.png" alt="Rowan University"> <h1>Rowan Curricular Proposal Management System</h1> </center> + + <h4>Sponsor: + <input type="text" name="cosponsor"><br> + </h4> + + <h4>Sponsor's Email Address: + <input type="text" name="cosponsor_email"><br> + </h4> + + <h4>Co-Sponsor: + <input type="text" name="cosponsor"><br> + </h4> + + <h4>Co-Sponsor's Email Address: + <input type="text" name="cosponsor_email"><br> + </h4> + + <h4>Effective Term Year: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="202040">202040 FALL 2020</option> + <option value="202020">202020 SPRING 2020</option> + <option value="201940">201940 FALL 2019</option> + <option value="201920">201920 SPRING 2019</option> + </select> + </h4> + + <h4>Proposing School/College: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="school_buisness">College of Buisness</option> + <option value="school_art">College of Com. & Creative Art</option> + <option value="school_education">College of Education</option> + <option value="school_engineering">College of Engineering</option> + <option value="school_humanity">College of Hum. & Soc. Sci.</option> + <option value="school_performing">College of Performing Arts</option> + <option value="school_math">College of Sci & Math</option> + <option value="school_honors">Honors College</option> + <option value="school_environment">School of Earth & Environment</option> + <option value="school_health">School of Health Professions</option> + </select> + </h4> + + <h4>Proposing Department: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="department_1">Accounting & Finance</option> + <option value="department_2">Art</option> + <option value="department_3">Biology</option> + <option value="department_4">Biomedical Engineering</option> + <option value="department_5">Chemical Engineering</option> + <option value="department_6">Chemistry & Biochemistry</option> + <option value="department_7">Civil & Environmental Eng.</option> + <option value="department_8">Communication Studies</option> + <option value="department_9">Computer Science</option> + <option value="department_10">Ed Services & Leadership</option> + <option value="department_11">Electrical & Computer Engin</option> + <option value="department_12">English</option> + <option value="department_13">Environmental Science</option> + <option value="department_14">Experiential Engineering Education</option> + <option value="department_15">Geography Pling & Sustainablty</option> + <option value="department_16">Geology</option> + <option value="department_17">Health & Exercise Science</option> + <option value="department_18">History</option> + <option value="department_19">Honors</option> + <option value="department_20">Interdiscipl. & Inclusive Edu</option> + <option value="department_21">Journalism</option> + <option value="department_22">Lang Lit & Sociocultural Edu</option> + <option value="department_23">Law/ Justice</option> + <option value="department_24">Management & Entrepreneurship</option> + <option value="department_25">Marketing & Buisness Info Sys</option> + <option value="department_26">Mathematics</option> + <option value="department_27">Mechanical Engineering</option> + <option value="department_28">Molecular & Cellular Biosci</option> + <option value="department_29">Music</option> + <option value="department_30">Nursing</option> + <option value="department_31">Philosophy-Religion</option> + <option value="department_32">Physics & Astronomy</option> + <option value="department_33">Political Science & Economics</option> + <option value="department_34">Psychology</option> + <option value="department_35">Public Relations-Advertising</option> + <option value="department_36">Radio/TV/Film</option> + <option value="department_37">Sci Tech Eng Art & Math = STEAM</option> + <option value="department_38">Sociology & Anthropology</option> + <option value="department_39">Theatre-Dance</option> + <option value="department_40">World Languages</option> + <option value="department_41">Writing Arts</option> + </select> + </h4> + + <h4>Curriculum Change Proposal Type: + <select onchange="fieldappear(this);"> + <option disabled selected value> -- select an option -- </option> + <option value="form_A">New Course</option> + <option value="form_B">Change to Existing Course</option> + <option value="form_C">New Degree/ Program</option> + <option value="form_D">Change to Existing Degree/ Program</option> + <option value="form_E">Accelerated Undergrad/ Grad Dual Degree Program</option> + <option value="form_F">Quasi Cerricular Proposal</option> + </select> + </h4> + + <a id="fadeableA" style="display: none;"> + + <br> + <h2>Course Information</h2> + + <h4>Course Subject: + <input type="text" name="course_subject"><br> + </h4> + + <h4>Credit Type: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="ct_fixed">Fixed</option> + <option value="ct_variable">Variable</option> + </select> + </h4> + + <h4>Grade Mode: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="gm_satisfactory">Satisfactory/Unsatisfactory</option> + <option value="gm_pass">Pass/No Credit</option> + <option value="gm_regular">Regular (A,B,C,etc.)</option> + </select> + </h4> + + <h4>Additional grade mode option/ include explenation: + <input type="text" name="additional_grade_mode"><br> + </h4> + + <h4>Course Number: + <input type="text" name="course_number"><br> + </h4> + + <h4>Student Credits: + <input type="text" name="student_credits"><br> + </h4> + + <h4>Faculty Credits: + <input type="text" name="faculty_credits"><br> + </h4> + + <h4>Course Title: + <input type="text" name="course_title"><br> + </h4> + + <h4>If student and faculty credits do not match please provide an explanation: + <input type="text" name="credit_explanation"><br> + </h4> + + <h4>Prerequisites (Include prefix(es) and title(s) unless there are none, then state NONE): + <input type="text" name="prerequisite"><br> + </h4> + + <h4>Co-Requisite(s): + <input type="text" name="corequisite"><br> + </h4> + + <h4> + <input type="checkbox" name="check1" value="rowan_core">Rowan Core<br> + </h4> + + <h4> + <input type="checkbox" name="check2" value="writing_intensive">Writing Intensive<br> + </h4> + + <h4>Course Description: + <input type="text" name="course_description"><br> + </h4> + + <h4> + <input type="checkbox" name="check3" value="writing_intensive">Could this be offered online or by Rowan Global now or in the future?<br> + </h4> + + <h4>Course Rationale: + <input type="text" name="course_rationale"><br> + </h4> + + <br> + <h2>Curricular Effect</h2> + + <h4>Elective/Required: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="elective">Elective</option> + <option value="required">Required</option> + </select> + </h4> + + <h4>Course Effect for Students: + <input type="text" name="course_effect_s"><br> + </h4> + + <h4>Course Effect on Other Courses: + <input type="text" name="course_effect_oc"><br> + </h4> + + <h4>Course Effect on Other Programs, Departments or Colleges: + <input type="text" name="course_effect_opdc"><br> + </h4> + + <br> + <h2>Essence of the Course</h2> + + <h4>Topical Outline/Content: + <input type="text" name="topical_oc"><br> + </h4> + + <h4>Evaluation of Students and Grading Procedure: + <input type="text" name="eosagp"><br> + </h4> + + <h4>Course Evaluation and Assessment: + <input type="text" name="ceaa"><br> + </h4> + + <br> + <h2>Resource Requirements</h2> + + <h4>Equipment Space Technology: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="est_sufficient">Current Resources are Sufficient</option> + <option value="est_needed">Additional Resources are Needed</option> + </select> + </h4> + + <h4>Staffing Resources: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="sr_sufficient">Current Resources are Sufficient</option> + <option value="sr_needed">Additional Resources are Needed</option> + </select> + </h4> + + <h4>Library Resources: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="lr_sufficient">Current Resources are Sufficient</option> + <option value="lr_needed">Additional Resources are Needed</option> + </select> + </h4> + + <br> + <h2>Results of Consultation</h2> + + <h4>Consultations Required: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="consultations_yes">Yes</option> + <option value="consultations_no">No</option> + </select> + </h4> + + <br> + <h2>Documents</h2> + <h3>-Program Guide (Required)</h3> + <h3>-Library Resource Form (Required)</h3> + <h3>-Assessment (Required)</h3> + <h3>-Consultation Letters</h3> + <h3>-Additional Supporting Documentation</h3> + </a> + + <a id="fadeableB" style="display: none;"> + + <br> + <h2>Course Information</h2> + + <h4>Course Subject: + <input type="text" name="course_subject"><br> + </h4> + + <h4>Course Number: + <input type="text" name="course_number"><br> + </h4> + + <h4>Course Title: + <input type="text" name="course_title"><br> + </h4> + + <br> + <h2>Curricular Effect</h2> + + <h4>Elective/Required: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="elective">Elective</option> + <option value="required">Required</option> + </select> + </h4> + + <h4>Course Effect for Students: + <input type="text" name="course_effect_s"><br> + </h4> + + <h4>Course Effect on Other Courses: + <input type="text" name="course_effect_oc"><br> + </h4> + + <h4>Course Effect on Other Programs, Departments or Colleges: + <input type="text" name="course_effect_opdc"><br> + </h4> + + <br> + <h2>Changes</h2> + + <h2>INSERT ADDING NEW COURSE CHANGE BOX WITH A FROM, TO, and EXPLENATION WHY</h2> + + <br> + <h2>Results of Consultations</h2> + + <h4>Consultations Required: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="consultations_yes">Yes</option> + <option value="consultations_no">No</option> + </select> + </h4> + + <br> + <h2>Documents</h2> + <h3>-Program Guide (Required)</h3> + <h3>-Library Resource Form</h3> + <h3>-Consultation Letters</h3> + <h3>-Additional Supporting Documentation</h3> + </a> + + <a id="fadeableC" style="display: none;"> + + <br> + <h2>Degree Program Information</h2> + + <h4>Degree Program Credentials: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="dpc_ba">B.A.</option> + <option value="dpc_bfa">B.F.A.</option> + <option value="dpc_bgs">B.G.S.</option> + <option value="dpc_bm">B.M.</option> + <option value="dpc_bs">B.S.</option> + <option value="dpc_bsn">B.S.N.</option> + <option value="dpc_cags">CAGS</option> + <option value="dpc_certif">Certif</option> + <option value="dpc_cogs">COGS</option> + <option value="dpc_cugs">CUGS</option> + <option value="dpc_edd">Ed.D.</option> + <option value="dpc_eds">Ed.S.</option> + <option value="dpc_gradcert">Grad. Cert.</option> + <option value="dpc_ma">M.A.</option> + <option value="dpc_mba">M.B.A.</option> + <option value="dpc_mem">M.E.M.</option> + <option value="dpc_med">M.Ed.</option> + <option value="dpc_mm">M.M.</option> + <option value="dpc_ms">M.S.</option> + <option value="dpc_msn">M.S.N.</option> + <option value="dpc_mst">M.S.T.</option> + <option value="dpc_phd">Ph.D.</option> + <option value="dpc_phdma">Ph.D. (including M.A.)</option> + <option value="dpc_phdms">Ph.D. (including M.S.)</option> + <option value="dpc_minor">Minor</option> + <option value="dpc_concentration">Concentration</option> + <option value="dpc_postbacc">Post-Bacc</option> + </select> + </h4> + + <h4>Degree Program Name: + <input type="text" name="degree_program_name"><br> + </h4> + + <h4>Date of BOT Academic Subcommittee Approval: + <input type="text" name="degree_program_name"><br> + </h4> + + <h4> + <input type="checkbox" name="check3" value="writing_intensive">Could this be offered online or by Rowan Global now or in the future?<br> + </h4> + + <h4>CIP Code Number: + <input type="text" name="cip_code_number"><br> + </h4> + + <h4>CIP Title: + <input type="text" name="cip_title"><br> + </h4> + + <h4>Scope and Size of Program: + <input type="text" name="saso_program"><br> + </h4> + + <h4>Related Curriculum Proposals Being Submitted Simultaneously: + <input type="text" name="rcpbss"><br> + </h4> + + <br> + <h2>Requirements for Admission & Graduation</h2> + + <h4>Admission: + <input type="text" name="admission"><br> + </h4> + + <h4>Graduation: + <input type="text" name="graduation"><br> + </h4> + + <h4>Student Status: + <input type="text" name="student_status"><br> + </h4> + + <br> + <h2>Rationale</h2> + + <h4>General Merit of Proposal: + <input type="text" name="merit_of_proposal"><br> + </h4> + + <h4>Relationship to Existing Programs of Offerings: + <input type="text" name="rtepoo"><br> + </h4> + + <br> + <h2>Program Description</h2> + + <h4>Administration: + <input type="text" name="administration"><br> + </h4> + + <h4>Program Evauation: + <input type="text" name="program_evaluation"><br> + </h4> + + <br> + <h2>Resource Requirements</h2> + + <h4>Equipment Space Technology: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="est_sufficient">Current Resources are Sufficient</option> + <option value="est_needed">Additional Resources are Needed</option> + </select> + </h4> + + <h4>Staffing Resources: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="sr_sufficient">Current Resources are Sufficient</option> + <option value="sr_needed">Additional Resources are Needed</option> + </select> + </h4> + + <h4>Library Resources: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="lr_sufficient">Current Resources are Sufficient</option> + <option value="lr_needed">Additional Resources are Needed</option> + </select> + </h4> + + <br> + <h2>Results of Consultations</h2> + + <h4>Consultations Requested: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="consultations_yes">Yes</option> + <option value="consultations_no">No</option> + </select> + </h4> + + <br> + <h2>Documents</h2> + <h3>-Program Guide (Required)</h3> + <h3>-Library Resource Form (Required)</h3> + <h3>-Assessment (Required)</h3> + <h3>-Consultation Letters</h3> + <h3>-Additional Supporting Documentation</h3> + </a> + + <a id="fadeableD" style="display: none;"> + + <br> + <h2>Degree Program Information</h2> + + <h4>Degree Program Credentials: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="dpc_ba">B.A.</option> + <option value="dpc_bfa">B.F.A.</option> + <option value="dpc_bgs">B.G.S.</option> + <option value="dpc_bm">B.M.</option> + <option value="dpc_bs">B.S.</option> + <option value="dpc_bsn">B.S.N.</option> + <option value="dpc_cags">CAGS</option> + <option value="dpc_certif">Certif</option> + <option value="dpc_cogs">COGS</option> + <option value="dpc_cugs">CUGS</option> + <option value="dpc_edd">Ed.D.</option> + <option value="dpc_eds">Ed.S.</option> + <option value="dpc_gradcert">Grad. Cert.</option> + <option value="dpc_ma">M.A.</option> + <option value="dpc_mba">M.B.A.</option> + <option value="dpc_mem">M.E.M.</option> + <option value="dpc_med">M.Ed.</option> + <option value="dpc_mm">M.M.</option> + <option value="dpc_ms">M.S.</option> + <option value="dpc_msn">M.S.N.</option> + <option value="dpc_mst">M.S.T.</option> + <option value="dpc_phd">Ph.D.</option> + <option value="dpc_phdma">Ph.D. (including M.A.)</option> + <option value="dpc_phdms">Ph.D. (including M.S.)</option> + <option value="dpc_minor">Minor</option> + <option value="dpc_concentration">Concentration</option> + <option value="dpc_postbacc">Post-Bacc</option> + </select> + </h4> + + <h4>Degree Program Name: + <input type="text" name="degree_program_name"><br> + </h4> + + <h4>Related Curriculum Proposals Being Submitted Simultaneously: + <input type="text" name="degree_program_name"><br> + </h4> + + <h4>Four or more changes: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="four_changes_yes">Yes</option> + <option value="four_chanes_no">No</option> + </select> + </h4> + + <br> + <h2>Degree Program Changes</h2> + + <h4>INSERT ADDING NEW COURSE CHANGE BOX WITH A FROM, TO, and EXPLENATION WHY</h4> + + <br> + <h2>Results of Consultations</h2> + + <h4>Consultations Requested: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="consultations_yes">Yes</option> + <option value="consultations_no">No</option> + </select> + </h4> + + <br> + <h2>Documents</h2> + <h3>-Program Guide (Required)</h3> + <h3>-Consultation Letters</h3> + <h3>-Additional Supporting Documentation</h3> + </a> + + <a id="fadeableE" style="display: none;"> + + <br> + <h2>Degree Program Information</h2> + + <h4>Undergraduate Degree Program Credential: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="dpc_ba">B.A.</option> + <option value="dpc_bfa">B.F.A.</option> + <option value="dpc_bgs">B.G.S.</option> + <option value="dpc_bm">B.M.</option> + <option value="dpc_bs">B.S.</option> + <option value="dpc_bsn">B.S.N.</option> + <option value="dpc_cags">CAGS</option> + <option value="dpc_certif">Certif</option> + <option value="dpc_cogs">COGS</option> + <option value="dpc_cugs">CUGS</option> + <option value="dpc_edd">Ed.D.</option> + <option value="dpc_eds">Ed.S.</option> + <option value="dpc_gradcert">Grad. Cert.</option> + <option value="dpc_ma">M.A.</option> + <option value="dpc_mba">M.B.A.</option> + <option value="dpc_mem">M.E.M.</option> + <option value="dpc_med">M.Ed.</option> + <option value="dpc_mm">M.M.</option> + <option value="dpc_ms">M.S.</option> + <option value="dpc_msn">M.S.N.</option> + <option value="dpc_mst">M.S.T.</option> + <option value="dpc_phd">Ph.D.</option> + <option value="dpc_phdma">Ph.D. (including M.A.)</option> + <option value="dpc_phdms">Ph.D. (including M.S.)</option> + <option value="dpc_minor">Minor</option> + <option value="dpc_concentration">Concentration</option> + <option value="dpc_postbacc">Post-Bacc</option> + </select> + </h4> + + <h4>Undergraduate Degree Program Name: + <input type="text" name="udpn"><br> + </h4> + + <h4>Graduate Degree Program Credential: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="dpc_ba">B.A.</option> + <option value="dpc_bfa">B.F.A.</option> + <option value="dpc_bgs">B.G.S.</option> + <option value="dpc_bm">B.M.</option> + <option value="dpc_bs">B.S.</option> + <option value="dpc_bsn">B.S.N.</option> + <option value="dpc_cags">CAGS</option> + <option value="dpc_certif">Certif</option> + <option value="dpc_cogs">COGS</option> + <option value="dpc_cugs">CUGS</option> + <option value="dpc_edd">Ed.D.</option> + <option value="dpc_eds">Ed.S.</option> + <option value="dpc_gradcert">Grad. Cert.</option> + <option value="dpc_ma">M.A.</option> + <option value="dpc_mba">M.B.A.</option> + <option value="dpc_mem">M.E.M.</option> + <option value="dpc_med">M.Ed.</option> + <option value="dpc_mm">M.M.</option> + <option value="dpc_ms">M.S.</option> + <option value="dpc_msn">M.S.N.</option> + <option value="dpc_mst">M.S.T.</option> + <option value="dpc_phd">Ph.D.</option> + <option value="dpc_phdma">Ph.D. (including M.A.)</option> + <option value="dpc_phdms">Ph.D. (including M.S.)</option> + <option value="dpc_minor">Minor</option> + <option value="dpc_concentration">Concentration</option> + <option value="dpc_postbacc">Post-Bacc</option> + </select> + </h4> + + <h4>Graduate Degree Program Name: + <input type="text" name="gdpn"><br> + </h4> + + <h4>Undergraduate CIP Code Number: + <input type="text" name="ucip_code_number"><br> + </h4> + + <h4>Undergraduate CIP Title: + <input type="text" name="ucip_title"><br> + </h4> + + <h4>Graduate CIP Code Number: + <input type="text" name="gcip_code_number"><br> + </h4> + + <h4>Graduate CIP Title: + <input type="text" name="gcip_title"><br> + </h4> + + <h4>Scope and Size of Program: + <input type="text" name="size_of_program"><br> + </h4> + + <h4>Related Curriculum Proposals Being Submitted Simultaneously: + <input type="text" name="rcpbss"><br> + </h4> + + <br> + <h2>Requirements for Admission & Graduation</h2> + + <h4>Admission: + <input type="text" name="admission"><br> + </h4> + + <h4>Graduation: + <input type="text" name="graduation"><br> + </h4> + + <h4>Student Status: + <input type="text" name="student_status"><br> + </h4> + + <br> + <h2>Rationale</h2> + + <h4>General Merit of Proposal: + <input type="text" name="merit_of_proposal"><br> + </h4> + + <br> + <h2>Program Description</h2> + + <h4>Program Curriculum: + <input type="text" name="administration"><br> + </h4> + + <h4>Administration: + <input type="text" name="administration"><br> + </h4> + + <h4>Program Evauation: + <input type="text" name="program_evaluation"><br> + </h4> + + <br> + <h2>Resource Requirements</h2> + + <h4>Equipment Space Technology: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="est_sufficient">Current Resources are Sufficient</option> + <option value="est_needed">Additional Resources are Needed</option> + </select> + </h4> + + <h4>Staffing Resources: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="sr_sufficient">Current Resources are Sufficient</option> + <option value="sr_needed">Additional Resources are Needed</option> + </select> + </h4> + + <h4>Library Resources: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="lr_sufficient">Current Resources are Sufficient</option> + <option value="lr_needed">Additional Resources are Needed</option> + </select> + </h4> + + <br> + <h2>Results of Consultations</h2> + + <h4>Consultations Requested: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="consultations_yes">Yes</option> + <option value="consultations_no">No</option> + </select> + </h4> + + <br> + <h2>Documents</h2> + <h3>-Program Guide (Required)</h3> + <h3>-Consultation Letters</h3> + <h3>-Additional Supporting Documentation</h3> + </a> + + <a id="fadeableF" style="display: none;"> + + <br> + <h2>Quasi Curricular Proposal</h2> + + <h4>Quasi Curricular Reason: + <select> + <option disabled selected value> -- select an option -- </option> + <option value="qcr1">Change the name of an existing degree or degree-related + program (BA/BS, MA/MS, Ph.D. or minor, concentration or + any other type of certificate).</option> + <option value="qcr2">Dissolve or suspend an existing degree</option> + <option value="qcr3">Create or dissolve a department, school or college, or + other academic unit</option> + <option value="qcr4">Move a department from one college to another college or + academic unit</option> + <option value="qcr5">Change the name or structure of a department, school or + college, or academic unit</option> + <option value="qcr6">Change curriculum approval processes</option> + </select> + </h4> + + <br> + <h2>Rationale</h2> + + <h4>General Merit of Proposal: + <input type="text" name="merit_of_proposal"><br> + </h4> + + <br> + <h2>Curricular Effect</h2> + + <h4>Course Effect on Other Programs, Departments or Colleges: + <input type="text" name="course_effect_opdc"><br> + </h4> + + <br> + <h2>Documents</h2> + <h3>-Program Guide</h3> + <h3>-Library Resource Form</h3> + <h3>-Assessment</h3> + <h3>-Consultation Letters (Required)</h3> + <h3>-Additional Supporting Documentation</h3> + </a> + </div> <!––The Download page––> <div id="Download" class="tabcontent"> <center> <h1>Download Page</h1> - </center> + <h3>Proposal</h3> @@ -176,6 +968,8 @@ h3 <h1> <a href="#" class="button">Download</a> </h1> + + </center> </div> <!––The Upload page––> @@ -220,10 +1014,11 @@ h3 <h3>Comments</h3> <textarea name="comments" cols="100" rows="10"></textarea><br> </form> - + <center> <h1> <a href="#" class="button">Upload</a> </h1> + </center> </div> @@ -279,4 +1074,71 @@ function openPage(pageName, elmnt, color) document.getElementById("defaultOpen").click(); +function fieldappear(that) +{ + if (that.value == "form_A") + { + document.getElementById("fadeableA").style.display = "block"; + document.getElementById("fadeableB").style.display = "none"; + document.getElementById("fadeableC").style.display = "none"; + document.getElementById("fadeableD").style.display = "none"; + document.getElementById("fadeableE").style.display = "none"; + document.getElementById("fadeableF").style.display = "none"; + } + else if (that.value == "form_B") + { + document.getElementById("fadeableA").style.display = "none"; + document.getElementById("fadeableB").style.display = "block"; + document.getElementById("fadeableC").style.display = "none"; + document.getElementById("fadeableD").style.display = "none"; + document.getElementById("fadeableE").style.display = "none"; + document.getElementById("fadeableF").style.display = "none"; + } + else if (that.value == "form_C") + { + document.getElementById("fadeableA").style.display = "none"; + document.getElementById("fadeableB").style.display = "none"; + document.getElementById("fadeableC").style.display = "block"; + document.getElementById("fadeableD").style.display = "none"; + document.getElementById("fadeableE").style.display = "none"; + document.getElementById("fadeableF").style.display = "none"; + } + else if (that.value == "form_D") + { + document.getElementById("fadeableA").style.display = "none"; + document.getElementById("fadeableB").style.display = "none"; + document.getElementById("fadeableC").style.display = "none"; + document.getElementById("fadeableD").style.display = "block"; + document.getElementById("fadeableE").style.display = "none"; + document.getElementById("fadeableF").style.display = "none"; + } + else if (that.value == "form_E") + { + document.getElementById("fadeableA").style.display = "none"; + document.getElementById("fadeableB").style.display = "none"; + document.getElementById("fadeableC").style.display = "none"; + document.getElementById("fadeableD").style.display = "none"; + document.getElementById("fadeableE").style.display = "block"; + document.getElementById("fadeableF").style.display = "none"; + } + else if (that.value == "form_F") + { + document.getElementById("fadeableA").style.display = "none"; + document.getElementById("fadeableB").style.display = "none"; + document.getElementById("fadeableC").style.display = "none"; + document.getElementById("fadeableD").style.display = "none"; + document.getElementById("fadeableE").style.display = "none"; + document.getElementById("fadeableF").style.display = "block"; + } + else + { + document.getElementById("fadeableA").style.display = "none"; + document.getElementById("fadeableB").style.display = "none"; + document.getElementById("fadeableC").style.display = "none"; + document.getElementById("fadeableD").style.display = "none"; + document.getElementById("fadeableE").style.display = "none"; + document.getElementById("fadeableF").style.display = "none"; + } +} + </script> \ No newline at end of file diff --git a/src/python/main.py b/src/python/main.py @@ -1,25 +1,25 @@ import os import subprocess from flask import Flask, request, redirect, url_for, send_from_directory -from flaskext.mysql import MySQL +#from flaskext.mysql import MySQL from werkzeug import secure_filename -UPLOAD_FOLDER = '/tmp/upload' +UPLOAD_FOLDER = '/' ALLOWED_EXTENSIONS = set(['pdf', 'docx']) app = Flask(__name__) -mysql = MySQL() -app.config['MYSQL_DATABASE_USER'] = 'root' -app.config['MYSQL_DATABASE_PASSWORD'] = 'senior' -app.config['MYSQL_DATABASE_DB'] = 'curricular_management' -app.config['MYSQL_DATABASE_HOST'] = 'localhost' -mysql.init_app(app) +#mysql = MySQL() +#app.config['MYSQL_DATABASE_USER'] = 'root' +#app.config['MYSQL_DATABASE_PASSWORD'] = 'senior' +#app.config['MYSQL_DATABASE_DB'] = 'curricular_management' +#app.config['MYSQL_DATABASE_HOST'] = 'localhost' +#mysql.init_app(app) -conn = mysql.connect() -cursor =conn.cursor() +#conn = mysql.connect() +#cursor =conn.cursor() -cursor.execute("SELECT * from proposal") -data = cursor.fetchone() +#cursor.execute("SELECT * from proposal") +#data = cursor.fetchone() app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER @@ -38,14 +38,10 @@ def index(): if filename.endswith('.pdf'): uname = "Kubach" doctype = "-s" - cmd = "./archiver.sh -n " + uname + " -f " + filename + " " + doctype - subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) - cursor.execute("INSERT INTO assessement_form_revision (assessement_form_id, assessement_form_file_path, assessement_form_datetime) values (1, 'test', NOW())") - res = cursor.fetchall() - - for x in res: - print(x) - + #cmd = "./archiver.sh -n " + uname + " -f " + filename + " " + doctype + #subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) + #cursor.execute("INSERT INTO assessement_form_revision (assessement_form_id, assessement_form_file_path, assessement_form_datetime) values (1, 'test', NOW())") + #res = cursor.fetchall() if filename.endswith('.docx'): conv = "soffice --convert-to pdf /tmp/" + filename + " --outdir " + UPLOAD_FOLDER + " --headless" @@ -63,14 +59,154 @@ def index(): return redirect(url_for('index')) return """ - <!doctype html> - <title>Upload Cover Sheet</title> - <h1>Upload Cover Sheet</h1> - <form action="" method=post enctype=multipart/form-data> - <p><input type=file name=file> - <input type=submit value=Upload> - </form> - <p>%s</p> + <!DOCTYPE html> +<html> +<head></head> + +<body> + +<button class="tablink" onclick="openPage('Home', this, '#57150B')" id="defaultOpen">Home</button> +<button class="tablink" onclick="openPage('Upload', this, '#57150B')">Upload</button> +<button class="tablink" onclick="openPage('Download', this, '#57150B')">Download</button> +<button class="tablink" onclick="openPage('Status', this, '#57150B')">Status</button> + +<!––The Home page––> +<div id="Home" class="tabcontent"> + <center> + <h1>Rowan Curricular Proposal Management System</h1> + + <img src="Rowan_University_seal.svg.png" alt="Rowan University"> + </center> +</div> + +<!––The Download page––> +<div id="Download" class="tabcontent"> + <center> + <h1>Download Page</h1> + </center> + + <h3>Proposal</h3> + + <select> + <option value="p1">Proposal 1</option> + <option value="p2">Proposal 2</option> + <option value="p3">Proposal 3</option> + <option value="p4">Proposal 4</option> + </select> + + <h3>Cover Sheet</h3> + + <select> + <option value="v1">Version 1</option> + <option value="v2">Version 2</option> + </select> + + <h3>Library Form</h3> + + <select> + <option value="v1">Version 1</option> + <option value="v2">Version 2</option> + </select> + + <h3>Template</h3> + + <select> + <option value="v1">Version 1</option> + <option value="v2">Version 2</option> + </select> + + <h3>Supporting Documents</h3> + + <select> + <option value="v1">Version 1</option> + <option value="v2">Version 2</option> + </select> + + <h3>Program Guide</h3> + + <select> + <option value="v1">Version 1</option> + <option value="v2">Version 2</option> + </select> + + <h1> + <a href="#" class="button">Download</a> + </h1> +</div> + +<!––The Upload page––> +<div id="Upload" class="tabcontent"> + <center> + <h1>Upload Page</h1> + </center> + + <h3>Proposal</h3> + + <select> + <option value="p1">Proposal 1</option> + <option value="p2">Proposal 2</option> + <option value="p3">Proposal 3</option> + <option value="p4">Proposal 4</option> + </select> + + <form> + <h3>Document Name</h3> + <input type="text" name="document_name"><br> + </form> + + <h3>Document Type</h3> + + <select> + <option value="cover_sheet">Cover Sheet</option> + <option value="library_form">Library Form</option> + <option value="template">Template</option> + <option value="supporting_document">Supporting Document</option> + <option value="program_guide">Program Guide</option> + </select> + + <h3>Attach Files</h3> + + <form action="" method=post enctype=multipart/form-data> + <p> + <input type=file name=file> + <input type=submit value=Upload> + </p> + </form> + + <form> + <h3>Comments</h3> + <textarea name="comments" cols="100" rows="10"></textarea><br> + </form> +</div> + + +<!––The Status page––> +<div id="Status" class="tabcontent"> + <center> + <h1>Status Page</h1> + </center> + + <h3>Proposal</h3> + + <select> + <option value="p1">Proposal 1</option> + <option value="p2">Proposal 2</option> + <option value="p3">Proposal 3</option> + <option value="p4">Proposal 4</option> + </select> + + <h3>Cover Sheet</h3> + + <h3>Library Form</h3> + + <h3>Template</h3> + + <h3>Supporting Documents</h3> + + <h3>Program Guide</h3> +</div> +</body> + """ % "<br>".join(os.listdir(app.config['UPLOAD_FOLDER'],)) if __name__ == "__main__":