43 lines
1.1 KiB
PHP
Executable File
43 lines
1.1 KiB
PHP
Executable File
<?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>
|
||
|
||
<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>
|