openstamanager/modules/anagrafiche/buttons.php

33 lines
1.9 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">
2019-11-19 15:39:59 +01:00
<button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-magic"></i>
2019-11-19 16:01:43 +01:00
'.tr('Crea').'... <span class="caret"></span>
2018-07-03 11:37:15 +02:00
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu dropdown-menu-right">
2019-11-19 15:39:59 +01:00
<li><a data-toggle="modal" data-title="'.tr('Aggiungi intervento').'" data-href="add.php?id_module='.Modules::get('Interventi')['id'].'&idanagrafica='.$record['idanagrafica'].'"><i class="fa fa-wrench"></i>'.tr('Nuovo intervento').'
2018-07-03 11:37:15 +02:00
</a></li>
2019-11-19 15:39:59 +01:00
<li><a data-toggle="modal" data-title="'.tr('Aggiungi preventivo').'" data-href="add.php?id_module='.Modules::get('Preventivi')['id'].'&idanagrafica='.$record['idanagrafica'].'"><i class="fa fa-file-text"></i>'.tr('Nuovo preventivo').'
2018-07-03 11:37:15 +02:00
</a></li>
2019-11-19 15:39:59 +01:00
<li><a data-toggle="modal" data-title="'.tr('Aggiungi contratto').'" data-href="add.php?id_module='.Modules::get('Contratti')['id'].'&idanagrafica='.$record['idanagrafica'].'"><i class="fa fa-file-text-o"></i>'.tr('Nuovo contratto').'
2018-07-03 11:37:15 +02:00
</a></li>
2019-11-19 15:39:59 +01: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'].'"><i class="fa fa-file-o"></i>'.tr('Nuovo ordine').'
2018-07-03 11:37:15 +02:00
</a></li>
2018-07-18 15:20:10 +02:00
2019-11-19 15:39:59 +01: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'].'"><i class="fa fa-truck"></i>'.tr('Nuovo ddt').'
2018-07-05 17:23:21 +02:00
</a></li>
2018-07-03 11:37:15 +02:00
2019-11-19 15:39:59 +01: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'].'"><i class="fa fa-file"></i>'.tr('Nuova fattura').'
2018-07-03 11:37:15 +02:00
</a></li>
</ul>
</div>';
}