Exemplo n.º 1
0
        <li><a href="#">Library</a></li>
        <li class="active">Data</li>
      </ol>
    </div>
    <div class="row row-offcanvas row-offcanvas-right">
      <div class="col-xs-12 col-sm-9 col-md-10 col-lg-10">
        <nav class="navbar navbar-default visible-xs">
          <div class="container">
            <button type="button" class="btn navbar-btn btn-primary"><span class="glyphicon glyphicon-chevron-left"></span> Go Back</button>
            <button type="button" class="btn navbar-btn btn-primary pull-right" data-toggle="offcanvas"><span class="glyphicon glyphicon-chevron-right"></span></button>
          </div>
        </nav>
        <div class="col-lg-12"><!--content-->
          <h2 class="sm-margin-top">Add course</h2><hr>
<?php 
AddCourse();
//function for adding course
UpdateCourse();
if (isset($_POST['delete'])) {
    $grade_id = $_GET['id'];
    $query = "DELETE FROM GRADES WHERE grade_id= {$grade_id}";
    query($query);
    ?>
    <div class="alert alert-success alert-dismissible fade in">
      <button type="button" class="close" data-dismiss="alert">×</button>
      <span class="glyphicon glyphicon-thumbs-up glyphicon-pad"></span> Course deleted.
    </div>
<?php 
}
?>
            <form action="/grade/edit/" method= "post" id="add_course">
Exemplo n.º 2
0
require_once 'mandrill/Mandrill.php';
if (isset($_GET["no"]) && $_GET["no"] == "1") {
    // for updating the profile data
    UpdateProfile($_GET["email"], $_GET["name"], $_GET["contact"], $_GET["profile"], $_GET["table"]);
} else {
    if (isset($_GET["no"]) && $_GET["no"] == "2") {
        // for loading the profile data
        LoadProfileData($_GET["email"], $_GET["table"]);
    } else {
        if (isset($_GET["no"]) && $_GET["no"] == "3") {
            // for getting a list of organisations in a drop down list.
            GetOrganisationsDropDown();
        } else {
            if (isset($_GET["no"]) && $_GET["no"] == "4") {
                // for adding the course into the database.
                AddCourse($_GET["name"], $_GET["duration"], $_GET["edition"], $_GET["desc"]);
            } else {
                if (isset($_GET["no"]) && $_GET["no"] == "5") {
                    // for adding the organisation/campus into the database.
                    AddOrganisation($_GET["name"], $_GET["contact"], $_GET["address"]);
                } else {
                    if (isset($_GET["no"]) && $_GET["no"] == "6") {
                        // for getting the courses as a drop down list
                        GetCoursesDropDown();
                    } else {
                        if (isset($_GET["no"]) && $_GET["no"] == "7") {
                            // for getting the calender image on the mentee page.
                            GetCalender($_GET["menteeEmail"]);
                        } else {
                            if (isset($_GET["no"]) && $_GET["no"] == "8") {
                                // for getting the latest assignment from of the course