23 lines
470 B
PHP
23 lines
470 B
PHP
<?php
|
|
|
|
namespace Garradin;
|
|
|
|
use Garradin\Plugin\Materiels\Equipment;
|
|
use Garradin\Plugin\Materiels\Output;
|
|
|
|
require_once __DIR__ . '/../_inc.php';
|
|
|
|
$eqmt = new Equipment;
|
|
$output = new Output;
|
|
|
|
$outputs = $output->listAll();
|
|
|
|
foreach ($outputs as $key => $value) {
|
|
$output_eqmt = $eqmt->get($value->equipment_id);
|
|
$outputs[$key]->equipment = $output_eqmt->designation;
|
|
}
|
|
|
|
$tpl->assign(compact('outputs'));
|
|
|
|
$tpl->display(PLUGIN_ROOT . '/templates/sorties/index.tpl');
|