Exemplo n.º 1
0
 private function getAjaxOverview()
 {
     // Autoloaded!
     $o = new Overview();
     return $o->getHTML();
 }
Exemplo n.º 2
0
header('Content-Type: application/json');
$conferences = Conferences::getActiveConferences();
$struct = array();
if (isset($GLOBALS['CONFIG'])) {
    $saved_config = $GLOBALS['CONFIG'];
}
foreach ($conferences as $conference) {
    /*
      ok. das ist so hacky. EIGENTLICH müsste man aus ModelBase
      das $GLOBALS tilgen und von der api ne v2 releasen, welche
      conferences als eigenes Objekt betrachtet
    */
    $GLOBALS['CONFIG'] = $conference['CONFIG'];
    $GLOBALS['MANDATOR'] = $conference['slug'];
    $overview = new Overview();
    foreach ($overview->getGroups() as $group => $rooms) {
        $roomstruct = array();
        foreach ($rooms as $room) {
            $streams = array();
            foreach ($room->getStreams() as $stream) {
                $key = $stream->getSelection() . '-' . $stream->getLanguage();
                $urls = array();
                switch ($stream->getPlayerType()) {
                    case 'video':
                        foreach ($stream->getVideoProtos() as $proto => $display) {
                            $urls[$proto] = array('display' => $display, 'tech' => $stream->getVideoTech($proto), 'url' => $stream->getVideoUrl($proto));
                        }
                        break;
                    case 'slides':
                        foreach ($stream->getSlidesProtos() as $proto => $display) {
Exemplo n.º 3
0
<?php

require_once __DIR__ . "/../classes/display/overview.php";
//
//var_dump(Backend::getXML(__DIR__ . "/../backend/all.php"));
$xml_all = new DOMDocument();
$xml_all->loadXML(Backend::getXML(__DIR__ . "/../backend/all.php"));
//$_SESSION['xml'] = $xml_all->saveXML();
$all_xpath = new DOMXPath($xml_all);
$overview = new Overview($all_xpath);
?>
    <div class="left">
        <div class="border">
            <h2><?php 
echo FLANG_H_OVERVIEW;
?>
</h2>
            <table class="Auflistung striped" style="text-align:right;">
                <thead>
                <tr>
                    <th><?php 
echo FLANG_DAY;
?>
:</th>
                    <th><?php 
echo FLANG_VISITOR_S;
?>
:</th>
                    <th><?php 
echo FLANG_BOT_S;
?>