Esempio n. 1
0
<?php

setlocale(LC_TIME, 'ita');
date_default_timezone_set('Europe/Rome');
include "./utils/class.utils.php";
include "./utils/class.seminar.php";
$s = new seminar();
$s->setSource("./json/seminari.json");
?>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Orario | Associazione Renbukai</title>
    <link rel="apple-touch-icon-precomposed" href="assets/favicon_t.png" />
    <link rel="shortcut icon" href="assets/favicon.png">
    <meta name="description" content="aikido scuola pesaro rimini renbukai jo bokken tanto arti marziali foglietta fujimoto osawa tada">
    <meta name="author" content="cbolk">
    <link rel="stylesheet" href="css/bootstrap.css">
    <link rel="stylesheet" media="screen" href="css/main.css" /> <!--Load CSS-->
</head>
<body id="orario">
  <div class="container">
        <div id="headernomobile" class="nomobile col-lg-12">
            <?php 
include './utils/head_banner.php';
?>
        </div>
        <div class="header clearfix">
            <div id="mmenu"><?php 
Esempio n. 2
0
<?php

setlocale(LC_TIME, 'ita');
date_default_timezone_set('Europe/Rome');
include "./utils/class.utils.php";
include "./utils/class.seminar.php";
$s = new seminar();
$s->setSource("./json/seminari.json");
$util = new utils();
$today = date('Y-m-d');
$year = $util->getStartAcademicYear($today);
?>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Seminari | Associazione Renbukai</title>
    <link rel="apple-touch-icon-precomposed" href="assets/favicon_t.png" />
    <link rel="shortcut icon" href="assets/favicon.png">
    <meta name="description" content="aikido scuola pesaro rimini renbukai jo bokken tanto arti marziali foglietta fujimoto osawa tada">
    <meta name="author" content="cbolk">
    <!-- bootstrap -->
    <!-- bootstrap -->
    <link rel="stylesheet" href="css/bootstrap.css">
    <link rel="stylesheet" media="screen" href="css/main.css" /> <!--Load CSS-->

</head>
<body id="seminari">
  <div class="container">
        <div id="headernomobile" class="nomobile col-lg-12">
Esempio n. 3
0
<?php

setlocale(LC_TIME, 'ita');
date_default_timezone_set('Europe/Rome');
include "./utils/class.utils.php";
include "./utils/class.seminar.php";
include "./utils/class.gallery.php";
function sort_by_date($a, $b)
{
    $dA = strtotime($a['data']);
    $dB = strtotime($b['data']);
    return $dB - $dA;
}
$util = new utils();
$s = new seminar();
$s->setSource("./json/seminari.json");
$semdata = $s->getNextNSeminars(2);
$string = file_get_contents("./json/photos.json");
$json_a = json_decode($string, true);
usort($json_a, 'sort_by_date');
$gallery = new gallery();
$data = $util->shortDate($json_a[0]['data']);
$folder = $json_a[0]['folder'];
$title = $json_a[0]['title'];
$gallery->setPath('./photos/' . $folder . '/');
//path to the image folder
$image = $gallery->getPreview(array('jpg', 'png'), 2);
//array of possible image extensions (useful if you have mixed
?>
<html>
<head>
Esempio n. 4
0
<?php

setlocale(LC_TIME, 'ita');
date_default_timezone_set('Europe/Rome');
include "./utils/class.utils.php";
include "./utils/class.seminar.php";
$s = new seminar();
$s->setSource("./json/seminari.json");
$util = new utils();
$to = Date('w') + 1;
?>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Oraio | Associazione Renbukai</title>
    <link rel="apple-touch-icon-precomposed" href="assets/favicon_t.png" />
    <link rel="shortcut icon" href="assets/favicon.png">
    <meta name="description" content="aikido scuola pesaro rimini renbukai jo bokken tanto arti marziali foglietta fujimoto osawa tada">
    <meta name="author" content="cbolk">
    <link rel="stylesheet" href="css/bootstrap.css">
    <link rel="stylesheet" media="screen" href="css/main.css" /> <!--Load CSS-->
</head>
<body id="orario">
  <div class="container">
        <div id="headernomobile" class="nomobile col-lg-12">
            <?php 
include './utils/head_banner.php';
?>
        </div>
Esempio n. 5
0
<?php 
setlocale(LC_TIME, 'ita');
//date_default_timezone_set('Europe/Rome');
date_default_timezone_set('UTC');
include "./utils/class.utils.php";
include "./utils/class.seminar.php";
$s = new seminar();
$s->setSource("./calendar/gruppo.json");
$util = new utils();
$today = date('Y-m-d');
$MAXCOL = 3;
function sort_by_start_asc($a, $b)
{
    $dA = strtotime($a['start']);
    $dB = strtotime($b['start']);
    return $dA - $dB;
}
function sort_asc($a, $b)
{
    return strcmp($a, $b);
}
function select_diretto($name = "")
{
    return function ($elem) use($name) {
        if (strcmp($name, "*") == 0) {
            return true;
        }
        if (strpos($elem['diretto'], $name, 0) === false) {
            return false;
        }