Example #1
0
        $piazzolaA = 99;
    }
    $response['code'] = 1;
    $response['status'] = $api_response_code[$response['code']]['HTTP Response'];
    $response['data'] = getPiazzole($piazzolaDa, $piazzolaA);
}
// Method c: categorie
if (strcasecmp($apiMethod, 'categorie') == 0) {
    if (isset($_GET['cat'])) {
        $idCategoria = $_GET['cat'];
    } else {
        $idCategoria = null;
    }
    $response['code'] = 1;
    $response['status'] = $api_response_code[$response['code']]['HTTP Response'];
    $response['data'] = getCategorie($idCategoria);
}
// Method d: classi
if (strcasecmp($apiMethod, 'classi') == 0) {
    if (isset($_GET['cla'])) {
        $idClasse = $_GET['cla'];
    } else {
        $idClasse = null;
    }
    $response['code'] = 1;
    $response['status'] = $api_response_code[$response['code']]['HTTP Response'];
    $response['data'] = getClassi($idClasse);
}
// Method e: un podio per classe / categoria
if (strcasecmp($apiMethod, 'podio') == 0) {
    if (isset($_GET['cla'])) {
Example #2
0
if(isset($_POST)){
	include 'article-treat.php';
}*/
$myDB = connectDB();
//Vérification de la connexion
if ($_SESSION['user']['role'] != 1 && $_SESSION['user']['role'] != 2) {
    header('Location: ../index.php');
}
/*
//Edition article existant
if(isset($_GET['article'])){
	$article = editArticleById($_GET['article']);
}
*/
//Obtenir les catégories
$allCategorie = getCategorie();
//Nombre articles auteurs
$nbArticle = userArticlesCount($_SESSION['user']['id']);
//Obtenir articles auteur
$userArticle = getUserArticles($_SESSION['user']['id']);
var_dump($userArticle);
?>

<?php 
if ($userArticle) {
    ?>

<h1>Vos Articles (<?php 
    echo $nbArticle;
    ?>
)</h1>
<?php

require_once __DIR__ . "/../includes/init.php";
$pagename = "resultaten";
checkSession();
checkIfAdminIsLoggedOn();
if (isset($_POST['klasid'])) {
} else {
    header('Location: ' . BASE_URL . 'dashboard/resultatenklassen.php');
}
$klasid = $_POST['klasid'];
$klasinfo = getInfooneKlas($klasid);
$leerlingen = getStudentNamesfromoneKlas($klasid);
$categorieen = getCategorie();
include ROOT_PATH . "includes/templates/header.php";
?>
<div class="wrapper">
    <?php 
//als docent ingelogd is sidebar-docent anders sidebar-leerling
if (checkRole($_SESSION['gebruiker_id']) == 2) {
    include ROOT_PATH . "includes/templates/sidebar-docent.php";
} else {
    include ROOT_PATH . "includes/templates/sidebar-leerling.php";
}
?>
    <div class="page-wrapper">
        <div class="container-fluid">
            <div class="row">
                <div class="col-sm-8">
                    <div class="panel panel-default">
                        <div class="panel-heading">
<?php

require_once "/../includes/init.php";
$pagename = "resultaten";
checkSession();
checkIfAdmin();
$gebruiker_id = $_SESSION['gebruiker_id'];
$klassen = getmultipleKlasfromoneTeacher($gebruiker_id);
$aantalklassen = count($klassen);
$allecategorieen = getCategorie();
//echo "<pre>";
//var_dump($klassen);
//echo "</pre>";
?>
<!DOCTYPE html>
	<?php 
include ROOT_PATH . "includes/templates/header.php";
?>
		<div class="wrapper">
			<?php 
include ROOT_PATH . "includes/templates/sidebar-admin.php";
?>
			<div class="page-wrapper">
				<div class="container-fluid">
					<div class="row">
						<div class="col-sm-12">
							<div class="panel panel-default">
								<div class="panel-heading">
									<h3 class="panel-title">Resultaten</h3>
								</div>
								<div class="panel-body">
Example #5
0
	CONTENT="RevealTrans(Duration=1,Transition=12)">
<!--  <link href="stile.css" rel="stylesheet" type="text/css"> -->
<link href="css/aironi.css" rel="stylesheet" type="text/css">
<link href="css/classifica.css" rel="stylesheet" type="text/css">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>


<body id="bodyClassifica">
	<div class="divTitolo">
		<p class="DescClasseCategoria">Classifica: <?php 
echo getClassi($classe);
?>
 - <?php 
echo getCategorie($categoria);
?>
</p>
	</div>
	<div id="ClassificaSinistra" class="Classifica">



		<table class='theadClassifica'>
			<thead>
				<tr>
					<td class='headPOS'>POS</td>
					<td class='headNome'>Nome</td>
					<td class='headPunti'>Punti</td>
					<td class='headSpot'>Spot</td>
					<td class='headSuper'>Super</td>
Example #6
0
<?php

include "includes/header.php";
$allArticles = getAllArticles();
$categories = getCategorie();
?>

    <div class="container">

        <section>

            <div class="row">
                <div class="col-xs-12 col-md-12">

                    <h1>Tous les articles</h1>

                </div>
            </div>

			<div class="row">
			
				<div class="article_filter">

					<a href="#" data-filter="*" class="current">Tous</a>
					
					<?php 
foreach ($categories as $cat) {
    ?>
						<a href="#" data-filter=".<?php 
    echo $cat['nom'];
    ?>
Example #7
0
    <!-- / main header -->
    <div class="wrapper-md">
        <div class="row">
                <div class="col-sm-12">
                    <div class="panel panel-default">
                        <div class="table-responsive">
                            <table class="table table-bordered table-hover">
                                <tr>
                                    <td class="active"><b>Categorienummer</b></td>
                                    <td class="active"><b>Categorie</b></td>
                                    <td class="active"><b>Niveau</b></td>
                                    <td class="active"><b>Uitgebreide omschrijving</b></td>
                                    <td class="active"></td>
                                </tr>
                                <?php 
$categorieën = getCategorie();
$temporarilycategorieid = 0;
foreach ($categorieën as $categorie) {
    $temporarilycategorieid = $temporarilycategorieid + 1;
    ?>
                                    <tr>
                                        <td><?php 
    echo $temporarilycategorieid;
    ?>
</td>
                                        <td><?php 
    echo $categorie['categorieomschrijving'];
    ?>
</td>
                                        <td><?php 
    echo $categorie['niveau'];
            $result = getCategorie($get_id);
            if (!$categorie_titre) {
                if ($post_submit) {
                    if (!$categorie_titre) {
                        $msg .= "<p class='text-red'><i class='fa fa-long-arrow-right'></i> Titre obligatoire</p>";
                    }
                }
                $page = "admin_categories_update";
            } else {
                $update = updateCategorie($categorie_titre, $get_id);
                if ($update) {
                    $msg .= "<div class='box-body'><div class='alert alert-success alert-dismissable'><button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button><h4><i class='icon fa fa-check'></i> Alert!</h4>Catégorie modifiée avec succès.</div></div>\n";
                } else {
                    $msg .= "<div class='box-body'><div class='alert alert-danger alert-dismissable'><button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button><h4><i class='icon fa fa-ban'></i> Alert!</h4>Oupsss... problème lors de l'ajout d'une catégorie.</div></div>\n";
                }
                $result = getCategorie(0);
                $page = "admin_categories_liste";
            }
            break;
        case "delete":
            $delete = deleteCategorie($get_id);
            if ($delete) {
                $msg .= "<p><b class='fond_ok'><i class='fa fa-thumbs-o-up'></i> Suppression effectuée avec succès.</b></p>\n";
            } else {
                $msg .= "<p><b class='fond_pas_ok'><i class='fa fa-exclamation-triangle'></i> Oupsss... problème lors de la suppression....</b></p>\n";
            }
            $result = getCategorie(0);
            $page = "admin_categories_liste";
            break;
    }
}
Example #9
0
<?php

include 'config.php';
include 'funzioni.php';
if (isset($_GET['classe'])) {
    $classe = $_GET['classe'];
    $nomeClasse = getClassi($classe);
} else {
    $classe = $nomeClasse = "";
}
if (isset($_GET['categoria'])) {
    $categoria = $_GET['categoria'];
    $nomeCategoria = getCategorie($categoria);
} else {
    $categoria = $nomeCategoria = "";
}
// Create connection
$conn = new mysqli(AIRO_CONN_SERVERNAME, AIRO_CONN_USERNAME, AIRO_CONN_PASSWORD, AIRO_CONN_DBNAME);
// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT A.CATEGORIA, A.PUNTI, A.SPOT + A.SUPERSPOT as SPOT, A.SUPERSPOT as SUPER, concat(A.NOME, ' ' , A.cognome) as ISCRITTI , A.CLASSE, B.NomeFile FROM ISCRITTI A LEFT JOIN IMMAGINI B ON A.TESSERA = B.ID WHERE A.CLASSE= ? AND A.CATEGORIA = ? AND A.PUNTI is not null  ORDER BY A.PUNTI DESC, A.SPOT + A.SUPERSPOT DESC LIMIT 3;";
// echo $sql;
$stmt = $conn->prepare($sql);
$stmt->bind_param("ss", $classe, $categoria);
$stmt->execute();
$result = $stmt->get_result();
$numeroarcieri = $result->num_rows;
$anagrafica1 = "";
$punti1 = "";
Example #10
0
     if (sizeof($liste) != 0) {
         $_SESSION["employeRes"] = $liste->employe;
         $_SESSION["prestListe"] = $_POST['choix'];
         header('Location: dateReserv.php?nomEntreprise=' . $nomE);
     } else {
         $erreur = 2;
     }
 } else {
     if (!empty($_POST['choix'])) {
         foreach ($_POST['choix'] as $val) {
             if (!in_array($val, $_SESSION["prestListe"])) {
                 array_push($_SESSION["prestListe"], $val);
             }
         }
         foreach ($_SESSION["prestListe"] as $val) {
             $c = getCategorie($val);
             $categAncienne = "";
             if (isset($_POST['categAncienne'])) {
                 $categAncienne = $_POST['categAncienne'];
             }
             if ($c->categorie == $categAncienne) {
                 if (!in_array($val, $_POST['choix'])) {
                     unset($_SESSION["prestListe"][array_search($val, $_SESSION["prestListe"])]);
                 }
             }
         }
         $liste = employeOk($_SESSION["prestListe"]);
         if (sizeof($liste) != 0) {
             $_SESSION["employeRes"] = $liste->employe;
             header('Location: dateReserv.php?nomEntreprise=' . $nomE);
         } else {