Esempio n. 1
0
 public function PrintParent2()
 {
     echo "PrintParent2: ";
     parent::GetName();
 }
Esempio n. 2
0
<?php

session_start();
require 'MainClass.php';
$main = new MainClass();
$action = $_POST['action'];
switch ($action) {
    case 'login':
        $main->login($_POST['user'], $_POST['password']);
        break;
        // Llamados a las funciones del módulo de editar
    // Llamados a las funciones del módulo de editar
    case 'data_edit':
        $main->data_edit();
        break;
    case 'edit':
        $main->edit($_POST["data"]);
        break;
    case 'get_info_quest':
        $main->get_info_quest($_POST["poll"], $_POST["quest"]);
        break;
    case 'get_quest':
        $main->get_quest($_POST['poll']);
        break;
        // LLamado a las funciones para guardar nuevas preguntas de una nueva encuesta
    // LLamado a las funciones para guardar nuevas preguntas de una nueva encuesta
    case 'save':
        $main->save($_POST["data"], $_SESSION["id"]);
        break;
    case 'check_poll':
        $main->check_poll($_POST["poll"]);
Esempio n. 3
0
<?php

session_start();
require 'resources/MainClass.php';
$main = new MainClass();
if ($main->destroy()) {
    Header('Location: index.php');
}
<?php

include "MainClass.class.php";
$object = new MainClass();
$subjectsArray = $object->getAllSubject();
?>

<!DOCTYPE html>
<html lang="en">
<head>
	<title>Tutor | Register</title>
	<link rel="favicon" href="assets/images/favicon.png">
	<link rel="stylesheet" media="screen" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700">
	<link rel="stylesheet" href="assets/css/bootstrap.min.css">
	<link rel="stylesheet" href="assets/css/font-awesome.min.css">
	<link rel="stylesheet" href="assets/css/bootstrap-theme.css" media="screen">
	<link rel="stylesheet" href="assets/css/style.css">
  </head>
<body>
	
<div class="navbar navbar-inverse">   
<div class="container"> 
  <nav class="navbar navbar-static-top" role="navigation">
           <div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>
				<a href="index.php" style="color:#3d84e6;text-decoration:none;"><h1>STEM</h1></a>
			</div>
            
            <div class="collapse navbar-collapse" id="navbar-collapse-1">
                <ul class="nav navbar-nav pull-right mainNav">
					<li><a href="index.php">Courses</a></li>
<?php

include 'MainClass.class.php';
$obj = new MainClass();
$megaContainer = $obj->getSubjects();
$userStatus = '';
$user = $_SESSION['tutor_id'];
if (isset($_SESSION['tutor_id'])) {
    $userStatus .= $obj->isScheduled($user);
}
$weekdays = array('Monday', 'tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="free-educational-responsive-web-template-webEdu">
	<meta name="author" content="webThemez.com">
	<title>Student|Tutor|Register</title>
	<link rel="favicon" href="assets/images/favicon.png">
	<link rel="stylesheet" media="screen" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700">
	<link rel="stylesheet" href="assets/css/bootstrap.min.css">
	<link rel="stylesheet" href="assets/css/font-awesome.min.css">
	<link rel="stylesheet" href="assets/css/bootstrap-theme.css" media="screen">
	<link rel="stylesheet" href="assets/css/style.css">
</head>

<body>

	<div class="navbar navbar-inverse">