mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-28 08:40:41 +01:00
21 lines
814 B
PHP
Executable File
21 lines
814 B
PHP
Executable File
<?php
|
|
|
|
include_once __DIR__.'/../../core.php';
|
|
|
|
$subcategorie = $dbo->fetchArray('SELECT * FROM `mg_categorie` WHERE `parent`='.prepare($id_record).' ORDER BY nome ASC ');
|
|
|
|
foreach ($subcategorie as $sub) {
|
|
echo '
|
|
<tr>
|
|
<td>'.$sub['nome'].'</td>
|
|
<td>'.$sub['colore'].'</td>
|
|
<td>'.$sub['nota'].'</td>
|
|
<td>
|
|
<a class="btn btn-warning btn-sm" title="Modifica riga" onclick="launch_modal(\''.tr('Modifica sottocategoria').'\', \''.$rootdir.'/add.php?id_module='.$id_module.'&id_record='.$sub['id'].'&id_original='.$id_record.'\');"><i class="fa fa-edit"></i></a>
|
|
<a class="btn btn-sm btn-danger ask" data-backto="record-edit" data-id="'.$sub['id'].'">
|
|
<i class="fa fa-trash"></i>
|
|
</a>
|
|
</td>
|
|
</tr>';
|
|
}
|