コード例 #1
0
ファイル: manageDepartments.php プロジェクト: dibg/E-Grade2
echo generateDropDownListWithFirstOption(null, "Select University First", 'selectedDepartmentId', 'selectedDepartmentChange');
echo generateDropDownListWithFirstOption(null, "Select Department First", 'selectedSecretaryId', 'selectedSecretaryChange');
?>
            <input type="text" name="secretaryUsername" placeholder="Secretary Username"><br>
            <input type="text" name="SecretaryPassword" placeholder="Secretary Password"><br>
            <input type="submit" name="submit" value="change">
        </form>
    </div>

    <div class="department" id="transfer">
        <h4>Transfer Department </h4>
        <form action="manageDepartmentsSubmit.php" method="post">
            <?php 
echo generateDropDownListWithFirstOption(getAllUniversitiesNames(), "Select University", 'selectedUniversity', 'selectedUniversityTransfer');
echo generateDropDownListWithFirstOption(null, "Select University First", 'selectedDepartmentId', 'selectedDepartmentTransferId');
echo generateDropDownListWithSpecifiedValueKey(getAllUniversities(), 'transferToSelectedUniversityId', 'transferToSelectedUniversityId', 'universityId', 'universityName');
?>
            <input type="submit" name="submit" value="transfer">
        </form>
    </div>

    <div class="department" id="remove">
        <h4>Remove Department </h4>
        <form action="manageDepartmentsSubmit.php" method="post">
            <?php 
echo generateDropDownListWithFirstOption(getAllUniversitiesNames(), "Select University", 'selectedUniversity', 'selectedUniversityDelete');
echo generateDropDownListWithFirstOption(null, "Select University First", 'selectedDepartmentId', 'selectedDepartmentDelete');
?>
            <input type="submit" name="submit" class="warningButton" value="remove">
        </form>
    </div>
コード例 #2
0
ファイル: manageProfessors.php プロジェクト: dibg/E-Grade2
    ?>
            <input type="submit" name="submit" value="transfer">
        </form>
        <?php 
}
?>
    </div>

    <div class="professor" id="remove">
        <h4>Remove Professor</h4>
        <form action="manageProfessorsSubmit.php" method="post">
            <?php 
if (isLoginAsAdmin()) {
    echo generateDropDownListWithFirstOption(getAllUniversitiesNames(), "Select University", 'selectedUniversity', 'selectedUniversityRemove');
    echo generateDropDownListWithFirstOption(null, "Select University First", 'selectedDepartmentId', 'selectedDepartmentRemove');
    echo generateDropDownListWithFirstOption(null, "Select Department First", 'selectedProfessorId', 'selectedProfessorRemove');
} else {
    if (isLoginAsSecretary()) {
        $departmentId = $_SESSION["departmentId"];
        echo "<input type='hidden' name='selectedDepartmentId' value='{$departmentId}'>";
        echo generateDropDownListWithSpecifiedValueKey(getProfessors($departmentId), 'selectedProfessorId', 'selectedProfessorRemove', 'professorId', 'professorUsername');
    }
}
?>
            <input type="submit" name="submit" class="warningButton" value="remove">
        </form>
    </div>
    </div>

<?php 
include 'footer.php';
コード例 #3
0
ファイル: manageCourses.php プロジェクト: dibg/E-Grade2
                <input type="submit" name="submit" value="transfer">
            </form>
            <?php 
}
?>
    </div>

    <div class="course" id="remove">
        <h4>Remove Course</h4>
        <form action="manageCoursesSubmit.php" method="post">
            <?php 
if (isLoginAsAdmin()) {
    echo generateDropDownListWithFirstOption(getAllUniversitiesNames(), "Select University", 'selectedUniversity', 'selectedUniversityRemove');
    echo generateDropDownListWithFirstOption(null, "Select University First", 'selectedDepartmentId', 'selectedDepartmentRemove');
    echo generateDropDownListWithFirstOption(null, "Select Department First", 'selectedCourseId', 'selectedCourseRemove');
} else {
    if (isLoginAsSecretary()) {
        $departmentId = $_SESSION["departmentId"];
        echo "<input type='hidden' name='selectedDepartmentId' value='{$departmentId}'>";
        echo generateDropDownListWithSpecifiedValueKey(getCourses($departmentId), 'selectedCourseId', 'selectedCourseRemove', 'courseId', 'courseName');
    }
}
?>
            <input type="submit" name="submit" class="warningButton" value="remove">
        </form>
    </div>

</div>

<?php 
include 'footer.php';
コード例 #4
0
ファイル: manageStudents.php プロジェクト: dibg/E-Grade2
    ?>
                <input type="submit" name="submit" value="transfer">
            </form>
            <?php 
}
?>
    </div>

    <div class="student" id="remove">
        <h4>Remove Student</h4>
        <form action="manageStudentsSubmit.php" method="post">
            <?php 
if (isLoginAsAdmin()) {
    echo generateDropDownListWithFirstOption(getAllUniversitiesNames(), "Select University", 'selectedUniversity', 'selectedUniversityRemove');
    echo generateDropDownListWithFirstOption(null, "Select University First", 'selectedDepartmentId', 'selectedDepartmentRemove');
    echo generateDropDownListWithFirstOption(null, "Select Department First", 'selectedStudentId', 'selectedStudentRemove');
} else {
    if (isLoginAsSecretary()) {
        $departmentId = $_SESSION["departmentId"];
        echo "<input type='hidden' name='selectedDepartmentId' value='{$departmentId}'>";
        echo generateDropDownListWithSpecifiedValueKey(getStudents($departmentId), 'selectedStudentId', 'selectedStudentRemove', 'studentId', 'studentUsername');
    }
}
?>
            <input type="submit" name="submit" class="warningButton" value="remove">
        </form>
    </div>
</div>

<?php 
include 'footer.php';
コード例 #5
0
ファイル: manageClasses.php プロジェクト: dibg/E-Grade2
}
?>
            <input type="text" name="className" placeholder="Class Name"><br>
            <input type="submit" name="submit" value="rename">
        </form>
    </div>


    <div class="class" id="remove">
        <h4>Remove Class</h4>
        <form action="manageClassesSubmit.php" method="post">
            <?php 
if (isLoginAsAdmin()) {
    echo generateDropDownListWithFirstOption(getAllUniversitiesNames(), "Select University", 'selectedUniversity', 'selectedUniversityRemove');
    echo generateDropDownListWithFirstOption(null, "Select University First", 'selectedDepartmentId', 'selectedDepartmentRemove');
    echo generateDropDownListWithFirstOption(null, "Select Department First", 'selectedClassId', 'selectedClassRemove');
} else {
    if (isLoginAsSecretary()) {
        $departmentId = $_SESSION["departmentId"];
        echo "<input type='hidden' name='selectedDepartmentId' value='{$departmentId}'>";
        echo generateDropDownListWithSpecifiedValueKey(getClasses($departmentId), 'selectedClassId', 'selectedClassRemove', 'classId', 'className');
    }
}
?>
            <input type="submit" name="submit" class="warningButton" value="remove">
        </form>
    </div>
</div>

<?php 
include 'footer.php';