2016-04-06 14:24:45 +00:00
|
|
|
|
<?php define('__ROOT__', dirname(dirname(__FILE__)) );
|
|
|
|
|
require_once __ROOT__.'/manager/autoloader.php';
|
|
|
|
|
use \manager\ModuleRequest;
|
|
|
|
|
use \manager\ManagerError;
|
|
|
|
|
use \manager\ResourceDispatcher;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-30 17:22:19 +00:00
|
|
|
|
/* (1) On récupére la liste de tous les sujets */
|
|
|
|
|
$getAll = new ModuleRequest('subject/getAll', array());
|
|
|
|
|
$getAllR = $getAll->dispatch();
|
2016-04-06 14:24:45 +00:00
|
|
|
|
|
2016-05-30 17:22:19 +00:00
|
|
|
|
$allSub = array();
|
|
|
|
|
if( $getAllR->error == ManagerError::Success )
|
|
|
|
|
$allSub = $getAllR->get('subjects');
|
2016-04-06 14:24:45 +00:00
|
|
|
|
|
2016-04-08 16:06:50 +00:00
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
2016-04-06 14:24:45 +00:00
|
|
|
|
|
2016-05-24 07:01:16 +00:00
|
|
|
|
<section data-sublink='phone'>
|
2016-04-15 13:07:25 +00:00
|
|
|
|
|
2016-05-30 17:22:19 +00:00
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
<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>
|
2016-04-15 10:10:38 +00:00
|
|
|
|
|
2016-04-18 12:56:49 +00:00
|
|
|
|
</section>
|