NxTIC/view/charts.php

43 lines
1.1 KiB
PHP
Raw Normal View History

<?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');
?>
2016-05-24 07:01:16 +00:00
<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>