1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-08 06:31:20 +01:00
openstamanager/modules/anagrafiche/buttons.php

39 lines
1.8 KiB
PHP
Raw Normal View History

2018-07-03 11:37:15 +02:00
<?php
if (in_array($id_cliente, $tipi_anagrafica)) {
echo '
<div class="btn-group">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
'.tr('Nuovo').' <span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu dropdown-menu-right">
2018-10-25 17:11:02 +02:00
<li><a data-toggle="modal" data-title="'.tr('Aggiungi intervento').'" data-href="add.php?id_module='.Modules::get('Interventi')['id'].'&idanagrafica='.$record['idanagrafica'].'">
2018-07-03 11:37:15 +02:00
'.tr('Nuovo intervento').'
</a></li>
2018-10-25 17:11:02 +02:00
<li><a data-toggle="modal" data-title="'.tr('Aggiungi preventivo').'" data-href="add.php?id_module='.Modules::get('Preventivi')['id'].'&idanagrafica='.$record['idanagrafica'].'">
2018-07-03 11:37:15 +02:00
'.tr('Nuovo preventivo').'
</a></li>
2018-10-25 17:11:02 +02:00
<li><a data-toggle="modal" data-title="'.tr('Aggiungi contratto').'" data-href="add.php?id_module='.Modules::get('Contratti')['id'].'&idanagrafica='.$record['idanagrafica'].'">
2018-07-03 11:37:15 +02:00
'.tr('Nuovo contratto').'
</a></li>
2018-10-25 17:11:02 +02:00
<li><a data-toggle="modal" data-title="'.tr('Aggiungi ordine').'" data-href="add.php?id_module='.Modules::get('Ordini cliente')['id'].'&idanagrafica='.$record['idanagrafica'].'">
2018-07-03 11:37:15 +02:00
'.tr('Nuovo ordine').'
</a></li>
2018-07-18 15:20:10 +02:00
2018-10-25 17:11:02 +02:00
<li><a data-toggle="modal" data-title="'.tr('Aggiungi ddt').'" data-href="add.php?id_module='.Modules::get('Ddt di vendita')['id'].'&idanagrafica='.$record['idanagrafica'].'">
2018-07-05 17:23:21 +02:00
'.tr('Nuovo ddt').'
</a></li>
2018-07-03 11:37:15 +02:00
2018-10-25 17:11:02 +02:00
<li><a data-toggle="modal" data-title="'.tr('Aggiungi fattura').'" data-href="add.php?id_module='.Modules::get('Fatture di vendita')['id'].'&idanagrafica='.$record['idanagrafica'].'">
2018-07-03 11:37:15 +02:00
'.tr('Nuova fattura').'
</a></li>
</ul>
</div>';
}