NxTIC/view/charts.php

43 lines
1.1 KiB
PHP
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php define('__ROOT__', dirname(dirname(__FILE__)) );
require_once __ROOT__.'/manager/autoloader.php';
use \manager\ModuleRequest;
use \manager\ManagerError;
use \manager\ResourceDispatcher;
/* (1) On récupére la liste de tous les sujets */
$getAll = new ModuleRequest('subject/getAll', array());
$getAllR = $getAll->dispatch();
$allSub = array();
if( $getAllR->error == ManagerError::Success )
$allSub = $getAllR->get('subjects');
?>
<section data-sublink='phone'>
<h4>Visualiser les données relatives au journal d'appel</h4>
<span class='select-container nobold'><select id='phone-charts-subject'>
<option value='.' disabled selected>Identifiant du sujet</option>
<?php foreach($allSub as $id=>$data)
if( isset($data['phone']) ) // Si données pour phone
echo "<option value='$id'>".$data['name']." [$id]</option>";
?>
</select></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br><br><input type='submit' class='primary hover' style='padding:.5em 2em;' value='Charger les graphiques' id='phone-charts-submit'>
<section id='phone-charts-container'>
</section>
</section>